From 1acc4e7d8c77c8ef0608a898683977b50347d1e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Radek=20Ma=C5=88=C3=A1k?=
Date: Tue, 30 Sep 2025 15:13:01 +0200
Subject: [PATCH 1/3] Implement extended AWS metadata service options support
---
pkg/actuators/machine/instances.go | 39 +++++++++-
pkg/actuators/machine/instances_test.go | 98 +++++++++++++++++++++++++
2 files changed, 135 insertions(+), 2 deletions(-)
diff --git a/pkg/actuators/machine/instances.go b/pkg/actuators/machine/instances.go
index 1d6450d65..091d9a893 100644
--- a/pkg/actuators/machine/instances.go
+++ b/pkg/actuators/machine/instances.go
@@ -809,6 +809,7 @@ func isAWSDualStack(infra *configv1.Infrastructure) bool {
func getInstanceMetadataOptionsRequest(providerConfig *machinev1beta1.AWSMachineProviderConfig, infra *configv1.Infrastructure) *ec2.InstanceMetadataOptionsRequest {
imdsOptions := &ec2.InstanceMetadataOptionsRequest{}
+ // Handle Authentication (HttpTokens)
switch providerConfig.MetadataServiceOptions.Authentication {
case "":
// not set, let aws to pick a default. `optional` at this point.
@@ -819,8 +820,42 @@ func getInstanceMetadataOptionsRequest(providerConfig *machinev1beta1.AWSMachine
imdsOptions.HttpTokens = aws.String(ec2.HttpTokensStateRequired)
}
- if isAWSDualStack(infra) {
- imdsOptions.HttpProtocolIpv6 = ptr.To("enabled")
+ // Handle HTTPEndpoint
+ if providerConfig.MetadataServiceOptions.HTTPEndpoint != nil {
+ switch *providerConfig.MetadataServiceOptions.HTTPEndpoint {
+ case machinev1beta1.HTTPEndpointEnabled:
+ imdsOptions.HttpEndpoint = aws.String(ec2.InstanceMetadataEndpointStateEnabled)
+ case machinev1beta1.HTTPEndpointDisabled:
+ imdsOptions.HttpEndpoint = aws.String(ec2.InstanceMetadataEndpointStateDisabled)
+ }
+ }
+
+ // Handle HTTPProtocolIPv6. Explicit providerSpec wins; otherwise enable for dual-stack clusters.
+ switch {
+ case providerConfig.MetadataServiceOptions.HTTPProtocolIPv6 != nil:
+ switch *providerConfig.MetadataServiceOptions.HTTPProtocolIPv6 {
+ case machinev1beta1.HTTPProtocolIPv6Enabled:
+ imdsOptions.HttpProtocolIpv6 = aws.String(ec2.InstanceMetadataProtocolStateEnabled)
+ case machinev1beta1.HTTPProtocolIPv6Disabled:
+ imdsOptions.HttpProtocolIpv6 = aws.String(ec2.InstanceMetadataProtocolStateDisabled)
+ }
+ case isAWSDualStack(infra):
+ imdsOptions.HttpProtocolIpv6 = aws.String(ec2.InstanceMetadataProtocolStateEnabled)
+ }
+
+ // Handle HTTPPutResponseHopLimit
+ if providerConfig.MetadataServiceOptions.HTTPPutResponseHopLimit != nil {
+ imdsOptions.HttpPutResponseHopLimit = providerConfig.MetadataServiceOptions.HTTPPutResponseHopLimit
+ }
+
+ // Handle InstanceMetadataTags
+ if providerConfig.MetadataServiceOptions.InstanceMetadataTags != nil {
+ switch *providerConfig.MetadataServiceOptions.InstanceMetadataTags {
+ case machinev1beta1.InstanceMetadataTagsEnabled:
+ imdsOptions.InstanceMetadataTags = aws.String(ec2.InstanceMetadataTagsStateEnabled)
+ case machinev1beta1.InstanceMetadataTagsDisabled:
+ imdsOptions.InstanceMetadataTags = aws.String(ec2.InstanceMetadataTagsStateDisabled)
+ }
}
if *imdsOptions == (ec2.InstanceMetadataOptionsRequest{}) {
diff --git a/pkg/actuators/machine/instances_test.go b/pkg/actuators/machine/instances_test.go
index 7645e5a0c..c3982e4a6 100644
--- a/pkg/actuators/machine/instances_test.go
+++ b/pkg/actuators/machine/instances_test.go
@@ -1571,6 +1571,104 @@ func TestGetInstanceMetadataOptionsRequest(t *testing.T) {
},
expected: nil,
},
+ {
+ name: "http endpoint enabled",
+ providerConfig: &machinev1beta1.AWSMachineProviderConfig{
+ MetadataServiceOptions: machinev1beta1.MetadataServiceOptions{
+ HTTPEndpoint: ptr.To(machinev1beta1.HTTPEndpointEnabled),
+ },
+ },
+ expected: &ec2.InstanceMetadataOptionsRequest{
+ HttpEndpoint: aws.String(ec2.InstanceMetadataEndpointStateEnabled),
+ },
+ },
+ {
+ name: "http endpoint disabled",
+ providerConfig: &machinev1beta1.AWSMachineProviderConfig{
+ MetadataServiceOptions: machinev1beta1.MetadataServiceOptions{
+ HTTPEndpoint: ptr.To(machinev1beta1.HTTPEndpointDisabled),
+ },
+ },
+ expected: &ec2.InstanceMetadataOptionsRequest{
+ HttpEndpoint: aws.String(ec2.InstanceMetadataEndpointStateDisabled),
+ },
+ },
+ {
+ name: "http put response hop limit set to 1",
+ providerConfig: &machinev1beta1.AWSMachineProviderConfig{
+ MetadataServiceOptions: machinev1beta1.MetadataServiceOptions{
+ HTTPPutResponseHopLimit: aws.Int64(1),
+ },
+ },
+ expected: &ec2.InstanceMetadataOptionsRequest{
+ HttpPutResponseHopLimit: aws.Int64(1),
+ },
+ },
+ {
+ name: "http put response hop limit set to 64",
+ providerConfig: &machinev1beta1.AWSMachineProviderConfig{
+ MetadataServiceOptions: machinev1beta1.MetadataServiceOptions{
+ HTTPPutResponseHopLimit: aws.Int64(64),
+ },
+ },
+ expected: &ec2.InstanceMetadataOptionsRequest{
+ HttpPutResponseHopLimit: aws.Int64(64),
+ },
+ },
+ {
+ name: "instance metadata tags enabled",
+ providerConfig: &machinev1beta1.AWSMachineProviderConfig{
+ MetadataServiceOptions: machinev1beta1.MetadataServiceOptions{
+ InstanceMetadataTags: ptr.To(machinev1beta1.InstanceMetadataTagsEnabled),
+ },
+ },
+ expected: &ec2.InstanceMetadataOptionsRequest{
+ InstanceMetadataTags: aws.String(ec2.InstanceMetadataTagsStateEnabled),
+ },
+ },
+ {
+ name: "instance metadata tags disabled",
+ providerConfig: &machinev1beta1.AWSMachineProviderConfig{
+ MetadataServiceOptions: machinev1beta1.MetadataServiceOptions{
+ InstanceMetadataTags: ptr.To(machinev1beta1.InstanceMetadataTagsDisabled),
+ },
+ },
+ expected: &ec2.InstanceMetadataOptionsRequest{
+ InstanceMetadataTags: aws.String(ec2.InstanceMetadataTagsStateDisabled),
+ },
+ },
+ {
+ name: "all options set",
+ providerConfig: &machinev1beta1.AWSMachineProviderConfig{
+ MetadataServiceOptions: machinev1beta1.MetadataServiceOptions{
+ Authentication: machinev1beta1.MetadataServiceAuthenticationRequired,
+ HTTPEndpoint: ptr.To(machinev1beta1.HTTPEndpointEnabled),
+ HTTPPutResponseHopLimit: aws.Int64(32),
+ InstanceMetadataTags: ptr.To(machinev1beta1.InstanceMetadataTagsEnabled),
+ },
+ },
+ expected: &ec2.InstanceMetadataOptionsRequest{
+ HttpTokens: aws.String(ec2.HttpTokensStateRequired),
+ HttpEndpoint: aws.String(ec2.InstanceMetadataEndpointStateEnabled),
+ HttpPutResponseHopLimit: aws.Int64(32),
+ InstanceMetadataTags: aws.String(ec2.InstanceMetadataTagsStateEnabled),
+ },
+ },
+ {
+ name: "mixed authentication and new fields",
+ providerConfig: &machinev1beta1.AWSMachineProviderConfig{
+ MetadataServiceOptions: machinev1beta1.MetadataServiceOptions{
+ Authentication: machinev1beta1.MetadataServiceAuthenticationOptional,
+ HTTPPutResponseHopLimit: aws.Int64(5),
+ InstanceMetadataTags: ptr.To(machinev1beta1.InstanceMetadataTagsEnabled),
+ },
+ },
+ expected: &ec2.InstanceMetadataOptionsRequest{
+ HttpTokens: aws.String(ec2.HttpTokensStateOptional),
+ HttpPutResponseHopLimit: aws.Int64(5),
+ InstanceMetadataTags: aws.String(ec2.InstanceMetadataTagsStateEnabled),
+ },
+ },
}
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
From 471e3f39edb8b86c12e8a67db8a7db3e292f7ede Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Radek=20Ma=C5=88=C3=A1k?=
Date: Mon, 13 Jul 2026 18:43:41 +0200
Subject: [PATCH 2/3] Add HTTPProtocolIPv6 coverage for IMDS options
Cover explicit enable/disable and precedence over the dual-stack default.
---
pkg/actuators/machine/instances_test.go | 44 +++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/pkg/actuators/machine/instances_test.go b/pkg/actuators/machine/instances_test.go
index c3982e4a6..25318bd5a 100644
--- a/pkg/actuators/machine/instances_test.go
+++ b/pkg/actuators/machine/instances_test.go
@@ -1593,6 +1593,48 @@ func TestGetInstanceMetadataOptionsRequest(t *testing.T) {
HttpEndpoint: aws.String(ec2.InstanceMetadataEndpointStateDisabled),
},
},
+ {
+ name: "http protocol ipv6 enabled",
+ providerConfig: &machinev1beta1.AWSMachineProviderConfig{
+ MetadataServiceOptions: machinev1beta1.MetadataServiceOptions{
+ HTTPProtocolIPv6: ptr.To(machinev1beta1.HTTPProtocolIPv6Enabled),
+ },
+ },
+ expected: &ec2.InstanceMetadataOptionsRequest{
+ HttpProtocolIpv6: aws.String(ec2.InstanceMetadataProtocolStateEnabled),
+ },
+ },
+ {
+ name: "http protocol ipv6 disabled",
+ providerConfig: &machinev1beta1.AWSMachineProviderConfig{
+ MetadataServiceOptions: machinev1beta1.MetadataServiceOptions{
+ HTTPProtocolIPv6: ptr.To(machinev1beta1.HTTPProtocolIPv6Disabled),
+ },
+ },
+ expected: &ec2.InstanceMetadataOptionsRequest{
+ HttpProtocolIpv6: aws.String(ec2.InstanceMetadataProtocolStateDisabled),
+ },
+ },
+ {
+ name: "explicit http protocol ipv6 disabled overrides dual-stack default",
+ providerConfig: &machinev1beta1.AWSMachineProviderConfig{
+ MetadataServiceOptions: machinev1beta1.MetadataServiceOptions{
+ HTTPProtocolIPv6: ptr.To(machinev1beta1.HTTPProtocolIPv6Disabled),
+ },
+ },
+ infra: &configv1.Infrastructure{
+ Status: configv1.InfrastructureStatus{
+ PlatformStatus: &configv1.PlatformStatus{
+ AWS: &configv1.AWSPlatformStatus{
+ IPFamily: configv1.DualStackIPv6Primary,
+ },
+ },
+ },
+ },
+ expected: &ec2.InstanceMetadataOptionsRequest{
+ HttpProtocolIpv6: aws.String(ec2.InstanceMetadataProtocolStateDisabled),
+ },
+ },
{
name: "http put response hop limit set to 1",
providerConfig: &machinev1beta1.AWSMachineProviderConfig{
@@ -1643,6 +1685,7 @@ func TestGetInstanceMetadataOptionsRequest(t *testing.T) {
MetadataServiceOptions: machinev1beta1.MetadataServiceOptions{
Authentication: machinev1beta1.MetadataServiceAuthenticationRequired,
HTTPEndpoint: ptr.To(machinev1beta1.HTTPEndpointEnabled),
+ HTTPProtocolIPv6: ptr.To(machinev1beta1.HTTPProtocolIPv6Enabled),
HTTPPutResponseHopLimit: aws.Int64(32),
InstanceMetadataTags: ptr.To(machinev1beta1.InstanceMetadataTagsEnabled),
},
@@ -1650,6 +1693,7 @@ func TestGetInstanceMetadataOptionsRequest(t *testing.T) {
expected: &ec2.InstanceMetadataOptionsRequest{
HttpTokens: aws.String(ec2.HttpTokensStateRequired),
HttpEndpoint: aws.String(ec2.InstanceMetadataEndpointStateEnabled),
+ HttpProtocolIpv6: aws.String(ec2.InstanceMetadataProtocolStateEnabled),
HttpPutResponseHopLimit: aws.Int64(32),
InstanceMetadataTags: aws.String(ec2.InstanceMetadataTagsStateEnabled),
},
From b73bc9b58b1e660ed8b14964ef7e63aa64177729 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Radek=20Ma=C5=88=C3=A1k?=
Date: Mon, 13 Jul 2026 18:43:42 +0200
Subject: [PATCH 3/3] DNM: Vendor local API changes for OCPCLOUD-2710
Temporary replace of github.com/openshift/api to the local workspace
checkout so MAPA can build and test against the IMDS API PR.
---
go.mod | 39 +-
go.sum | 82 +-
vendor/cel.dev/expr/.bazelversion | 2 -
vendor/cel.dev/expr/.gitattributes | 2 -
vendor/cel.dev/expr/.gitignore | 2 -
vendor/cel.dev/expr/BUILD.bazel | 33 -
vendor/cel.dev/expr/CODE_OF_CONDUCT.md | 25 -
vendor/cel.dev/expr/CONTRIBUTING.md | 32 -
vendor/cel.dev/expr/GOVERNANCE.md | 43 -
vendor/cel.dev/expr/MAINTAINERS.md | 13 -
vendor/cel.dev/expr/MODULE.bazel | 56 -
vendor/cel.dev/expr/README.md | 71 -
vendor/cel.dev/expr/WORKSPACE | 145 -
vendor/cel.dev/expr/WORKSPACE.bzlmod | 0
vendor/cel.dev/expr/checked.pb.go | 1231 -
vendor/cel.dev/expr/cloudbuild.yaml | 9 -
vendor/cel.dev/expr/eval.pb.go | 468 -
vendor/cel.dev/expr/explain.pb.go | 195 -
vendor/cel.dev/expr/regen_go_proto.sh | 9 -
.../expr/regen_go_proto_canonical_protos.sh | 10 -
vendor/cel.dev/expr/syntax.pb.go | 1394 -
vendor/cel.dev/expr/value.pb.go | 575 -
.../github.com/antlr4-go/antlr/v4/.gitignore | 18 -
vendor/github.com/antlr4-go/antlr/v4/LICENSE | 28 -
.../github.com/antlr4-go/antlr/v4/README.md | 54 -
.../github.com/antlr4-go/antlr/v4/antlrdoc.go | 102 -
vendor/github.com/antlr4-go/antlr/v4/atn.go | 179 -
.../antlr4-go/antlr/v4/atn_config.go | 335 -
.../antlr4-go/antlr/v4/atn_config_set.go | 301 -
.../antlr/v4/atn_deserialization_options.go | 62 -
.../antlr4-go/antlr/v4/atn_deserializer.go | 684 -
.../antlr4-go/antlr/v4/atn_simulator.go | 41 -
.../antlr4-go/antlr/v4/atn_state.go | 461 -
.../github.com/antlr4-go/antlr/v4/atn_type.go | 11 -
.../antlr4-go/antlr/v4/char_stream.go | 12 -
.../antlr/v4/common_token_factory.go | 56 -
.../antlr4-go/antlr/v4/common_token_stream.go | 450 -
.../antlr4-go/antlr/v4/comparators.go | 150 -
.../antlr4-go/antlr/v4/configuration.go | 214 -
vendor/github.com/antlr4-go/antlr/v4/dfa.go | 175 -
.../antlr4-go/antlr/v4/dfa_serializer.go | 158 -
.../antlr4-go/antlr/v4/dfa_state.go | 170 -
.../antlr/v4/diagnostic_error_listener.go | 110 -
.../antlr4-go/antlr/v4/error_listener.go | 100 -
.../antlr4-go/antlr/v4/error_strategy.go | 702 -
.../github.com/antlr4-go/antlr/v4/errors.go | 259 -
.../antlr4-go/antlr/v4/file_stream.go | 67 -
.../antlr4-go/antlr/v4/input_stream.go | 157 -
.../antlr4-go/antlr/v4/int_stream.go | 16 -
.../antlr4-go/antlr/v4/interval_set.go | 330 -
.../github.com/antlr4-go/antlr/v4/jcollect.go | 685 -
vendor/github.com/antlr4-go/antlr/v4/lexer.go | 426 -
.../antlr4-go/antlr/v4/lexer_action.go | 452 -
.../antlr/v4/lexer_action_executor.go | 173 -
.../antlr4-go/antlr/v4/lexer_atn_simulator.go | 677 -
.../antlr4-go/antlr/v4/ll1_analyzer.go | 218 -
.../antlr4-go/antlr/v4/nostatistics.go | 47 -
.../github.com/antlr4-go/antlr/v4/parser.go | 700 -
.../antlr/v4/parser_atn_simulator.go | 1668 -
.../antlr4-go/antlr/v4/parser_rule_context.go | 421 -
.../antlr4-go/antlr/v4/prediction_context.go | 727 -
.../antlr/v4/prediction_context_cache.go | 48 -
.../antlr4-go/antlr/v4/prediction_mode.go | 536 -
.../antlr4-go/antlr/v4/recognizer.go | 241 -
.../antlr4-go/antlr/v4/rule_context.go | 40 -
.../antlr4-go/antlr/v4/semantic_context.go | 464 -
.../antlr4-go/antlr/v4/statistics.go | 281 -
.../antlr4-go/antlr/v4/stats_data.go | 23 -
vendor/github.com/antlr4-go/antlr/v4/token.go | 213 -
.../antlr4-go/antlr/v4/token_source.go | 17 -
.../antlr4-go/antlr/v4/token_stream.go | 21 -
.../antlr/v4/tokenstream_rewriter.go | 662 -
.../antlr4-go/antlr/v4/trace_listener.go | 32 -
.../antlr4-go/antlr/v4/transition.go | 439 -
vendor/github.com/antlr4-go/antlr/v4/tree.go | 304 -
vendor/github.com/antlr4-go/antlr/v4/trees.go | 142 -
vendor/github.com/antlr4-go/antlr/v4/utils.go | 328 -
.../github.com/aws/aws-sdk-go-v2/LICENSE.txt | 202 -
.../github.com/aws/aws-sdk-go-v2/NOTICE.txt | 3 -
.../aws/accountid_endpoint_mode.go | 18 -
.../aws/aws-sdk-go-v2/aws/checksum.go | 33 -
.../aws/aws-sdk-go-v2/aws/config.go | 250 -
.../aws/aws-sdk-go-v2/aws/context.go | 22 -
.../aws/aws-sdk-go-v2/aws/credential_cache.go | 235 -
.../aws/aws-sdk-go-v2/aws/credentials.go | 230 -
.../aws/aws-sdk-go-v2/aws/defaults/auto.go | 38 -
.../aws/defaults/configuration.go | 43 -
.../aws-sdk-go-v2/aws/defaults/defaults.go | 50 -
.../aws/aws-sdk-go-v2/aws/defaults/doc.go | 2 -
.../aws/aws-sdk-go-v2/aws/defaultsmode.go | 95 -
.../github.com/aws/aws-sdk-go-v2/aws/doc.go | 62 -
.../aws/aws-sdk-go-v2/aws/endpoints.go | 247 -
.../aws/aws-sdk-go-v2/aws/errors.go | 9 -
.../aws/aws-sdk-go-v2/aws/from_ptr.go | 365 -
.../aws-sdk-go-v2/aws/go_module_metadata.go | 6 -
.../aws/aws-sdk-go-v2/aws/logging.go | 119 -
.../aws/aws-sdk-go-v2/aws/logging_generate.go | 95 -
.../aws-sdk-go-v2/aws/middleware/metadata.go | 213 -
.../aws/middleware/middleware.go | 168 -
.../aws-sdk-go-v2/aws/middleware/osname.go | 24 -
.../aws/middleware/osname_go115.go | 24 -
.../aws/middleware/recursion_detection.go | 94 -
.../aws/middleware/request_id.go | 27 -
.../aws/middleware/request_id_retriever.go | 57 -
.../aws/middleware/user_agent.go | 393 -
.../aws/protocol/ec2query/error_utils.go | 24 -
.../aws-sdk-go-v2/aws/protocol/query/array.go | 61 -
.../aws/protocol/query/encoder.go | 80 -
.../aws-sdk-go-v2/aws/protocol/query/map.go | 78 -
.../aws/protocol/query/middleware.go | 62 -
.../aws/protocol/query/object.go | 68 -
.../aws-sdk-go-v2/aws/protocol/query/value.go | 117 -
.../aws/protocol/restjson/decoder_util.go | 85 -
.../aws/protocol/xml/error_utils.go | 48 -
.../aws/aws-sdk-go-v2/aws/ratelimit/none.go | 20 -
.../aws/ratelimit/token_bucket.go | 96 -
.../aws/ratelimit/token_rate_limit.go | 83 -
.../aws/aws-sdk-go-v2/aws/request.go | 25 -
.../aws/aws-sdk-go-v2/aws/retry/adaptive.go | 156 -
.../aws/retry/adaptive_ratelimit.go | 158 -
.../aws/retry/adaptive_token_bucket.go | 83 -
.../aws/retry/attempt_metrics.go | 51 -
.../aws/aws-sdk-go-v2/aws/retry/doc.go | 80 -
.../aws/aws-sdk-go-v2/aws/retry/errors.go | 20 -
.../aws-sdk-go-v2/aws/retry/jitter_backoff.go | 49 -
.../aws/aws-sdk-go-v2/aws/retry/metadata.go | 52 -
.../aws/aws-sdk-go-v2/aws/retry/middleware.go | 418 -
.../aws/aws-sdk-go-v2/aws/retry/retry.go | 90 -
.../aws/retry/retryable_error.go | 228 -
.../aws/aws-sdk-go-v2/aws/retry/standard.go | 269 -
.../aws-sdk-go-v2/aws/retry/throttle_error.go | 60 -
.../aws-sdk-go-v2/aws/retry/timeout_error.go | 52 -
.../aws/aws-sdk-go-v2/aws/retryer.go | 127 -
.../aws/aws-sdk-go-v2/aws/runtime.go | 14 -
.../aws/signer/internal/v4/cache.go | 115 -
.../aws/signer/internal/v4/const.go | 40 -
.../aws/signer/internal/v4/header_rules.go | 82 -
.../aws/signer/internal/v4/headers.go | 70 -
.../aws/signer/internal/v4/hmac.go | 13 -
.../aws/signer/internal/v4/host.go | 75 -
.../aws/signer/internal/v4/scope.go | 13 -
.../aws/signer/internal/v4/time.go | 36 -
.../aws/signer/internal/v4/util.go | 80 -
.../aws-sdk-go-v2/aws/signer/v4/middleware.go | 420 -
.../aws/signer/v4/presign_middleware.go | 127 -
.../aws/aws-sdk-go-v2/aws/signer/v4/stream.go | 86 -
.../aws/aws-sdk-go-v2/aws/signer/v4/v4.go | 564 -
.../aws/aws-sdk-go-v2/aws/to_ptr.go | 297 -
.../aws/transport/http/client.go | 342 -
.../aws/transport/http/content_type.go | 42 -
.../aws/transport/http/response_error.go | 33 -
.../http/response_error_middleware.go | 56 -
.../aws/transport/http/timeout_read_closer.go | 104 -
.../github.com/aws/aws-sdk-go-v2/aws/types.go | 42 -
.../aws/aws-sdk-go-v2/aws/version.go | 8 -
.../aws/aws-sdk-go-v2/config/CHANGELOG.md | 945 -
.../aws/aws-sdk-go-v2/config/LICENSE.txt | 202 -
.../config/auth_scheme_preference.go | 19 -
.../aws/aws-sdk-go-v2/config/config.go | 235 -
.../aws/aws-sdk-go-v2/config/defaultsmode.go | 47 -
.../aws/aws-sdk-go-v2/config/doc.go | 20 -
.../aws/aws-sdk-go-v2/config/env_config.go | 932 -
.../aws/aws-sdk-go-v2/config/generate.go | 4 -
.../config/go_module_metadata.go | 6 -
.../aws/aws-sdk-go-v2/config/load_options.go | 1355 -
.../aws/aws-sdk-go-v2/config/local.go | 51 -
.../aws/aws-sdk-go-v2/config/provider.go | 786 -
.../aws/aws-sdk-go-v2/config/resolve.go | 444 -
.../config/resolve_bearer_token.go | 122 -
.../config/resolve_credentials.go | 627 -
.../aws/aws-sdk-go-v2/config/shared_config.go | 1696 -
.../aws-sdk-go-v2/credentials/CHANGELOG.md | 843 -
.../aws/aws-sdk-go-v2/credentials/LICENSE.txt | 202 -
.../aws/aws-sdk-go-v2/credentials/doc.go | 4 -
.../credentials/ec2rolecreds/doc.go | 58 -
.../credentials/ec2rolecreds/provider.go | 241 -
.../endpointcreds/internal/client/auth.go | 48 -
.../endpointcreds/internal/client/client.go | 165 -
.../internal/client/endpoints.go | 20 -
.../internal/client/middleware.go | 164 -
.../credentials/endpointcreds/provider.go | 207 -
.../credentials/go_module_metadata.go | 6 -
.../credentials/processcreds/doc.go | 92 -
.../credentials/processcreds/provider.go | 296 -
.../aws-sdk-go-v2/credentials/ssocreds/doc.go | 81 -
.../credentials/ssocreds/sso_cached_token.go | 233 -
.../ssocreds/sso_credentials_provider.go | 165 -
.../ssocreds/sso_token_provider.go | 147 -
.../credentials/static_provider.go | 63 -
.../stscreds/assume_role_provider.go | 338 -
.../stscreds/web_identity_provider.go | 181 -
.../feature/ec2/imds/CHANGELOG.md | 494 -
.../feature/ec2/imds/LICENSE.txt | 202 -
.../feature/ec2/imds/api_client.go | 358 -
.../feature/ec2/imds/api_op_GetDynamicData.go | 77 -
.../feature/ec2/imds/api_op_GetIAMInfo.go | 103 -
.../api_op_GetInstanceIdentityDocument.go | 110 -
.../feature/ec2/imds/api_op_GetMetadata.go | 77 -
.../feature/ec2/imds/api_op_GetRegion.go | 73 -
.../feature/ec2/imds/api_op_GetToken.go | 119 -
.../feature/ec2/imds/api_op_GetUserData.go | 61 -
.../aws-sdk-go-v2/feature/ec2/imds/auth.go | 48 -
.../aws/aws-sdk-go-v2/feature/ec2/imds/doc.go | 12 -
.../feature/ec2/imds/endpoints.go | 20 -
.../feature/ec2/imds/go_module_metadata.go | 6 -
.../ec2/imds/internal/config/resolvers.go | 114 -
.../feature/ec2/imds/request_middleware.go | 313 -
.../feature/ec2/imds/token_provider.go | 261 -
.../aws/aws-sdk-go-v2/internal/auth/auth.go | 45 -
.../aws/aws-sdk-go-v2/internal/auth/scheme.go | 191 -
.../auth/smithy/bearer_token_adapter.go | 43 -
.../smithy/bearer_token_signer_adapter.go | 35 -
.../auth/smithy/credentials_adapter.go | 46 -
.../internal/auth/smithy/smithy.go | 2 -
.../internal/auth/smithy/v4signer_adapter.go | 57 -
.../internal/configsources/CHANGELOG.md | 455 -
.../internal/configsources/LICENSE.txt | 202 -
.../internal/configsources/config.go | 65 -
.../internal/configsources/endpoints.go | 57 -
.../configsources/go_module_metadata.go | 6 -
.../aws-sdk-go-v2/internal/context/context.go | 52 -
.../internal/endpoints/awsrulesfn/arn.go | 94 -
.../internal/endpoints/awsrulesfn/doc.go | 3 -
.../internal/endpoints/awsrulesfn/generate.go | 7 -
.../internal/endpoints/awsrulesfn/host.go | 51 -
.../endpoints/awsrulesfn/partition.go | 76 -
.../endpoints/awsrulesfn/partitions.go | 489 -
.../endpoints/awsrulesfn/partitions.json | 264 -
.../internal/endpoints/endpoints.go | 201 -
.../internal/endpoints/v2/CHANGELOG.md | 430 -
.../internal/endpoints/v2/LICENSE.txt | 202 -
.../internal/endpoints/v2/endpoints.go | 302 -
.../endpoints/v2/go_module_metadata.go | 6 -
.../aws-sdk-go-v2/internal/ini/CHANGELOG.md | 283 -
.../aws-sdk-go-v2/internal/ini/LICENSE.txt | 202 -
.../aws/aws-sdk-go-v2/internal/ini/errors.go | 22 -
.../internal/ini/go_module_metadata.go | 6 -
.../aws/aws-sdk-go-v2/internal/ini/ini.go | 56 -
.../aws/aws-sdk-go-v2/internal/ini/parse.go | 109 -
.../aws-sdk-go-v2/internal/ini/sections.go | 157 -
.../aws/aws-sdk-go-v2/internal/ini/strings.go | 89 -
.../aws/aws-sdk-go-v2/internal/ini/token.go | 32 -
.../aws-sdk-go-v2/internal/ini/tokenize.go | 92 -
.../aws/aws-sdk-go-v2/internal/ini/value.go | 93 -
.../internal/middleware/middleware.go | 42 -
.../aws/aws-sdk-go-v2/internal/rand/rand.go | 33 -
.../aws-sdk-go-v2/internal/sdk/interfaces.go | 9 -
.../aws/aws-sdk-go-v2/internal/sdk/time.go | 74 -
.../aws/aws-sdk-go-v2/internal/sdkio/byte.go | 12 -
.../internal/shareddefaults/shared_config.go | 47 -
.../aws-sdk-go-v2/internal/strings/strings.go | 11 -
.../internal/sync/singleflight/LICENSE | 28 -
.../internal/sync/singleflight/docs.go | 7 -
.../sync/singleflight/singleflight.go | 210 -
.../internal/timeconv/duration.go | 13 -
.../aws-sdk-go-v2/service/ec2/CHANGELOG.md | 1387 -
.../aws/aws-sdk-go-v2/service/ec2/LICENSE.txt | 202 -
.../aws-sdk-go-v2/service/ec2/api_client.go | 1111 -
.../ec2/api_op_AcceptAddressTransfer.go | 175 -
...ceptCapacityReservationBillingOwnership.go | 168 -
...op_AcceptReservedInstancesExchangeQuote.go | 173 -
...ansitGatewayMulticastDomainAssociations.go | 167 -
...p_AcceptTransitGatewayPeeringAttachment.go | 167 -
...pi_op_AcceptTransitGatewayVpcAttachment.go | 169 -
.../api_op_AcceptVpcEndpointConnections.go | 171 -
.../ec2/api_op_AcceptVpcPeeringConnection.go | 172 -
.../service/ec2/api_op_AdvertiseByoipCidr.go | 205 -
.../service/ec2/api_op_AllocateAddress.go | 235 -
.../service/ec2/api_op_AllocateHosts.go | 242 -
.../ec2/api_op_AllocateIpamPoolCidr.go | 259 -
...ySecurityGroupsToClientVpnTargetNetwork.go | 178 -
.../service/ec2/api_op_AssignIpv6Addresses.go | 200 -
.../ec2/api_op_AssignPrivateIpAddresses.go | 217 -
.../api_op_AssignPrivateNatGatewayAddress.go | 179 -
.../service/ec2/api_op_AssociateAddress.go | 206 -
...ssociateCapacityReservationBillingOwner.go | 174 -
.../api_op_AssociateClientVpnTargetNetwork.go | 225 -
.../ec2/api_op_AssociateDhcpOptions.go | 178 -
...i_op_AssociateEnclaveCertificateIamRole.go | 197 -
.../ec2/api_op_AssociateIamInstanceProfile.go | 166 -
.../api_op_AssociateInstanceEventWindow.go | 177 -
.../service/ec2/api_op_AssociateIpamByoasn.go | 180 -
.../api_op_AssociateIpamResourceDiscovery.go | 216 -
.../ec2/api_op_AssociateNatGatewayAddress.go | 195 -
.../ec2/api_op_AssociateRouteServer.go | 178 -
.../service/ec2/api_op_AssociateRouteTable.go | 185 -
.../ec2/api_op_AssociateSecurityGroupVpc.go | 185 -
.../ec2/api_op_AssociateSubnetCidrBlock.go | 173 -
..._AssociateTransitGatewayMulticastDomain.go | 183 -
...i_op_AssociateTransitGatewayPolicyTable.go | 174 -
...pi_op_AssociateTransitGatewayRouteTable.go | 172 -
.../ec2/api_op_AssociateTrunkInterface.go | 232 -
.../ec2/api_op_AssociateVpcCidrBlock.go | 230 -
.../ec2/api_op_AttachClassicLinkVpc.go | 189 -
.../ec2/api_op_AttachInternetGateway.go | 170 -
.../ec2/api_op_AttachNetworkInterface.go | 193 -
...pi_op_AttachVerifiedAccessTrustProvider.go | 217 -
.../service/ec2/api_op_AttachVolume.go | 239 -
.../service/ec2/api_op_AttachVpnGateway.go | 179 -
.../ec2/api_op_AuthorizeClientVpnIngress.go | 230 -
.../api_op_AuthorizeSecurityGroupEgress.go | 216 -
.../api_op_AuthorizeSecurityGroupIngress.go | 261 -
.../service/ec2/api_op_BundleInstance.go | 183 -
.../service/ec2/api_op_CancelBundleTask.go | 168 -
.../ec2/api_op_CancelCapacityReservation.go | 187 -
.../api_op_CancelCapacityReservationFleets.go | 179 -
.../ec2/api_op_CancelConversionTask.go | 168 -
.../api_op_CancelDeclarativePoliciesReport.go | 172 -
.../service/ec2/api_op_CancelExportTask.go | 159 -
.../ec2/api_op_CancelImageLaunchPermission.go | 168 -
.../service/ec2/api_op_CancelImportTask.go | 169 -
.../api_op_CancelReservedInstancesListing.go | 167 -
.../ec2/api_op_CancelSpotFleetRequests.go | 195 -
.../ec2/api_op_CancelSpotInstanceRequests.go | 171 -
.../ec2/api_op_ConfirmProductInstance.go | 177 -
.../service/ec2/api_op_CopyFpgaImage.go | 182 -
.../service/ec2/api_op_CopyImage.go | 329 -
.../service/ec2/api_op_CopySnapshot.go | 384 -
.../ec2/api_op_CreateCapacityReservation.go | 346 -
...op_CreateCapacityReservationBySplitting.go | 227 -
.../api_op_CreateCapacityReservationFleet.go | 299 -
.../ec2/api_op_CreateCarrierGateway.go | 214 -
.../ec2/api_op_CreateClientVpnEndpoint.go | 328 -
.../ec2/api_op_CreateClientVpnRoute.go | 236 -
.../service/ec2/api_op_CreateCoipCidr.go | 171 -
.../service/ec2/api_op_CreateCoipPool.go | 169 -
.../ec2/api_op_CreateCustomerGateway.go | 222 -
.../service/ec2/api_op_CreateDefaultSubnet.go | 175 -
.../service/ec2/api_op_CreateDefaultVpc.go | 166 -
...op_CreateDelegateMacVolumeOwnershipTask.go | 239 -
.../service/ec2/api_op_CreateDhcpOptions.go | 213 -
.../api_op_CreateEgressOnlyInternetGateway.go | 182 -
.../service/ec2/api_op_CreateFleet.go | 305 -
.../service/ec2/api_op_CreateFlowLogs.go | 285 -
.../service/ec2/api_op_CreateFpgaImage.go | 197 -
.../service/ec2/api_op_CreateImage.go | 261 -
.../api_op_CreateInstanceConnectEndpoint.go | 252 -
.../ec2/api_op_CreateInstanceEventWindow.go | 216 -
.../ec2/api_op_CreateInstanceExportTask.go | 183 -
.../ec2/api_op_CreateInternetGateway.go | 166 -
.../service/ec2/api_op_CreateIpam.go | 253 -
...teIpamExternalResourceVerificationToken.go | 215 -
.../service/ec2/api_op_CreateIpamPool.go | 310 -
.../ec2/api_op_CreateIpamResourceDiscovery.go | 211 -
.../service/ec2/api_op_CreateIpamScope.go | 226 -
.../service/ec2/api_op_CreateKeyPair.go | 214 -
.../ec2/api_op_CreateLaunchTemplate.go | 250 -
.../ec2/api_op_CreateLaunchTemplateVersion.go | 269 -
.../ec2/api_op_CreateLocalGatewayRoute.go | 186 -
.../api_op_CreateLocalGatewayRouteTable.go | 172 -
...teTableVirtualInterfaceGroupAssociation.go | 176 -
...ateLocalGatewayRouteTableVpcAssociation.go | 174 -
...i_op_CreateLocalGatewayVirtualInterface.go | 200 -
...CreateLocalGatewayVirtualInterfaceGroup.go | 176 -
...stemIntegrityProtectionModificationTask.go | 282 -
.../ec2/api_op_CreateManagedPrefixList.go | 232 -
.../service/ec2/api_op_CreateNatGateway.go | 277 -
.../service/ec2/api_op_CreateNetworkAcl.go | 220 -
.../ec2/api_op_CreateNetworkAclEntry.go | 227 -
...api_op_CreateNetworkInsightsAccessScope.go | 224 -
.../ec2/api_op_CreateNetworkInsightsPath.go | 248 -
.../ec2/api_op_CreateNetworkInterface.go | 330 -
...api_op_CreateNetworkInterfacePermission.go | 183 -
.../ec2/api_op_CreatePlacementGroup.go | 192 -
.../ec2/api_op_CreatePublicIpv4Pool.go | 177 -
.../ec2/api_op_CreateReplaceRootVolumeTask.go | 268 -
.../api_op_CreateReservedInstancesListing.go | 207 -
.../ec2/api_op_CreateRestoreImageTask.go | 195 -
.../service/ec2/api_op_CreateRoute.go | 237 -
.../service/ec2/api_op_CreateRouteServer.go | 256 -
.../ec2/api_op_CreateRouteServerEndpoint.go | 222 -
.../ec2/api_op_CreateRouteServerPeer.go | 195 -
.../service/ec2/api_op_CreateRouteTable.go | 220 -
.../service/ec2/api_op_CreateSecurityGroup.go | 212 -
.../service/ec2/api_op_CreateSnapshot.go | 342 -
.../service/ec2/api_op_CreateSnapshots.go | 219 -
.../api_op_CreateSpotDatafeedSubscription.go | 178 -
.../ec2/api_op_CreateStoreImageTask.go | 185 -
.../service/ec2/api_op_CreateSubnet.go | 244 -
.../ec2/api_op_CreateSubnetCidrReservation.go | 192 -
.../service/ec2/api_op_CreateTags.go | 184 -
.../ec2/api_op_CreateTrafficMirrorFilter.go | 221 -
.../api_op_CreateTrafficMirrorFilterRule.go | 265 -
.../ec2/api_op_CreateTrafficMirrorSession.go | 273 -
.../ec2/api_op_CreateTrafficMirrorTarget.go | 234 -
.../ec2/api_op_CreateTransitGateway.go | 185 -
.../ec2/api_op_CreateTransitGatewayConnect.go | 180 -
.../api_op_CreateTransitGatewayConnectPeer.go | 201 -
..._op_CreateTransitGatewayMulticastDomain.go | 177 -
...p_CreateTransitGatewayPeeringAttachment.go | 192 -
.../api_op_CreateTransitGatewayPolicyTable.go | 170 -
...CreateTransitGatewayPrefixListReference.go | 178 -
.../ec2/api_op_CreateTransitGatewayRoute.go | 178 -
.../api_op_CreateTransitGatewayRouteTable.go | 169 -
...ateTransitGatewayRouteTableAnnouncement.go | 174 -
...pi_op_CreateTransitGatewayVpcAttachment.go | 192 -
.../api_op_CreateVerifiedAccessEndpoint.go | 261 -
.../ec2/api_op_CreateVerifiedAccessGroup.go | 225 -
.../api_op_CreateVerifiedAccessInstance.go | 215 -
...pi_op_CreateVerifiedAccessTrustProvider.go | 244 -
.../service/ec2/api_op_CreateVolume.go | 451 -
.../service/ec2/api_op_CreateVpc.go | 247 -
..._op_CreateVpcBlockPublicAccessExclusion.go | 192 -
.../service/ec2/api_op_CreateVpcEndpoint.go | 243 -
...CreateVpcEndpointConnectionNotification.go | 195 -
...p_CreateVpcEndpointServiceConfiguration.go | 209 -
.../ec2/api_op_CreateVpcPeeringConnection.go | 200 -
.../service/ec2/api_op_CreateVpnConnection.go | 212 -
.../ec2/api_op_CreateVpnConnectionRoute.go | 169 -
.../service/ec2/api_op_CreateVpnGateway.go | 188 -
.../ec2/api_op_DeleteCarrierGateway.go | 172 -
.../ec2/api_op_DeleteClientVpnEndpoint.go | 167 -
.../ec2/api_op_DeleteClientVpnRoute.go | 178 -
.../service/ec2/api_op_DeleteCoipCidr.go | 171 -
.../service/ec2/api_op_DeleteCoipPool.go | 166 -
.../ec2/api_op_DeleteCustomerGateway.go | 163 -
.../service/ec2/api_op_DeleteDhcpOptions.go | 164 -
.../api_op_DeleteEgressOnlyInternetGateway.go | 165 -
.../service/ec2/api_op_DeleteFleets.go | 216 -
.../service/ec2/api_op_DeleteFlowLogs.go | 168 -
.../service/ec2/api_op_DeleteFpgaImage.go | 165 -
.../api_op_DeleteInstanceConnectEndpoint.go | 166 -
.../ec2/api_op_DeleteInstanceEventWindow.go | 174 -
.../ec2/api_op_DeleteInternetGateway.go | 162 -
.../service/ec2/api_op_DeleteIpam.go | 192 -
...teIpamExternalResourceVerificationToken.go | 170 -
.../service/ec2/api_op_DeleteIpamPool.go | 184 -
.../ec2/api_op_DeleteIpamResourceDiscovery.go | 168 -
.../service/ec2/api_op_DeleteIpamScope.go | 170 -
.../service/ec2/api_op_DeleteKeyPair.go | 166 -
.../ec2/api_op_DeleteLaunchTemplate.go | 171 -
.../api_op_DeleteLaunchTemplateVersions.go | 195 -
.../ec2/api_op_DeleteLocalGatewayRoute.go | 173 -
.../api_op_DeleteLocalGatewayRouteTable.go | 166 -
...teTableVirtualInterfaceGroupAssociation.go | 166 -
...eteLocalGatewayRouteTableVpcAssociation.go | 166 -
...i_op_DeleteLocalGatewayVirtualInterface.go | 166 -
...DeleteLocalGatewayVirtualInterfaceGroup.go | 166 -
.../ec2/api_op_DeleteManagedPrefixList.go | 167 -
.../service/ec2/api_op_DeleteNatGateway.go | 168 -
.../service/ec2/api_op_DeleteNetworkAcl.go | 162 -
.../ec2/api_op_DeleteNetworkAclEntry.go | 172 -
...api_op_DeleteNetworkInsightsAccessScope.go | 165 -
...eleteNetworkInsightsAccessScopeAnalysis.go | 165 -
.../api_op_DeleteNetworkInsightsAnalysis.go | 165 -
.../ec2/api_op_DeleteNetworkInsightsPath.go | 165 -
.../ec2/api_op_DeleteNetworkInterface.go | 163 -
...api_op_DeleteNetworkInterfacePermission.go | 174 -
.../ec2/api_op_DeletePlacementGroup.go | 165 -
.../ec2/api_op_DeletePublicIpv4Pool.go | 176 -
.../api_op_DeleteQueuedReservedInstances.go | 169 -
.../service/ec2/api_op_DeleteRoute.go | 172 -
.../service/ec2/api_op_DeleteRouteServer.go | 190 -
.../ec2/api_op_DeleteRouteServerEndpoint.go | 172 -
.../ec2/api_op_DeleteRouteServerPeer.go | 177 -
.../service/ec2/api_op_DeleteRouteTable.go | 162 -
.../service/ec2/api_op_DeleteSecurityGroup.go | 172 -
.../service/ec2/api_op_DeleteSnapshot.go | 176 -
.../api_op_DeleteSpotDatafeedSubscription.go | 154 -
.../service/ec2/api_op_DeleteSubnet.go | 162 -
.../ec2/api_op_DeleteSubnetCidrReservation.go | 166 -
.../service/ec2/api_op_DeleteTags.go | 182 -
.../ec2/api_op_DeleteTrafficMirrorFilter.go | 168 -
.../api_op_DeleteTrafficMirrorFilterRule.go | 165 -
.../ec2/api_op_DeleteTrafficMirrorSession.go | 165 -
.../ec2/api_op_DeleteTrafficMirrorTarget.go | 168 -
.../ec2/api_op_DeleteTransitGateway.go | 166 -
.../ec2/api_op_DeleteTransitGatewayConnect.go | 167 -
.../api_op_DeleteTransitGatewayConnectPeer.go | 166 -
..._op_DeleteTransitGatewayMulticastDomain.go | 166 -
...p_DeleteTransitGatewayPeeringAttachment.go | 166 -
.../api_op_DeleteTransitGatewayPolicyTable.go | 166 -
...DeleteTransitGatewayPrefixListReference.go | 172 -
.../ec2/api_op_DeleteTransitGatewayRoute.go | 171 -
.../api_op_DeleteTransitGatewayRouteTable.go | 169 -
...eteTransitGatewayRouteTableAnnouncement.go | 166 -
...pi_op_DeleteTransitGatewayVpcAttachment.go | 166 -
.../api_op_DeleteVerifiedAccessEndpoint.go | 208 -
.../ec2/api_op_DeleteVerifiedAccessGroup.go | 208 -
.../api_op_DeleteVerifiedAccessInstance.go | 208 -
...pi_op_DeleteVerifiedAccessTrustProvider.go | 208 -
.../service/ec2/api_op_DeleteVolume.go | 168 -
.../service/ec2/api_op_DeleteVpc.go | 170 -
..._op_DeleteVpcBlockPublicAccessExclusion.go | 173 -
...eleteVpcEndpointConnectionNotifications.go | 166 -
..._DeleteVpcEndpointServiceConfigurations.go | 170 -
.../service/ec2/api_op_DeleteVpcEndpoints.go | 176 -
.../ec2/api_op_DeleteVpcPeeringConnection.go | 169 -
.../service/ec2/api_op_DeleteVpnConnection.go | 175 -
.../ec2/api_op_DeleteVpnConnectionRoute.go | 164 -
.../service/ec2/api_op_DeleteVpnGateway.go | 165 -
.../ec2/api_op_DeprovisionByoipCidr.go | 172 -
.../ec2/api_op_DeprovisionIpamByoasn.go | 177 -
.../ec2/api_op_DeprovisionIpamPoolCidr.go | 173 -
.../api_op_DeprovisionPublicIpv4PoolCidr.go | 173 -
.../service/ec2/api_op_DeregisterImage.go | 208 -
...sterInstanceEventNotificationAttributes.go | 167 -
...sterTransitGatewayMulticastGroupMembers.go | 168 -
...sterTransitGatewayMulticastGroupSources.go | 168 -
.../ec2/api_op_DescribeAccountAttributes.go | 185 -
.../ec2/api_op_DescribeAddressTransfers.go | 279 -
.../service/ec2/api_op_DescribeAddresses.go | 197 -
.../ec2/api_op_DescribeAddressesAttribute.go | 275 -
.../ec2/api_op_DescribeAggregateIdFormat.go | 177 -
.../ec2/api_op_DescribeAvailabilityZones.go | 220 -
...wsNetworkPerformanceMetricSubscriptions.go | 270 -
.../service/ec2/api_op_DescribeBundleTasks.go | 415 -
.../service/ec2/api_op_DescribeByoipCidrs.go | 272 -
...p_DescribeCapacityBlockExtensionHistory.go | 294 -
...DescribeCapacityBlockExtensionOfferings.go | 286 -
.../api_op_DescribeCapacityBlockOfferings.go | 307 -
.../ec2/api_op_DescribeCapacityBlockStatus.go | 282 -
.../ec2/api_op_DescribeCapacityBlocks.go | 296 -
...cribeCapacityReservationBillingRequests.go | 307 -
...pi_op_DescribeCapacityReservationFleets.go | 289 -
.../api_op_DescribeCapacityReservations.go | 355 -
.../ec2/api_op_DescribeCarrierGateways.go | 289 -
.../api_op_DescribeClassicLinkInstances.go | 302 -
..._op_DescribeClientVpnAuthorizationRules.go | 287 -
.../api_op_DescribeClientVpnConnections.go | 285 -
.../ec2/api_op_DescribeClientVpnEndpoints.go | 278 -
.../ec2/api_op_DescribeClientVpnRoutes.go | 285 -
.../api_op_DescribeClientVpnTargetNetworks.go | 288 -
.../service/ec2/api_op_DescribeCoipPools.go | 275 -
.../ec2/api_op_DescribeConversionTasks.go | 784 -
.../ec2/api_op_DescribeCustomerGateways.go | 442 -
...i_op_DescribeDeclarativePoliciesReports.go | 188 -
.../service/ec2/api_op_DescribeDhcpOptions.go | 301 -
...i_op_DescribeEgressOnlyInternetGateways.go | 290 -
.../service/ec2/api_op_DescribeElasticGpus.go | 198 -
.../ec2/api_op_DescribeExportImageTasks.go | 270 -
.../service/ec2/api_op_DescribeExportTasks.go | 546 -
.../ec2/api_op_DescribeFastLaunchImages.go | 285 -
.../api_op_DescribeFastSnapshotRestores.go | 286 -
.../ec2/api_op_DescribeFleetHistory.go | 212 -
.../ec2/api_op_DescribeFleetInstances.go | 197 -
.../service/ec2/api_op_DescribeFleets.go | 301 -
.../service/ec2/api_op_DescribeFlowLogs.go | 303 -
.../ec2/api_op_DescribeFpgaImageAttribute.go | 171 -
.../service/ec2/api_op_DescribeFpgaImages.go | 302 -
...api_op_DescribeHostReservationOfferings.go | 298 -
.../ec2/api_op_DescribeHostReservations.go | 285 -
.../service/ec2/api_op_DescribeHosts.go | 294 -
..._DescribeIamInstanceProfileAssociations.go | 278 -
.../service/ec2/api_op_DescribeIdFormat.go | 181 -
.../ec2/api_op_DescribeIdentityIdFormat.go | 189 -
.../ec2/api_op_DescribeImageAttribute.go | 240 -
.../service/ec2/api_op_DescribeImages.go | 848 -
.../ec2/api_op_DescribeImportImageTasks.go | 272 -
.../ec2/api_op_DescribeImportSnapshotTasks.go | 497 -
.../ec2/api_op_DescribeInstanceAttribute.go | 228 -
...api_op_DescribeInstanceConnectEndpoints.go | 303 -
...op_DescribeInstanceCreditSpecifications.go | 315 -
...ribeInstanceEventNotificationAttributes.go | 159 -
.../api_op_DescribeInstanceEventWindows.go | 317 -
.../api_op_DescribeInstanceImageMetadata.go | 348 -
.../ec2/api_op_DescribeInstanceStatus.go | 772 -
.../ec2/api_op_DescribeInstanceTopology.go | 327 -
.../api_op_DescribeInstanceTypeOfferings.go | 300 -
.../ec2/api_op_DescribeInstanceTypes.go | 432 -
.../service/ec2/api_op_DescribeInstances.go | 1772 -
.../ec2/api_op_DescribeInternetGateways.go | 507 -
.../service/ec2/api_op_DescribeIpamByoasn.go | 173 -
...eIpamExternalResourceVerificationTokens.go | 200 -
.../service/ec2/api_op_DescribeIpamPools.go | 269 -
.../api_op_DescribeIpamResourceDiscoveries.go | 273 -
...scribeIpamResourceDiscoveryAssociations.go | 275 -
.../service/ec2/api_op_DescribeIpamScopes.go | 270 -
.../service/ec2/api_op_DescribeIpams.go | 272 -
.../service/ec2/api_op_DescribeIpv6Pools.go | 277 -
.../service/ec2/api_op_DescribeKeyPairs.go | 405 -
.../api_op_DescribeLaunchTemplateVersions.go | 359 -
.../ec2/api_op_DescribeLaunchTemplates.go | 288 -
...eTableVirtualInterfaceGroupAssociations.go | 295 -
...beLocalGatewayRouteTableVpcAssociations.go | 289 -
.../api_op_DescribeLocalGatewayRouteTables.go | 287 -
...cribeLocalGatewayVirtualInterfaceGroups.go | 282 -
...p_DescribeLocalGatewayVirtualInterfaces.go | 290 -
.../ec2/api_op_DescribeLocalGateways.go | 280 -
.../ec2/api_op_DescribeLockedSnapshots.go | 182 -
.../service/ec2/api_op_DescribeMacHosts.go | 272 -
.../api_op_DescribeMacModificationTasks.go | 293 -
.../ec2/api_op_DescribeManagedPrefixLists.go | 281 -
.../ec2/api_op_DescribeMovingAddresses.go | 286 -
.../service/ec2/api_op_DescribeNatGateways.go | 762 -
.../service/ec2/api_op_DescribeNetworkAcls.go | 330 -
...cribeNetworkInsightsAccessScopeAnalyses.go | 284 -
..._op_DescribeNetworkInsightsAccessScopes.go | 272 -
.../api_op_DescribeNetworkInsightsAnalyses.go | 288 -
.../api_op_DescribeNetworkInsightsPaths.go | 300 -
...pi_op_DescribeNetworkInterfaceAttribute.go | 189 -
..._op_DescribeNetworkInterfacePermissions.go | 291 -
.../ec2/api_op_DescribeNetworkInterfaces.go | 604 -
.../service/ec2/api_op_DescribeOutpostLags.go | 204 -
.../ec2/api_op_DescribePlacementGroups.go | 203 -
.../service/ec2/api_op_DescribePrefixLists.go | 278 -
.../ec2/api_op_DescribePrincipalIdFormat.go | 290 -
.../ec2/api_op_DescribePublicIpv4Pools.go | 273 -
.../service/ec2/api_op_DescribeRegions.go | 189 -
.../api_op_DescribeReplaceRootVolumeTasks.go | 285 -
.../ec2/api_op_DescribeReservedInstances.go | 230 -
...pi_op_DescribeReservedInstancesListings.go | 197 -
..._DescribeReservedInstancesModifications.go | 295 -
...i_op_DescribeReservedInstancesOfferings.go | 384 -
.../api_op_DescribeRouteServerEndpoints.go | 279 -
.../ec2/api_op_DescribeRouteServerPeers.go | 284 -
.../ec2/api_op_DescribeRouteServers.go | 292 -
.../service/ec2/api_op_DescribeRouteTables.go | 352 -
...p_DescribeScheduledInstanceAvailability.go | 310 -
.../ec2/api_op_DescribeScheduledInstances.go | 285 -
.../api_op_DescribeSecurityGroupReferences.go | 168 -
.../ec2/api_op_DescribeSecurityGroupRules.go | 290 -
...op_DescribeSecurityGroupVpcAssociations.go | 781 -
.../ec2/api_op_DescribeSecurityGroups.go | 569 -
...op_DescribeServiceLinkVirtualInterfaces.go | 193 -
.../ec2/api_op_DescribeSnapshotAttribute.go | 183 -
.../ec2/api_op_DescribeSnapshotTierStatus.go | 286 -
.../service/ec2/api_op_DescribeSnapshots.go | 584 -
...api_op_DescribeSpotDatafeedSubscription.go | 163 -
.../ec2/api_op_DescribeSpotFleetInstances.go | 187 -
.../api_op_DescribeSpotFleetRequestHistory.go | 215 -
.../ec2/api_op_DescribeSpotFleetRequests.go | 280 -
.../api_op_DescribeSpotInstanceRequests.go | 756 -
.../ec2/api_op_DescribeSpotPriceHistory.go | 319 -
.../ec2/api_op_DescribeStaleSecurityGroups.go | 289 -
.../ec2/api_op_DescribeStoreImageTasks.go | 548 -
.../service/ec2/api_op_DescribeSubnets.go | 553 -
.../service/ec2/api_op_DescribeTags.go | 298 -
...api_op_DescribeTrafficMirrorFilterRules.go | 202 -
.../api_op_DescribeTrafficMirrorFilters.go | 276 -
.../api_op_DescribeTrafficMirrorSessions.go | 293 -
.../api_op_DescribeTrafficMirrorTargets.go | 284 -
...pi_op_DescribeTransitGatewayAttachments.go | 299 -
...i_op_DescribeTransitGatewayConnectPeers.go | 279 -
.../api_op_DescribeTransitGatewayConnects.go | 285 -
..._DescribeTransitGatewayMulticastDomains.go | 280 -
...escribeTransitGatewayPeeringAttachments.go | 293 -
...i_op_DescribeTransitGatewayPolicyTables.go | 271 -
...beTransitGatewayRouteTableAnnouncements.go | 271 -
...pi_op_DescribeTransitGatewayRouteTables.go | 286 -
...op_DescribeTransitGatewayVpcAttachments.go | 283 -
.../ec2/api_op_DescribeTransitGateways.go | 312 -
...i_op_DescribeTrunkInterfaceAssociations.go | 276 -
.../api_op_DescribeVerifiedAccessEndpoints.go | 278 -
.../api_op_DescribeVerifiedAccessGroups.go | 275 -
...fiedAccessInstanceLoggingConfigurations.go | 273 -
.../api_op_DescribeVerifiedAccessInstances.go | 272 -
...op_DescribeVerifiedAccessTrustProviders.go | 272 -
.../ec2/api_op_DescribeVolumeAttribute.go | 182 -
.../ec2/api_op_DescribeVolumeStatus.go | 348 -
.../service/ec2/api_op_DescribeVolumes.go | 957 -
.../api_op_DescribeVolumesModifications.go | 309 -
.../ec2/api_op_DescribeVpcAttribute.go | 185 -
..._DescribeVpcBlockPublicAccessExclusions.go | 207 -
..._op_DescribeVpcBlockPublicAccessOptions.go | 164 -
.../ec2/api_op_DescribeVpcClassicLink.go | 177 -
...api_op_DescribeVpcClassicLinkDnsSupport.go | 276 -
.../api_op_DescribeVpcEndpointAssociations.go | 192 -
...cribeVpcEndpointConnectionNotifications.go | 286 -
.../api_op_DescribeVpcEndpointConnections.go | 289 -
...escribeVpcEndpointServiceConfigurations.go | 294 -
...p_DescribeVpcEndpointServicePermissions.go | 287 -
.../ec2/api_op_DescribeVpcEndpointServices.go | 211 -
.../ec2/api_op_DescribeVpcEndpoints.go | 301 -
.../api_op_DescribeVpcPeeringConnections.go | 714 -
.../service/ec2/api_op_DescribeVpcs.go | 690 -
.../ec2/api_op_DescribeVpnConnections.go | 660 -
.../service/ec2/api_op_DescribeVpnGateways.go | 200 -
.../ec2/api_op_DetachClassicLinkVpc.go | 174 -
.../ec2/api_op_DetachInternetGateway.go | 168 -
.../ec2/api_op_DetachNetworkInterface.go | 179 -
...pi_op_DetachVerifiedAccessTrustProvider.go | 217 -
.../service/ec2/api_op_DetachVolume.go | 233 -
.../service/ec2/api_op_DetachVpnGateway.go | 174 -
.../ec2/api_op_DisableAddressTransfer.go | 169 -
.../api_op_DisableAllowedImagesSettings.go | 170 -
...AwsNetworkPerformanceMetricSubscription.go | 172 -
.../api_op_DisableEbsEncryptionByDefault.go | 167 -
.../service/ec2/api_op_DisableFastLaunch.go | 206 -
.../ec2/api_op_DisableFastSnapshotRestores.go | 177 -
.../service/ec2/api_op_DisableImage.go | 182 -
.../api_op_DisableImageBlockPublicAccess.go | 170 -
.../ec2/api_op_DisableImageDeprecation.go | 169 -
...op_DisableImageDeregistrationProtection.go | 174 -
..._op_DisableIpamOrganizationAdminAccount.go | 168 -
.../api_op_DisableRouteServerPropagation.go | 199 -
.../ec2/api_op_DisableSerialConsoleAccess.go | 163 -
...api_op_DisableSnapshotBlockPublicAccess.go | 173 -
...ableTransitGatewayRouteTablePropagation.go | 173 -
.../ec2/api_op_DisableVgwRoutePropagation.go | 168 -
.../ec2/api_op_DisableVpcClassicLink.go | 168 -
.../api_op_DisableVpcClassicLinkDnsSupport.go | 160 -
.../service/ec2/api_op_DisassociateAddress.go | 172 -
...ssociateCapacityReservationBillingOwner.go | 174 -
...i_op_DisassociateClientVpnTargetNetwork.go | 183 -
...p_DisassociateEnclaveCertificateIamRole.go | 175 -
.../api_op_DisassociateIamInstanceProfile.go | 162 -
.../api_op_DisassociateInstanceEventWindow.go | 175 -
.../ec2/api_op_DisassociateIpamByoasn.go | 176 -
...pi_op_DisassociateIpamResourceDiscovery.go | 168 -
.../api_op_DisassociateNatGatewayAddress.go | 192 -
.../ec2/api_op_DisassociateRouteServer.go | 178 -
.../ec2/api_op_DisassociateRouteTable.go | 168 -
.../api_op_DisassociateSecurityGroupVpc.go | 178 -
.../ec2/api_op_DisassociateSubnetCidrBlock.go | 165 -
...sassociateTransitGatewayMulticastDomain.go | 176 -
...p_DisassociateTransitGatewayPolicyTable.go | 171 -
...op_DisassociateTransitGatewayRouteTable.go | 171 -
.../ec2/api_op_DisassociateTrunkInterface.go | 214 -
.../ec2/api_op_DisassociateVpcCidrBlock.go | 172 -
.../ec2/api_op_EnableAddressTransfer.go | 174 -
.../ec2/api_op_EnableAllowedImagesSettings.go | 194 -
...AwsNetworkPerformanceMetricSubscription.go | 174 -
.../api_op_EnableEbsEncryptionByDefault.go | 173 -
.../service/ec2/api_op_EnableFastLaunch.go | 224 -
.../ec2/api_op_EnableFastSnapshotRestores.go | 187 -
.../service/ec2/api_op_EnableImage.go | 175 -
.../api_op_EnableImageBlockPublicAccess.go | 180 -
.../ec2/api_op_EnableImageDeprecation.go | 181 -
..._op_EnableImageDeregistrationProtection.go | 177 -
...i_op_EnableIpamOrganizationAdminAccount.go | 169 -
...ReachabilityAnalyzerOrganizationSharing.go | 163 -
.../api_op_EnableRouteServerPropagation.go | 179 -
.../ec2/api_op_EnableSerialConsoleAccess.go | 163 -
.../api_op_EnableSnapshotBlockPublicAccess.go | 198 -
...ableTransitGatewayRouteTablePropagation.go | 173 -
.../ec2/api_op_EnableVgwRoutePropagation.go | 171 -
.../service/ec2/api_op_EnableVolumeIO.go | 162 -
.../ec2/api_op_EnableVpcClassicLink.go | 172 -
.../api_op_EnableVpcClassicLinkDnsSupport.go | 162 -
...lientVpnClientCertificateRevocationList.go | 170 -
...i_op_ExportClientVpnClientConfiguration.go | 168 -
.../service/ec2/api_op_ExportImage.go | 259 -
.../ec2/api_op_ExportTransitGatewayRoutes.go | 206 -
...rifiedAccessInstanceClientConfiguration.go | 181 -
.../ec2/api_op_GetActiveVpnTunnelStatus.go | 172 -
.../ec2/api_op_GetAllowedImagesSettings.go | 191 -
...GetAssociatedEnclaveCertificateIamRoles.go | 171 -
.../ec2/api_op_GetAssociatedIpv6PoolCidrs.go | 275 -
.../api_op_GetAwsNetworkPerformanceData.go | 278 -
.../ec2/api_op_GetCapacityReservationUsage.go | 240 -
.../service/ec2/api_op_GetCoipPoolUsage.go | 196 -
.../service/ec2/api_op_GetConsoleOutput.go | 185 -
.../ec2/api_op_GetConsoleScreenshot.go | 179 -
..._op_GetDeclarativePoliciesReportSummary.go | 210 -
.../api_op_GetDefaultCreditSpecification.go | 171 -
.../ec2/api_op_GetEbsDefaultKmsKeyId.go | 163 -
.../ec2/api_op_GetEbsEncryptionByDefault.go | 166 -
.../api_op_GetFlowLogsIntegrationTemplate.go | 193 -
.../api_op_GetGroupsForCapacityReservation.go | 283 -
...pi_op_GetHostReservationPurchasePreview.go | 181 -
.../api_op_GetImageBlockPublicAccessState.go | 180 -
.../ec2/api_op_GetInstanceMetadataDefaults.go | 163 -
.../service/ec2/api_op_GetInstanceTpmEkPub.go | 187 -
...etInstanceTypesFromInstanceRequirements.go | 308 -
.../service/ec2/api_op_GetInstanceUefiData.go | 182 -
.../ec2/api_op_GetIpamAddressHistory.go | 296 -
.../ec2/api_op_GetIpamDiscoveredAccounts.go | 284 -
...api_op_GetIpamDiscoveredPublicAddresses.go | 189 -
.../api_op_GetIpamDiscoveredResourceCidrs.go | 286 -
.../ec2/api_op_GetIpamPoolAllocations.go | 287 -
.../service/ec2/api_op_GetIpamPoolCidrs.go | 274 -
.../ec2/api_op_GetIpamResourceCidrs.go | 294 -
.../ec2/api_op_GetLaunchTemplateData.go | 174 -
...api_op_GetManagedPrefixListAssociations.go | 275 -
.../ec2/api_op_GetManagedPrefixListEntries.go | 278 -
...workInsightsAccessScopeAnalysisFindings.go | 280 -
...op_GetNetworkInsightsAccessScopeContent.go | 166 -
.../service/ec2/api_op_GetPasswordData.go | 389 -
...pi_op_GetReservedInstancesExchangeQuote.go | 200 -
.../ec2/api_op_GetRouteServerAssociations.go | 173 -
.../ec2/api_op_GetRouteServerPropagations.go | 194 -
.../api_op_GetRouteServerRoutingDatabase.go | 209 -
.../ec2/api_op_GetSecurityGroupsForVpc.go | 295 -
.../api_op_GetSerialConsoleAccessStatus.go | 172 -
...pi_op_GetSnapshotBlockPublicAccessState.go | 183 -
.../ec2/api_op_GetSpotPlacementScores.go | 336 -
.../ec2/api_op_GetSubnetCidrReservations.go | 195 -
...GetTransitGatewayAttachmentPropagations.go | 280 -
...ansitGatewayMulticastDomainAssociations.go | 289 -
...etTransitGatewayPolicyTableAssociations.go | 276 -
..._op_GetTransitGatewayPolicyTableEntries.go | 176 -
...p_GetTransitGatewayPrefixListReferences.go | 295 -
...GetTransitGatewayRouteTableAssociations.go | 285 -
...GetTransitGatewayRouteTablePropagations.go | 285 -
.../api_op_GetVerifiedAccessEndpointPolicy.go | 168 -
...api_op_GetVerifiedAccessEndpointTargets.go | 177 -
.../api_op_GetVerifiedAccessGroupPolicy.go | 168 -
...tVpnConnectionDeviceSampleConfiguration.go | 181 -
.../ec2/api_op_GetVpnConnectionDeviceTypes.go | 288 -
.../api_op_GetVpnTunnelReplacementStatus.go | 186 -
...lientVpnClientCertificateRevocationList.go | 179 -
.../service/ec2/api_op_ImportImage.go | 325 -
.../service/ec2/api_op_ImportInstance.go | 189 -
.../service/ec2/api_op_ImportKeyPair.go | 196 -
.../service/ec2/api_op_ImportSnapshot.go | 228 -
.../service/ec2/api_op_ImportVolume.go | 188 -
.../ec2/api_op_ListImagesInRecycleBin.go | 278 -
.../ec2/api_op_ListSnapshotsInRecycleBin.go | 276 -
.../service/ec2/api_op_LockSnapshot.go | 284 -
.../ec2/api_op_ModifyAddressAttribute.go | 172 -
.../ec2/api_op_ModifyAvailabilityZoneGroup.go | 174 -
.../ec2/api_op_ModifyCapacityReservation.go | 234 -
.../api_op_ModifyCapacityReservationFleet.go | 200 -
.../ec2/api_op_ModifyClientVpnEndpoint.go | 248 -
...api_op_ModifyDefaultCreditSpecification.go | 188 -
.../ec2/api_op_ModifyEbsDefaultKmsKeyId.go | 200 -
.../service/ec2/api_op_ModifyFleet.go | 211 -
.../ec2/api_op_ModifyFpgaImageAttribute.go | 193 -
.../service/ec2/api_op_ModifyHosts.go | 206 -
.../service/ec2/api_op_ModifyIdFormat.go | 194 -
.../ec2/api_op_ModifyIdentityIdFormat.go | 200 -
.../ec2/api_op_ModifyImageAttribute.go | 224 -
.../ec2/api_op_ModifyInstanceAttribute.go | 281 -
...fyInstanceCapacityReservationAttributes.go | 174 -
.../ec2/api_op_ModifyInstanceCpuOptions.go | 195 -
...pi_op_ModifyInstanceCreditSpecification.go | 182 -
.../api_op_ModifyInstanceEventStartTime.go | 177 -
.../ec2/api_op_ModifyInstanceEventWindow.go | 208 -
...api_op_ModifyInstanceMaintenanceOptions.go | 214 -
.../api_op_ModifyInstanceMetadataDefaults.go | 192 -
.../api_op_ModifyInstanceMetadataOptions.go | 230 -
...ModifyInstanceNetworkPerformanceOptions.go | 186 -
.../ec2/api_op_ModifyInstancePlacement.go | 219 -
.../service/ec2/api_op_ModifyIpam.go | 209 -
.../service/ec2/api_op_ModifyIpamPool.go | 215 -
.../ec2/api_op_ModifyIpamResourceCidr.go | 200 -
.../ec2/api_op_ModifyIpamResourceDiscovery.go | 209 -
.../service/ec2/api_op_ModifyIpamScope.go | 169 -
.../ec2/api_op_ModifyLaunchTemplate.go | 222 -
.../ec2/api_op_ModifyLocalGatewayRoute.go | 181 -
.../ec2/api_op_ModifyManagedPrefixList.go | 192 -
.../api_op_ModifyNetworkInterfaceAttribute.go | 216 -
.../ec2/api_op_ModifyPrivateDnsNameOptions.go | 180 -
.../api_op_ModifyPublicIpDnsNameOptions.go | 192 -
.../ec2/api_op_ModifyReservedInstances.go | 180 -
.../service/ec2/api_op_ModifyRouteServer.go | 221 -
.../ec2/api_op_ModifySecurityGroupRules.go | 171 -
.../ec2/api_op_ModifySnapshotAttribute.go | 192 -
.../service/ec2/api_op_ModifySnapshotTier.go | 179 -
.../ec2/api_op_ModifySpotFleetRequest.go | 213 -
.../ec2/api_op_ModifySubnetAttribute.go | 241 -
...odifyTrafficMirrorFilterNetworkServices.go | 179 -
.../api_op_ModifyTrafficMirrorFilterRule.go | 206 -
.../ec2/api_op_ModifyTrafficMirrorSession.go | 203 -
.../ec2/api_op_ModifyTransitGateway.go | 174 -
...ModifyTransitGatewayPrefixListReference.go | 178 -
...pi_op_ModifyTransitGatewayVpcAttachment.go | 176 -
.../api_op_ModifyVerifiedAccessEndpoint.go | 228 -
...i_op_ModifyVerifiedAccessEndpointPolicy.go | 223 -
.../ec2/api_op_ModifyVerifiedAccessGroup.go | 214 -
.../api_op_ModifyVerifiedAccessGroupPolicy.go | 223 -
.../api_op_ModifyVerifiedAccessInstance.go | 215 -
...ifiedAccessInstanceLoggingConfiguration.go | 214 -
...pi_op_ModifyVerifiedAccessTrustProvider.go | 225 -
.../service/ec2/api_op_ModifyVolume.go | 251 -
.../ec2/api_op_ModifyVolumeAttribute.go | 175 -
.../service/ec2/api_op_ModifyVpcAttribute.go | 177 -
..._op_ModifyVpcBlockPublicAccessExclusion.go | 183 -
...pi_op_ModifyVpcBlockPublicAccessOptions.go | 184 -
.../service/ec2/api_op_ModifyVpcEndpoint.go | 214 -
...ModifyVpcEndpointConnectionNotification.go | 174 -
...p_ModifyVpcEndpointServiceConfiguration.go | 208 -
...fyVpcEndpointServicePayerResponsibility.go | 173 -
..._op_ModifyVpcEndpointServicePermissions.go | 186 -
...pi_op_ModifyVpcPeeringConnectionOptions.go | 188 -
.../service/ec2/api_op_ModifyVpcTenancy.go | 181 -
.../service/ec2/api_op_ModifyVpnConnection.go | 217 -
.../ec2/api_op_ModifyVpnConnectionOptions.go | 191 -
.../ec2/api_op_ModifyVpnTunnelCertificate.go | 171 -
.../ec2/api_op_ModifyVpnTunnelOptions.go | 192 -
.../service/ec2/api_op_MonitorInstances.go | 172 -
.../service/ec2/api_op_MoveAddressToVpc.go | 177 -
.../service/ec2/api_op_MoveByoipCidrToIpam.go | 183 -
...api_op_MoveCapacityReservationInstances.go | 241 -
.../service/ec2/api_op_ProvisionByoipCidr.go | 227 -
.../service/ec2/api_op_ProvisionIpamByoasn.go | 181 -
.../ec2/api_op_ProvisionIpamPoolCidr.go | 239 -
.../ec2/api_op_ProvisionPublicIpv4PoolCidr.go | 192 -
.../ec2/api_op_PurchaseCapacityBlock.go | 179 -
.../api_op_PurchaseCapacityBlockExtension.go | 172 -
.../ec2/api_op_PurchaseHostReservation.go | 205 -
...pi_op_PurchaseReservedInstancesOffering.go | 199 -
.../ec2/api_op_PurchaseScheduledInstances.go | 220 -
.../service/ec2/api_op_RebootInstances.go | 171 -
.../service/ec2/api_op_RegisterImage.go | 345 -
...sterInstanceEventNotificationAttributes.go | 171 -
...sterTransitGatewayMulticastGroupMembers.go | 184 -
...sterTransitGatewayMulticastGroupSources.go | 186 -
...jectCapacityReservationBillingOwnership.go | 168 -
...ansitGatewayMulticastDomainAssociations.go | 168 -
...p_RejectTransitGatewayPeeringAttachment.go | 166 -
...pi_op_RejectTransitGatewayVpcAttachment.go | 169 -
.../api_op_RejectVpcEndpointConnections.go | 171 -
.../ec2/api_op_RejectVpcPeeringConnection.go | 168 -
.../service/ec2/api_op_ReleaseAddress.go | 183 -
.../service/ec2/api_op_ReleaseHosts.go | 174 -
.../ec2/api_op_ReleaseIpamPoolAllocation.go | 186 -
...op_ReplaceIamInstanceProfileAssociation.go | 169 -
...aceImageCriteriaInAllowedImagesSettings.go | 171 -
.../api_op_ReplaceNetworkAclAssociation.go | 177 -
.../ec2/api_op_ReplaceNetworkAclEntry.go | 209 -
.../service/ec2/api_op_ReplaceRoute.go | 219 -
.../api_op_ReplaceRouteTableAssociation.go | 183 -
.../ec2/api_op_ReplaceTransitGatewayRoute.go | 178 -
.../service/ec2/api_op_ReplaceVpnTunnel.go | 173 -
.../ec2/api_op_ReportInstanceStatus.go | 210 -
.../service/ec2/api_op_RequestSpotFleet.go | 198 -
.../ec2/api_op_RequestSpotInstances.go | 266 -
.../ec2/api_op_ResetAddressAttribute.go | 173 -
.../ec2/api_op_ResetEbsDefaultKmsKeyId.go | 165 -
.../ec2/api_op_ResetFpgaImageAttribute.go | 170 -
.../service/ec2/api_op_ResetImageAttribute.go | 169 -
.../ec2/api_op_ResetInstanceAttribute.go | 178 -
.../api_op_ResetNetworkInterfaceAttribute.go | 166 -
.../ec2/api_op_ResetSnapshotAttribute.go | 173 -
.../ec2/api_op_RestoreAddressToClassic.go | 174 -
.../ec2/api_op_RestoreImageFromRecycleBin.go | 168 -
.../api_op_RestoreManagedPrefixListVersion.go | 177 -
.../api_op_RestoreSnapshotFromRecycleBin.go | 203 -
.../service/ec2/api_op_RestoreSnapshotTier.go | 197 -
.../ec2/api_op_RevokeClientVpnIngress.go | 182 -
.../ec2/api_op_RevokeSecurityGroupEgress.go | 221 -
.../ec2/api_op_RevokeSecurityGroupIngress.go | 232 -
.../service/ec2/api_op_RunInstances.go | 566 -
.../ec2/api_op_RunScheduledInstances.go | 229 -
.../ec2/api_op_SearchLocalGatewayRoutes.go | 295 -
..._op_SearchTransitGatewayMulticastGroups.go | 299 -
.../ec2/api_op_SearchTransitGatewayRoutes.go | 205 -
.../ec2/api_op_SendDiagnosticInterrupt.go | 178 -
.../api_op_StartDeclarativePoliciesReport.go | 226 -
.../service/ec2/api_op_StartInstances.go | 192 -
...StartNetworkInsightsAccessScopeAnalysis.go | 213 -
.../api_op_StartNetworkInsightsAnalysis.go | 223 -
...pcEndpointServicePrivateDnsVerification.go | 172 -
.../service/ec2/api_op_StopInstances.go | 226 -
.../api_op_TerminateClientVpnConnections.go | 182 -
.../service/ec2/api_op_TerminateInstances.go | 224 -
.../ec2/api_op_UnassignIpv6Addresses.go | 172 -
.../ec2/api_op_UnassignPrivateIpAddresses.go | 164 -
...api_op_UnassignPrivateNatGatewayAddress.go | 192 -
.../service/ec2/api_op_UnlockSnapshot.go | 167 -
.../service/ec2/api_op_UnmonitorInstances.go | 169 -
...dateSecurityGroupRuleDescriptionsEgress.go | 178 -
...ateSecurityGroupRuleDescriptionsIngress.go | 179 -
.../service/ec2/api_op_WithdrawByoipCidr.go | 172 -
.../aws/aws-sdk-go-v2/service/ec2/auth.go | 313 -
.../service/ec2/deserializers.go | 194326 ---------------
.../aws/aws-sdk-go-v2/service/ec2/doc.go | 12 -
.../aws-sdk-go-v2/service/ec2/endpoints.go | 556 -
.../aws-sdk-go-v2/service/ec2/generated.json | 723 -
.../service/ec2/go_module_metadata.go | 6 -
.../ec2/internal/endpoints/endpoints.go | 700 -
.../aws/aws-sdk-go-v2/service/ec2/options.go | 236 -
.../aws-sdk-go-v2/service/ec2/serializers.go | 81072 ------
.../aws-sdk-go-v2/service/ec2/types/enums.go | 10741 -
.../aws-sdk-go-v2/service/ec2/types/types.go | 23428 --
.../aws-sdk-go-v2/service/ec2/validators.go | 20632 --
.../internal/accept-encoding/CHANGELOG.md | 176 -
.../internal/accept-encoding/LICENSE.txt | 202 -
.../accept-encoding/accept_encoding_gzip.go | 176 -
.../service/internal/accept-encoding/doc.go | 22 -
.../accept-encoding/go_module_metadata.go | 6 -
.../internal/presigned-url/CHANGELOG.md | 482 -
.../internal/presigned-url/LICENSE.txt | 202 -
.../service/internal/presigned-url/context.go | 56 -
.../service/internal/presigned-url/doc.go | 3 -
.../presigned-url/go_module_metadata.go | 6 -
.../internal/presigned-url/middleware.go | 110 -
.../aws-sdk-go-v2/service/sso/CHANGELOG.md | 675 -
.../aws/aws-sdk-go-v2/service/sso/LICENSE.txt | 202 -
.../aws-sdk-go-v2/service/sso/api_client.go | 1019 -
.../service/sso/api_op_GetRoleCredentials.go | 201 -
.../service/sso/api_op_ListAccountRoles.go | 299 -
.../service/sso/api_op_ListAccounts.go | 297 -
.../service/sso/api_op_Logout.go | 200 -
.../aws/aws-sdk-go-v2/service/sso/auth.go | 363 -
.../service/sso/deserializers.go | 1172 -
.../aws/aws-sdk-go-v2/service/sso/doc.go | 27 -
.../aws-sdk-go-v2/service/sso/endpoints.go | 558 -
.../aws-sdk-go-v2/service/sso/generated.json | 36 -
.../service/sso/go_module_metadata.go | 6 -
.../sso/internal/endpoints/endpoints.go | 603 -
.../aws/aws-sdk-go-v2/service/sso/options.go | 239 -
.../aws-sdk-go-v2/service/sso/serializers.go | 309 -
.../aws-sdk-go-v2/service/sso/types/errors.go | 115 -
.../aws-sdk-go-v2/service/sso/types/types.go | 63 -
.../aws-sdk-go-v2/service/sso/validators.go | 175 -
.../service/ssooidc/CHANGELOG.md | 671 -
.../aws-sdk-go-v2/service/ssooidc/LICENSE.txt | 202 -
.../service/ssooidc/api_client.go | 1019 -
.../service/ssooidc/api_op_CreateToken.go | 271 -
.../ssooidc/api_op_CreateTokenWithIAM.go | 318 -
.../service/ssooidc/api_op_RegisterClient.go | 242 -
.../api_op_StartDeviceAuthorization.go | 224 -
.../aws/aws-sdk-go-v2/service/ssooidc/auth.go | 357 -
.../service/ssooidc/deserializers.go | 2244 -
.../aws/aws-sdk-go-v2/service/ssooidc/doc.go | 49 -
.../service/ssooidc/endpoints.go | 558 -
.../service/ssooidc/generated.json | 37 -
.../service/ssooidc/go_module_metadata.go | 6 -
.../ssooidc/internal/endpoints/endpoints.go | 603 -
.../aws-sdk-go-v2/service/ssooidc/options.go | 239 -
.../service/ssooidc/serializers.go | 512 -
.../service/ssooidc/types/enums.go | 44 -
.../service/ssooidc/types/errors.go | 430 -
.../service/ssooidc/types/types.go | 25 -
.../service/ssooidc/validators.go | 184 -
.../aws-sdk-go-v2/service/sts/CHANGELOG.md | 710 -
.../aws/aws-sdk-go-v2/service/sts/LICENSE.txt | 202 -
.../aws-sdk-go-v2/service/sts/api_client.go | 1171 -
.../service/sts/api_op_AssumeRole.go | 580 -
.../service/sts/api_op_AssumeRoleWithSAML.go | 488 -
.../sts/api_op_AssumeRoleWithWebIdentity.go | 508 -
.../service/sts/api_op_AssumeRoot.go | 253 -
.../sts/api_op_DecodeAuthorizationMessage.go | 225 -
.../service/sts/api_op_GetAccessKeyInfo.go | 216 -
.../service/sts/api_op_GetCallerIdentity.go | 228 -
.../service/sts/api_op_GetFederationToken.go | 429 -
.../service/sts/api_op_GetSessionToken.go | 275 -
.../aws/aws-sdk-go-v2/service/sts/auth.go | 351 -
.../service/sts/deserializers.go | 2710 -
.../aws/aws-sdk-go-v2/service/sts/doc.go | 13 -
.../aws-sdk-go-v2/service/sts/endpoints.go | 1139 -
.../aws-sdk-go-v2/service/sts/generated.json | 43 -
.../service/sts/go_module_metadata.go | 6 -
.../sts/internal/endpoints/endpoints.go | 563 -
.../aws/aws-sdk-go-v2/service/sts/options.go | 239 -
.../aws-sdk-go-v2/service/sts/serializers.go | 1005 -
.../aws-sdk-go-v2/service/sts/types/errors.go | 248 -
.../aws-sdk-go-v2/service/sts/types/types.go | 144 -
.../aws-sdk-go-v2/service/sts/validators.go | 347 -
vendor/github.com/aws/smithy-go/.gitignore | 29 -
vendor/github.com/aws/smithy-go/.travis.yml | 28 -
vendor/github.com/aws/smithy-go/CHANGELOG.md | 330 -
.../aws/smithy-go/CODE_OF_CONDUCT.md | 4 -
.../github.com/aws/smithy-go/CONTRIBUTING.md | 90 -
vendor/github.com/aws/smithy-go/LICENSE | 175 -
vendor/github.com/aws/smithy-go/Makefile | 125 -
vendor/github.com/aws/smithy-go/NOTICE | 1 -
vendor/github.com/aws/smithy-go/README.md | 100 -
vendor/github.com/aws/smithy-go/auth/auth.go | 3 -
.../aws/smithy-go/auth/bearer/docs.go | 3 -
.../aws/smithy-go/auth/bearer/middleware.go | 104 -
.../aws/smithy-go/auth/bearer/token.go | 50 -
.../aws/smithy-go/auth/bearer/token_cache.go | 208 -
.../github.com/aws/smithy-go/auth/identity.go | 47 -
.../github.com/aws/smithy-go/auth/option.go | 25 -
.../aws/smithy-go/auth/scheme_id.go | 20 -
.../aws/smithy-go/changelog-template.json | 9 -
.../aws/smithy-go/context/suppress_expired.go | 81 -
vendor/github.com/aws/smithy-go/doc.go | 2 -
vendor/github.com/aws/smithy-go/document.go | 10 -
.../github.com/aws/smithy-go/document/doc.go | 12 -
.../aws/smithy-go/document/document.go | 153 -
.../aws/smithy-go/document/errors.go | 75 -
.../github.com/aws/smithy-go/encoding/doc.go | 4 -
.../aws/smithy-go/encoding/encoding.go | 40 -
.../smithy-go/encoding/httpbinding/encode.go | 123 -
.../smithy-go/encoding/httpbinding/header.go | 122 -
.../encoding/httpbinding/path_replace.go | 108 -
.../smithy-go/encoding/httpbinding/query.go | 107 -
.../aws/smithy-go/encoding/httpbinding/uri.go | 111 -
.../aws/smithy-go/encoding/json/array.go | 35 -
.../aws/smithy-go/encoding/json/constants.go | 15 -
.../smithy-go/encoding/json/decoder_util.go | 139 -
.../aws/smithy-go/encoding/json/encoder.go | 30 -
.../aws/smithy-go/encoding/json/escape.go | 198 -
.../aws/smithy-go/encoding/json/object.go | 40 -
.../aws/smithy-go/encoding/json/value.go | 149 -
.../aws/smithy-go/encoding/xml/array.go | 49 -
.../aws/smithy-go/encoding/xml/constants.go | 10 -
.../aws/smithy-go/encoding/xml/doc.go | 49 -
.../aws/smithy-go/encoding/xml/element.go | 91 -
.../aws/smithy-go/encoding/xml/encoder.go | 51 -
.../aws/smithy-go/encoding/xml/error_utils.go | 51 -
.../aws/smithy-go/encoding/xml/escape.go | 137 -
.../aws/smithy-go/encoding/xml/map.go | 53 -
.../aws/smithy-go/encoding/xml/value.go | 302 -
.../aws/smithy-go/encoding/xml/xml_decoder.go | 154 -
.../aws/smithy-go/endpoints/endpoint.go | 23 -
vendor/github.com/aws/smithy-go/errors.go | 137 -
.../aws/smithy-go/go_module_metadata.go | 6 -
.../internal/sync/singleflight/LICENSE | 28 -
.../internal/sync/singleflight/docs.go | 8 -
.../sync/singleflight/singleflight.go | 210 -
vendor/github.com/aws/smithy-go/io/byte.go | 12 -
vendor/github.com/aws/smithy-go/io/doc.go | 2 -
vendor/github.com/aws/smithy-go/io/reader.go | 16 -
.../github.com/aws/smithy-go/io/ringbuffer.go | 94 -
.../aws/smithy-go/local-mod-replace.sh | 39 -
.../aws/smithy-go/logging/logger.go | 82 -
.../aws/smithy-go/metrics/metrics.go | 136 -
.../github.com/aws/smithy-go/metrics/nop.go | 67 -
.../aws/smithy-go/middleware/context.go | 41 -
.../aws/smithy-go/middleware/doc.go | 67 -
.../aws/smithy-go/middleware/logging.go | 46 -
.../aws/smithy-go/middleware/metadata.go | 65 -
.../aws/smithy-go/middleware/middleware.go | 71 -
.../aws/smithy-go/middleware/ordered_group.go | 268 -
.../aws/smithy-go/middleware/stack.go | 209 -
.../aws/smithy-go/middleware/stack_values.go | 100 -
.../aws/smithy-go/middleware/step_build.go | 211 -
.../smithy-go/middleware/step_deserialize.go | 217 -
.../aws/smithy-go/middleware/step_finalize.go | 211 -
.../smithy-go/middleware/step_initialize.go | 211 -
.../smithy-go/middleware/step_serialize.go | 219 -
vendor/github.com/aws/smithy-go/modman.toml | 9 -
.../private/requestcompression/gzip.go | 30 -
.../middleware_capture_request_compression.go | 52 -
.../requestcompression/request_compression.go | 103 -
vendor/github.com/aws/smithy-go/properties.go | 69 -
vendor/github.com/aws/smithy-go/ptr/doc.go | 5 -
.../github.com/aws/smithy-go/ptr/from_ptr.go | 601 -
.../aws/smithy-go/ptr/gen_scalars.go | 83 -
vendor/github.com/aws/smithy-go/ptr/to_ptr.go | 499 -
vendor/github.com/aws/smithy-go/rand/doc.go | 3 -
vendor/github.com/aws/smithy-go/rand/rand.go | 31 -
vendor/github.com/aws/smithy-go/rand/uuid.go | 87 -
vendor/github.com/aws/smithy-go/time/time.go | 134 -
.../aws/smithy-go/tracing/context.go | 96 -
.../github.com/aws/smithy-go/tracing/nop.go | 32 -
.../aws/smithy-go/tracing/tracing.go | 95 -
.../aws/smithy-go/transport/http/auth.go | 21 -
.../smithy-go/transport/http/auth_schemes.go | 45 -
.../transport/http/checksum_middleware.go | 70 -
.../aws/smithy-go/transport/http/client.go | 161 -
.../aws/smithy-go/transport/http/doc.go | 5 -
.../smithy-go/transport/http/headerlist.go | 163 -
.../aws/smithy-go/transport/http/host.go | 89 -
.../smithy-go/transport/http/interceptor.go | 321 -
.../transport/http/interceptor_middleware.go | 325 -
.../transport/http/internal/io/safe.go | 75 -
.../smithy-go/transport/http/md5_checksum.go | 25 -
.../aws/smithy-go/transport/http/metrics.go | 198 -
.../http/middleware_close_response_body.go | 79 -
.../http/middleware_content_length.go | 84 -
.../http/middleware_header_comment.go | 81 -
.../transport/http/middleware_headers.go | 167 -
.../transport/http/middleware_http_logging.go | 75 -
.../transport/http/middleware_metadata.go | 51 -
.../transport/http/middleware_min_proto.go | 79 -
.../smithy-go/transport/http/properties.go | 80 -
.../aws/smithy-go/transport/http/request.go | 188 -
.../aws/smithy-go/transport/http/response.go | 34 -
.../aws/smithy-go/transport/http/time.go | 13 -
.../aws/smithy-go/transport/http/url.go | 44 -
.../smithy-go/transport/http/user_agent.go | 37 -
vendor/github.com/aws/smithy-go/validation.go | 140 -
.../github.com/aws/smithy-go/waiter/logger.go | 36 -
.../github.com/aws/smithy-go/waiter/waiter.go | 66 -
.../github.com/cenkalti/backoff/v4/.gitignore | 25 -
vendor/github.com/cenkalti/backoff/v4/LICENSE | 20 -
.../github.com/cenkalti/backoff/v4/README.md | 30 -
.../github.com/cenkalti/backoff/v4/backoff.go | 66 -
.../github.com/cenkalti/backoff/v4/context.go | 62 -
.../cenkalti/backoff/v4/exponential.go | 216 -
.../github.com/cenkalti/backoff/v4/retry.go | 146 -
.../github.com/cenkalti/backoff/v4/ticker.go | 97 -
.../github.com/cenkalti/backoff/v4/timer.go | 35 -
.../github.com/cenkalti/backoff/v4/tries.go | 38 -
.../distribution/reference/.gitattributes | 1 -
.../distribution/reference/.gitignore | 2 -
.../distribution/reference/.golangci.yml | 18 -
.../distribution/reference/CODE-OF-CONDUCT.md | 5 -
.../distribution/reference/CONTRIBUTING.md | 114 -
.../distribution/reference/GOVERNANCE.md | 144 -
.../github.com/distribution/reference/LICENSE | 202 -
.../distribution/reference/MAINTAINERS | 26 -
.../distribution/reference/Makefile | 25 -
.../distribution/reference/README.md | 30 -
.../distribution/reference/SECURITY.md | 7 -
.../reference/distribution-logo.svg | 1 -
.../distribution/reference/helpers.go | 42 -
.../distribution/reference/normalize.go | 255 -
.../distribution/reference/reference.go | 432 -
.../distribution/reference/regexp.go | 163 -
.../github.com/distribution/reference/sort.go | 75 -
.../emicklei/go-restful/v3/.travis.yml | 13 -
.../emicklei/go-restful/v3/CHANGES.md | 4 +
.../emicklei/go-restful/v3/README.md | 1 +
.../emicklei/go-restful/v3/curly.go | 50 +-
.../emicklei/go-restful/v3/custom_verb.go | 34 +-
.../github.com/emicklei/go-restful/v3/doc.go | 42 +-
.../github.com/felixge/httpsnoop/.gitignore | 0
.../github.com/felixge/httpsnoop/LICENSE.txt | 19 -
vendor/github.com/felixge/httpsnoop/Makefile | 10 -
vendor/github.com/felixge/httpsnoop/README.md | 95 -
.../felixge/httpsnoop/capture_metrics.go | 86 -
vendor/github.com/felixge/httpsnoop/docs.go | 10 -
.../httpsnoop/wrap_generated_gteq_1.8.go | 436 -
.../httpsnoop/wrap_generated_lt_1.8.go | 278 -
vendor/github.com/go-logr/stdr/LICENSE | 201 -
vendor/github.com/go-logr/stdr/README.md | 6 -
vendor/github.com/go-logr/stdr/stdr.go | 170 -
.../github.com/go-openapi/swag/.codecov.yml | 4 +
.../github.com/go-openapi/swag/.golangci.yml | 122 +-
.../github.com/go-openapi/swag/.mockery.yml | 30 +
vendor/github.com/go-openapi/swag/README.md | 238 +-
vendor/github.com/go-openapi/swag/SECURITY.md | 19 +
.../go-openapi/swag/cmdutils}/LICENSE | 0
.../go-openapi/swag/cmdutils/cmd_utils.go | 13 +
.../go-openapi/swag/cmdutils/doc.go | 5 +
.../go-openapi/swag/cmdutils_iface.go | 11 +
.../swag/conv}/LICENSE | 0
.../go-openapi/swag/conv/convert.go | 161 +
.../go-openapi/swag/conv/convert_types.go | 72 +
vendor/github.com/go-openapi/swag/conv/doc.go | 15 +
.../github.com/go-openapi/swag/conv/format.go | 28 +
.../github.com/go-openapi/swag/conv/sizeof.go | 20 +
.../go-openapi/swag/conv/type_constraints.go | 29 +
.../github.com/go-openapi/swag/conv_iface.go | 486 +
vendor/github.com/go-openapi/swag/convert.go | 208 -
.../go-openapi/swag/convert_types.go | 730 -
vendor/github.com/go-openapi/swag/doc.go | 70 +-
vendor/github.com/go-openapi/swag/file.go | 33 -
.../swag/fileutils}/LICENSE | 0
.../go-openapi/swag/fileutils/doc.go | 10 +
.../go-openapi/swag/fileutils/file.go | 22 +
.../go-openapi/swag/{ => fileutils}/path.go | 29 +-
.../go-openapi/swag/fileutils_iface.go | 33 +
.../go-openapi/swag/initialism_index.go | 202 -
vendor/github.com/go-openapi/swag/json.go | 312 -
.../go-openapi/swag/jsonname}/LICENSE | 0
.../go-openapi/swag/jsonname/doc.go | 5 +
.../go-openapi/swag/jsonname/name_provider.go | 138 +
.../go-openapi/swag/jsonname_iface.go | 24 +
.../go-openapi/swag/jsonutils}/LICENSE | 0
.../go-openapi/swag/jsonutils/README.md | 108 +
.../go-openapi/swag/jsonutils/adapters/doc.go | 8 +
.../swag/jsonutils/adapters/ifaces/doc.go | 5 +
.../swag/jsonutils/adapters/ifaces/ifaces.go | 84 +
.../adapters/ifaces/registry_iface.go | 91 +
.../swag/jsonutils/adapters/registry.go | 229 +
.../jsonutils/adapters/stdlib/json/adapter.go | 115 +
.../jsonutils/adapters/stdlib/json/doc.go | 5 +
.../jsonutils/adapters/stdlib/json/lexer.go | 320 +
.../adapters/stdlib/json/ordered_map.go | 266 +
.../jsonutils/adapters/stdlib/json/pool.go | 143 +
.../adapters/stdlib/json/register.go | 26 +
.../jsonutils/adapters/stdlib/json/writer.go | 75 +
.../go-openapi/swag/jsonutils/concat.go | 92 +
.../go-openapi/swag/jsonutils/doc.go | 7 +
.../go-openapi/swag/jsonutils/json.go | 116 +
.../go-openapi/swag/jsonutils/ordered_map.go | 114 +
.../go-openapi/swag/jsonutils_iface.go | 65 +
.../go-openapi/swag/loading}/LICENSE | 0
.../github.com/go-openapi/swag/loading/doc.go | 5 +
.../go-openapi/swag/loading/errors.go | 15 +
.../go-openapi/swag/loading/json.go | 25 +
.../go-openapi/swag/{ => loading}/loading.go | 90 +-
.../go-openapi/swag/loading/options.go | 125 +
.../go-openapi/swag/loading/yaml.go | 37 +
.../go-openapi/swag/loading_iface.go | 91 +
.../swag/{ => mangling}/BENCHMARK.md | 48 +-
.../go-openapi/swag/mangling}/LICENSE | 0
.../go-openapi/swag/mangling/doc.go | 25 +
.../swag/mangling/initialism_index.go | 270 +
.../go-openapi/swag/mangling/name_lexem.go | 186 +
.../go-openapi/swag/mangling/name_mangler.go | 370 +
.../go-openapi/swag/mangling/options.go | 150 +
.../go-openapi/swag/mangling/pools.go | 123 +
.../go-openapi/swag/mangling/split.go | 341 +
.../swag/{ => mangling}/string_bytes.go | 5 +-
.../go-openapi/swag/mangling/util.go | 118 +
.../go-openapi/swag/mangling_iface.go | 69 +
.../github.com/go-openapi/swag/name_lexem.go | 93 -
vendor/github.com/go-openapi/swag/net.go | 38 -
.../go-openapi/swag/netutils}/LICENSE | 0
.../go-openapi/swag/netutils/doc.go | 5 +
.../go-openapi/swag/netutils/net.go | 31 +
.../go-openapi/swag/netutils_iface.go | 13 +
vendor/github.com/go-openapi/swag/split.go | 508 -
.../go-openapi/swag/stringutils}/LICENSE | 0
.../swag/stringutils/collection_formats.go | 74 +
.../go-openapi/swag/stringutils/doc.go | 5 +
.../go-openapi/swag/stringutils/strings.go | 23 +
.../go-openapi/swag/stringutils_iface.go | 34 +
.../go-openapi/swag/typeutils}/LICENSE | 0
.../go-openapi/swag/typeutils/doc.go | 5 +
.../go-openapi/swag/typeutils/types.go | 80 +
.../go-openapi/swag/typeutils_iface.go | 12 +
vendor/github.com/go-openapi/swag/util.go | 364 -
vendor/github.com/go-openapi/swag/yaml.go | 481 -
.../go-openapi/swag/yamlutils}/LICENSE | 0
.../go-openapi/swag/yamlutils/doc.go | 13 +
.../go-openapi/swag/yamlutils/errors.go | 15 +
.../go-openapi/swag/yamlutils/ordered_map.go | 316 +
.../go-openapi/swag/yamlutils/yaml.go | 211 +
.../go-openapi/swag/yamlutils_iface.go | 20 +
vendor/github.com/google/cel-go/LICENSE | 233 -
.../github.com/google/cel-go/cel/BUILD.bazel | 98 -
vendor/github.com/google/cel-go/cel/cel.go | 19 -
vendor/github.com/google/cel-go/cel/decls.go | 428 -
vendor/github.com/google/cel-go/cel/env.go | 1039 -
.../github.com/google/cel-go/cel/folding.go | 603 -
.../github.com/google/cel-go/cel/inlining.go | 228 -
vendor/github.com/google/cel-go/cel/io.go | 349 -
.../github.com/google/cel-go/cel/library.go | 871 -
vendor/github.com/google/cel-go/cel/macro.go | 590 -
.../github.com/google/cel-go/cel/optimizer.go | 535 -
.../github.com/google/cel-go/cel/options.go | 886 -
.../github.com/google/cel-go/cel/program.go | 495 -
vendor/github.com/google/cel-go/cel/prompt.go | 155 -
.../cel-go/cel/templates/authoring.tmpl | 56 -
.../github.com/google/cel-go/cel/validator.go | 439 -
.../google/cel-go/checker/BUILD.bazel | 64 -
.../google/cel-go/checker/checker.go | 728 -
.../github.com/google/cel-go/checker/cost.go | 1042 -
.../google/cel-go/checker/decls/BUILD.bazel | 19 -
.../google/cel-go/checker/decls/decls.go | 254 -
.../github.com/google/cel-go/checker/env.go | 284 -
.../google/cel-go/checker/errors.go | 92 -
.../google/cel-go/checker/format.go | 216 -
.../google/cel-go/checker/mapping.go | 49 -
.../google/cel-go/checker/options.go | 42 -
.../google/cel-go/checker/printer.go | 74 -
.../google/cel-go/checker/scopes.go | 147 -
.../github.com/google/cel-go/checker/types.go | 314 -
.../google/cel-go/common/BUILD.bazel | 36 -
.../google/cel-go/common/ast/BUILD.bazel | 57 -
.../google/cel-go/common/ast/ast.go | 535 -
.../google/cel-go/common/ast/conversion.go | 659 -
.../google/cel-go/common/ast/expr.go | 884 -
.../google/cel-go/common/ast/factory.go | 332 -
.../google/cel-go/common/ast/navigable.go | 665 -
.../cel-go/common/containers/BUILD.bazel | 31 -
.../cel-go/common/containers/container.go | 328 -
.../github.com/google/cel-go/common/cost.go | 40 -
.../google/cel-go/common/debug/BUILD.bazel | 20 -
.../google/cel-go/common/debug/debug.go | 314 -
.../google/cel-go/common/decls/BUILD.bazel | 41 -
.../google/cel-go/common/decls/decls.go | 1129 -
vendor/github.com/google/cel-go/common/doc.go | 171 -
.../google/cel-go/common/env/BUILD.bazel | 50 -
.../google/cel-go/common/env/env.go | 887 -
.../github.com/google/cel-go/common/error.go | 74 -
.../github.com/google/cel-go/common/errors.go | 112 -
.../cel-go/common/functions/BUILD.bazel | 17 -
.../cel-go/common/functions/functions.go | 61 -
.../google/cel-go/common/location.go | 51 -
.../cel-go/common/operators/BUILD.bazel | 14 -
.../cel-go/common/operators/operators.go | 157 -
.../cel-go/common/overloads/BUILD.bazel | 14 -
.../cel-go/common/overloads/overloads.go | 327 -
.../google/cel-go/common/runes/BUILD.bazel | 25 -
.../google/cel-go/common/runes/buffer.go | 242 -
.../github.com/google/cel-go/common/source.go | 173 -
.../google/cel-go/common/stdlib/BUILD.bazel | 24 -
.../google/cel-go/common/stdlib/standard.go | 1058 -
.../google/cel-go/common/types/BUILD.bazel | 93 -
.../google/cel-go/common/types/any_value.go | 24 -
.../google/cel-go/common/types/bool.go | 150 -
.../google/cel-go/common/types/bytes.go | 155 -
.../google/cel-go/common/types/compare.go | 97 -
.../google/cel-go/common/types/doc.go | 17 -
.../google/cel-go/common/types/double.go | 233 -
.../google/cel-go/common/types/duration.go | 227 -
.../google/cel-go/common/types/err.go | 175 -
.../google/cel-go/common/types/format.go | 42 -
.../google/cel-go/common/types/int.go | 308 -
.../google/cel-go/common/types/iterator.go | 55 -
.../google/cel-go/common/types/json_value.go | 29 -
.../google/cel-go/common/types/list.go | 590 -
.../google/cel-go/common/types/map.go | 1038 -
.../google/cel-go/common/types/null.go | 124 -
.../google/cel-go/common/types/object.go | 194 -
.../google/cel-go/common/types/optional.go | 119 -
.../google/cel-go/common/types/overflow.go | 429 -
.../google/cel-go/common/types/pb/BUILD.bazel | 53 -
.../google/cel-go/common/types/pb/checked.go | 93 -
.../google/cel-go/common/types/pb/enum.go | 44 -
.../google/cel-go/common/types/pb/equal.go | 206 -
.../google/cel-go/common/types/pb/file.go | 202 -
.../google/cel-go/common/types/pb/pb.go | 258 -
.../google/cel-go/common/types/pb/type.go | 614 -
.../google/cel-go/common/types/provider.go | 766 -
.../cel-go/common/types/ref/BUILD.bazel | 20 -
.../cel-go/common/types/ref/provider.go | 102 -
.../cel-go/common/types/ref/reference.go | 63 -
.../google/cel-go/common/types/string.go | 230 -
.../google/cel-go/common/types/timestamp.go | 315 -
.../cel-go/common/types/traits/BUILD.bazel | 29 -
.../cel-go/common/types/traits/comparer.go | 33 -
.../cel-go/common/types/traits/container.go | 23 -
.../common/types/traits/field_tester.go | 30 -
.../cel-go/common/types/traits/indexer.go | 25 -
.../cel-go/common/types/traits/iterator.go | 49 -
.../cel-go/common/types/traits/lister.go | 36 -
.../cel-go/common/types/traits/mapper.go | 48 -
.../cel-go/common/types/traits/matcher.go | 23 -
.../google/cel-go/common/types/traits/math.go | 62 -
.../cel-go/common/types/traits/receiver.go | 24 -
.../cel-go/common/types/traits/sizer.go | 25 -
.../cel-go/common/types/traits/traits.go | 79 -
.../cel-go/common/types/traits/zeroer.go | 21 -
.../google/cel-go/common/types/types.go | 884 -
.../google/cel-go/common/types/uint.go | 262 -
.../google/cel-go/common/types/unknown.go | 326 -
.../google/cel-go/common/types/util.go | 48 -
.../github.com/google/cel-go/ext/BUILD.bazel | 86 -
vendor/github.com/google/cel-go/ext/README.md | 947 -
.../github.com/google/cel-go/ext/bindings.go | 336 -
.../google/cel-go/ext/comprehensions.go | 428 -
.../github.com/google/cel-go/ext/encoders.go | 112 -
.../cel-go/ext/extension_option_factory.go | 75 -
.../google/cel-go/ext/formatting.go | 927 -
.../google/cel-go/ext/formatting_v2.go | 788 -
vendor/github.com/google/cel-go/ext/guards.go | 67 -
vendor/github.com/google/cel-go/ext/lists.go | 779 -
vendor/github.com/google/cel-go/ext/math.go | 948 -
vendor/github.com/google/cel-go/ext/native.go | 796 -
vendor/github.com/google/cel-go/ext/protos.go | 159 -
vendor/github.com/google/cel-go/ext/regex.go | 332 -
vendor/github.com/google/cel-go/ext/sets.go | 278 -
.../github.com/google/cel-go/ext/strings.go | 796 -
.../google/cel-go/interpreter/BUILD.bazel | 74 -
.../google/cel-go/interpreter/activation.go | 192 -
.../cel-go/interpreter/attribute_patterns.go | 386 -
.../google/cel-go/interpreter/attributes.go | 1436 -
.../google/cel-go/interpreter/decorators.go | 272 -
.../google/cel-go/interpreter/dispatcher.go | 100 -
.../google/cel-go/interpreter/evalstate.go | 79 -
.../cel-go/interpreter/functions/BUILD.bazel | 17 -
.../cel-go/interpreter/functions/functions.go | 39 -
.../cel-go/interpreter/interpretable.go | 1473 -
.../google/cel-go/interpreter/interpreter.go | 273 -
.../cel-go/interpreter/optimizations.go | 46 -
.../google/cel-go/interpreter/planner.go | 767 -
.../google/cel-go/interpreter/prune.go | 574 -
.../google/cel-go/interpreter/runtimecost.go | 415 -
.../google/cel-go/parser/BUILD.bazel | 58 -
.../github.com/google/cel-go/parser/errors.go | 41 -
.../google/cel-go/parser/gen/BUILD.bazel | 26 -
.../google/cel-go/parser/gen/CEL.g4 | 207 -
.../google/cel-go/parser/gen/CEL.interp | 102 -
.../google/cel-go/parser/gen/CEL.tokens | 65 -
.../google/cel-go/parser/gen/CELLexer.interp | 139 -
.../google/cel-go/parser/gen/CELLexer.tokens | 65 -
.../cel-go/parser/gen/cel_base_listener.go | 237 -
.../cel-go/parser/gen/cel_base_visitor.go | 152 -
.../google/cel-go/parser/gen/cel_lexer.go | 351 -
.../google/cel-go/parser/gen/cel_listener.go | 225 -
.../google/cel-go/parser/gen/cel_parser.go | 6197 -
.../google/cel-go/parser/gen/cel_visitor.go | 117 -
.../google/cel-go/parser/gen/doc.go | 16 -
.../google/cel-go/parser/gen/generate.sh | 35 -
.../github.com/google/cel-go/parser/helper.go | 515 -
.../github.com/google/cel-go/parser/input.go | 129 -
.../github.com/google/cel-go/parser/macro.go | 603 -
.../google/cel-go/parser/options.go | 163 -
.../github.com/google/cel-go/parser/parser.go | 1065 -
.../google/cel-go/parser/unescape.go | 237 -
.../google/cel-go/parser/unparser.go | 663 -
.../github.com/gorilla/websocket/.gitignore | 25 -
vendor/github.com/gorilla/websocket/AUTHORS | 9 -
vendor/github.com/gorilla/websocket/LICENSE | 22 -
vendor/github.com/gorilla/websocket/README.md | 32 -
vendor/github.com/gorilla/websocket/client.go | 517 -
.../gorilla/websocket/compression.go | 152 -
vendor/github.com/gorilla/websocket/conn.go | 1246 -
vendor/github.com/gorilla/websocket/doc.go | 227 -
vendor/github.com/gorilla/websocket/join.go | 42 -
vendor/github.com/gorilla/websocket/json.go | 60 -
vendor/github.com/gorilla/websocket/mask.go | 55 -
.../github.com/gorilla/websocket/mask_safe.go | 16 -
.../github.com/gorilla/websocket/prepared.go | 102 -
vendor/github.com/gorilla/websocket/proxy.go | 104 -
vendor/github.com/gorilla/websocket/server.go | 373 -
vendor/github.com/gorilla/websocket/util.go | 298 -
.../grpc-ecosystem/grpc-gateway/v2/LICENSE | 27 -
.../v2/internal/httprule/BUILD.bazel | 35 -
.../v2/internal/httprule/compile.go | 121 -
.../grpc-gateway/v2/internal/httprule/fuzz.go | 11 -
.../v2/internal/httprule/parse.go | 368 -
.../v2/internal/httprule/types.go | 60 -
.../grpc-gateway/v2/runtime/BUILD.bazel | 97 -
.../grpc-gateway/v2/runtime/context.go | 417 -
.../grpc-gateway/v2/runtime/convert.go | 318 -
.../grpc-gateway/v2/runtime/doc.go | 5 -
.../grpc-gateway/v2/runtime/errors.go | 204 -
.../grpc-gateway/v2/runtime/fieldmask.go | 168 -
.../grpc-gateway/v2/runtime/handler.go | 251 -
.../v2/runtime/marshal_httpbodyproto.go | 32 -
.../grpc-gateway/v2/runtime/marshal_json.go | 50 -
.../grpc-gateway/v2/runtime/marshal_jsonpb.go | 349 -
.../grpc-gateway/v2/runtime/marshal_proto.go | 60 -
.../grpc-gateway/v2/runtime/marshaler.go | 58 -
.../v2/runtime/marshaler_registry.go | 109 -
.../grpc-gateway/v2/runtime/mux.go | 545 -
.../grpc-gateway/v2/runtime/pattern.go | 381 -
.../grpc-gateway/v2/runtime/proto2_convert.go | 80 -
.../grpc-gateway/v2/runtime/query.go | 378 -
.../grpc-gateway/v2/utilities/BUILD.bazel | 31 -
.../grpc-gateway/v2/utilities/doc.go | 2 -
.../grpc-gateway/v2/utilities/pattern.go | 22 -
.../v2/utilities/readerfactory.go | 19 -
.../v2/utilities/string_array_flag.go | 33 -
.../grpc-gateway/v2/utilities/trie.go | 174 -
vendor/github.com/josharian/intern/README.md | 5 -
vendor/github.com/josharian/intern/intern.go | 44 -
vendor/github.com/josharian/intern/license.md | 21 -
vendor/github.com/mailru/easyjson/LICENSE | 7 -
.../github.com/mailru/easyjson/buffer/pool.go | 278 -
.../mailru/easyjson/jlexer/bytestostr.go | 21 -
.../easyjson/jlexer/bytestostr_nounsafe.go | 13 -
.../mailru/easyjson/jlexer/error.go | 15 -
.../mailru/easyjson/jlexer/lexer.go | 1257 -
.../mailru/easyjson/jwriter/writer.go | 417 -
.../moby/spdystream/CONTRIBUTING.md | 13 -
vendor/github.com/moby/spdystream/MAINTAINERS | 40 -
vendor/github.com/moby/spdystream/NOTICE | 5 -
vendor/github.com/moby/spdystream/README.md | 77 -
.../github.com/moby/spdystream/connection.go | 991 -
vendor/github.com/moby/spdystream/handlers.go | 52 -
vendor/github.com/moby/spdystream/priority.go | 114 -
.../moby/spdystream/spdy/dictionary.go | 203 -
.../github.com/moby/spdystream/spdy/read.go | 364 -
.../github.com/moby/spdystream/spdy/types.go | 291 -
.../github.com/moby/spdystream/spdy/write.go | 334 -
vendor/github.com/moby/spdystream/stream.go | 345 -
vendor/github.com/moby/spdystream/utils.go | 32 -
vendor/github.com/mxk/go-flowrate/LICENSE | 29 -
.../mxk/go-flowrate/flowrate/flowrate.go | 267 -
.../github.com/mxk/go-flowrate/flowrate/io.go | 133 -
.../mxk/go-flowrate/flowrate/util.go | 67 -
vendor/github.com/onsi/ginkgo/v2/OWNERS | 4 -
.../onsi/ginkgo/v2/core_dsl_patch.go | 33 -
.../v2/internal/output_interceptor_unix.go | 18 -
.../v2/internal/output_interceptor_wasm.go | 7 -
.../v2/internal/output_interceptor_win.go | 9 -
.../onsi/ginkgo/v2/internal/spec_patch.go | 22 -
.../onsi/ginkgo/v2/internal/suite.go | 7 -
.../onsi/ginkgo/v2/internal/suite_patch.go | 142 -
.../onsi/ginkgo/v2/types/types_patch.go | 8 -
.../onsi/gomega/gcustom/make_matcher.go | 270 -
.../opencontainers/go-digest/.mailmap | 4 -
.../opencontainers/go-digest/.pullapprove.yml | 28 -
.../opencontainers/go-digest/.travis.yml | 5 -
.../opencontainers/go-digest/CONTRIBUTING.md | 72 -
.../opencontainers/go-digest/LICENSE | 192 -
.../opencontainers/go-digest/LICENSE.docs | 425 -
.../opencontainers/go-digest/MAINTAINERS | 5 -
.../opencontainers/go-digest/README.md | 96 -
.../opencontainers/go-digest/algorithm.go | 193 -
.../opencontainers/go-digest/digest.go | 157 -
.../opencontainers/go-digest/digester.go | 40 -
.../opencontainers/go-digest/doc.go | 62 -
.../opencontainers/go-digest/verifiers.go | 46 -
.../openshift-tests-extension/LICENSE | 201 -
.../openshift-tests-extension/pkg/cmd/cmd.go | 23 -
.../pkg/cmd/cmdimages/cmdimages.go | 36 -
.../pkg/cmd/cmdinfo/info.go | 38 -
.../pkg/cmd/cmdlist/list.go | 133 -
.../pkg/cmd/cmdrun/runsuite.go | 153 -
.../pkg/cmd/cmdrun/runtest.go | 113 -
.../pkg/cmd/cmdupdate/update.go | 84 -
.../pkg/dbtime/time.go | 26 -
.../pkg/extension/extension.go | 165 -
.../extension/extensiontests/environment.go | 92 -
.../pkg/extension/extensiontests/result.go | 125 -
.../extension/extensiontests/result_writer.go | 213 -
.../pkg/extension/extensiontests/spec.go | 621 -
.../pkg/extension/extensiontests/task.go | 31 -
.../pkg/extension/extensiontests/types.go | 119 -
.../pkg/extension/extensiontests/viewer.html | 1520 -
.../pkg/extension/registry.go | 39 -
.../pkg/extension/types.go | 94 -
.../pkg/flags/component.go | 25 -
.../pkg/flags/concurrency.go | 23 -
.../pkg/flags/environment.go | 114 -
.../pkg/flags/names.go | 24 -
.../pkg/flags/output.go | 95 -
.../pkg/flags/suite.go | 21 -
.../pkg/ginkgo/logging.go | 25 -
.../pkg/ginkgo/parallel.go | 139 -
.../pkg/ginkgo/util.go | 229 -
.../pkg/junit/types.go | 104 -
.../pkg/util/sets/README.md | 3 -
.../pkg/util/sets/byte.go | 137 -
.../pkg/util/sets/doc.go | 19 -
.../pkg/util/sets/empty.go | 21 -
.../pkg/util/sets/int.go | 137 -
.../pkg/util/sets/int32.go | 137 -
.../pkg/util/sets/int64.go | 137 -
.../pkg/util/sets/set.go | 236 -
.../pkg/util/sets/string.go | 137 -
.../pkg/version/version.go | 11 -
.../github.com/openshift/api/config/v1/doc.go | 1 +
.../openshift/api/config/v1/register.go | 2 +
.../openshift/api/config/v1/types.go | 5 +
.../api/config/v1/types_apiserver.go | 70 +-
.../api/config/v1/types_authentication.go | 400 +-
.../api/config/v1/types_cluster_operator.go | 5 +-
.../api/config/v1/types_cluster_version.go | 25 +-
.../types_crio_credential_provider_config.go | 186 +
.../openshift/api/config/v1/types_dns.go | 9 +-
.../openshift/api/config/v1/types_image.go | 30 +
.../api/config/v1/types_infrastructure.go | 44 +-
.../openshift/api/config/v1/types_ingress.go | 36 +
.../api/config/v1/types_kmsencryption.go | 264 +-
.../openshift/api/config/v1/types_network.go | 33 +
.../api/config/v1/types_tlssecurityprofile.go | 122 +-
...1_clusterversions-CustomNoUpgrade.crd.yaml | 15 +
...usterversions-DevPreviewNoUpgrade.crd.yaml | 15 +
...sterversions-TechPreviewNoUpgrade.crd.yaml | 15 +
...tor_01_apiservers-CustomNoUpgrade.crd.yaml | 395 +-
...ig-operator_01_apiservers-Default.crd.yaml | 36 +-
...01_apiservers-DevPreviewNoUpgrade.crd.yaml | 395 +-
...config-operator_01_apiservers-OKD.crd.yaml | 36 +-
...1_apiservers-TechPreviewNoUpgrade.crd.yaml | 391 +-
...1_authentications-CustomNoUpgrade.crd.yaml | 445 +-
...erator_01_authentications-Default.crd.yaml | 7 +-
...thentications-DevPreviewNoUpgrade.crd.yaml | 445 +-
...g-operator_01_authentications-OKD.crd.yaml | 7 +-
...hentications-TechPreviewNoUpgrade.crd.yaml | 445 +-
..._01_criocredentialproviderconfigs.crd.yaml | 409 +
...operator_01_dnses-CustomNoUpgrade.crd.yaml | 198 +
..._config-operator_01_dnses-Default.crd.yaml | 198 +
...ator_01_dnses-DevPreviewNoUpgrade.crd.yaml | 198 +
..._10_config-operator_01_dnses-OKD.crd.yaml} | 11 +-
...tor_01_dnses-TechPreviewNoUpgrade.crd.yaml | 198 +
...0000_10_config-operator_01_images.crd.yaml | 43 +-
...erator_01_infrastructures-Default.crd.yaml | 242 +-
...ctures-Hypershift-CustomNoUpgrade.crd.yaml | 2798 +
...s-Hypershift-DevPreviewNoUpgrade.crd.yaml} | 32 +-
...-Hypershift-TechPreviewNoUpgrade.crd.yaml} | 34 +-
...g-operator_01_infrastructures-OKD.crd.yaml | 242 +-
...res-SelfManagedHA-CustomNoUpgrade.crd.yaml | 2798 +
...SelfManagedHA-DevPreviewNoUpgrade.crd.yaml | 2798 +
...lfManagedHA-TechPreviewNoUpgrade.crd.yaml} | 32 +-
...ator_01_ingresses-CustomNoUpgrade.crd.yaml | 593 +
...fig-operator_01_ingresses-Default.crd.yaml | 546 +
..._01_ingresses-DevPreviewNoUpgrade.crd.yaml | 593 +
...config-operator_01_ingresses-OKD.crd.yaml} | 3 +
...01_ingresses-TechPreviewNoUpgrade.crd.yaml | 593 +
...rator_01_networks-CustomNoUpgrade.crd.yaml | 470 +
...nfig-operator_01_networks-Default.crd.yaml | 448 +
...r_01_networks-DevPreviewNoUpgrade.crd.yaml | 470 +
..._config-operator_01_networks-OKD.crd.yaml} | 1 +
..._01_networks-TechPreviewNoUpgrade.crd.yaml | 470 +
.../api/config/v1/zz_generated.deepcopy.go | 455 +-
..._generated.featuregated-crd-manifests.yaml | 45 +-
.../api/config/v1/zz_generated.model_name.go | 1566 +
.../v1/zz_generated.swagger_doc_generated.go | 269 +-
.../openshift/api/config/v1alpha1/doc.go | 1 +
.../openshift/api/config/v1alpha1/register.go | 4 -
.../v1alpha1/types_cluster_image_policy.go | 80 -
.../v1alpha1/types_cluster_monitoring.go | 2754 +-
.../api/config/v1alpha1/types_image_policy.go | 289 -
.../config/v1alpha1/zz_generated.deepcopy.go | 1426 +-
..._generated.featuregated-crd-manifests.yaml | 48 -
.../v1alpha1/zz_generated.model_name.go | 461 +
.../zz_generated.swagger_doc_generated.go | 672 +-
.../openshift/api/config/v1alpha2/doc.go | 1 +
.../v1alpha2/zz_generated.model_name.go | 61 +
.../openshift/api/features/features.go | 287 +-
.../openshift/api/machine/v1/doc.go | 1 +
.../api/machine/v1/zz_generated.model_name.go | 211 +
.../openshift/api/machine/v1beta1/doc.go | 1 +
.../api/machine/v1beta1/types_awsprovider.go | 81 +-
.../api/machine/v1beta1/types_machineset.go | 8 +
...pi_01_machinesets-CustomNoUpgrade.crd.yaml | 9 +
...achine-api_01_machinesets-Default.crd.yaml | 9 +
...1_machinesets-DevPreviewNoUpgrade.crd.yaml | 9 +
...10_machine-api_01_machinesets-OKD.crd.yaml | 9 +
..._machinesets-TechPreviewNoUpgrade.crd.yaml | 9 +
.../machine/v1beta1/zz_generated.deepcopy.go | 22 +-
.../v1beta1/zz_generated.model_name.go | 376 +
.../zz_generated.swagger_doc_generated.go | 9 +-
.../config/v1alpha1/alertmanagerconfig.go | 48 -
.../v1alpha1/alertmanagercustomconfig.go | 179 -
.../config/v1alpha1/audit.go | 38 -
.../config/v1alpha1/backup.go | 277 -
.../config/v1alpha1/backupspec.go | 24 -
.../config/v1alpha1/clusterimagepolicy.go | 277 -
.../config/v1alpha1/clusterimagepolicyspec.go | 53 -
.../v1alpha1/clusterimagepolicystatus.go | 33 -
.../config/v1alpha1/clustermonitoring.go | 277 -
.../config/v1alpha1/clustermonitoringspec.go | 82 -
.../config/v1alpha1/containerresource.go | 57 -
.../v1alpha1/criocredentialproviderconfig.go | 285 -
.../criocredentialproviderconfigspec.go | 72 -
.../criocredentialproviderconfigstatus.go | 41 -
.../config/v1alpha1/etcdbackupspec.go | 66 -
.../config/v1alpha1/gatherconfig.go | 65 -
.../config/v1alpha1/imagepolicy.go | 279 -
...imagepolicyfulciocawithrekorrootoftrust.go | 52 -
.../v1alpha1/imagepolicypkirootoftrust.go | 51 -
.../imagepolicypublickeyrootoftrust.go | 42 -
.../config/v1alpha1/imagepolicyspec.go | 53 -
.../config/v1alpha1/imagepolicystatus.go | 33 -
.../imagesigstoreverificationpolicy.go | 36 -
.../config/v1alpha1/insightsdatagather.go | 277 -
.../config/v1alpha1/insightsdatagatherspec.go | 24 -
.../config/v1alpha1/metricsserverconfig.go | 147 -
.../persistentvolumeclaimreference.go | 27 -
.../config/v1alpha1/persistentvolumeconfig.go | 40 -
.../config/v1alpha1/pkicertificatesubject.go | 39 -
.../config/v1alpha1/policyfulciosubject.go | 38 -
.../config/v1alpha1/policyidentity.go | 57 -
.../v1alpha1/policymatchexactrepository.go | 29 -
.../v1alpha1/policymatchremapidentity.go | 45 -
.../config/v1alpha1/policyrootoftrust.go | 65 -
...rometheusoperatoradmissionwebhookconfig.go | 78 -
.../v1alpha1/prometheusoperatorconfig.go | 136 -
.../config/v1alpha1/retentionnumberconfig.go | 28 -
.../config/v1alpha1/retentionpolicy.go | 54 -
.../config/v1alpha1/retentionsizeconfig.go | 28 -
.../config/v1alpha1/storage.go | 46 -
.../config/v1alpha1/userdefinedmonitoring.go | 34 -
.../config/v1alpha2/custom.go | 36 -
.../config/v1alpha2/gatherconfig.go | 58 -
.../config/v1alpha2/gathererconfig.go | 49 -
.../config/v1alpha2/gatherers.go | 44 -
.../config/v1alpha2/insightsdatagather.go | 277 -
.../config/v1alpha2/insightsdatagatherspec.go | 24 -
.../persistentvolumeclaimreference.go | 27 -
.../config/v1alpha2/persistentvolumeconfig.go | 40 -
.../config/v1alpha2/storage.go | 46 -
.../config/clientset/versioned/clientset.go | 130 -
.../versioned/typed/config/v1alpha1/backup.go | 58 -
.../config/v1alpha1/clusterimagepolicy.go | 58 -
.../config/v1alpha1/clustermonitoring.go | 58 -
.../typed/config/v1alpha1/config_client.go | 110 -
.../v1alpha1/criocredentialproviderconfig.go | 62 -
.../versioned/typed/config/v1alpha1/doc.go | 4 -
.../config/v1alpha1/generated_expansion.go | 15 -
.../typed/config/v1alpha1/imagepolicy.go | 58 -
.../config/v1alpha1/insightsdatagather.go | 58 -
.../typed/config/v1alpha2/config_client.go | 85 -
.../versioned/typed/config/v1alpha2/doc.go | 4 -
.../config/v1alpha2/generated_expansion.go | 5 -
.../config/v1alpha2/insightsdatagather.go | 58 -
.../machine-api-operator/test/e2e/util.go | 304 -
vendor/github.com/pkg/errors/.gitignore | 24 -
vendor/github.com/pkg/errors/.travis.yml | 10 -
vendor/github.com/pkg/errors/LICENSE | 23 -
vendor/github.com/pkg/errors/Makefile | 44 -
vendor/github.com/pkg/errors/README.md | 59 -
vendor/github.com/pkg/errors/appveyor.yml | 32 -
vendor/github.com/pkg/errors/errors.go | 288 -
vendor/github.com/pkg/errors/go113.go | 38 -
vendor/github.com/pkg/errors/stack.go | 177 -
vendor/github.com/robfig/cron/v3/.gitignore | 22 -
vendor/github.com/robfig/cron/v3/.travis.yml | 1 -
vendor/github.com/robfig/cron/v3/LICENSE | 21 -
vendor/github.com/robfig/cron/v3/README.md | 125 -
vendor/github.com/robfig/cron/v3/chain.go | 92 -
.../robfig/cron/v3/constantdelay.go | 27 -
vendor/github.com/robfig/cron/v3/cron.go | 355 -
vendor/github.com/robfig/cron/v3/doc.go | 231 -
vendor/github.com/robfig/cron/v3/logger.go | 86 -
vendor/github.com/robfig/cron/v3/option.go | 45 -
vendor/github.com/robfig/cron/v3/parser.go | 434 -
vendor/github.com/robfig/cron/v3/spec.go | 188 -
.../github.com/stoewer/go-strcase/.gitignore | 17 -
.../stoewer/go-strcase/.golangci.yml | 26 -
vendor/github.com/stoewer/go-strcase/LICENSE | 21 -
.../github.com/stoewer/go-strcase/README.md | 50 -
vendor/github.com/stoewer/go-strcase/camel.go | 40 -
vendor/github.com/stoewer/go-strcase/doc.go | 8 -
.../github.com/stoewer/go-strcase/helper.go | 71 -
vendor/github.com/stoewer/go-strcase/kebab.go | 14 -
vendor/github.com/stoewer/go-strcase/snake.go | 58 -
.../auto/sdk/CONTRIBUTING.md | 27 -
vendor/go.opentelemetry.io/auto/sdk/LICENSE | 201 -
.../auto/sdk/VERSIONING.md | 15 -
vendor/go.opentelemetry.io/auto/sdk/doc.go | 14 -
.../auto/sdk/internal/telemetry/attr.go | 58 -
.../auto/sdk/internal/telemetry/doc.go | 8 -
.../auto/sdk/internal/telemetry/id.go | 103 -
.../auto/sdk/internal/telemetry/number.go | 67 -
.../auto/sdk/internal/telemetry/resource.go | 66 -
.../auto/sdk/internal/telemetry/scope.go | 67 -
.../auto/sdk/internal/telemetry/span.go | 472 -
.../auto/sdk/internal/telemetry/status.go | 42 -
.../auto/sdk/internal/telemetry/traces.go | 189 -
.../auto/sdk/internal/telemetry/value.go | 450 -
vendor/go.opentelemetry.io/auto/sdk/limit.go | 94 -
vendor/go.opentelemetry.io/auto/sdk/span.go | 447 -
vendor/go.opentelemetry.io/auto/sdk/tracer.go | 141 -
.../auto/sdk/tracer_provider.go | 33 -
.../instrumentation/net/http/otelhttp/LICENSE | 201 -
.../net/http/otelhttp/client.go | 50 -
.../net/http/otelhttp/common.go | 27 -
.../net/http/otelhttp/config.go | 211 -
.../instrumentation/net/http/otelhttp/doc.go | 7 -
.../net/http/otelhttp/handler.go | 238 -
.../otelhttp/internal/request/body_wrapper.go | 80 -
.../net/http/otelhttp/internal/request/gen.go | 10 -
.../internal/request/resp_writer_wrapper.go | 122 -
.../net/http/otelhttp/internal/semconv/env.go | 323 -
.../net/http/otelhttp/internal/semconv/gen.go | 14 -
.../otelhttp/internal/semconv/httpconv.go | 573 -
.../http/otelhttp/internal/semconv/util.go | 127 -
.../http/otelhttp/internal/semconv/v1.20.0.go | 273 -
.../http/otelhttp/internal/semconvutil/gen.go | 10 -
.../otelhttp/internal/semconvutil/httpconv.go | 594 -
.../otelhttp/internal/semconvutil/netconv.go | 214 -
.../net/http/otelhttp/labeler.go | 58 -
.../net/http/otelhttp/start_time_context.go | 29 -
.../net/http/otelhttp/transport.go | 265 -
.../net/http/otelhttp/version.go | 10 -
.../go.opentelemetry.io/otel/.clomonitor.yml | 3 -
.../go.opentelemetry.io/otel/.codespellignore | 11 -
vendor/go.opentelemetry.io/otel/.codespellrc | 10 -
.../go.opentelemetry.io/otel/.gitattributes | 3 -
vendor/go.opentelemetry.io/otel/.gitignore | 15 -
vendor/go.opentelemetry.io/otel/.golangci.yml | 267 -
vendor/go.opentelemetry.io/otel/.lycheeignore | 13 -
.../otel/.markdownlint.yaml | 29 -
vendor/go.opentelemetry.io/otel/CHANGELOG.md | 3651 -
vendor/go.opentelemetry.io/otel/CODEOWNERS | 17 -
.../go.opentelemetry.io/otel/CONTRIBUTING.md | 1157 -
vendor/go.opentelemetry.io/otel/Makefile | 327 -
vendor/go.opentelemetry.io/otel/README.md | 115 -
vendor/go.opentelemetry.io/otel/RELEASING.md | 181 -
.../otel/SECURITY-INSIGHTS.yml | 203 -
vendor/go.opentelemetry.io/otel/VERSIONING.md | 224 -
.../otel/baggage/README.md | 3 -
.../otel/baggage/baggage.go | 1018 -
.../otel/baggage/context.go | 28 -
.../go.opentelemetry.io/otel/baggage/doc.go | 9 -
.../otel/dependencies.Dockerfile | 4 -
vendor/go.opentelemetry.io/otel/doc.go | 25 -
.../go.opentelemetry.io/otel/error_handler.go | 27 -
.../otel/exporters/otlp/otlptrace/LICENSE | 201 -
.../otel/exporters/otlp/otlptrace/README.md | 3 -
.../otel/exporters/otlp/otlptrace/clients.go | 43 -
.../otel/exporters/otlp/otlptrace/doc.go | 10 -
.../otel/exporters/otlp/otlptrace/exporter.go | 105 -
.../internal/tracetransform/attribute.go | 147 -
.../tracetransform/instrumentation.go | 20 -
.../internal/tracetransform/resource.go | 17 -
.../otlptrace/internal/tracetransform/span.go | 219 -
.../otlp/otlptrace/otlptracegrpc/LICENSE | 201 -
.../otlp/otlptrace/otlptracegrpc/README.md | 3 -
.../otlp/otlptrace/otlptracegrpc/client.go | 300 -
.../otlp/otlptrace/otlptracegrpc/doc.go | 65 -
.../otlp/otlptrace/otlptracegrpc/exporter.go | 20 -
.../internal/envconfig/envconfig.go | 215 -
.../otlptrace/otlptracegrpc/internal/gen.go | 24 -
.../internal/otlpconfig/envconfig.go | 142 -
.../internal/otlpconfig/options.go | 351 -
.../internal/otlpconfig/optiontypes.go | 40 -
.../otlptracegrpc/internal/otlpconfig/tls.go | 26 -
.../otlptracegrpc/internal/partialsuccess.go | 56 -
.../otlptracegrpc/internal/retry/retry.go | 145 -
.../otlp/otlptrace/otlptracegrpc/options.go | 210 -
.../otel/exporters/otlp/otlptrace/version.go | 9 -
vendor/go.opentelemetry.io/otel/handler.go | 33 -
.../otel/internal/baggage/baggage.go | 32 -
.../otel/internal/baggage/context.go | 81 -
.../otel/internal/global/handler.go | 37 -
.../otel/internal/global/instruments.go | 468 -
.../otel/internal/global/internal_logging.go | 62 -
.../otel/internal/global/meter.go | 625 -
.../otel/internal/global/propagator.go | 71 -
.../otel/internal/global/state.go | 199 -
.../otel/internal/global/trace.go | 232 -
.../otel/internal_logging.go | 15 -
vendor/go.opentelemetry.io/otel/metric.go | 42 -
.../go.opentelemetry.io/otel/metric/LICENSE | 231 -
.../go.opentelemetry.io/otel/metric/README.md | 3 -
.../otel/metric/asyncfloat64.go | 270 -
.../otel/metric/asyncint64.go | 266 -
.../go.opentelemetry.io/otel/metric/config.go | 111 -
vendor/go.opentelemetry.io/otel/metric/doc.go | 177 -
.../otel/metric/embedded/README.md | 3 -
.../otel/metric/embedded/embedded.go | 243 -
.../otel/metric/instrument.go | 376 -
.../go.opentelemetry.io/otel/metric/meter.go | 288 -
.../otel/metric/noop/README.md | 3 -
.../otel/metric/noop/noop.go | 320 -
.../otel/metric/syncfloat64.go | 250 -
.../otel/metric/syncint64.go | 250 -
.../go.opentelemetry.io/otel/propagation.go | 20 -
.../otel/propagation/README.md | 3 -
.../otel/propagation/baggage.go | 77 -
.../otel/propagation/doc.go | 13 -
.../otel/propagation/propagation.go | 168 -
.../otel/propagation/trace_context.go | 156 -
vendor/go.opentelemetry.io/otel/renovate.json | 35 -
.../go.opentelemetry.io/otel/requirements.txt | 1 -
vendor/go.opentelemetry.io/otel/sdk/LICENSE | 231 -
vendor/go.opentelemetry.io/otel/sdk/README.md | 3 -
.../otel/sdk/instrumentation/README.md | 3 -
.../otel/sdk/instrumentation/doc.go | 13 -
.../otel/sdk/instrumentation/library.go | 9 -
.../otel/sdk/instrumentation/scope.go | 19 -
.../otel/sdk/internal/x/README.md | 46 -
.../otel/sdk/internal/x/features.go | 39 -
.../otel/sdk/internal/x/x.go | 58 -
.../otel/sdk/resource/README.md | 3 -
.../otel/sdk/resource/auto.go | 92 -
.../otel/sdk/resource/builtin.go | 116 -
.../otel/sdk/resource/config.go | 195 -
.../otel/sdk/resource/container.go | 89 -
.../otel/sdk/resource/doc.go | 20 -
.../otel/sdk/resource/env.go | 95 -
.../otel/sdk/resource/host_id.go | 108 -
.../otel/sdk/resource/host_id_bsd.go | 11 -
.../otel/sdk/resource/host_id_darwin.go | 8 -
.../otel/sdk/resource/host_id_exec.go | 18 -
.../otel/sdk/resource/host_id_linux.go | 10 -
.../otel/sdk/resource/host_id_readfile.go | 17 -
.../otel/sdk/resource/host_id_unsupported.go | 18 -
.../otel/sdk/resource/host_id_windows.go | 35 -
.../otel/sdk/resource/os.go | 89 -
.../otel/sdk/resource/os_release_darwin.go | 92 -
.../otel/sdk/resource/os_release_unix.go | 142 -
.../otel/sdk/resource/os_unix.go | 78 -
.../otel/sdk/resource/os_unsupported.go | 14 -
.../otel/sdk/resource/os_windows.go | 89 -
.../otel/sdk/resource/process.go | 173 -
.../otel/sdk/resource/resource.go | 309 -
.../otel/sdk/trace/README.md | 3 -
.../otel/sdk/trace/batch_span_processor.go | 445 -
.../go.opentelemetry.io/otel/sdk/trace/doc.go | 13 -
.../otel/sdk/trace/event.go | 26 -
.../otel/sdk/trace/evictedqueue.go | 64 -
.../otel/sdk/trace/id_generator.go | 69 -
.../otel/sdk/trace/internal/env/env.go | 168 -
.../internal/observ/batch_span_processor.go | 119 -
.../otel/sdk/trace/internal/observ/doc.go | 6 -
.../internal/observ/simple_span_processor.go | 97 -
.../otel/sdk/trace/internal/observ/tracer.go | 223 -
.../otel/sdk/trace/link.go | 23 -
.../otel/sdk/trace/provider.go | 510 -
.../otel/sdk/trace/sampler_env.go | 96 -
.../otel/sdk/trace/sampling.go | 310 -
.../otel/sdk/trace/simple_span_processor.go | 150 -
.../otel/sdk/trace/snapshot.go | 133 -
.../otel/sdk/trace/span.go | 959 -
.../otel/sdk/trace/span_exporter.go | 36 -
.../otel/sdk/trace/span_limits.go | 114 -
.../otel/sdk/trace/span_processor.go | 61 -
.../otel/sdk/trace/tracer.go | 188 -
.../go.opentelemetry.io/otel/sdk/version.go | 10 -
.../otel/semconv/v1.17.0/README.md | 3 -
.../otel/semconv/v1.17.0/doc.go | 9 -
.../otel/semconv/v1.17.0/event.go | 188 -
.../otel/semconv/v1.17.0/exception.go | 9 -
.../otel/semconv/v1.17.0/http.go | 10 -
.../otel/semconv/v1.17.0/resource.go | 1999 -
.../otel/semconv/v1.17.0/schema.go | 9 -
.../otel/semconv/v1.17.0/trace.go | 3364 -
.../otel/semconv/v1.20.0/README.md | 3 -
.../otel/semconv/v1.20.0/attribute_group.go | 1198 -
.../otel/semconv/v1.20.0/doc.go | 9 -
.../otel/semconv/v1.20.0/event.go | 188 -
.../otel/semconv/v1.20.0/exception.go | 9 -
.../otel/semconv/v1.20.0/http.go | 10 -
.../otel/semconv/v1.20.0/resource.go | 2060 -
.../otel/semconv/v1.20.0/schema.go | 9 -
.../otel/semconv/v1.20.0/trace.go | 2599 -
.../otel/semconv/v1.26.0/README.md | 3 -
.../otel/semconv/v1.26.0/attribute_group.go | 8996 -
.../otel/semconv/v1.26.0/doc.go | 9 -
.../otel/semconv/v1.26.0/exception.go | 9 -
.../otel/semconv/v1.26.0/metric.go | 1307 -
.../otel/semconv/v1.26.0/schema.go | 9 -
.../otel/semconv/v1.37.0/MIGRATION.md | 41 -
.../otel/semconv/v1.37.0/README.md | 3 -
.../otel/semconv/v1.37.0/attribute_group.go | 15193 --
.../otel/semconv/v1.37.0/doc.go | 9 -
.../otel/semconv/v1.37.0/error_type.go | 56 -
.../otel/semconv/v1.37.0/exception.go | 9 -
.../otel/semconv/v1.37.0/schema.go | 9 -
.../otel/semconv/v1.39.0/otelconv/metric.go | 2222 -
vendor/go.opentelemetry.io/otel/trace.go | 36 -
.../otel/trace/noop/README.md | 3 -
.../otel/trace/noop/noop.go | 112 -
.../otel/verify_released_changelog.sh | 42 -
vendor/go.opentelemetry.io/otel/version.go | 9 -
vendor/go.opentelemetry.io/otel/versions.yaml | 66 -
vendor/go.opentelemetry.io/proto/otlp/LICENSE | 201 -
.../collector/trace/v1/trace_service.pb.go | 367 -
.../collector/trace/v1/trace_service.pb.gw.go | 171 -
.../trace/v1/trace_service_grpc.pb.go | 109 -
.../proto/otlp/common/v1/common.pb.go | 630 -
.../proto/otlp/resource/v1/resource.pb.go | 193 -
.../proto/otlp/trace/v1/trace.pb.go | 1283 -
vendor/golang.org/x/crypto/LICENSE | 27 -
vendor/golang.org/x/crypto/PATENTS | 22 -
vendor/golang.org/x/crypto/blowfish/block.go | 159 -
vendor/golang.org/x/crypto/blowfish/cipher.go | 99 -
vendor/golang.org/x/crypto/blowfish/const.go | 199 -
.../x/crypto/chacha20/chacha_arm64.go | 16 -
.../x/crypto/chacha20/chacha_arm64.s | 307 -
.../x/crypto/chacha20/chacha_generic.go | 398 -
.../x/crypto/chacha20/chacha_noasm.go | 13 -
.../x/crypto/chacha20/chacha_ppc64x.go | 16 -
.../x/crypto/chacha20/chacha_ppc64x.s | 501 -
.../x/crypto/chacha20/chacha_s390x.go | 27 -
.../x/crypto/chacha20/chacha_s390x.s | 224 -
vendor/golang.org/x/crypto/chacha20/xor.go | 42 -
.../x/crypto/curve25519/curve25519.go | 93 -
.../x/crypto/internal/alias/alias.go | 31 -
.../x/crypto/internal/alias/alias_purego.go | 34 -
.../x/crypto/internal/poly1305/mac_noasm.go | 9 -
.../x/crypto/internal/poly1305/poly1305.go | 99 -
.../x/crypto/internal/poly1305/sum_amd64.s | 93 -
.../x/crypto/internal/poly1305/sum_asm.go | 47 -
.../x/crypto/internal/poly1305/sum_generic.go | 312 -
.../x/crypto/internal/poly1305/sum_loong64.s | 123 -
.../x/crypto/internal/poly1305/sum_ppc64x.s | 187 -
.../x/crypto/internal/poly1305/sum_s390x.go | 76 -
.../x/crypto/internal/poly1305/sum_s390x.s | 503 -
vendor/golang.org/x/crypto/ssh/buffer.go | 97 -
vendor/golang.org/x/crypto/ssh/certs.go | 624 -
vendor/golang.org/x/crypto/ssh/channel.go | 645 -
vendor/golang.org/x/crypto/ssh/cipher.go | 789 -
vendor/golang.org/x/crypto/ssh/client.go | 283 -
vendor/golang.org/x/crypto/ssh/client_auth.go | 788 -
vendor/golang.org/x/crypto/ssh/common.go | 727 -
vendor/golang.org/x/crypto/ssh/connection.go | 155 -
vendor/golang.org/x/crypto/ssh/doc.go | 34 -
vendor/golang.org/x/crypto/ssh/handshake.go | 847 -
.../ssh/internal/bcrypt_pbkdf/bcrypt_pbkdf.go | 93 -
vendor/golang.org/x/crypto/ssh/kex.go | 807 -
vendor/golang.org/x/crypto/ssh/keys.go | 1823 -
vendor/golang.org/x/crypto/ssh/mac.go | 84 -
vendor/golang.org/x/crypto/ssh/messages.go | 893 -
vendor/golang.org/x/crypto/ssh/mlkem.go | 168 -
vendor/golang.org/x/crypto/ssh/mux.go | 357 -
vendor/golang.org/x/crypto/ssh/server.go | 955 -
vendor/golang.org/x/crypto/ssh/session.go | 647 -
vendor/golang.org/x/crypto/ssh/ssh_gss.go | 145 -
vendor/golang.org/x/crypto/ssh/streamlocal.go | 116 -
vendor/golang.org/x/crypto/ssh/tcpip.go | 545 -
vendor/golang.org/x/crypto/ssh/transport.go | 377 -
vendor/golang.org/x/exp/LICENSE | 27 -
vendor/golang.org/x/exp/PATENTS | 22 -
.../x/exp/constraints/constraints.go | 50 -
vendor/golang.org/x/exp/slices/cmp.go | 44 -
vendor/golang.org/x/exp/slices/slices.go | 515 -
vendor/golang.org/x/exp/slices/sort.go | 197 -
.../golang.org/x/exp/slices/zsortanyfunc.go | 479 -
.../golang.org/x/exp/slices/zsortordered.go | 481 -
vendor/golang.org/x/mod/modfile/print.go | 2 +-
vendor/golang.org/x/mod/modfile/read.go | 2 +-
vendor/golang.org/x/mod/modfile/rule.go | 8 +-
vendor/golang.org/x/mod/module/module.go | 4 +-
vendor/golang.org/x/net/html/node.go | 1 +
.../golang.org/x/net/html/nodetype_string.go | 31 +
.../x/net/http2/client_priority_go126.go | 20 +
.../x/net/http2/client_priority_go127.go | 13 +
vendor/golang.org/x/net/http2/frame.go | 184 +-
vendor/golang.org/x/net/http2/http2.go | 2 +
vendor/golang.org/x/net/http2/server.go | 86 +-
vendor/golang.org/x/net/http2/transport.go | 7 +-
.../net/http2/writesched_priority_rfc7540.go | 4 +
.../net/http2/writesched_priority_rfc9218.go | 15 +
.../x/net/internal/httpsfv/httpsfv.go | 665 +
.../golang.org/x/net/internal/socks/client.go | 168 -
.../golang.org/x/net/internal/socks/socks.go | 317 -
.../x/net/internal/timeseries/timeseries.go | 525 -
vendor/golang.org/x/net/proxy/dial.go | 54 -
vendor/golang.org/x/net/proxy/direct.go | 31 -
vendor/golang.org/x/net/proxy/per_host.go | 153 -
vendor/golang.org/x/net/proxy/proxy.go | 149 -
vendor/golang.org/x/net/proxy/socks5.go | 42 -
vendor/golang.org/x/net/trace/events.go | 532 -
vendor/golang.org/x/net/trace/histogram.go | 365 -
vendor/golang.org/x/net/trace/trace.go | 1130 -
vendor/golang.org/x/net/websocket/client.go | 139 -
vendor/golang.org/x/net/websocket/dial.go | 29 -
vendor/golang.org/x/net/websocket/hybi.go | 582 -
vendor/golang.org/x/net/websocket/server.go | 113 -
.../golang.org/x/net/websocket/websocket.go | 449 -
.../x/sync/singleflight/singleflight.go | 214 -
vendor/golang.org/x/sys/cpu/asm_aix_ppc64.s | 17 -
.../golang.org/x/sys/cpu/asm_darwin_x86_gc.s | 17 -
vendor/golang.org/x/sys/cpu/byteorder.go | 66 -
vendor/golang.org/x/sys/cpu/cpu.go | 338 -
vendor/golang.org/x/sys/cpu/cpu_aix.go | 33 -
vendor/golang.org/x/sys/cpu/cpu_arm.go | 73 -
vendor/golang.org/x/sys/cpu/cpu_arm64.go | 194 -
vendor/golang.org/x/sys/cpu/cpu_arm64.s | 35 -
vendor/golang.org/x/sys/cpu/cpu_darwin_x86.go | 61 -
vendor/golang.org/x/sys/cpu/cpu_gc_arm64.go | 12 -
vendor/golang.org/x/sys/cpu/cpu_gc_s390x.go | 21 -
vendor/golang.org/x/sys/cpu/cpu_gc_x86.go | 15 -
vendor/golang.org/x/sys/cpu/cpu_gc_x86.s | 26 -
.../golang.org/x/sys/cpu/cpu_gccgo_arm64.go | 11 -
.../golang.org/x/sys/cpu/cpu_gccgo_s390x.go | 22 -
vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.c | 37 -
vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.go | 25 -
vendor/golang.org/x/sys/cpu/cpu_linux.go | 15 -
vendor/golang.org/x/sys/cpu/cpu_linux_arm.go | 39 -
.../golang.org/x/sys/cpu/cpu_linux_arm64.go | 120 -
.../golang.org/x/sys/cpu/cpu_linux_loong64.go | 22 -
.../golang.org/x/sys/cpu/cpu_linux_mips64x.go | 22 -
.../golang.org/x/sys/cpu/cpu_linux_noinit.go | 9 -
.../golang.org/x/sys/cpu/cpu_linux_ppc64x.go | 30 -
.../golang.org/x/sys/cpu/cpu_linux_riscv64.go | 160 -
.../golang.org/x/sys/cpu/cpu_linux_s390x.go | 40 -
vendor/golang.org/x/sys/cpu/cpu_loong64.go | 50 -
vendor/golang.org/x/sys/cpu/cpu_loong64.s | 13 -
vendor/golang.org/x/sys/cpu/cpu_mips64x.go | 15 -
vendor/golang.org/x/sys/cpu/cpu_mipsx.go | 11 -
.../golang.org/x/sys/cpu/cpu_netbsd_arm64.go | 173 -
.../golang.org/x/sys/cpu/cpu_openbsd_arm64.go | 65 -
.../golang.org/x/sys/cpu/cpu_openbsd_arm64.s | 11 -
vendor/golang.org/x/sys/cpu/cpu_other_arm.go | 9 -
.../golang.org/x/sys/cpu/cpu_other_arm64.go | 9 -
.../golang.org/x/sys/cpu/cpu_other_mips64x.go | 11 -
.../golang.org/x/sys/cpu/cpu_other_ppc64x.go | 12 -
.../golang.org/x/sys/cpu/cpu_other_riscv64.go | 11 -
vendor/golang.org/x/sys/cpu/cpu_other_x86.go | 11 -
vendor/golang.org/x/sys/cpu/cpu_ppc64x.go | 16 -
vendor/golang.org/x/sys/cpu/cpu_riscv64.go | 32 -
vendor/golang.org/x/sys/cpu/cpu_s390x.go | 172 -
vendor/golang.org/x/sys/cpu/cpu_s390x.s | 57 -
vendor/golang.org/x/sys/cpu/cpu_wasm.go | 17 -
vendor/golang.org/x/sys/cpu/cpu_x86.go | 236 -
vendor/golang.org/x/sys/cpu/cpu_zos.go | 10 -
vendor/golang.org/x/sys/cpu/cpu_zos_s390x.go | 25 -
vendor/golang.org/x/sys/cpu/endian_big.go | 10 -
vendor/golang.org/x/sys/cpu/endian_little.go | 10 -
vendor/golang.org/x/sys/cpu/hwcap_linux.go | 71 -
vendor/golang.org/x/sys/cpu/parse.go | 43 -
.../x/sys/cpu/proc_cpuinfo_linux.go | 53 -
vendor/golang.org/x/sys/cpu/runtime_auxv.go | 16 -
.../x/sys/cpu/runtime_auxv_go121.go | 18 -
.../golang.org/x/sys/cpu/syscall_aix_gccgo.go | 26 -
.../x/sys/cpu/syscall_aix_ppc64_gc.go | 35 -
.../x/sys/cpu/syscall_darwin_x86_gc.go | 98 -
vendor/golang.org/x/sys/unix/ioctl_signed.go | 11 +-
.../golang.org/x/sys/unix/ioctl_unsigned.go | 11 +-
.../golang.org/x/sys/unix/syscall_solaris.go | 8 -
vendor/golang.org/x/sys/unix/syscall_unix.go | 10 +-
.../golang.org/x/sys/windows/registry/key.go | 214 -
.../x/sys/windows/registry/mksyscall.go | 9 -
.../x/sys/windows/registry/syscall.go | 32 -
.../x/sys/windows/registry/value.go | 390 -
.../sys/windows/registry/zsyscall_windows.go | 117 -
.../x/sys/windows/syscall_windows.go | 1 +
.../golang.org/x/sys/windows/types_windows.go | 85 +
.../x/sys/windows/zsyscall_windows.go | 7 +
vendor/golang.org/x/term/terminal.go | 28 +-
.../golang.org/x/text/cases/tables10.0.0.go | 2255 -
.../golang.org/x/text/cases/tables11.0.0.go | 2316 -
.../golang.org/x/text/cases/tables12.0.0.go | 2359 -
.../golang.org/x/text/cases/tables15.0.0.go | 2 +-
.../{tables13.0.0.go => tables17.0.0.go} | 1473 +-
vendor/golang.org/x/text/cases/tables9.0.0.go | 2215 -
.../x/text/feature/plural/common.go | 70 -
.../x/text/feature/plural/message.go | 244 -
.../x/text/feature/plural/plural.go | 262 -
.../x/text/feature/plural/tables.go | 552 -
.../x/text/internal/catmsg/catmsg.go | 417 -
.../x/text/internal/catmsg/codec.go | 407 -
.../x/text/internal/catmsg/varint.go | 62 -
.../x/text/internal/format/format.go | 41 -
.../x/text/internal/format/parser.go | 358 -
.../x/text/internal/number/common.go | 55 -
.../x/text/internal/number/decimal.go | 500 -
.../x/text/internal/number/format.go | 533 -
.../x/text/internal/number/number.go | 152 -
.../x/text/internal/number/pattern.go | 485 -
.../internal/number/roundingmode_string.go | 30 -
.../x/text/internal/number/tables.go | 1219 -
.../x/text/internal/stringset/set.go | 86 -
vendor/golang.org/x/text/message/catalog.go | 36 -
.../x/text/message/catalog/catalog.go | 365 -
.../golang.org/x/text/message/catalog/dict.go | 129 -
.../golang.org/x/text/message/catalog/go19.go | 15 -
.../x/text/message/catalog/gopre19.go | 23 -
vendor/golang.org/x/text/message/doc.go | 99 -
vendor/golang.org/x/text/message/format.go | 510 -
vendor/golang.org/x/text/message/message.go | 192 -
vendor/golang.org/x/text/message/print.go | 984 -
.../x/text/secure/bidirule/bidirule.go | 4 +
.../x/text/secure/bidirule/bidirule10.0.0.go | 11 -
.../x/text/secure/bidirule/bidirule9.0.0.go | 14 -
.../x/text/unicode/bidi/tables10.0.0.go | 1815 -
.../x/text/unicode/bidi/tables11.0.0.go | 1887 -
.../x/text/unicode/bidi/tables12.0.0.go | 1923 -
.../x/text/unicode/bidi/tables13.0.0.go | 1955 -
.../x/text/unicode/bidi/tables15.0.0.go | 2 +-
.../x/text/unicode/bidi/tables17.0.0.go | 2135 +
.../x/text/unicode/bidi/tables9.0.0.go | 1781 -
.../x/text/unicode/norm/forminfo.go | 26 +-
.../x/text/unicode/norm/tables10.0.0.go | 7657 -
.../x/text/unicode/norm/tables11.0.0.go | 7693 -
.../x/text/unicode/norm/tables12.0.0.go | 7710 -
.../x/text/unicode/norm/tables15.0.0.go | 2820 +-
.../norm/{tables13.0.0.go => tables17.0.0.go} | 6716 +-
.../x/text/unicode/norm/tables9.0.0.go | 7637 -
.../x/tools/go/ast/astutil/imports.go | 19 +-
.../x/tools/go/ast/inspector/cursor.go | 44 +-
.../x/tools/go/ast/inspector/inspector.go | 4 +-
.../x/tools/go/ast/inspector/iter.go | 36 +-
.../x/tools/go/packages/packages.go | 56 +-
.../x/tools/go/types/objectpath/objectpath.go | 16 +-
.../x/tools/go/types/typeutil/callee.go | 1 +
.../x/tools/internal/aliases/aliases.go | 30 +-
.../x/tools/internal/aliases/aliases_go122.go | 80 -
.../x/tools/internal/event/core/event.go | 23 +-
.../x/tools/internal/event/core/export.go | 15 +-
.../x/tools/internal/event/keys/keys.go | 439 +-
.../x/tools/internal/event/label/label.go | 23 +-
.../x/tools/internal/gcimporter/iexport.go | 11 +-
.../x/tools/internal/gcimporter/iimport.go | 4 +-
.../tools/internal/gcimporter/ureader_yes.go | 4 +-
.../x/tools/internal/imports/sortimports.go | 23 +-
.../x/tools/internal/modindex/index.go | 11 +-
.../x/tools/internal/modindex/lookup.go | 8 +-
.../x/tools/internal/stdlib/deps.go | 630 +-
.../x/tools/internal/stdlib/manifest.go | 615 +-
.../x/tools/internal/stdlib/stdlib.go | 2 +-
.../x/tools/internal/typeparams/free.go | 4 +-
.../internal/typesinternal/classify_call.go | 2 +-
.../x/tools/internal/typesinternal/types.go | 7 +-
.../x/tools/internal/versions/features.go | 1 +
.../api/expr/v1alpha1/checked.pb.go | 1664 -
.../googleapis/api/expr/v1alpha1/eval.pb.go | 580 -
.../api/expr/v1alpha1/explain.pb.go | 275 -
.../googleapis/api/expr/v1alpha1/syntax.pb.go | 2040 -
.../googleapis/api/expr/v1alpha1/value.pb.go | 721 -
.../googleapis/api/httpbody/httpbody.pb.go | 235 -
.../rpc/errdetails/error_details.pb.go | 1473 -
.../googleapis/rpc/status/status.pb.go | 203 -
vendor/google.golang.org/grpc/AUTHORS | 1 -
.../google.golang.org/grpc/CODE-OF-CONDUCT.md | 3 -
vendor/google.golang.org/grpc/CONTRIBUTING.md | 159 -
vendor/google.golang.org/grpc/GOVERNANCE.md | 1 -
vendor/google.golang.org/grpc/MAINTAINERS.md | 36 -
vendor/google.golang.org/grpc/Makefile | 49 -
vendor/google.golang.org/grpc/NOTICE.txt | 13 -
vendor/google.golang.org/grpc/README.md | 108 -
vendor/google.golang.org/grpc/SECURITY.md | 3 -
.../grpc/attributes/attributes.go | 141 -
vendor/google.golang.org/grpc/backoff.go | 61 -
.../google.golang.org/grpc/backoff/backoff.go | 52 -
.../grpc/balancer/balancer.go | 392 -
.../grpc/balancer/base/balancer.go | 262 -
.../grpc/balancer/base/base.go | 71 -
.../grpc/balancer/conn_state_evaluator.go | 74 -
.../endpointsharding/endpointsharding.go | 389 -
.../grpc/balancer/grpclb/state/state.go | 51 -
.../balancer/pickfirst/internal/internal.go | 37 -
.../grpc/balancer/pickfirst/pickfirst.go | 961 -
.../grpc/balancer/roundrobin/roundrobin.go | 72 -
.../grpc/balancer/subconn.go | 120 -
.../grpc/balancer_wrapper.go | 517 -
.../grpc_binarylog_v1/binarylog.pb.go | 1004 -
vendor/google.golang.org/grpc/call.go | 74 -
.../grpc/channelz/channelz.go | 36 -
vendor/google.golang.org/grpc/clientconn.go | 1951 -
vendor/google.golang.org/grpc/codec.go | 105 -
.../grpc/codes/code_string.go | 111 -
vendor/google.golang.org/grpc/codes/codes.go | 250 -
.../grpc/connectivity/connectivity.go | 94 -
.../grpc/credentials/credentials.go | 337 -
.../grpc/credentials/insecure/insecure.go | 104 -
.../google.golang.org/grpc/credentials/tls.go | 324 -
vendor/google.golang.org/grpc/dialoptions.go | 797 -
vendor/google.golang.org/grpc/doc.go | 26 -
.../grpc/encoding/encoding.go | 147 -
.../grpc/encoding/encoding_v2.go | 81 -
.../grpc/encoding/gzip/gzip.go | 120 -
.../grpc/encoding/internal/internal.go | 28 -
.../grpc/encoding/proto/proto.go | 112 -
.../grpc/experimental/stats/metricregistry.go | 342 -
.../grpc/experimental/stats/metrics.go | 131 -
.../grpc/grpclog/component.go | 115 -
.../google.golang.org/grpc/grpclog/grpclog.go | 186 -
.../grpc/grpclog/internal/grpclog.go | 26 -
.../grpc/grpclog/internal/logger.go | 87 -
.../grpc/grpclog/internal/loggerv2.go | 267 -
.../google.golang.org/grpc/grpclog/logger.go | 34 -
.../grpc/grpclog/loggerv2.go | 97 -
.../grpc/health/grpc_health_v1/health.pb.go | 350 -
.../health/grpc_health_v1/health_grpc.pb.go | 290 -
vendor/google.golang.org/grpc/interceptor.go | 108 -
.../grpc/internal/backoff/backoff.go | 109 -
.../balancer/gracefulswitch/config.go | 84 -
.../balancer/gracefulswitch/gracefulswitch.go | 421 -
.../grpc/internal/balancer/weight/weight.go | 66 -
.../grpc/internal/balancerload/load.go | 46 -
.../grpc/internal/binarylog/binarylog.go | 192 -
.../internal/binarylog/binarylog_testutil.go | 42 -
.../grpc/internal/binarylog/env_config.go | 208 -
.../grpc/internal/binarylog/method_logger.go | 446 -
.../grpc/internal/binarylog/sink.go | 170 -
.../grpc/internal/buffer/unbounded.go | 117 -
.../grpc/internal/channelz/channel.go | 270 -
.../grpc/internal/channelz/channelmap.go | 395 -
.../grpc/internal/channelz/funcs.go | 230 -
.../grpc/internal/channelz/logging.go | 75 -
.../grpc/internal/channelz/server.go | 121 -
.../grpc/internal/channelz/socket.go | 137 -
.../grpc/internal/channelz/subchannel.go | 153 -
.../grpc/internal/channelz/syscall_linux.go | 65 -
.../internal/channelz/syscall_nonlinux.go | 47 -
.../grpc/internal/channelz/trace.go | 213 -
.../grpc/internal/credentials/credentials.go | 35 -
.../grpc/internal/credentials/spiffe.go | 75 -
.../grpc/internal/credentials/syscallconn.go | 58 -
.../grpc/internal/credentials/util.go | 52 -
.../grpc/internal/envconfig/envconfig.go | 130 -
.../grpc/internal/envconfig/observability.go | 42 -
.../grpc/internal/envconfig/xds.go | 82 -
.../grpc/internal/experimental.go | 35 -
.../grpc/internal/grpclog/prefix_logger.go | 79 -
.../internal/grpcsync/callback_serializer.go | 98 -
.../grpc/internal/grpcsync/event.go | 58 -
.../grpc/internal/grpcsync/pubsub.go | 121 -
.../grpc/internal/grpcutil/compressor.go | 42 -
.../grpc/internal/grpcutil/encode_duration.go | 63 -
.../grpc/internal/grpcutil/grpcutil.go | 20 -
.../grpc/internal/grpcutil/metadata.go | 40 -
.../grpc/internal/grpcutil/method.go | 88 -
.../grpc/internal/grpcutil/regex.go | 31 -
.../grpc/internal/idle/idle.go | 289 -
.../grpc/internal/internal.go | 300 -
.../grpc/internal/metadata/metadata.go | 144 -
.../grpc/internal/pretty/pretty.go | 73 -
.../proxyattributes/proxyattributes.go | 54 -
.../grpc/internal/resolver/config_selector.go | 167 -
.../delegatingresolver/delegatingresolver.go | 477 -
.../internal/resolver/dns/dns_resolver.go | 472 -
.../resolver/dns/internal/internal.go | 77 -
.../resolver/passthrough/passthrough.go | 64 -
.../grpc/internal/resolver/unix/unix.go | 78 -
.../grpc/internal/serviceconfig/duration.go | 130 -
.../internal/serviceconfig/serviceconfig.go | 180 -
.../grpc/internal/stats/labels.go | 42 -
.../internal/stats/metrics_recorder_list.go | 175 -
.../grpc/internal/stats/stats.go | 70 -
.../grpc/internal/status/status.go | 246 -
.../grpc/internal/syscall/syscall_linux.go | 112 -
.../grpc/internal/syscall/syscall_nonlinux.go | 77 -
.../grpc/internal/tcp_keepalive_others.go | 29 -
.../grpc/internal/tcp_keepalive_unix.go | 54 -
.../grpc/internal/tcp_keepalive_windows.go | 54 -
.../grpc/internal/transport/bdp_estimator.go | 141 -
.../grpc/internal/transport/client_stream.go | 156 -
.../grpc/internal/transport/controlbuf.go | 1057 -
.../grpc/internal/transport/defaults.go | 55 -
.../grpc/internal/transport/flowcontrol.go | 213 -
.../grpc/internal/transport/handler_server.go | 506 -
.../grpc/internal/transport/http2_client.go | 1847 -
.../grpc/internal/transport/http2_server.go | 1498 -
.../grpc/internal/transport/http_util.go | 624 -
.../grpc/internal/transport/logging.go | 40 -
.../transport/networktype/networktype.go | 46 -
.../grpc/internal/transport/proxy.go | 116 -
.../grpc/internal/transport/server_stream.go | 189 -
.../grpc/internal/transport/transport.go | 754 -
.../grpc/keepalive/keepalive.go | 99 -
.../google.golang.org/grpc/mem/buffer_pool.go | 205 -
.../grpc/mem/buffer_slice.go | 345 -
vendor/google.golang.org/grpc/mem/buffers.go | 277 -
.../grpc/metadata/metadata.go | 295 -
vendor/google.golang.org/grpc/peer/peer.go | 83 -
.../google.golang.org/grpc/picker_wrapper.go | 219 -
vendor/google.golang.org/grpc/preloader.go | 82 -
.../grpc/resolver/dns/dns_resolver.go | 60 -
vendor/google.golang.org/grpc/resolver/map.go | 247 -
.../grpc/resolver/resolver.go | 359 -
.../grpc/resolver_wrapper.go | 222 -
vendor/google.golang.org/grpc/rpc_util.go | 1167 -
vendor/google.golang.org/grpc/server.go | 2258 -
.../google.golang.org/grpc/service_config.go | 360 -
.../grpc/serviceconfig/serviceconfig.go | 44 -
.../google.golang.org/grpc/stats/handlers.go | 72 -
.../google.golang.org/grpc/stats/metrics.go | 81 -
vendor/google.golang.org/grpc/stats/stats.go | 318 -
.../google.golang.org/grpc/status/status.go | 162 -
vendor/google.golang.org/grpc/stream.go | 1903 -
.../grpc/stream_interfaces.go | 238 -
vendor/google.golang.org/grpc/tap/tap.go | 62 -
vendor/google.golang.org/grpc/trace.go | 143 -
.../google.golang.org/grpc/trace_notrace.go | 52 -
.../google.golang.org/grpc/trace_withtrace.go | 39 -
vendor/google.golang.org/grpc/version.go | 22 -
.../protobuf/encoding/protojson/decode.go | 680 -
.../protobuf/encoding/protojson/doc.go | 11 -
.../protobuf/encoding/protojson/encode.go | 380 -
.../encoding/protojson/well_known_types.go | 880 -
.../internal/editionssupport/editions.go | 18 -
.../protobuf/internal/encoding/json/decode.go | 340 -
.../internal/encoding/json/decode_number.go | 254 -
.../internal/encoding/json/decode_string.go | 91 -
.../internal/encoding/json/decode_token.go | 192 -
.../protobuf/internal/encoding/json/encode.go | 278 -
.../protobuf/protoadapt/convert.go | 31 -
.../protobuf/reflect/protodesc/desc.go | 308 -
.../protobuf/reflect/protodesc/desc_init.go | 290 -
.../reflect/protodesc/desc_resolve.go | 291 -
.../reflect/protodesc/desc_validate.go | 359 -
.../protobuf/reflect/protodesc/editions.go | 181 -
.../protobuf/reflect/protodesc/proto.go | 298 -
.../protobuf/types/dynamicpb/dynamic.go | 718 -
.../protobuf/types/dynamicpb/types.go | 180 -
.../types/gofeaturespb/go_features.pb.go | 311 -
.../types/known/durationpb/duration.pb.go | 346 -
.../protobuf/types/known/emptypb/empty.pb.go | 142 -
.../types/known/fieldmaskpb/field_mask.pb.go | 560 -
.../types/known/structpb/struct.pb.go | 767 -
.../types/known/wrapperspb/wrappers.pb.go | 648 -
.../pkg/features/OWNERS | 4 -
.../pkg/features/kube_features.go | 79 -
.../pkg/api/validation/path/name.go | 68 -
.../apimachinery/pkg/util/httpstream/doc.go | 19 -
.../pkg/util/httpstream/httpstream.go | 201 -
.../pkg/util/httpstream/spdy/connection.go | 204 -
.../pkg/util/httpstream/spdy/roundtripper.go | 399 -
.../pkg/util/httpstream/spdy/upgrade.go | 120 -
.../pkg/util/httpstream/wsstream/conn.go | 452 -
.../pkg/util/httpstream/wsstream/doc.go | 69 -
.../pkg/util/httpstream/wsstream/stream.go | 177 -
.../pkg/util/portforward/constants.go | 24 -
.../apimachinery/pkg/util/proxy/dial.go | 122 -
.../k8s.io/apimachinery/pkg/util/proxy/doc.go | 18 -
.../apimachinery/pkg/util/proxy/transport.go | 272 -
.../pkg/util/proxy/upgradeaware.go | 558 -
.../pkg/util/remotecommand/constants.go | 67 -
.../third_party/forked/golang/netutil/addr.go | 28 -
.../apiserver/pkg/admission/attributes.go | 211 -
.../k8s.io/apiserver/pkg/admission/audit.go | 102 -
.../k8s.io/apiserver/pkg/admission/chain.go | 70 -
.../k8s.io/apiserver/pkg/admission/config.go | 174 -
.../configuration/configuration_manager.go | 166 -
.../configuration/mutating_webhook_manager.go | 157 -
.../validating_webhook_manager.go | 155 -
.../apiserver/pkg/admission/conversion.go | 136 -
.../apiserver/pkg/admission/decorator.go | 39 -
.../k8s.io/apiserver/pkg/admission/errors.go | 72 -
.../k8s.io/apiserver/pkg/admission/handler.go | 79 -
.../pkg/admission/initializer/initializer.go | 102 -
.../pkg/admission/initializer/interfaces.go | 106 -
.../apiserver/pkg/admission/interfaces.go | 172 -
.../pkg/admission/metrics/metrics.go | 361 -
.../apiserver/pkg/admission/plugin/cel/OWNERS | 10 -
.../pkg/admission/plugin/cel/activation.go | 190 -
.../pkg/admission/plugin/cel/compile.go | 301 -
.../pkg/admission/plugin/cel/composition.go | 276 -
.../pkg/admission/plugin/cel/condition.go | 216 -
.../pkg/admission/plugin/cel/interface.go | 120 -
.../pkg/admission/plugin/cel/mutation.go | 73 -
.../pkg/admission/plugin/webhook/accessors.go | 376 -
.../config/apis/webhookadmission/doc.go | 19 -
.../config/apis/webhookadmission/register.go | 53 -
.../config/apis/webhookadmission/types.go | 29 -
.../config/apis/webhookadmission/v1/doc.go | 23 -
.../apis/webhookadmission/v1/register.go | 50 -
.../config/apis/webhookadmission/v1/types.go | 29 -
.../v1/zz_generated.conversion.go | 68 -
.../v1/zz_generated.deepcopy.go | 51 -
.../v1/zz_generated.defaults.go | 33 -
.../apis/webhookadmission/v1alpha1/doc.go | 23 -
.../webhookadmission/v1alpha1/register.go | 50 -
.../apis/webhookadmission/v1alpha1/types.go | 29 -
.../v1alpha1/zz_generated.conversion.go | 68 -
.../v1alpha1/zz_generated.deepcopy.go | 51 -
.../v1alpha1/zz_generated.defaults.go | 33 -
.../webhookadmission/zz_generated.deepcopy.go | 51 -
.../plugin/webhook/config/kubeconfig.go | 70 -
.../admission/plugin/webhook/errors/doc.go | 18 -
.../plugin/webhook/errors/statuserror.go | 63 -
.../plugin/webhook/generic/interfaces.go | 53 -
.../plugin/webhook/generic/webhook.go | 262 -
.../webhook/matchconditions/interface.go | 37 -
.../plugin/webhook/matchconditions/matcher.go | 144 -
.../plugin/webhook/mutating/dispatcher.go | 496 -
.../admission/plugin/webhook/mutating/doc.go | 19 -
.../plugin/webhook/mutating/plugin.go | 76 -
.../webhook/mutating/reinvocationcontext.go | 68 -
.../webhook/predicates/namespace/doc.go | 20 -
.../webhook/predicates/namespace/matcher.go | 136 -
.../plugin/webhook/predicates/object/doc.go | 20 -
.../webhook/predicates/object/matcher.go | 61 -
.../plugin/webhook/predicates/rules/rules.go | 129 -
.../plugin/webhook/request/admissionreview.go | 284 -
.../admission/plugin/webhook/request/doc.go | 18 -
.../k8s.io/apiserver/pkg/admission/plugins.go | 207 -
.../apiserver/pkg/admission/reinvocation.go | 64 -
vendor/k8s.io/apiserver/pkg/admission/util.go | 47 -
.../apiserver/pkg/apis/apiserver/doc.go | 21 -
.../pkg/apis/apiserver/install/install.go | 43 -
.../apiserver/pkg/apis/apiserver/register.go | 53 -
.../apiserver/pkg/apis/apiserver/types.go | 432 -
.../pkg/apis/apiserver/types_encryption.go | 149 -
.../pkg/apis/apiserver/v1/defaults.go | 66 -
.../apiserver/pkg/apis/apiserver/v1/doc.go | 23 -
.../pkg/apis/apiserver/v1/register.go | 59 -
.../apiserver/pkg/apis/apiserver/v1/types.go | 565 -
.../pkg/apis/apiserver/v1/types_encryption.go | 149 -
.../apiserver/v1/zz_generated.conversion.go | 1031 -
.../apiserver/v1/zz_generated.deepcopy.go | 669 -
.../apiserver/v1/zz_generated.defaults.go | 56 -
.../pkg/apis/apiserver/v1alpha1/conversion.go | 32 -
.../pkg/apis/apiserver/v1alpha1/defaults.go | 43 -
.../pkg/apis/apiserver/v1alpha1/doc.go | 24 -
.../pkg/apis/apiserver/v1alpha1/register.go | 63 -
.../pkg/apis/apiserver/v1alpha1/types.go | 664 -
.../v1alpha1/zz_generated.conversion.go | 1014 -
.../v1alpha1/zz_generated.deepcopy.go | 616 -
.../v1alpha1/zz_generated.defaults.go | 43 -
.../pkg/apis/apiserver/v1beta1/conversion.go | 32 -
.../pkg/apis/apiserver/v1beta1/defaults.go | 43 -
.../pkg/apis/apiserver/v1beta1/doc.go | 23 -
.../pkg/apis/apiserver/v1beta1/register.go | 61 -
.../pkg/apis/apiserver/v1beta1/types.go | 635 -
.../v1beta1/zz_generated.conversion.go | 950 -
.../v1beta1/zz_generated.deepcopy.go | 563 -
.../v1beta1/zz_generated.defaults.go | 43 -
.../apis/apiserver/zz_generated.deepcopy.go | 803 -
vendor/k8s.io/apiserver/pkg/apis/audit/OWNERS | 8 -
vendor/k8s.io/apiserver/pkg/apis/audit/doc.go | 20 -
.../apiserver/pkg/apis/audit/helpers.go | 38 -
.../apiserver/pkg/apis/audit/register.go | 53 -
.../k8s.io/apiserver/pkg/apis/audit/types.go | 323 -
.../k8s.io/apiserver/pkg/apis/audit/v1/doc.go | 26 -
.../pkg/apis/audit/v1/generated.pb.go | 3124 -
.../pkg/apis/audit/v1/generated.proto | 298 -
.../audit/v1/generated.protomessage.pb.go | 38 -
.../apiserver/pkg/apis/audit/v1/register.go | 58 -
.../apiserver/pkg/apis/audit/v1/types.go | 328 -
.../apis/audit/v1/zz_generated.conversion.go | 359 -
.../apis/audit/v1/zz_generated.deepcopy.go | 318 -
.../apis/audit/v1/zz_generated.defaults.go | 33 -
.../apis/audit/v1/zz_generated.model_name.go | 62 -
.../pkg/apis/audit/zz_generated.deepcopy.go | 318 -
.../k8s.io/apiserver/pkg/apis/cel/config.go | 45 -
vendor/k8s.io/apiserver/pkg/audit/OWNERS | 8 -
vendor/k8s.io/apiserver/pkg/audit/context.go | 421 -
.../k8s.io/apiserver/pkg/audit/evaluator.go | 45 -
vendor/k8s.io/apiserver/pkg/audit/format.go | 73 -
vendor/k8s.io/apiserver/pkg/audit/metrics.go | 111 -
vendor/k8s.io/apiserver/pkg/audit/request.go | 297 -
vendor/k8s.io/apiserver/pkg/audit/scheme.go | 38 -
vendor/k8s.io/apiserver/pkg/audit/types.go | 46 -
vendor/k8s.io/apiserver/pkg/audit/union.go | 71 -
.../pkg/authentication/serviceaccount/util.go | 184 -
.../apiserver/pkg/authentication/user/doc.go | 19 -
.../apiserver/pkg/authentication/user/user.go | 88 -
.../authorization/authorizer/interfaces.go | 198 -
.../pkg/authorization/authorizer/rule.go | 73 -
vendor/k8s.io/apiserver/pkg/cel/OWNERS | 11 -
vendor/k8s.io/apiserver/pkg/cel/cidr.go | 87 -
.../apiserver/pkg/cel/common/adaptor.go | 106 -
.../apiserver/pkg/cel/common/equality.go | 334 -
.../apiserver/pkg/cel/common/maplist.go | 177 -
.../apiserver/pkg/cel/common/schemas.go | 288 -
.../apiserver/pkg/cel/common/typeprovider.go | 117 -
.../apiserver/pkg/cel/common/valuesreflect.go | 678 -
.../pkg/cel/common/valuesunstructured.go | 723 -
.../apiserver/pkg/cel/environment/base.go | 279 -
.../pkg/cel/environment/environment.go | 298 -
vendor/k8s.io/apiserver/pkg/cel/errors.go | 124 -
vendor/k8s.io/apiserver/pkg/cel/escaping.go | 170 -
vendor/k8s.io/apiserver/pkg/cel/format.go | 73 -
vendor/k8s.io/apiserver/pkg/cel/ip.go | 86 -
vendor/k8s.io/apiserver/pkg/cel/lazy/lazy.go | 191 -
.../k8s.io/apiserver/pkg/cel/library/authz.go | 790 -
.../k8s.io/apiserver/pkg/cel/library/cidr.go | 292 -
.../k8s.io/apiserver/pkg/cel/library/cost.go | 640 -
.../apiserver/pkg/cel/library/format.go | 285 -
vendor/k8s.io/apiserver/pkg/cel/library/ip.go | 335 -
.../apiserver/pkg/cel/library/jsonpatch.go | 89 -
.../apiserver/pkg/cel/library/libraries.go | 61 -
.../k8s.io/apiserver/pkg/cel/library/lists.go | 324 -
.../apiserver/pkg/cel/library/quantity.go | 386 -
.../k8s.io/apiserver/pkg/cel/library/regex.go | 201 -
.../apiserver/pkg/cel/library/semverlib.go | 343 -
.../k8s.io/apiserver/pkg/cel/library/test.go | 83 -
.../k8s.io/apiserver/pkg/cel/library/urls.go | 248 -
vendor/k8s.io/apiserver/pkg/cel/limits.go | 54 -
.../pkg/cel/mutation/dynamic/objects.go | 249 -
.../apiserver/pkg/cel/mutation/jsonpatch.go | 185 -
.../pkg/cel/mutation/typeresolver.go | 47 -
.../pkg/cel/openapi/resolver/combined.go | 45 -
.../pkg/cel/openapi/resolver/definitions.go | 112 -
.../pkg/cel/openapi/resolver/discovery.go | 104 -
.../pkg/cel/openapi/resolver/refs.go | 122 -
.../pkg/cel/openapi/resolver/resolver.go | 39 -
vendor/k8s.io/apiserver/pkg/cel/quantity.go | 76 -
vendor/k8s.io/apiserver/pkg/cel/semver.go | 73 -
vendor/k8s.io/apiserver/pkg/cel/types.go | 598 -
vendor/k8s.io/apiserver/pkg/cel/url.go | 80 -
vendor/k8s.io/apiserver/pkg/cel/value.go | 769 -
.../pkg/endpoints/openapi/openapi.go | 175 -
.../apiserver/pkg/endpoints/request/OWNERS | 4 -
.../pkg/endpoints/request/context.go | 78 -
.../apiserver/pkg/endpoints/request/doc.go | 20 -
.../pkg/endpoints/request/methods.go | 37 -
.../pkg/endpoints/request/received_time.go | 45 -
.../pkg/endpoints/request/requestinfo.go | 305 -
.../request/server_shutdown_signal.go | 55 -
.../pkg/endpoints/request/webhook_duration.go | 343 -
vendor/k8s.io/apiserver/pkg/features/OWNERS | 4 -
.../apiserver/pkg/features/kube_features.go | 510 -
vendor/k8s.io/apiserver/pkg/quota/v1/OWNERS | 13 -
.../apiserver/pkg/quota/v1/interfaces.go | 88 -
.../apiserver/pkg/quota/v1/resources.go | 304 -
.../pkg/server/egressselector/config.go | 247 -
.../server/egressselector/egress_selector.go | 414 -
.../server/egressselector/metrics/metrics.go | 133 -
.../pkg/util/compatibility/registry.go | 53 -
.../pkg/util/compatibility/version.go | 65 -
.../pkg/util/webhook/authentication.go | 276 -
.../apiserver/pkg/util/webhook/client.go | 257 -
.../apiserver/pkg/util/webhook/error.go | 48 -
.../apiserver/pkg/util/webhook/gencerts.sh | 148 -
.../apiserver/pkg/util/webhook/metrics.go | 52 -
.../pkg/util/webhook/serviceresolver.go | 48 -
.../apiserver/pkg/util/webhook/validation.go | 115 -
.../apiserver/pkg/util/webhook/webhook.go | 171 -
.../x509metrics/server_cert_deprecations.go | 225 -
.../k8s.io/apiserver/pkg/warning/context.go | 60 -
.../k8s.io/client-go/tools/portforward/OWNERS | 10 -
.../k8s.io/client-go/tools/portforward/doc.go | 19 -
.../tools/portforward/fallback_dialer.go | 57 -
.../tools/portforward/portforward.go | 454 -
.../tools/portforward/tunneling_connection.go | 158 -
.../tools/portforward/tunneling_dialer.go | 93 -
.../client-go/tools/remotecommand/OWNERS | 10 -
.../client-go/tools/remotecommand/doc.go | 20 -
.../tools/remotecommand/errorstream.go | 54 -
.../client-go/tools/remotecommand/fallback.go | 60 -
.../client-go/tools/remotecommand/reader.go | 41 -
.../tools/remotecommand/remotecommand.go | 58 -
.../client-go/tools/remotecommand/resize.go | 34 -
.../client-go/tools/remotecommand/spdy.go | 175 -
.../client-go/tools/remotecommand/v1.go | 164 -
.../client-go/tools/remotecommand/v2.go | 204 -
.../client-go/tools/remotecommand/v3.go | 116 -
.../client-go/tools/remotecommand/v4.go | 124 -
.../client-go/tools/remotecommand/v5.go | 35 -
.../tools/remotecommand/websocket.go | 530 -
.../client-go/tools/watch/informerwatcher.go | 166 -
.../client-go/tools/watch/retrywatcher.go | 327 -
vendor/k8s.io/client-go/tools/watch/until.go | 168 -
.../k8s.io/client-go/transport/spdy/spdy.go | 107 -
.../transport/websocket/roundtripper.go | 224 -
vendor/k8s.io/client-go/util/exec/exec.go | 52 -
.../component-base/compatibility/OWNERS | 14 -
.../component-base/compatibility/registry.go | 491 -
.../component-base/compatibility/version.go | 239 -
vendor/k8s.io/component-base/logs/OWNERS | 12 -
.../k8s.io/component-base/logs/api/v1/doc.go | 33 -
.../logs/api/v1/kube_features.go | 82 -
.../component-base/logs/api/v1/options.go | 452 -
.../logs/api/v1/options_no_slog.go | 24 -
.../logs/api/v1/options_slog.go | 37 -
.../component-base/logs/api/v1/pflags.go | 113 -
.../component-base/logs/api/v1/registry.go | 135 -
.../k8s.io/component-base/logs/api/v1/text.go | 142 -
.../component-base/logs/api/v1/types.go | 146 -
.../logs/api/v1/zz_generated.deepcopy.go | 167 -
.../logs/api/v1/zz_generated.model_name.go | 67 -
.../setverbositylevel/setverbositylevel.go | 34 -
.../logs/klogflags/klogflags.go | 41 -
vendor/k8s.io/component-base/logs/logs.go | 209 -
.../component-base/logs/testinit/testinit.go | 32 -
.../prometheus/compatversion/metrics.go | 50 -
vendor/k8s.io/component-base/tracing/OWNERS | 8 -
.../component-base/tracing/api/v1/config.go | 88 -
.../component-base/tracing/api/v1/doc.go | 31 -
.../component-base/tracing/api/v1/types.go | 32 -
.../tracing/api/v1/zz_generated.deepcopy.go | 48 -
.../tracing/api/v1/zz_generated.model_name.go | 27 -
.../k8s.io/component-base/tracing/tracing.go | 98 -
vendor/k8s.io/component-base/tracing/utils.go | 134 -
.../component-base/zpages/features/doc.go | 22 -
.../zpages/features/kube_features.go | 52 -
.../node/util/sysctl/namespace.go | 104 -
.../node/util/sysctl/sysctl.go | 131 -
.../k8s.io/component-helpers/resource/OWNERS | 13 -
.../component-helpers/resource/helpers.go | 507 -
.../scheduling/corev1/doc.go | 23 -
.../scheduling/corev1/helpers.go | 102 -
.../corev1/nodeaffinity/nodeaffinity.go | 333 -
vendor/k8s.io/controller-manager/LICENSE | 201 -
.../controller-manager/pkg/features/OWNERS | 4 -
.../pkg/features/kube_features.go | 58 -
vendor/k8s.io/klog/v2/README.md | 2 -
.../klog/v2/internal/serialize/keyvalues.go | 232 +-
.../internal/serialize/keyvalues_no_slog.go | 10 +-
.../v2/internal/serialize/keyvalues_slog.go | 12 +-
.../klog/v2/internal/verbosity/verbosity.go | 303 -
vendor/k8s.io/klog/v2/klog.go | 87 +-
vendor/k8s.io/klog/v2/klogr.go | 4 +-
vendor/k8s.io/klog/v2/klogr/klogr.go | 8 +-
vendor/k8s.io/klog/v2/klogr_slog.go | 11 +-
vendor/k8s.io/klog/v2/textlogger/options.go | 154 -
.../k8s.io/klog/v2/textlogger/textlogger.go | 187 -
.../klog/v2/textlogger/textlogger_slog.go | 52 -
.../pkg/internal/serialization.go | 2 +-
.../go-json-experiment/json/README.md | 246 +-
.../go-json-experiment/json/alias.go | 967 +
.../go-json-experiment/json/arshal.go | 523 +-
.../go-json-experiment/json/arshal_any.go | 283 +-
.../go-json-experiment/json/arshal_default.go | 1469 +-
.../go-json-experiment/json/arshal_funcs.go | 209 +-
.../go-json-experiment/json/arshal_inlined.go | 123 +-
.../go-json-experiment/json/arshal_methods.go | 328 +-
.../go-json-experiment/json/arshal_time.go | 846 +-
.../go-json-experiment/json/decode.go | 1655 -
.../go-json-experiment/json/doc.go | 228 +-
.../go-json-experiment/json/encode.go | 1170 -
.../go-json-experiment/json/errors.go | 409 +-
.../go-json-experiment/json/fields.go | 503 +-
.../go-json-experiment/json/fold.go | 2 +
.../go-json-experiment/json/intern.go | 8 +-
.../json/internal/internal.go | 42 +
.../json/internal/jsonflags/flags.go | 215 +
.../json/internal/jsonopts/options.go | 202 +
.../json/internal/jsonwire/decode.go | 629 +
.../json/internal/jsonwire/encode.go | 290 +
.../json/internal/jsonwire/wire.go | 217 +
.../go-json-experiment/json/jsontext/alias.go | 536 +
.../json/jsontext/decode.go | 1179 +
.../go-json-experiment/json/jsontext/doc.go | 111 +
.../json/jsontext/encode.go | 977 +
.../json/jsontext/errors.go | 182 +
.../json/jsontext/export.go | 77 +
.../json/jsontext/options.go | 304 +
.../json/{ => jsontext}/pools.go | 92 +-
.../go-json-experiment/json/jsontext/quote.go | 41 +
.../json/{ => jsontext}/state.go | 447 +-
.../json/{ => jsontext}/token.go | 87 +-
.../go-json-experiment/json/jsontext/value.go | 395 +
.../go-json-experiment/json/migrate.sh | 48 +
.../go-json-experiment/json/options.go | 289 +
.../go-json-experiment/json/value.go | 381 -
.../internal/third_party/govalidator/LICENSE | 21 -
.../third_party/govalidator/patterns.go | 26 -
.../third_party/govalidator/validator.go | 181 -
.../kube-openapi/pkg/schemaconv/openapi.go | 6 +-
.../pkg/schemaconv/proto_models.go | 10 +-
.../k8s.io/kube-openapi/pkg/spec3/encoding.go | 13 +-
.../k8s.io/kube-openapi/pkg/spec3/example.go | 13 +-
.../pkg/spec3/external_documentation.go | 13 +-
.../k8s.io/kube-openapi/pkg/spec3/header.go | 13 +-
.../kube-openapi/pkg/spec3/media_type.go | 13 +-
.../kube-openapi/pkg/spec3/operation.go | 13 +-
.../kube-openapi/pkg/spec3/parameter.go | 13 +-
vendor/k8s.io/kube-openapi/pkg/spec3/path.go | 25 +-
.../kube-openapi/pkg/spec3/request_body.go | 13 +-
.../k8s.io/kube-openapi/pkg/spec3/response.go | 47 +-
.../kube-openapi/pkg/spec3/security_scheme.go | 7 +-
.../k8s.io/kube-openapi/pkg/spec3/server.go | 25 +-
vendor/k8s.io/kube-openapi/pkg/spec3/spec.go | 5 +-
.../pkg/validation/errors/.gitignore | 2 -
.../kube-openapi/pkg/validation/errors/api.go | 46 -
.../kube-openapi/pkg/validation/errors/doc.go | 26 -
.../pkg/validation/errors/headers.go | 44 -
.../pkg/validation/errors/schema.go | 573 -
.../pkg/validation/spec/header.go | 13 +-
.../kube-openapi/pkg/validation/spec/info.go | 13 +-
.../kube-openapi/pkg/validation/spec/items.go | 13 +-
.../pkg/validation/spec/operation.go | 13 +-
.../pkg/validation/spec/parameter.go | 13 +-
.../pkg/validation/spec/path_item.go | 15 +-
.../kube-openapi/pkg/validation/spec/paths.go | 11 +-
.../kube-openapi/pkg/validation/spec/ref.go | 50 -
.../pkg/validation/spec/response.go | 15 +-
.../pkg/validation/spec/responses.go | 17 +-
.../pkg/validation/spec/schema.go | 13 +-
.../pkg/validation/spec/security_scheme.go | 13 +-
.../pkg/validation/spec/swagger.go | 59 +-
.../kube-openapi/pkg/validation/spec/tag.go | 13 +-
.../pkg/validation/strfmt/.gitignore | 2 -
.../pkg/validation/strfmt/bson.go | 103 -
.../pkg/validation/strfmt/bson/objectid.go | 122 -
.../pkg/validation/strfmt/date.go | 103 -
.../pkg/validation/strfmt/default.go | 1272 -
.../kube-openapi/pkg/validation/strfmt/doc.go | 18 -
.../pkg/validation/strfmt/duration.go | 163 -
.../pkg/validation/strfmt/format.go | 257 -
.../strfmt/kubernetes-extensions.go | 143 -
.../pkg/validation/strfmt/time.go | 152 -
vendor/k8s.io/kubectl/pkg/scale/scale.go | 213 -
.../kubectl/pkg/util/podutils/podutils.go | 281 -
vendor/k8s.io/kubelet/pkg/apis/OWNERS | 10 -
.../kubelet/pkg/apis/well_known_labels.go | 87 -
.../pkg/apis/well_known_openshift_labels.go | 45 -
.../kubernetes/pkg/api/legacyscheme/scheme.go | 37 -
.../k8s.io/kubernetes/pkg/api/service/OWNERS | 5 -
.../k8s.io/kubernetes/pkg/api/service/util.go | 93 -
.../kubernetes/pkg/api/service/warnings.go | 84 -
.../k8s.io/kubernetes/pkg/api/v1/pod/util.go | 546 -
.../kubernetes/pkg/api/v1/service/util.go | 99 -
vendor/k8s.io/kubernetes/pkg/apis/apps/OWNERS | 8 -
vendor/k8s.io/kubernetes/pkg/apis/apps/doc.go | 19 -
.../kubernetes/pkg/apis/apps/register.go | 66 -
.../k8s.io/kubernetes/pkg/apis/apps/types.go | 939 -
.../pkg/apis/apps/zz_generated.deepcopy.go | 858 -
.../kubernetes/pkg/apis/autoscaling/OWNERS | 12 -
.../pkg/apis/autoscaling/annotations.go | 46 -
.../kubernetes/pkg/apis/autoscaling/doc.go | 19 -
.../pkg/apis/autoscaling/helpers.go | 64 -
.../pkg/apis/autoscaling/register.go | 55 -
.../kubernetes/pkg/apis/autoscaling/types.go | 582 -
.../apis/autoscaling/zz_generated.deepcopy.go | 675 -
.../k8s.io/kubernetes/pkg/apis/batch/OWNERS | 8 -
.../k8s.io/kubernetes/pkg/apis/batch/doc.go | 19 -
.../kubernetes/pkg/apis/batch/register.go | 56 -
.../k8s.io/kubernetes/pkg/apis/batch/types.go | 752 -
.../pkg/apis/batch/zz_generated.deepcopy.go | 567 -
.../kubernetes/pkg/apis/certificates/OWNERS | 8 -
.../kubernetes/pkg/apis/certificates/doc.go | 20 -
.../pkg/apis/certificates/helpers.go | 138 -
.../pkg/apis/certificates/register.go | 56 -
.../kubernetes/pkg/apis/certificates/types.go | 514 -
.../certificates/zz_generated.deepcopy.go | 415 -
vendor/k8s.io/kubernetes/pkg/apis/core/OWNERS | 4 -
.../pkg/apis/core/annotation_key_constants.go | 158 -
vendor/k8s.io/kubernetes/pkg/apis/core/doc.go | 25 -
.../pkg/apis/core/helper/helpers.go | 528 -
.../pkg/apis/core/helper/qos/qos.go | 171 -
.../kubernetes/pkg/apis/core/install/OWNERS | 8 -
.../pkg/apis/core/install/install.go | 38 -
.../k8s.io/kubernetes/pkg/apis/core/json.go | 31 -
.../pkg/apis/core/objectreference.go | 37 -
.../kubernetes/pkg/apis/core/pods/helpers.go | 97 -
.../kubernetes/pkg/apis/core/register.go | 102 -
.../kubernetes/pkg/apis/core/resource.go | 58 -
.../k8s.io/kubernetes/pkg/apis/core/taint.go | 42 -
.../kubernetes/pkg/apis/core/toleration.go | 30 -
.../k8s.io/kubernetes/pkg/apis/core/types.go | 7171 -
.../k8s.io/kubernetes/pkg/apis/core/v1/OWNERS | 24 -
.../kubernetes/pkg/apis/core/v1/conversion.go | 568 -
.../kubernetes/pkg/apis/core/v1/defaults.go | 527 -
.../k8s.io/kubernetes/pkg/apis/core/v1/doc.go | 25 -
.../pkg/apis/core/v1/helper/helpers.go | 341 -
.../kubernetes/pkg/apis/core/v1/register.go | 46 -
.../apis/core/v1/zz_generated.conversion.go | 9404 -
.../pkg/apis/core/v1/zz_generated.defaults.go | 1297 -
.../apis/core/v1/zz_generated.validations.go | 165 -
.../pkg/apis/core/validation/OWNERS | 21 -
.../pkg/apis/core/validation/doc.go | 19 -
.../pkg/apis/core/validation/events.go | 193 -
.../pkg/apis/core/validation/names.go | 138 -
.../pkg/apis/core/validation/validation.go | 9605 -
.../apis/core/validation/validation_patch.go | 68 -
.../pkg/apis/core/zz_generated.deepcopy.go | 6881 -
.../kubernetes/pkg/apis/extensions/OWNERS | 24 -
.../kubernetes/pkg/apis/extensions/doc.go | 19 -
.../pkg/apis/extensions/register.go | 67 -
.../kubernetes/pkg/apis/extensions/types.go | 29 -
.../apis/extensions/zz_generated.deepcopy.go | 22 -
.../kubernetes/pkg/apis/networking/OWNERS | 8 -
.../kubernetes/pkg/apis/networking/doc.go | 20 -
.../pkg/apis/networking/register.go | 61 -
.../kubernetes/pkg/apis/networking/types.go | 695 -
.../apis/networking/zz_generated.deepcopy.go | 930 -
.../pkg/capabilities/capabilities.go | 96 -
.../k8s.io/kubernetes/pkg/capabilities/doc.go | 18 -
.../k8s.io/kubernetes/pkg/controller/OWNERS | 18 -
.../pkg/controller/controller_ref_manager.go | 596 -
.../pkg/controller/controller_utils.go | 1452 -
.../deployment/util/deployment_util.go | 971 -
.../k8s.io/kubernetes/pkg/controller/doc.go | 19 -
vendor/k8s.io/kubernetes/pkg/features/OWNERS | 4 -
.../kubernetes/pkg/features/client_adapter.go | 114 -
.../kubernetes/pkg/features/kube_features.go | 2598 -
.../pkg/features/openshift_features.go | 32 -
vendor/k8s.io/kubernetes/pkg/fieldpath/doc.go | 19 -
.../kubernetes/pkg/fieldpath/fieldpath.go | 120 -
.../k8s.io/kubernetes/pkg/util/hash/hash.go | 32 -
.../kubernetes/pkg/util/labels/.readonly | 0
.../k8s.io/kubernetes/pkg/util/labels/doc.go | 18 -
.../kubernetes/pkg/util/labels/labels.go | 124 -
.../kubernetes/pkg/util/parsers/parsers.go | 69 -
.../kubernetes/pkg/util/taints/taints.go | 289 -
.../test/e2e/framework/.import-restrictions | 66 -
.../kubernetes/test/e2e/framework/OWNERS | 19 -
.../kubernetes/test/e2e/framework/README.md | 88 -
.../kubernetes/test/e2e/framework/bugs.go | 108 -
.../kubernetes/test/e2e/framework/expect.go | 352 -
.../e2e/framework/flake_reporting_util.go | 97 -
.../test/e2e/framework/framework.go | 779 -
.../kubernetes/test/e2e/framework/get.go | 150 -
.../test/e2e/framework/ginkgologger.go | 117 -
.../test/e2e/framework/ginkgowrapper.go | 650 -
.../kubernetes/test/e2e/framework/gomega.go | 65 -
.../e2e/framework/internal/junit/junit.go | 64 -
.../internal/junit/junit_data_races.go | 75 -
.../internal/junit/junit_no_data_races.go | 29 -
.../framework/kubectl/.import-restrictions | 12 -
.../test/e2e/framework/kubectl/builder.go | 205 -
.../e2e/framework/kubectl/kubectl_utils.go | 206 -
.../kubernetes/test/e2e/framework/log.go | 44 -
.../test/e2e/framework/namespacedname.go | 49 -
.../e2e/framework/node/.import-restrictions | 12 -
.../test/e2e/framework/node/helper.go | 224 -
.../test/e2e/framework/node/node_killer.go | 94 -
.../test/e2e/framework/node/resource.go | 842 -
.../kubernetes/test/e2e/framework/node/ssh.go | 43 -
.../test/e2e/framework/node/wait.go | 317 -
.../test/e2e/framework/nodes_util.go | 26 -
.../e2e/framework/pod/.import-restrictions | 12 -
.../test/e2e/framework/pod/create.go | 272 -
.../test/e2e/framework/pod/delete.go | 120 -
.../kubernetes/test/e2e/framework/pod/dial.go | 230 -
.../test/e2e/framework/pod/exec_util.go | 214 -
.../kubernetes/test/e2e/framework/pod/get.go | 31 -
.../test/e2e/framework/pod/node_selection.go | 105 -
.../test/e2e/framework/pod/pod_client.go | 399 -
.../test/e2e/framework/pod/resource.go | 557 -
.../test/e2e/framework/pod/utils.go | 294 -
.../kubernetes/test/e2e/framework/pod/wait.go | 949 -
.../kubernetes/test/e2e/framework/ports.go | 28 -
.../kubernetes/test/e2e/framework/provider.go | 192 -
.../kubernetes/test/e2e/framework/size.go | 60 -
.../framework/skipper/.import-restrictions | 9 -
.../test/e2e/framework/skipper/skipper.go | 252 -
.../e2e/framework/ssh/.import-restrictions | 12 -
.../kubernetes/test/e2e/framework/ssh/ssh.go | 468 -
.../test/e2e/framework/test_context.go | 678 -
.../framework/testfiles/.import-restrictions | 12 -
.../test/e2e/framework/testfiles/testfiles.go | 193 -
.../kubernetes/test/e2e/framework/timeouts.go | 131 -
.../kubernetes/test/e2e/framework/util.go | 708 -
.../test/e2e/testing-manifests/README.md | 22 -
.../test/e2e/testing-manifests/dra/OWNERS | 11 -
.../dra/dra-test-driver-proxy.yaml | 80 -
.../test/e2e/testing-manifests/embed.go | 33 -
.../flexvolume/attachable-with-long-mount | 145 -
.../e2e/testing-manifests/flexvolume/dummy | 70 -
.../flexvolume/dummy-attachable | 143 -
.../gpu/gce/nvidia-driver-installer.yaml | 146 -
.../gpu/gce/nvidia-gpu-device-plugin.yaml | 57 -
.../agnhost-primary-deployment.yaml.in | 28 -
.../guestbook/agnhost-primary-service.yaml | 16 -
.../agnhost-replica-deployment.yaml.in | 28 -
.../guestbook/agnhost-replica-service.yaml | 15 -
.../guestbook/frontend-deployment.yaml.in | 26 -
.../guestbook/frontend-service.yaml | 16 -
.../guestbook/legacy/frontend-controller.yaml | 29 -
.../legacy/redis-master-controller.yaml | 26 -
.../legacy/redis-slave-controller.yaml | 37 -
.../guestbook/redis-master-deployment.yaml.in | 27 -
.../guestbook/redis-master-service.yaml | 16 -
.../guestbook/redis-slave-deployment.yaml.in | 38 -
.../guestbook/redis-slave-service.yaml | 15 -
.../kubectl/agnhost-deployment1.yaml.in | 22 -
.../kubectl/agnhost-deployment2.yaml.in | 19 -
.../kubectl/agnhost-deployment3.yaml.in | 19 -
.../agnhost-primary-controller.json.in | 40 -
.../kubectl/agnhost-primary-pod.yaml | 32 -
.../kubectl/agnhost-primary-service.json | 23 -
.../kubectl/agnhost-rc.yaml.in | 16 -
.../kubectl/busybox-cronjob.yaml.in | 21 -
.../kubectl/busybox-pod.yaml.in | 13 -
.../kubectl/pause-pod.yaml.in | 12 -
.../kubectl/pod-with-readiness-probe.yaml.in | 19 -
.../kubernetes/test/e2e/testing-manifests/pod | 13 -
...le-device-plugin-control-registration.yaml | 52 -
.../sample-device-plugin.yaml | 55 -
.../statefulset/cassandra/controller.yaml | 58 -
.../statefulset/cassandra/pdb.yaml | 11 -
.../statefulset/cassandra/service.yaml | 12 -
.../statefulset/cassandra/statefulset.yaml | 90 -
.../statefulset/cassandra/tester.yaml | 51 -
.../statefulset/cockroachdb/service.yaml | 33 -
.../statefulset/cockroachdb/statefulset.yaml | 103 -
.../testing-manifests/statefulset/etcd/OWNERS | 4 -
.../statefulset/etcd/pdb.yaml | 11 -
.../statefulset/etcd/service.yaml | 16 -
.../statefulset/etcd/statefulset.yaml | 178 -
.../statefulset/etcd/tester.yaml | 27 -
.../statefulset/mysql-galera/service.yaml | 16 -
.../statefulset/mysql-galera/statefulset.yaml | 87 -
.../statefulset/mysql-upgrade/configmap.yaml | 13 -
.../statefulset/mysql-upgrade/service.yaml | 27 -
.../mysql-upgrade/statefulset.yaml | 162 -
.../statefulset/mysql-upgrade/tester.yaml | 51 -
.../statefulset/zookeeper/service.yaml | 18 -
.../statefulset/zookeeper/statefulset.yaml | 88 -
.../e2e/testing-manifests/storage-csi/OWNERS | 19 -
.../crd/hello-populator-crd.yaml | 50 -
...lator.storage.k8s.io_volumepopulators.yaml | 56 -
.../hello-populator-deploy.yaml | 68 -
.../rbac-data-source-validator.yaml | 37 -
.../setup-data-source-validator.yaml | 24 -
.../storage-csi/controller-role.yaml | 4 -
.../storage-csi/external-attacher/rbac.yaml | 93 -
.../rbac.yaml | 89 -
.../external-provisioner/rbac.yaml | 133 -
.../storage-csi/external-resizer/rbac.yaml | 97 -
.../csi-snapshotter/rbac-csi-snapshotter.yaml | 97 -
...age.k8s.io_volumegroupsnapshotclasses.yaml | 178 -
...ge.k8s.io_volumegroupsnapshotcontents.yaml | 661 -
...t.storage.k8s.io_volumegroupsnapshots.yaml | 460 -
.../csi-hostpath-plugin.yaml | 397 -
.../run_group_snapshot_e2e.sh | 312 -
.../storage-csi/gce-pd/controller_ss.yaml | 152 -
.../gce-pd/csi-controller-rbac.yaml | 198 -
.../storage-csi/gce-pd/node_ds.yaml | 115 -
.../storage-csi/hostpath/README.md | 4 -
.../hostpath/csi-hostpath-driverinfo.yaml | 20 -
.../hostpath/csi-hostpath-plugin.yaml | 418 -
.../hostpath/csi-hostpath-snapshotclass.yaml | 13 -
.../hostpath/csi-hostpath-testing.yaml | 87 -
.../hostpath/hostpath/e2e-test-rbac.yaml | 31 -
.../mock/csi-mock-driver-attacher.yaml | 35 -
.../mock/csi-mock-driver-resizer.yaml | 34 -
.../mock/csi-mock-driver-snapshotter.yaml | 36 -
.../storage-csi/mock/csi-mock-driver.yaml | 104 -
.../storage-csi/mock/csi-mock-driverinfo.yaml | 7 -
.../storage-csi/mock/csi-mock-proxy.yaml | 109 -
.../storage-csi/mock/csi-mock-rbac.yaml | 87 -
.../storage-csi/mock/csi-storageclass.yaml | 7 -
.../storage-csi/update-hostpath.sh | 152 -
.../test/utils/admission_webhook.go | 138 -
vendor/k8s.io/kubernetes/test/utils/audit.go | 223 -
.../kubernetes/test/utils/conditions.go | 105 -
.../kubernetes/test/utils/create_resources.go | 178 -
.../kubernetes/test/utils/delete_resources.go | 57 -
.../kubernetes/test/utils/density_utils.go | 107 -
.../kubernetes/test/utils/deployment.go | 369 -
.../kubernetes/test/utils/format/format.go | 92 -
.../k8s.io/kubernetes/test/utils/image/OWNERS | 13 -
.../test/utils/image/csi_manifest.go | 133 -
.../kubernetes/test/utils/image/manifest.go | 407 -
.../test/utils/kubeconfig/kubeconfig.go | 63 -
vendor/k8s.io/kubernetes/test/utils/node.go | 33 -
vendor/k8s.io/kubernetes/test/utils/paths.go | 82 -
.../kubernetes/test/utils/pki_helpers.go | 87 -
.../k8s.io/kubernetes/test/utils/pod_store.go | 82 -
.../kubernetes/test/utils/replicaset.go | 69 -
.../k8s.io/kubernetes/test/utils/runners.go | 1432 -
vendor/k8s.io/kubernetes/test/utils/tmpdir.go | 34 -
.../kubernetes/test/utils/update_resources.go | 62 -
vendor/k8s.io/pod-security-admission/LICENSE | 201 -
.../pod-security-admission/api/attributes.go | 146 -
.../pod-security-admission/api/constants.go | 50 -
.../k8s.io/pod-security-admission/api/doc.go | 18 -
.../pod-security-admission/api/helpers.go | 269 -
.../policy/check_allowPrivilegeEscalation.go | 93 -
.../policy/check_appArmorProfile.go | 143 -
.../policy/check_capabilities_baseline.go | 110 -
.../policy/check_capabilities_restricted.go | 145 -
.../policy/check_hostNamespaces.go | 82 -
.../policy/check_hostPathVolumes.go | 76 -
.../policy/check_hostPorts.go | 91 -
.../check_hostProbesAndhostLifecycle.go | 150 -
.../policy/check_privileged.go | 75 -
.../policy/check_procMount_baseline.go | 106 -
.../policy/check_procMount_restricted.go | 56 -
.../policy/check_restrictedVolumes.go | 173 -
.../policy/check_runAsNonRoot.go | 145 -
.../policy/check_runAsUser.go | 116 -
.../policy/check_seLinuxOptions.go | 172 -
.../policy/check_seccompProfile_baseline.go | 171 -
.../policy/check_seccompProfile_restricted.go | 155 -
.../policy/check_sysctls.go | 143 -
.../policy/check_windowsHostProcess.go | 102 -
.../pod-security-admission/policy/checks.go | 184 -
.../pod-security-admission/policy/doc.go | 18 -
.../pod-security-admission/policy/helpers.go | 43 -
.../pod-security-admission/policy/registry.go | 232 -
.../pod-security-admission/policy/visitor.go | 37 -
vendor/k8s.io/utils/buffer/ring_fixed.go | 120 +
vendor/k8s.io/utils/exec/exec.go | 16 +
vendor/k8s.io/utils/exec/fixup_go118.go | 32 -
vendor/k8s.io/utils/exec/fixup_go119.go | 40 -
vendor/k8s.io/utils/integer/integer.go | 79 -
vendor/k8s.io/utils/path/file.go | 78 -
vendor/modules.txt | 594 +-
.../konnectivity-client/LICENSE | 201 -
.../konnectivity-client/pkg/client/client.go | 564 -
.../konnectivity-client/pkg/client/conn.go | 157 -
.../pkg/client/metrics/metrics.go | 164 -
.../pkg/common/metrics/metrics.go | 78 -
.../proto/client/client.pb.go | 893 -
.../proto/client/client.proto | 104 -
.../proto/client/client_grpc.pb.go | 150 -
3078 files changed, 53477 insertions(+), 1020594 deletions(-)
delete mode 100644 vendor/cel.dev/expr/.bazelversion
delete mode 100644 vendor/cel.dev/expr/.gitattributes
delete mode 100644 vendor/cel.dev/expr/.gitignore
delete mode 100644 vendor/cel.dev/expr/BUILD.bazel
delete mode 100644 vendor/cel.dev/expr/CODE_OF_CONDUCT.md
delete mode 100644 vendor/cel.dev/expr/CONTRIBUTING.md
delete mode 100644 vendor/cel.dev/expr/GOVERNANCE.md
delete mode 100644 vendor/cel.dev/expr/MAINTAINERS.md
delete mode 100644 vendor/cel.dev/expr/MODULE.bazel
delete mode 100644 vendor/cel.dev/expr/README.md
delete mode 100644 vendor/cel.dev/expr/WORKSPACE
delete mode 100644 vendor/cel.dev/expr/WORKSPACE.bzlmod
delete mode 100644 vendor/cel.dev/expr/checked.pb.go
delete mode 100644 vendor/cel.dev/expr/cloudbuild.yaml
delete mode 100644 vendor/cel.dev/expr/eval.pb.go
delete mode 100644 vendor/cel.dev/expr/explain.pb.go
delete mode 100644 vendor/cel.dev/expr/regen_go_proto.sh
delete mode 100644 vendor/cel.dev/expr/regen_go_proto_canonical_protos.sh
delete mode 100644 vendor/cel.dev/expr/syntax.pb.go
delete mode 100644 vendor/cel.dev/expr/value.pb.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/.gitignore
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/LICENSE
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/README.md
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/antlrdoc.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/atn.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/atn_config.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/atn_config_set.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/atn_deserialization_options.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/atn_deserializer.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/atn_simulator.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/atn_state.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/atn_type.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/char_stream.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/common_token_factory.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/common_token_stream.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/comparators.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/configuration.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/dfa.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/dfa_serializer.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/dfa_state.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/diagnostic_error_listener.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/error_listener.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/error_strategy.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/errors.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/file_stream.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/input_stream.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/int_stream.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/interval_set.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/jcollect.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/lexer.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/lexer_action.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/lexer_action_executor.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/lexer_atn_simulator.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/ll1_analyzer.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/nostatistics.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/parser.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/parser_atn_simulator.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/parser_rule_context.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/prediction_context.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/prediction_context_cache.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/prediction_mode.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/recognizer.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/rule_context.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/semantic_context.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/statistics.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/stats_data.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/token.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/token_source.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/token_stream.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/tokenstream_rewriter.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/trace_listener.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/transition.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/tree.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/trees.go
delete mode 100644 vendor/github.com/antlr4-go/antlr/v4/utils.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/LICENSE.txt
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/NOTICE.txt
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/accountid_endpoint_mode.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/checksum.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/config.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/context.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/credential_cache.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/credentials.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/defaults/auto.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/defaults/configuration.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/defaults/defaults.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/defaults/doc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/defaultsmode.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/doc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/endpoints.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/errors.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/from_ptr.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/go_module_metadata.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/logging.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/logging_generate.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/metadata.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/middleware.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/osname.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/osname_go115.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/recursion_detection.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/request_id.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/request_id_retriever.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/user_agent.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/ec2query/error_utils.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/array.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/encoder.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/map.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/middleware.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/object.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/value.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/restjson/decoder_util.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/xml/error_utils.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/ratelimit/none.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/ratelimit/token_bucket.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/ratelimit/token_rate_limit.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/request.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/retry/adaptive.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/retry/adaptive_ratelimit.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/retry/adaptive_token_bucket.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/retry/attempt_metrics.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/retry/doc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/retry/errors.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/retry/jitter_backoff.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/retry/metadata.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/retry/middleware.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/retry/retry.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/retry/retryable_error.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/retry/standard.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/retry/throttle_error.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/retry/timeout_error.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/retryer.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/runtime.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/cache.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/const.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/header_rules.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/headers.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/hmac.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/host.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/scope.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/time.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/util.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/middleware.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/presign_middleware.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/stream.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/v4.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/to_ptr.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/client.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/content_type.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/response_error.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/response_error_middleware.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/timeout_read_closer.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/types.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/version.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/config/CHANGELOG.md
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/config/LICENSE.txt
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/config/auth_scheme_preference.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/config/config.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/config/defaultsmode.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/config/doc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/config/env_config.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/config/generate.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/config/go_module_metadata.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/config/load_options.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/config/local.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/config/provider.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/config/resolve.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/config/resolve_bearer_token.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/config/resolve_credentials.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/config/shared_config.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/credentials/CHANGELOG.md
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/credentials/LICENSE.txt
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/credentials/doc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/credentials/ec2rolecreds/doc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/credentials/ec2rolecreds/provider.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client/auth.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client/client.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client/endpoints.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client/middleware.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/provider.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/credentials/go_module_metadata.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/credentials/processcreds/doc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/credentials/processcreds/provider.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/doc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/sso_cached_token.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/sso_credentials_provider.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/sso_token_provider.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/credentials/static_provider.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/credentials/stscreds/assume_role_provider.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/credentials/stscreds/web_identity_provider.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/CHANGELOG.md
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/LICENSE.txt
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_client.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetDynamicData.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetIAMInfo.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetInstanceIdentityDocument.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetMetadata.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetRegion.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetToken.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetUserData.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/auth.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/doc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/endpoints.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/go_module_metadata.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/internal/config/resolvers.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/request_middleware.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/token_provider.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/auth/auth.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/auth/scheme.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/bearer_token_adapter.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/bearer_token_signer_adapter.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/credentials_adapter.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/smithy.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/v4signer_adapter.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/CHANGELOG.md
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/LICENSE.txt
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/config.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/endpoints.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/go_module_metadata.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/context/context.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/arn.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/doc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/generate.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/host.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partition.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partitions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partitions.json
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/endpoints.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/CHANGELOG.md
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/LICENSE.txt
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/endpoints.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/go_module_metadata.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/ini/CHANGELOG.md
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/ini/LICENSE.txt
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/ini/errors.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/ini/go_module_metadata.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/ini/ini.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/ini/parse.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/ini/sections.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/ini/strings.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/ini/token.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/ini/tokenize.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/ini/value.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/middleware/middleware.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/rand/rand.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/sdk/interfaces.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/sdk/time.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/sdkio/byte.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/shareddefaults/shared_config.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/strings/strings.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/sync/singleflight/LICENSE
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/sync/singleflight/docs.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/sync/singleflight/singleflight.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/timeconv/duration.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/CHANGELOG.md
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/LICENSE.txt
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_client.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptAddressTransfer.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptCapacityReservationBillingOwnership.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptReservedInstancesExchangeQuote.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayMulticastDomainAssociations.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayPeeringAttachment.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayVpcAttachment.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptVpcEndpointConnections.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptVpcPeeringConnection.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AdvertiseByoipCidr.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AllocateAddress.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AllocateHosts.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AllocateIpamPoolCidr.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ApplySecurityGroupsToClientVpnTargetNetwork.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssignIpv6Addresses.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssignPrivateIpAddresses.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssignPrivateNatGatewayAddress.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateAddress.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateCapacityReservationBillingOwner.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateClientVpnTargetNetwork.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateDhcpOptions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateEnclaveCertificateIamRole.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateIamInstanceProfile.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateInstanceEventWindow.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateIpamByoasn.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateIpamResourceDiscovery.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateNatGatewayAddress.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateRouteServer.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateRouteTable.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateSecurityGroupVpc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateSubnetCidrBlock.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTransitGatewayMulticastDomain.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTransitGatewayPolicyTable.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTransitGatewayRouteTable.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTrunkInterface.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateVpcCidrBlock.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachClassicLinkVpc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachInternetGateway.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachNetworkInterface.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachVerifiedAccessTrustProvider.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachVolume.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachVpnGateway.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeClientVpnIngress.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeSecurityGroupEgress.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeSecurityGroupIngress.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_BundleInstance.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelBundleTask.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelCapacityReservation.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelCapacityReservationFleets.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelConversionTask.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelDeclarativePoliciesReport.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelExportTask.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelImageLaunchPermission.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelImportTask.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelReservedInstancesListing.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelSpotFleetRequests.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelSpotInstanceRequests.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ConfirmProductInstance.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopyFpgaImage.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopyImage.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopySnapshot.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCapacityReservation.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCapacityReservationBySplitting.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCapacityReservationFleet.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCarrierGateway.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateClientVpnEndpoint.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateClientVpnRoute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCoipCidr.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCoipPool.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCustomerGateway.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDefaultSubnet.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDefaultVpc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDelegateMacVolumeOwnershipTask.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDhcpOptions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateEgressOnlyInternetGateway.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFleet.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFlowLogs.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFpgaImage.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateImage.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInstanceConnectEndpoint.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInstanceEventWindow.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInstanceExportTask.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInternetGateway.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpam.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpamExternalResourceVerificationToken.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpamPool.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpamResourceDiscovery.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpamScope.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateKeyPair.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLaunchTemplate.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLaunchTemplateVersion.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRoute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRouteTable.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRouteTableVpcAssociation.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayVirtualInterface.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayVirtualInterfaceGroup.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateMacSystemIntegrityProtectionModificationTask.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateManagedPrefixList.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNatGateway.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkAcl.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkAclEntry.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInsightsAccessScope.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInsightsPath.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInterface.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInterfacePermission.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreatePlacementGroup.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreatePublicIpv4Pool.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateReplaceRootVolumeTask.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateReservedInstancesListing.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRestoreImageTask.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRoute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRouteServer.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRouteServerEndpoint.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRouteServerPeer.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRouteTable.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSecurityGroup.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSnapshot.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSnapshots.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSpotDatafeedSubscription.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateStoreImageTask.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSubnet.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSubnetCidrReservation.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTags.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorFilter.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorFilterRule.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorSession.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorTarget.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGateway.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayConnect.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayConnectPeer.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayMulticastDomain.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayPeeringAttachment.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayPolicyTable.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayPrefixListReference.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayRoute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayRouteTable.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayRouteTableAnnouncement.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayVpcAttachment.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVerifiedAccessEndpoint.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVerifiedAccessGroup.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVerifiedAccessInstance.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVerifiedAccessTrustProvider.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVolume.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcBlockPublicAccessExclusion.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpoint.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpointConnectionNotification.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpointServiceConfiguration.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcPeeringConnection.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnConnection.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnConnectionRoute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnGateway.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCarrierGateway.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteClientVpnEndpoint.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteClientVpnRoute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCoipCidr.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCoipPool.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCustomerGateway.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteDhcpOptions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteEgressOnlyInternetGateway.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFleets.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFlowLogs.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFpgaImage.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteInstanceConnectEndpoint.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteInstanceEventWindow.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteInternetGateway.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteIpam.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteIpamExternalResourceVerificationToken.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteIpamPool.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteIpamResourceDiscovery.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteIpamScope.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteKeyPair.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLaunchTemplate.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLaunchTemplateVersions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRoute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRouteTable.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRouteTableVpcAssociation.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayVirtualInterface.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayVirtualInterfaceGroup.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteManagedPrefixList.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNatGateway.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkAcl.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkAclEntry.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsAccessScope.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsAccessScopeAnalysis.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsAnalysis.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsPath.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInterface.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInterfacePermission.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeletePlacementGroup.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeletePublicIpv4Pool.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteQueuedReservedInstances.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRoute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRouteServer.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRouteServerEndpoint.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRouteServerPeer.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRouteTable.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSecurityGroup.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSnapshot.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSpotDatafeedSubscription.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSubnet.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSubnetCidrReservation.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTags.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorFilter.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorFilterRule.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorSession.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorTarget.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGateway.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayConnect.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayConnectPeer.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayMulticastDomain.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayPeeringAttachment.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayPolicyTable.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayPrefixListReference.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayRoute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayRouteTable.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayRouteTableAnnouncement.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayVpcAttachment.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVerifiedAccessEndpoint.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVerifiedAccessGroup.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVerifiedAccessInstance.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVerifiedAccessTrustProvider.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVolume.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcBlockPublicAccessExclusion.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpointConnectionNotifications.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpointServiceConfigurations.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpoints.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcPeeringConnection.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnConnection.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnConnectionRoute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnGateway.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeprovisionByoipCidr.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeprovisionIpamByoasn.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeprovisionIpamPoolCidr.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeprovisionPublicIpv4PoolCidr.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterImage.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterInstanceEventNotificationAttributes.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupMembers.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupSources.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAccountAttributes.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAddressTransfers.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAddresses.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAddressesAttribute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAggregateIdFormat.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAvailabilityZones.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAwsNetworkPerformanceMetricSubscriptions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeBundleTasks.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeByoipCidrs.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockExtensionHistory.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockExtensionOfferings.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockOfferings.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockStatus.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlocks.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityReservationBillingRequests.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityReservationFleets.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityReservations.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCarrierGateways.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClassicLinkInstances.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnAuthorizationRules.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnConnections.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnEndpoints.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnRoutes.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnTargetNetworks.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCoipPools.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeConversionTasks.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCustomerGateways.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeDeclarativePoliciesReports.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeDhcpOptions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeEgressOnlyInternetGateways.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeElasticGpus.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeExportImageTasks.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeExportTasks.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFastLaunchImages.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFastSnapshotRestores.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleetHistory.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleetInstances.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleets.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFlowLogs.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFpgaImageAttribute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFpgaImages.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHostReservationOfferings.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHostReservations.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHosts.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIamInstanceProfileAssociations.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIdFormat.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIdentityIdFormat.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImageAttribute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImages.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImportImageTasks.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImportSnapshotTasks.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceAttribute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceConnectEndpoints.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceCreditSpecifications.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceEventNotificationAttributes.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceEventWindows.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceImageMetadata.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceStatus.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceTopology.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceTypeOfferings.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceTypes.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstances.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInternetGateways.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpamByoasn.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpamExternalResourceVerificationTokens.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpamPools.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpamResourceDiscoveries.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpamResourceDiscoveryAssociations.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpamScopes.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpams.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpv6Pools.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeKeyPairs.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLaunchTemplateVersions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLaunchTemplates.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTableVpcAssociations.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTables.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaceGroups.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaces.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGateways.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLockedSnapshots.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeMacHosts.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeMacModificationTasks.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeManagedPrefixLists.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeMovingAddresses.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNatGateways.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkAcls.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsAccessScopeAnalyses.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsAccessScopes.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsAnalyses.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsPaths.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfaceAttribute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfacePermissions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfaces.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeOutpostLags.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePlacementGroups.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePrefixLists.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePrincipalIdFormat.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePublicIpv4Pools.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRegions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReplaceRootVolumeTasks.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstances.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesListings.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesModifications.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesOfferings.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteServerEndpoints.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteServerPeers.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteServers.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteTables.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeScheduledInstanceAvailability.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeScheduledInstances.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroupReferences.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroupRules.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroupVpcAssociations.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroups.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeServiceLinkVirtualInterfaces.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSnapshotAttribute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSnapshotTierStatus.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSnapshots.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotDatafeedSubscription.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetInstances.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetRequestHistory.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetRequests.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotInstanceRequests.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotPriceHistory.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeStaleSecurityGroups.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeStoreImageTasks.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSubnets.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTags.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorFilterRules.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorFilters.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorSessions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorTargets.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayAttachments.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayConnectPeers.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayConnects.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayMulticastDomains.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayPeeringAttachments.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayPolicyTables.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayRouteTableAnnouncements.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayRouteTables.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayVpcAttachments.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGateways.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrunkInterfaceAssociations.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVerifiedAccessEndpoints.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVerifiedAccessGroups.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVerifiedAccessInstanceLoggingConfigurations.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVerifiedAccessInstances.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVerifiedAccessTrustProviders.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumeAttribute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumeStatus.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumes.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumesModifications.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcAttribute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcBlockPublicAccessExclusions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcBlockPublicAccessOptions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcClassicLink.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcClassicLinkDnsSupport.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointAssociations.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointConnectionNotifications.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointConnections.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServiceConfigurations.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServicePermissions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServices.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpoints.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcPeeringConnections.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcs.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpnConnections.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpnGateways.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachClassicLinkVpc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachInternetGateway.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachNetworkInterface.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachVerifiedAccessTrustProvider.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachVolume.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachVpnGateway.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableAddressTransfer.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableAllowedImagesSettings.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableAwsNetworkPerformanceMetricSubscription.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableEbsEncryptionByDefault.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableFastLaunch.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableFastSnapshotRestores.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableImage.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableImageBlockPublicAccess.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableImageDeprecation.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableImageDeregistrationProtection.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableIpamOrganizationAdminAccount.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableRouteServerPropagation.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableSerialConsoleAccess.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableSnapshotBlockPublicAccess.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableTransitGatewayRouteTablePropagation.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVgwRoutePropagation.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVpcClassicLink.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVpcClassicLinkDnsSupport.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateAddress.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateCapacityReservationBillingOwner.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateClientVpnTargetNetwork.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateEnclaveCertificateIamRole.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateIamInstanceProfile.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateInstanceEventWindow.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateIpamByoasn.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateIpamResourceDiscovery.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateNatGatewayAddress.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateRouteServer.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateRouteTable.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateSecurityGroupVpc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateSubnetCidrBlock.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTransitGatewayMulticastDomain.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTransitGatewayPolicyTable.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTransitGatewayRouteTable.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTrunkInterface.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateVpcCidrBlock.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableAddressTransfer.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableAllowedImagesSettings.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableAwsNetworkPerformanceMetricSubscription.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableEbsEncryptionByDefault.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableFastLaunch.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableFastSnapshotRestores.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableImage.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableImageBlockPublicAccess.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableImageDeprecation.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableImageDeregistrationProtection.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableIpamOrganizationAdminAccount.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableReachabilityAnalyzerOrganizationSharing.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableRouteServerPropagation.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableSerialConsoleAccess.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableSnapshotBlockPublicAccess.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableTransitGatewayRouteTablePropagation.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVgwRoutePropagation.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVolumeIO.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVpcClassicLink.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVpcClassicLinkDnsSupport.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportClientVpnClientCertificateRevocationList.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportClientVpnClientConfiguration.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportImage.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportTransitGatewayRoutes.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportVerifiedAccessInstanceClientConfiguration.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetActiveVpnTunnelStatus.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAllowedImagesSettings.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAssociatedEnclaveCertificateIamRoles.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAssociatedIpv6PoolCidrs.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAwsNetworkPerformanceData.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetCapacityReservationUsage.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetCoipPoolUsage.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetConsoleOutput.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetConsoleScreenshot.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetDeclarativePoliciesReportSummary.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetDefaultCreditSpecification.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetEbsDefaultKmsKeyId.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetEbsEncryptionByDefault.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetFlowLogsIntegrationTemplate.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetGroupsForCapacityReservation.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetHostReservationPurchasePreview.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetImageBlockPublicAccessState.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetInstanceMetadataDefaults.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetInstanceTpmEkPub.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetInstanceTypesFromInstanceRequirements.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetInstanceUefiData.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamAddressHistory.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamDiscoveredAccounts.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamDiscoveredPublicAddresses.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamDiscoveredResourceCidrs.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamPoolAllocations.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamPoolCidrs.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamResourceCidrs.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetLaunchTemplateData.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetManagedPrefixListAssociations.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetManagedPrefixListEntries.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetNetworkInsightsAccessScopeAnalysisFindings.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetNetworkInsightsAccessScopeContent.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetPasswordData.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetReservedInstancesExchangeQuote.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetRouteServerAssociations.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetRouteServerPropagations.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetRouteServerRoutingDatabase.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetSecurityGroupsForVpc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetSerialConsoleAccessStatus.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetSnapshotBlockPublicAccessState.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetSpotPlacementScores.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetSubnetCidrReservations.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayAttachmentPropagations.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayMulticastDomainAssociations.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayPolicyTableAssociations.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayPolicyTableEntries.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayPrefixListReferences.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayRouteTableAssociations.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayRouteTablePropagations.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetVerifiedAccessEndpointPolicy.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetVerifiedAccessEndpointTargets.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetVerifiedAccessGroupPolicy.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetVpnConnectionDeviceSampleConfiguration.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetVpnConnectionDeviceTypes.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetVpnTunnelReplacementStatus.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportClientVpnClientCertificateRevocationList.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportImage.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportInstance.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportKeyPair.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportSnapshot.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportVolume.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ListImagesInRecycleBin.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ListSnapshotsInRecycleBin.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_LockSnapshot.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyAddressAttribute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyAvailabilityZoneGroup.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyCapacityReservation.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyCapacityReservationFleet.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyClientVpnEndpoint.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyDefaultCreditSpecification.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyEbsDefaultKmsKeyId.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyFleet.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyFpgaImageAttribute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyHosts.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIdFormat.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIdentityIdFormat.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyImageAttribute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceAttribute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCapacityReservationAttributes.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCpuOptions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCreditSpecification.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceEventStartTime.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceEventWindow.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceMaintenanceOptions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceMetadataDefaults.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceMetadataOptions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceNetworkPerformanceOptions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstancePlacement.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpam.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpamPool.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpamResourceCidr.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpamResourceDiscovery.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpamScope.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyLaunchTemplate.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyLocalGatewayRoute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyManagedPrefixList.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyNetworkInterfaceAttribute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyPrivateDnsNameOptions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyPublicIpDnsNameOptions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyReservedInstances.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyRouteServer.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySecurityGroupRules.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySnapshotAttribute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySnapshotTier.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySpotFleetRequest.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySubnetAttribute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorFilterNetworkServices.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorFilterRule.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorSession.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGateway.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGatewayPrefixListReference.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGatewayVpcAttachment.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessEndpoint.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessEndpointPolicy.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessGroup.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessGroupPolicy.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessInstance.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessInstanceLoggingConfiguration.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessTrustProvider.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVolume.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVolumeAttribute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcAttribute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcBlockPublicAccessExclusion.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcBlockPublicAccessOptions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpoint.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointConnectionNotification.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServiceConfiguration.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServicePayerResponsibility.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServicePermissions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcTenancy.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnConnection.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnConnectionOptions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnTunnelCertificate.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnTunnelOptions.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MonitorInstances.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MoveAddressToVpc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MoveByoipCidrToIpam.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MoveCapacityReservationInstances.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionByoipCidr.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionIpamByoasn.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionIpamPoolCidr.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionPublicIpv4PoolCidr.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseCapacityBlock.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseCapacityBlockExtension.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseHostReservation.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseReservedInstancesOffering.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseScheduledInstances.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RebootInstances.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterImage.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterInstanceEventNotificationAttributes.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterTransitGatewayMulticastGroupMembers.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterTransitGatewayMulticastGroupSources.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectCapacityReservationBillingOwnership.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayMulticastDomainAssociations.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayPeeringAttachment.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayVpcAttachment.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectVpcEndpointConnections.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectVpcPeeringConnection.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReleaseAddress.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReleaseHosts.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReleaseIpamPoolAllocation.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceIamInstanceProfileAssociation.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceImageCriteriaInAllowedImagesSettings.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceNetworkAclAssociation.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceNetworkAclEntry.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceRoute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceRouteTableAssociation.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceTransitGatewayRoute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceVpnTunnel.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReportInstanceStatus.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RequestSpotFleet.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RequestSpotInstances.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetAddressAttribute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetEbsDefaultKmsKeyId.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetFpgaImageAttribute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetImageAttribute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetInstanceAttribute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetNetworkInterfaceAttribute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetSnapshotAttribute.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreAddressToClassic.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreImageFromRecycleBin.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreManagedPrefixListVersion.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreSnapshotFromRecycleBin.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreSnapshotTier.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeClientVpnIngress.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeSecurityGroupEgress.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeSecurityGroupIngress.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RunInstances.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RunScheduledInstances.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchLocalGatewayRoutes.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchTransitGatewayMulticastGroups.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchTransitGatewayRoutes.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SendDiagnosticInterrupt.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartDeclarativePoliciesReport.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartInstances.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartNetworkInsightsAccessScopeAnalysis.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartNetworkInsightsAnalysis.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartVpcEndpointServicePrivateDnsVerification.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StopInstances.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_TerminateClientVpnConnections.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_TerminateInstances.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnassignIpv6Addresses.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnassignPrivateIpAddresses.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnassignPrivateNatGatewayAddress.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnlockSnapshot.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnmonitorInstances.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsEgress.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsIngress.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_WithdrawByoipCidr.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/auth.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/deserializers.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/doc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/endpoints.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/generated.json
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go_module_metadata.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/internal/endpoints/endpoints.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/options.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/serializers.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/enums.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/types.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/validators.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding/CHANGELOG.md
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding/LICENSE.txt
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding/accept_encoding_gzip.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding/doc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding/go_module_metadata.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/CHANGELOG.md
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/LICENSE.txt
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/context.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/doc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/go_module_metadata.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/middleware.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sso/CHANGELOG.md
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sso/LICENSE.txt
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sso/api_client.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sso/api_op_GetRoleCredentials.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sso/api_op_ListAccountRoles.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sso/api_op_ListAccounts.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sso/api_op_Logout.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sso/auth.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sso/deserializers.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sso/doc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sso/endpoints.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sso/generated.json
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sso/go_module_metadata.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sso/internal/endpoints/endpoints.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sso/options.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sso/serializers.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sso/types/errors.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sso/types/types.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sso/validators.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/CHANGELOG.md
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/LICENSE.txt
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/api_client.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/api_op_CreateToken.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/api_op_CreateTokenWithIAM.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/api_op_RegisterClient.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/api_op_StartDeviceAuthorization.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/auth.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/deserializers.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/doc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/endpoints.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/generated.json
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/go_module_metadata.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/internal/endpoints/endpoints.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/options.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/serializers.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/types/enums.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/types/errors.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/types/types.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/validators.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/CHANGELOG.md
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/LICENSE.txt
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_client.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRole.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRoleWithSAML.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRoleWithWebIdentity.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_AssumeRoot.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_DecodeAuthorizationMessage.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_GetAccessKeyInfo.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_GetCallerIdentity.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_GetFederationToken.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/api_op_GetSessionToken.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/auth.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/deserializers.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/doc.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/endpoints.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/generated.json
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/go_module_metadata.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/internal/endpoints/endpoints.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/options.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/serializers.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/types/errors.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/types/types.go
delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/sts/validators.go
delete mode 100644 vendor/github.com/aws/smithy-go/.gitignore
delete mode 100644 vendor/github.com/aws/smithy-go/.travis.yml
delete mode 100644 vendor/github.com/aws/smithy-go/CHANGELOG.md
delete mode 100644 vendor/github.com/aws/smithy-go/CODE_OF_CONDUCT.md
delete mode 100644 vendor/github.com/aws/smithy-go/CONTRIBUTING.md
delete mode 100644 vendor/github.com/aws/smithy-go/LICENSE
delete mode 100644 vendor/github.com/aws/smithy-go/Makefile
delete mode 100644 vendor/github.com/aws/smithy-go/NOTICE
delete mode 100644 vendor/github.com/aws/smithy-go/README.md
delete mode 100644 vendor/github.com/aws/smithy-go/auth/auth.go
delete mode 100644 vendor/github.com/aws/smithy-go/auth/bearer/docs.go
delete mode 100644 vendor/github.com/aws/smithy-go/auth/bearer/middleware.go
delete mode 100644 vendor/github.com/aws/smithy-go/auth/bearer/token.go
delete mode 100644 vendor/github.com/aws/smithy-go/auth/bearer/token_cache.go
delete mode 100644 vendor/github.com/aws/smithy-go/auth/identity.go
delete mode 100644 vendor/github.com/aws/smithy-go/auth/option.go
delete mode 100644 vendor/github.com/aws/smithy-go/auth/scheme_id.go
delete mode 100644 vendor/github.com/aws/smithy-go/changelog-template.json
delete mode 100644 vendor/github.com/aws/smithy-go/context/suppress_expired.go
delete mode 100644 vendor/github.com/aws/smithy-go/doc.go
delete mode 100644 vendor/github.com/aws/smithy-go/document.go
delete mode 100644 vendor/github.com/aws/smithy-go/document/doc.go
delete mode 100644 vendor/github.com/aws/smithy-go/document/document.go
delete mode 100644 vendor/github.com/aws/smithy-go/document/errors.go
delete mode 100644 vendor/github.com/aws/smithy-go/encoding/doc.go
delete mode 100644 vendor/github.com/aws/smithy-go/encoding/encoding.go
delete mode 100644 vendor/github.com/aws/smithy-go/encoding/httpbinding/encode.go
delete mode 100644 vendor/github.com/aws/smithy-go/encoding/httpbinding/header.go
delete mode 100644 vendor/github.com/aws/smithy-go/encoding/httpbinding/path_replace.go
delete mode 100644 vendor/github.com/aws/smithy-go/encoding/httpbinding/query.go
delete mode 100644 vendor/github.com/aws/smithy-go/encoding/httpbinding/uri.go
delete mode 100644 vendor/github.com/aws/smithy-go/encoding/json/array.go
delete mode 100644 vendor/github.com/aws/smithy-go/encoding/json/constants.go
delete mode 100644 vendor/github.com/aws/smithy-go/encoding/json/decoder_util.go
delete mode 100644 vendor/github.com/aws/smithy-go/encoding/json/encoder.go
delete mode 100644 vendor/github.com/aws/smithy-go/encoding/json/escape.go
delete mode 100644 vendor/github.com/aws/smithy-go/encoding/json/object.go
delete mode 100644 vendor/github.com/aws/smithy-go/encoding/json/value.go
delete mode 100644 vendor/github.com/aws/smithy-go/encoding/xml/array.go
delete mode 100644 vendor/github.com/aws/smithy-go/encoding/xml/constants.go
delete mode 100644 vendor/github.com/aws/smithy-go/encoding/xml/doc.go
delete mode 100644 vendor/github.com/aws/smithy-go/encoding/xml/element.go
delete mode 100644 vendor/github.com/aws/smithy-go/encoding/xml/encoder.go
delete mode 100644 vendor/github.com/aws/smithy-go/encoding/xml/error_utils.go
delete mode 100644 vendor/github.com/aws/smithy-go/encoding/xml/escape.go
delete mode 100644 vendor/github.com/aws/smithy-go/encoding/xml/map.go
delete mode 100644 vendor/github.com/aws/smithy-go/encoding/xml/value.go
delete mode 100644 vendor/github.com/aws/smithy-go/encoding/xml/xml_decoder.go
delete mode 100644 vendor/github.com/aws/smithy-go/endpoints/endpoint.go
delete mode 100644 vendor/github.com/aws/smithy-go/errors.go
delete mode 100644 vendor/github.com/aws/smithy-go/go_module_metadata.go
delete mode 100644 vendor/github.com/aws/smithy-go/internal/sync/singleflight/LICENSE
delete mode 100644 vendor/github.com/aws/smithy-go/internal/sync/singleflight/docs.go
delete mode 100644 vendor/github.com/aws/smithy-go/internal/sync/singleflight/singleflight.go
delete mode 100644 vendor/github.com/aws/smithy-go/io/byte.go
delete mode 100644 vendor/github.com/aws/smithy-go/io/doc.go
delete mode 100644 vendor/github.com/aws/smithy-go/io/reader.go
delete mode 100644 vendor/github.com/aws/smithy-go/io/ringbuffer.go
delete mode 100644 vendor/github.com/aws/smithy-go/local-mod-replace.sh
delete mode 100644 vendor/github.com/aws/smithy-go/logging/logger.go
delete mode 100644 vendor/github.com/aws/smithy-go/metrics/metrics.go
delete mode 100644 vendor/github.com/aws/smithy-go/metrics/nop.go
delete mode 100644 vendor/github.com/aws/smithy-go/middleware/context.go
delete mode 100644 vendor/github.com/aws/smithy-go/middleware/doc.go
delete mode 100644 vendor/github.com/aws/smithy-go/middleware/logging.go
delete mode 100644 vendor/github.com/aws/smithy-go/middleware/metadata.go
delete mode 100644 vendor/github.com/aws/smithy-go/middleware/middleware.go
delete mode 100644 vendor/github.com/aws/smithy-go/middleware/ordered_group.go
delete mode 100644 vendor/github.com/aws/smithy-go/middleware/stack.go
delete mode 100644 vendor/github.com/aws/smithy-go/middleware/stack_values.go
delete mode 100644 vendor/github.com/aws/smithy-go/middleware/step_build.go
delete mode 100644 vendor/github.com/aws/smithy-go/middleware/step_deserialize.go
delete mode 100644 vendor/github.com/aws/smithy-go/middleware/step_finalize.go
delete mode 100644 vendor/github.com/aws/smithy-go/middleware/step_initialize.go
delete mode 100644 vendor/github.com/aws/smithy-go/middleware/step_serialize.go
delete mode 100644 vendor/github.com/aws/smithy-go/modman.toml
delete mode 100644 vendor/github.com/aws/smithy-go/private/requestcompression/gzip.go
delete mode 100644 vendor/github.com/aws/smithy-go/private/requestcompression/middleware_capture_request_compression.go
delete mode 100644 vendor/github.com/aws/smithy-go/private/requestcompression/request_compression.go
delete mode 100644 vendor/github.com/aws/smithy-go/properties.go
delete mode 100644 vendor/github.com/aws/smithy-go/ptr/doc.go
delete mode 100644 vendor/github.com/aws/smithy-go/ptr/from_ptr.go
delete mode 100644 vendor/github.com/aws/smithy-go/ptr/gen_scalars.go
delete mode 100644 vendor/github.com/aws/smithy-go/ptr/to_ptr.go
delete mode 100644 vendor/github.com/aws/smithy-go/rand/doc.go
delete mode 100644 vendor/github.com/aws/smithy-go/rand/rand.go
delete mode 100644 vendor/github.com/aws/smithy-go/rand/uuid.go
delete mode 100644 vendor/github.com/aws/smithy-go/time/time.go
delete mode 100644 vendor/github.com/aws/smithy-go/tracing/context.go
delete mode 100644 vendor/github.com/aws/smithy-go/tracing/nop.go
delete mode 100644 vendor/github.com/aws/smithy-go/tracing/tracing.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/auth.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/auth_schemes.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/checksum_middleware.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/client.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/doc.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/headerlist.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/host.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/interceptor.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/interceptor_middleware.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/internal/io/safe.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/md5_checksum.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/metrics.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/middleware_close_response_body.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/middleware_content_length.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/middleware_header_comment.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/middleware_headers.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/middleware_http_logging.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/middleware_metadata.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/middleware_min_proto.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/properties.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/request.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/response.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/time.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/url.go
delete mode 100644 vendor/github.com/aws/smithy-go/transport/http/user_agent.go
delete mode 100644 vendor/github.com/aws/smithy-go/validation.go
delete mode 100644 vendor/github.com/aws/smithy-go/waiter/logger.go
delete mode 100644 vendor/github.com/aws/smithy-go/waiter/waiter.go
delete mode 100644 vendor/github.com/cenkalti/backoff/v4/.gitignore
delete mode 100644 vendor/github.com/cenkalti/backoff/v4/LICENSE
delete mode 100644 vendor/github.com/cenkalti/backoff/v4/README.md
delete mode 100644 vendor/github.com/cenkalti/backoff/v4/backoff.go
delete mode 100644 vendor/github.com/cenkalti/backoff/v4/context.go
delete mode 100644 vendor/github.com/cenkalti/backoff/v4/exponential.go
delete mode 100644 vendor/github.com/cenkalti/backoff/v4/retry.go
delete mode 100644 vendor/github.com/cenkalti/backoff/v4/ticker.go
delete mode 100644 vendor/github.com/cenkalti/backoff/v4/timer.go
delete mode 100644 vendor/github.com/cenkalti/backoff/v4/tries.go
delete mode 100644 vendor/github.com/distribution/reference/.gitattributes
delete mode 100644 vendor/github.com/distribution/reference/.gitignore
delete mode 100644 vendor/github.com/distribution/reference/.golangci.yml
delete mode 100644 vendor/github.com/distribution/reference/CODE-OF-CONDUCT.md
delete mode 100644 vendor/github.com/distribution/reference/CONTRIBUTING.md
delete mode 100644 vendor/github.com/distribution/reference/GOVERNANCE.md
delete mode 100644 vendor/github.com/distribution/reference/LICENSE
delete mode 100644 vendor/github.com/distribution/reference/MAINTAINERS
delete mode 100644 vendor/github.com/distribution/reference/Makefile
delete mode 100644 vendor/github.com/distribution/reference/README.md
delete mode 100644 vendor/github.com/distribution/reference/SECURITY.md
delete mode 100644 vendor/github.com/distribution/reference/distribution-logo.svg
delete mode 100644 vendor/github.com/distribution/reference/helpers.go
delete mode 100644 vendor/github.com/distribution/reference/normalize.go
delete mode 100644 vendor/github.com/distribution/reference/reference.go
delete mode 100644 vendor/github.com/distribution/reference/regexp.go
delete mode 100644 vendor/github.com/distribution/reference/sort.go
delete mode 100644 vendor/github.com/emicklei/go-restful/v3/.travis.yml
delete mode 100644 vendor/github.com/felixge/httpsnoop/.gitignore
delete mode 100644 vendor/github.com/felixge/httpsnoop/LICENSE.txt
delete mode 100644 vendor/github.com/felixge/httpsnoop/Makefile
delete mode 100644 vendor/github.com/felixge/httpsnoop/README.md
delete mode 100644 vendor/github.com/felixge/httpsnoop/capture_metrics.go
delete mode 100644 vendor/github.com/felixge/httpsnoop/docs.go
delete mode 100644 vendor/github.com/felixge/httpsnoop/wrap_generated_gteq_1.8.go
delete mode 100644 vendor/github.com/felixge/httpsnoop/wrap_generated_lt_1.8.go
delete mode 100644 vendor/github.com/go-logr/stdr/LICENSE
delete mode 100644 vendor/github.com/go-logr/stdr/README.md
delete mode 100644 vendor/github.com/go-logr/stdr/stdr.go
create mode 100644 vendor/github.com/go-openapi/swag/.codecov.yml
create mode 100644 vendor/github.com/go-openapi/swag/.mockery.yml
create mode 100644 vendor/github.com/go-openapi/swag/SECURITY.md
rename vendor/{cel.dev/expr => github.com/go-openapi/swag/cmdutils}/LICENSE (100%)
create mode 100644 vendor/github.com/go-openapi/swag/cmdutils/cmd_utils.go
create mode 100644 vendor/github.com/go-openapi/swag/cmdutils/doc.go
create mode 100644 vendor/github.com/go-openapi/swag/cmdutils_iface.go
rename vendor/github.com/{moby/spdystream => go-openapi/swag/conv}/LICENSE (100%)
create mode 100644 vendor/github.com/go-openapi/swag/conv/convert.go
create mode 100644 vendor/github.com/go-openapi/swag/conv/convert_types.go
create mode 100644 vendor/github.com/go-openapi/swag/conv/doc.go
create mode 100644 vendor/github.com/go-openapi/swag/conv/format.go
create mode 100644 vendor/github.com/go-openapi/swag/conv/sizeof.go
create mode 100644 vendor/github.com/go-openapi/swag/conv/type_constraints.go
create mode 100644 vendor/github.com/go-openapi/swag/conv_iface.go
delete mode 100644 vendor/github.com/go-openapi/swag/convert.go
delete mode 100644 vendor/github.com/go-openapi/swag/convert_types.go
delete mode 100644 vendor/github.com/go-openapi/swag/file.go
rename vendor/github.com/{openshift-eng/openshift-tests-extension/pkg/util/sets => go-openapi/swag/fileutils}/LICENSE (100%)
create mode 100644 vendor/github.com/go-openapi/swag/fileutils/doc.go
create mode 100644 vendor/github.com/go-openapi/swag/fileutils/file.go
rename vendor/github.com/go-openapi/swag/{ => fileutils}/path.go (58%)
create mode 100644 vendor/github.com/go-openapi/swag/fileutils_iface.go
delete mode 100644 vendor/github.com/go-openapi/swag/initialism_index.go
delete mode 100644 vendor/github.com/go-openapi/swag/json.go
rename vendor/{google.golang.org/genproto/googleapis/api => github.com/go-openapi/swag/jsonname}/LICENSE (100%)
create mode 100644 vendor/github.com/go-openapi/swag/jsonname/doc.go
create mode 100644 vendor/github.com/go-openapi/swag/jsonname/name_provider.go
create mode 100644 vendor/github.com/go-openapi/swag/jsonname_iface.go
rename vendor/{google.golang.org/genproto/googleapis/rpc => github.com/go-openapi/swag/jsonutils}/LICENSE (100%)
create mode 100644 vendor/github.com/go-openapi/swag/jsonutils/README.md
create mode 100644 vendor/github.com/go-openapi/swag/jsonutils/adapters/doc.go
create mode 100644 vendor/github.com/go-openapi/swag/jsonutils/adapters/ifaces/doc.go
create mode 100644 vendor/github.com/go-openapi/swag/jsonutils/adapters/ifaces/ifaces.go
create mode 100644 vendor/github.com/go-openapi/swag/jsonutils/adapters/ifaces/registry_iface.go
create mode 100644 vendor/github.com/go-openapi/swag/jsonutils/adapters/registry.go
create mode 100644 vendor/github.com/go-openapi/swag/jsonutils/adapters/stdlib/json/adapter.go
create mode 100644 vendor/github.com/go-openapi/swag/jsonutils/adapters/stdlib/json/doc.go
create mode 100644 vendor/github.com/go-openapi/swag/jsonutils/adapters/stdlib/json/lexer.go
create mode 100644 vendor/github.com/go-openapi/swag/jsonutils/adapters/stdlib/json/ordered_map.go
create mode 100644 vendor/github.com/go-openapi/swag/jsonutils/adapters/stdlib/json/pool.go
create mode 100644 vendor/github.com/go-openapi/swag/jsonutils/adapters/stdlib/json/register.go
create mode 100644 vendor/github.com/go-openapi/swag/jsonutils/adapters/stdlib/json/writer.go
create mode 100644 vendor/github.com/go-openapi/swag/jsonutils/concat.go
create mode 100644 vendor/github.com/go-openapi/swag/jsonutils/doc.go
create mode 100644 vendor/github.com/go-openapi/swag/jsonutils/json.go
create mode 100644 vendor/github.com/go-openapi/swag/jsonutils/ordered_map.go
create mode 100644 vendor/github.com/go-openapi/swag/jsonutils_iface.go
rename vendor/{google.golang.org/grpc => github.com/go-openapi/swag/loading}/LICENSE (100%)
create mode 100644 vendor/github.com/go-openapi/swag/loading/doc.go
create mode 100644 vendor/github.com/go-openapi/swag/loading/errors.go
create mode 100644 vendor/github.com/go-openapi/swag/loading/json.go
rename vendor/github.com/go-openapi/swag/{ => loading}/loading.go (59%)
create mode 100644 vendor/github.com/go-openapi/swag/loading/options.go
create mode 100644 vendor/github.com/go-openapi/swag/loading/yaml.go
create mode 100644 vendor/github.com/go-openapi/swag/loading_iface.go
rename vendor/github.com/go-openapi/swag/{ => mangling}/BENCHMARK.md (53%)
rename vendor/{k8s.io/component-helpers => github.com/go-openapi/swag/mangling}/LICENSE (100%)
create mode 100644 vendor/github.com/go-openapi/swag/mangling/doc.go
create mode 100644 vendor/github.com/go-openapi/swag/mangling/initialism_index.go
create mode 100644 vendor/github.com/go-openapi/swag/mangling/name_lexem.go
create mode 100644 vendor/github.com/go-openapi/swag/mangling/name_mangler.go
create mode 100644 vendor/github.com/go-openapi/swag/mangling/options.go
create mode 100644 vendor/github.com/go-openapi/swag/mangling/pools.go
create mode 100644 vendor/github.com/go-openapi/swag/mangling/split.go
rename vendor/github.com/go-openapi/swag/{ => mangling}/string_bytes.go (60%)
create mode 100644 vendor/github.com/go-openapi/swag/mangling/util.go
create mode 100644 vendor/github.com/go-openapi/swag/mangling_iface.go
delete mode 100644 vendor/github.com/go-openapi/swag/name_lexem.go
delete mode 100644 vendor/github.com/go-openapi/swag/net.go
rename vendor/{k8s.io/kube-openapi/pkg/validation/errors => github.com/go-openapi/swag/netutils}/LICENSE (100%)
create mode 100644 vendor/github.com/go-openapi/swag/netutils/doc.go
create mode 100644 vendor/github.com/go-openapi/swag/netutils/net.go
create mode 100644 vendor/github.com/go-openapi/swag/netutils_iface.go
delete mode 100644 vendor/github.com/go-openapi/swag/split.go
rename vendor/{k8s.io/kube-openapi/pkg/validation/strfmt => github.com/go-openapi/swag/stringutils}/LICENSE (100%)
create mode 100644 vendor/github.com/go-openapi/swag/stringutils/collection_formats.go
create mode 100644 vendor/github.com/go-openapi/swag/stringutils/doc.go
create mode 100644 vendor/github.com/go-openapi/swag/stringutils/strings.go
create mode 100644 vendor/github.com/go-openapi/swag/stringutils_iface.go
rename vendor/{k8s.io/kubelet => github.com/go-openapi/swag/typeutils}/LICENSE (100%)
create mode 100644 vendor/github.com/go-openapi/swag/typeutils/doc.go
create mode 100644 vendor/github.com/go-openapi/swag/typeutils/types.go
create mode 100644 vendor/github.com/go-openapi/swag/typeutils_iface.go
delete mode 100644 vendor/github.com/go-openapi/swag/util.go
delete mode 100644 vendor/github.com/go-openapi/swag/yaml.go
rename vendor/{k8s.io/kubernetes => github.com/go-openapi/swag/yamlutils}/LICENSE (100%)
create mode 100644 vendor/github.com/go-openapi/swag/yamlutils/doc.go
create mode 100644 vendor/github.com/go-openapi/swag/yamlutils/errors.go
create mode 100644 vendor/github.com/go-openapi/swag/yamlutils/ordered_map.go
create mode 100644 vendor/github.com/go-openapi/swag/yamlutils/yaml.go
create mode 100644 vendor/github.com/go-openapi/swag/yamlutils_iface.go
delete mode 100644 vendor/github.com/google/cel-go/LICENSE
delete mode 100644 vendor/github.com/google/cel-go/cel/BUILD.bazel
delete mode 100644 vendor/github.com/google/cel-go/cel/cel.go
delete mode 100644 vendor/github.com/google/cel-go/cel/decls.go
delete mode 100644 vendor/github.com/google/cel-go/cel/env.go
delete mode 100644 vendor/github.com/google/cel-go/cel/folding.go
delete mode 100644 vendor/github.com/google/cel-go/cel/inlining.go
delete mode 100644 vendor/github.com/google/cel-go/cel/io.go
delete mode 100644 vendor/github.com/google/cel-go/cel/library.go
delete mode 100644 vendor/github.com/google/cel-go/cel/macro.go
delete mode 100644 vendor/github.com/google/cel-go/cel/optimizer.go
delete mode 100644 vendor/github.com/google/cel-go/cel/options.go
delete mode 100644 vendor/github.com/google/cel-go/cel/program.go
delete mode 100644 vendor/github.com/google/cel-go/cel/prompt.go
delete mode 100644 vendor/github.com/google/cel-go/cel/templates/authoring.tmpl
delete mode 100644 vendor/github.com/google/cel-go/cel/validator.go
delete mode 100644 vendor/github.com/google/cel-go/checker/BUILD.bazel
delete mode 100644 vendor/github.com/google/cel-go/checker/checker.go
delete mode 100644 vendor/github.com/google/cel-go/checker/cost.go
delete mode 100644 vendor/github.com/google/cel-go/checker/decls/BUILD.bazel
delete mode 100644 vendor/github.com/google/cel-go/checker/decls/decls.go
delete mode 100644 vendor/github.com/google/cel-go/checker/env.go
delete mode 100644 vendor/github.com/google/cel-go/checker/errors.go
delete mode 100644 vendor/github.com/google/cel-go/checker/format.go
delete mode 100644 vendor/github.com/google/cel-go/checker/mapping.go
delete mode 100644 vendor/github.com/google/cel-go/checker/options.go
delete mode 100644 vendor/github.com/google/cel-go/checker/printer.go
delete mode 100644 vendor/github.com/google/cel-go/checker/scopes.go
delete mode 100644 vendor/github.com/google/cel-go/checker/types.go
delete mode 100644 vendor/github.com/google/cel-go/common/BUILD.bazel
delete mode 100644 vendor/github.com/google/cel-go/common/ast/BUILD.bazel
delete mode 100644 vendor/github.com/google/cel-go/common/ast/ast.go
delete mode 100644 vendor/github.com/google/cel-go/common/ast/conversion.go
delete mode 100644 vendor/github.com/google/cel-go/common/ast/expr.go
delete mode 100644 vendor/github.com/google/cel-go/common/ast/factory.go
delete mode 100644 vendor/github.com/google/cel-go/common/ast/navigable.go
delete mode 100644 vendor/github.com/google/cel-go/common/containers/BUILD.bazel
delete mode 100644 vendor/github.com/google/cel-go/common/containers/container.go
delete mode 100644 vendor/github.com/google/cel-go/common/cost.go
delete mode 100644 vendor/github.com/google/cel-go/common/debug/BUILD.bazel
delete mode 100644 vendor/github.com/google/cel-go/common/debug/debug.go
delete mode 100644 vendor/github.com/google/cel-go/common/decls/BUILD.bazel
delete mode 100644 vendor/github.com/google/cel-go/common/decls/decls.go
delete mode 100644 vendor/github.com/google/cel-go/common/doc.go
delete mode 100644 vendor/github.com/google/cel-go/common/env/BUILD.bazel
delete mode 100644 vendor/github.com/google/cel-go/common/env/env.go
delete mode 100644 vendor/github.com/google/cel-go/common/error.go
delete mode 100644 vendor/github.com/google/cel-go/common/errors.go
delete mode 100644 vendor/github.com/google/cel-go/common/functions/BUILD.bazel
delete mode 100644 vendor/github.com/google/cel-go/common/functions/functions.go
delete mode 100644 vendor/github.com/google/cel-go/common/location.go
delete mode 100644 vendor/github.com/google/cel-go/common/operators/BUILD.bazel
delete mode 100644 vendor/github.com/google/cel-go/common/operators/operators.go
delete mode 100644 vendor/github.com/google/cel-go/common/overloads/BUILD.bazel
delete mode 100644 vendor/github.com/google/cel-go/common/overloads/overloads.go
delete mode 100644 vendor/github.com/google/cel-go/common/runes/BUILD.bazel
delete mode 100644 vendor/github.com/google/cel-go/common/runes/buffer.go
delete mode 100644 vendor/github.com/google/cel-go/common/source.go
delete mode 100644 vendor/github.com/google/cel-go/common/stdlib/BUILD.bazel
delete mode 100644 vendor/github.com/google/cel-go/common/stdlib/standard.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/BUILD.bazel
delete mode 100644 vendor/github.com/google/cel-go/common/types/any_value.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/bool.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/bytes.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/compare.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/doc.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/double.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/duration.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/err.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/format.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/int.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/iterator.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/json_value.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/list.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/map.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/null.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/object.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/optional.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/overflow.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/pb/BUILD.bazel
delete mode 100644 vendor/github.com/google/cel-go/common/types/pb/checked.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/pb/enum.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/pb/equal.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/pb/file.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/pb/pb.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/pb/type.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/provider.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/ref/BUILD.bazel
delete mode 100644 vendor/github.com/google/cel-go/common/types/ref/provider.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/ref/reference.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/string.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/timestamp.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/traits/BUILD.bazel
delete mode 100644 vendor/github.com/google/cel-go/common/types/traits/comparer.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/traits/container.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/traits/field_tester.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/traits/indexer.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/traits/iterator.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/traits/lister.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/traits/mapper.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/traits/matcher.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/traits/math.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/traits/receiver.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/traits/sizer.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/traits/traits.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/traits/zeroer.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/types.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/uint.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/unknown.go
delete mode 100644 vendor/github.com/google/cel-go/common/types/util.go
delete mode 100644 vendor/github.com/google/cel-go/ext/BUILD.bazel
delete mode 100644 vendor/github.com/google/cel-go/ext/README.md
delete mode 100644 vendor/github.com/google/cel-go/ext/bindings.go
delete mode 100644 vendor/github.com/google/cel-go/ext/comprehensions.go
delete mode 100644 vendor/github.com/google/cel-go/ext/encoders.go
delete mode 100644 vendor/github.com/google/cel-go/ext/extension_option_factory.go
delete mode 100644 vendor/github.com/google/cel-go/ext/formatting.go
delete mode 100644 vendor/github.com/google/cel-go/ext/formatting_v2.go
delete mode 100644 vendor/github.com/google/cel-go/ext/guards.go
delete mode 100644 vendor/github.com/google/cel-go/ext/lists.go
delete mode 100644 vendor/github.com/google/cel-go/ext/math.go
delete mode 100644 vendor/github.com/google/cel-go/ext/native.go
delete mode 100644 vendor/github.com/google/cel-go/ext/protos.go
delete mode 100644 vendor/github.com/google/cel-go/ext/regex.go
delete mode 100644 vendor/github.com/google/cel-go/ext/sets.go
delete mode 100644 vendor/github.com/google/cel-go/ext/strings.go
delete mode 100644 vendor/github.com/google/cel-go/interpreter/BUILD.bazel
delete mode 100644 vendor/github.com/google/cel-go/interpreter/activation.go
delete mode 100644 vendor/github.com/google/cel-go/interpreter/attribute_patterns.go
delete mode 100644 vendor/github.com/google/cel-go/interpreter/attributes.go
delete mode 100644 vendor/github.com/google/cel-go/interpreter/decorators.go
delete mode 100644 vendor/github.com/google/cel-go/interpreter/dispatcher.go
delete mode 100644 vendor/github.com/google/cel-go/interpreter/evalstate.go
delete mode 100644 vendor/github.com/google/cel-go/interpreter/functions/BUILD.bazel
delete mode 100644 vendor/github.com/google/cel-go/interpreter/functions/functions.go
delete mode 100644 vendor/github.com/google/cel-go/interpreter/interpretable.go
delete mode 100644 vendor/github.com/google/cel-go/interpreter/interpreter.go
delete mode 100644 vendor/github.com/google/cel-go/interpreter/optimizations.go
delete mode 100644 vendor/github.com/google/cel-go/interpreter/planner.go
delete mode 100644 vendor/github.com/google/cel-go/interpreter/prune.go
delete mode 100644 vendor/github.com/google/cel-go/interpreter/runtimecost.go
delete mode 100644 vendor/github.com/google/cel-go/parser/BUILD.bazel
delete mode 100644 vendor/github.com/google/cel-go/parser/errors.go
delete mode 100644 vendor/github.com/google/cel-go/parser/gen/BUILD.bazel
delete mode 100644 vendor/github.com/google/cel-go/parser/gen/CEL.g4
delete mode 100644 vendor/github.com/google/cel-go/parser/gen/CEL.interp
delete mode 100644 vendor/github.com/google/cel-go/parser/gen/CEL.tokens
delete mode 100644 vendor/github.com/google/cel-go/parser/gen/CELLexer.interp
delete mode 100644 vendor/github.com/google/cel-go/parser/gen/CELLexer.tokens
delete mode 100644 vendor/github.com/google/cel-go/parser/gen/cel_base_listener.go
delete mode 100644 vendor/github.com/google/cel-go/parser/gen/cel_base_visitor.go
delete mode 100644 vendor/github.com/google/cel-go/parser/gen/cel_lexer.go
delete mode 100644 vendor/github.com/google/cel-go/parser/gen/cel_listener.go
delete mode 100644 vendor/github.com/google/cel-go/parser/gen/cel_parser.go
delete mode 100644 vendor/github.com/google/cel-go/parser/gen/cel_visitor.go
delete mode 100644 vendor/github.com/google/cel-go/parser/gen/doc.go
delete mode 100644 vendor/github.com/google/cel-go/parser/gen/generate.sh
delete mode 100644 vendor/github.com/google/cel-go/parser/helper.go
delete mode 100644 vendor/github.com/google/cel-go/parser/input.go
delete mode 100644 vendor/github.com/google/cel-go/parser/macro.go
delete mode 100644 vendor/github.com/google/cel-go/parser/options.go
delete mode 100644 vendor/github.com/google/cel-go/parser/parser.go
delete mode 100644 vendor/github.com/google/cel-go/parser/unescape.go
delete mode 100644 vendor/github.com/google/cel-go/parser/unparser.go
delete mode 100644 vendor/github.com/gorilla/websocket/.gitignore
delete mode 100644 vendor/github.com/gorilla/websocket/AUTHORS
delete mode 100644 vendor/github.com/gorilla/websocket/LICENSE
delete mode 100644 vendor/github.com/gorilla/websocket/README.md
delete mode 100644 vendor/github.com/gorilla/websocket/client.go
delete mode 100644 vendor/github.com/gorilla/websocket/compression.go
delete mode 100644 vendor/github.com/gorilla/websocket/conn.go
delete mode 100644 vendor/github.com/gorilla/websocket/doc.go
delete mode 100644 vendor/github.com/gorilla/websocket/join.go
delete mode 100644 vendor/github.com/gorilla/websocket/json.go
delete mode 100644 vendor/github.com/gorilla/websocket/mask.go
delete mode 100644 vendor/github.com/gorilla/websocket/mask_safe.go
delete mode 100644 vendor/github.com/gorilla/websocket/prepared.go
delete mode 100644 vendor/github.com/gorilla/websocket/proxy.go
delete mode 100644 vendor/github.com/gorilla/websocket/server.go
delete mode 100644 vendor/github.com/gorilla/websocket/util.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/LICENSE
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/internal/httprule/BUILD.bazel
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/internal/httprule/compile.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/internal/httprule/fuzz.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/internal/httprule/parse.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/internal/httprule/types.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/BUILD.bazel
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/context.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/convert.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/doc.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/errors.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/fieldmask.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/handler.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/marshal_httpbodyproto.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/marshal_json.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/marshal_jsonpb.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/marshal_proto.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/marshaler.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/marshaler_registry.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/mux.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/pattern.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/proto2_convert.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/query.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/utilities/BUILD.bazel
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/utilities/doc.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/utilities/pattern.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/utilities/readerfactory.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/utilities/string_array_flag.go
delete mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/v2/utilities/trie.go
delete mode 100644 vendor/github.com/josharian/intern/README.md
delete mode 100644 vendor/github.com/josharian/intern/intern.go
delete mode 100644 vendor/github.com/josharian/intern/license.md
delete mode 100644 vendor/github.com/mailru/easyjson/LICENSE
delete mode 100644 vendor/github.com/mailru/easyjson/buffer/pool.go
delete mode 100644 vendor/github.com/mailru/easyjson/jlexer/bytestostr.go
delete mode 100644 vendor/github.com/mailru/easyjson/jlexer/bytestostr_nounsafe.go
delete mode 100644 vendor/github.com/mailru/easyjson/jlexer/error.go
delete mode 100644 vendor/github.com/mailru/easyjson/jlexer/lexer.go
delete mode 100644 vendor/github.com/mailru/easyjson/jwriter/writer.go
delete mode 100644 vendor/github.com/moby/spdystream/CONTRIBUTING.md
delete mode 100644 vendor/github.com/moby/spdystream/MAINTAINERS
delete mode 100644 vendor/github.com/moby/spdystream/NOTICE
delete mode 100644 vendor/github.com/moby/spdystream/README.md
delete mode 100644 vendor/github.com/moby/spdystream/connection.go
delete mode 100644 vendor/github.com/moby/spdystream/handlers.go
delete mode 100644 vendor/github.com/moby/spdystream/priority.go
delete mode 100644 vendor/github.com/moby/spdystream/spdy/dictionary.go
delete mode 100644 vendor/github.com/moby/spdystream/spdy/read.go
delete mode 100644 vendor/github.com/moby/spdystream/spdy/types.go
delete mode 100644 vendor/github.com/moby/spdystream/spdy/write.go
delete mode 100644 vendor/github.com/moby/spdystream/stream.go
delete mode 100644 vendor/github.com/moby/spdystream/utils.go
delete mode 100644 vendor/github.com/mxk/go-flowrate/LICENSE
delete mode 100644 vendor/github.com/mxk/go-flowrate/flowrate/flowrate.go
delete mode 100644 vendor/github.com/mxk/go-flowrate/flowrate/io.go
delete mode 100644 vendor/github.com/mxk/go-flowrate/flowrate/util.go
delete mode 100644 vendor/github.com/onsi/ginkgo/v2/OWNERS
delete mode 100644 vendor/github.com/onsi/ginkgo/v2/core_dsl_patch.go
delete mode 100644 vendor/github.com/onsi/ginkgo/v2/internal/spec_patch.go
delete mode 100644 vendor/github.com/onsi/ginkgo/v2/internal/suite_patch.go
delete mode 100644 vendor/github.com/onsi/ginkgo/v2/types/types_patch.go
delete mode 100644 vendor/github.com/onsi/gomega/gcustom/make_matcher.go
delete mode 100644 vendor/github.com/opencontainers/go-digest/.mailmap
delete mode 100644 vendor/github.com/opencontainers/go-digest/.pullapprove.yml
delete mode 100644 vendor/github.com/opencontainers/go-digest/.travis.yml
delete mode 100644 vendor/github.com/opencontainers/go-digest/CONTRIBUTING.md
delete mode 100644 vendor/github.com/opencontainers/go-digest/LICENSE
delete mode 100644 vendor/github.com/opencontainers/go-digest/LICENSE.docs
delete mode 100644 vendor/github.com/opencontainers/go-digest/MAINTAINERS
delete mode 100644 vendor/github.com/opencontainers/go-digest/README.md
delete mode 100644 vendor/github.com/opencontainers/go-digest/algorithm.go
delete mode 100644 vendor/github.com/opencontainers/go-digest/digest.go
delete mode 100644 vendor/github.com/opencontainers/go-digest/digester.go
delete mode 100644 vendor/github.com/opencontainers/go-digest/doc.go
delete mode 100644 vendor/github.com/opencontainers/go-digest/verifiers.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/LICENSE
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/cmd/cmd.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/cmd/cmdimages/cmdimages.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/cmd/cmdinfo/info.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/cmd/cmdlist/list.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/cmd/cmdrun/runsuite.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/cmd/cmdrun/runtest.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/cmd/cmdupdate/update.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/dbtime/time.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/extension/extension.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/extension/extensiontests/environment.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/extension/extensiontests/result.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/extension/extensiontests/result_writer.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/extension/extensiontests/spec.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/extension/extensiontests/task.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/extension/extensiontests/types.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/extension/extensiontests/viewer.html
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/extension/registry.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/extension/types.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/flags/component.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/flags/concurrency.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/flags/environment.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/flags/names.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/flags/output.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/flags/suite.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/ginkgo/logging.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/ginkgo/parallel.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/ginkgo/util.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/junit/types.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/util/sets/README.md
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/util/sets/byte.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/util/sets/doc.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/util/sets/empty.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/util/sets/int.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/util/sets/int32.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/util/sets/int64.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/util/sets/set.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/util/sets/string.go
delete mode 100644 vendor/github.com/openshift-eng/openshift-tests-extension/pkg/version/version.go
create mode 100644 vendor/github.com/openshift/api/config/v1/types_crio_credential_provider_config.go
create mode 100644 vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_criocredentialproviderconfigs.crd.yaml
create mode 100644 vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_dnses-CustomNoUpgrade.crd.yaml
create mode 100644 vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_dnses-Default.crd.yaml
create mode 100644 vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_dnses-DevPreviewNoUpgrade.crd.yaml
rename vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/{0000_10_config-operator_01_dnses.crd.yaml => 0000_10_config-operator_01_dnses-OKD.crd.yaml} (91%)
create mode 100644 vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_dnses-TechPreviewNoUpgrade.crd.yaml
create mode 100644 vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_infrastructures-Hypershift-CustomNoUpgrade.crd.yaml
rename vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/{0000_10_config-operator_01_infrastructures-DevPreviewNoUpgrade.crd.yaml => 0000_10_config-operator_01_infrastructures-Hypershift-DevPreviewNoUpgrade.crd.yaml} (99%)
rename vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/{0000_10_config-operator_01_infrastructures-CustomNoUpgrade.crd.yaml => 0000_10_config-operator_01_infrastructures-Hypershift-TechPreviewNoUpgrade.crd.yaml} (99%)
create mode 100644 vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_infrastructures-SelfManagedHA-CustomNoUpgrade.crd.yaml
create mode 100644 vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_infrastructures-SelfManagedHA-DevPreviewNoUpgrade.crd.yaml
rename vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/{0000_10_config-operator_01_infrastructures-TechPreviewNoUpgrade.crd.yaml => 0000_10_config-operator_01_infrastructures-SelfManagedHA-TechPreviewNoUpgrade.crd.yaml} (99%)
create mode 100644 vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_ingresses-CustomNoUpgrade.crd.yaml
create mode 100644 vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_ingresses-Default.crd.yaml
create mode 100644 vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_ingresses-DevPreviewNoUpgrade.crd.yaml
rename vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/{0000_10_config-operator_01_ingresses.crd.yaml => 0000_10_config-operator_01_ingresses-OKD.crd.yaml} (99%)
create mode 100644 vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_ingresses-TechPreviewNoUpgrade.crd.yaml
create mode 100644 vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_networks-CustomNoUpgrade.crd.yaml
create mode 100644 vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_networks-Default.crd.yaml
create mode 100644 vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_networks-DevPreviewNoUpgrade.crd.yaml
rename vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/{0000_10_config-operator_01_networks.crd.yaml => 0000_10_config-operator_01_networks-OKD.crd.yaml} (99%)
create mode 100644 vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_networks-TechPreviewNoUpgrade.crd.yaml
create mode 100644 vendor/github.com/openshift/api/config/v1/zz_generated.model_name.go
delete mode 100644 vendor/github.com/openshift/api/config/v1alpha1/types_cluster_image_policy.go
delete mode 100644 vendor/github.com/openshift/api/config/v1alpha1/types_image_policy.go
create mode 100644 vendor/github.com/openshift/api/config/v1alpha1/zz_generated.model_name.go
create mode 100644 vendor/github.com/openshift/api/config/v1alpha2/zz_generated.model_name.go
create mode 100644 vendor/github.com/openshift/api/machine/v1/zz_generated.model_name.go
create mode 100644 vendor/github.com/openshift/api/machine/v1beta1/zz_generated.model_name.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/alertmanagerconfig.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/alertmanagercustomconfig.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/audit.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/backup.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/backupspec.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/clusterimagepolicy.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/clusterimagepolicyspec.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/clusterimagepolicystatus.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/clustermonitoring.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/clustermonitoringspec.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/containerresource.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/criocredentialproviderconfig.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/criocredentialproviderconfigspec.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/criocredentialproviderconfigstatus.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/etcdbackupspec.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/gatherconfig.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/imagepolicy.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/imagepolicyfulciocawithrekorrootoftrust.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/imagepolicypkirootoftrust.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/imagepolicypublickeyrootoftrust.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/imagepolicyspec.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/imagepolicystatus.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/imagesigstoreverificationpolicy.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/insightsdatagather.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/insightsdatagatherspec.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/metricsserverconfig.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/persistentvolumeclaimreference.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/persistentvolumeconfig.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/pkicertificatesubject.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/policyfulciosubject.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/policyidentity.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/policymatchexactrepository.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/policymatchremapidentity.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/policyrootoftrust.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/prometheusoperatoradmissionwebhookconfig.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/prometheusoperatorconfig.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/retentionnumberconfig.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/retentionpolicy.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/retentionsizeconfig.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/storage.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha1/userdefinedmonitoring.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha2/custom.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha2/gatherconfig.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha2/gathererconfig.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha2/gatherers.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha2/insightsdatagather.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha2/insightsdatagatherspec.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha2/persistentvolumeclaimreference.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha2/persistentvolumeconfig.go
delete mode 100644 vendor/github.com/openshift/client-go/config/applyconfigurations/config/v1alpha2/storage.go
delete mode 100644 vendor/github.com/openshift/client-go/config/clientset/versioned/clientset.go
delete mode 100644 vendor/github.com/openshift/client-go/config/clientset/versioned/typed/config/v1alpha1/backup.go
delete mode 100644 vendor/github.com/openshift/client-go/config/clientset/versioned/typed/config/v1alpha1/clusterimagepolicy.go
delete mode 100644 vendor/github.com/openshift/client-go/config/clientset/versioned/typed/config/v1alpha1/clustermonitoring.go
delete mode 100644 vendor/github.com/openshift/client-go/config/clientset/versioned/typed/config/v1alpha1/config_client.go
delete mode 100644 vendor/github.com/openshift/client-go/config/clientset/versioned/typed/config/v1alpha1/criocredentialproviderconfig.go
delete mode 100644 vendor/github.com/openshift/client-go/config/clientset/versioned/typed/config/v1alpha1/doc.go
delete mode 100644 vendor/github.com/openshift/client-go/config/clientset/versioned/typed/config/v1alpha1/generated_expansion.go
delete mode 100644 vendor/github.com/openshift/client-go/config/clientset/versioned/typed/config/v1alpha1/imagepolicy.go
delete mode 100644 vendor/github.com/openshift/client-go/config/clientset/versioned/typed/config/v1alpha1/insightsdatagather.go
delete mode 100644 vendor/github.com/openshift/client-go/config/clientset/versioned/typed/config/v1alpha2/config_client.go
delete mode 100644 vendor/github.com/openshift/client-go/config/clientset/versioned/typed/config/v1alpha2/doc.go
delete mode 100644 vendor/github.com/openshift/client-go/config/clientset/versioned/typed/config/v1alpha2/generated_expansion.go
delete mode 100644 vendor/github.com/openshift/client-go/config/clientset/versioned/typed/config/v1alpha2/insightsdatagather.go
delete mode 100644 vendor/github.com/openshift/machine-api-operator/test/e2e/util.go
delete mode 100644 vendor/github.com/pkg/errors/.gitignore
delete mode 100644 vendor/github.com/pkg/errors/.travis.yml
delete mode 100644 vendor/github.com/pkg/errors/LICENSE
delete mode 100644 vendor/github.com/pkg/errors/Makefile
delete mode 100644 vendor/github.com/pkg/errors/README.md
delete mode 100644 vendor/github.com/pkg/errors/appveyor.yml
delete mode 100644 vendor/github.com/pkg/errors/errors.go
delete mode 100644 vendor/github.com/pkg/errors/go113.go
delete mode 100644 vendor/github.com/pkg/errors/stack.go
delete mode 100644 vendor/github.com/robfig/cron/v3/.gitignore
delete mode 100644 vendor/github.com/robfig/cron/v3/.travis.yml
delete mode 100644 vendor/github.com/robfig/cron/v3/LICENSE
delete mode 100644 vendor/github.com/robfig/cron/v3/README.md
delete mode 100644 vendor/github.com/robfig/cron/v3/chain.go
delete mode 100644 vendor/github.com/robfig/cron/v3/constantdelay.go
delete mode 100644 vendor/github.com/robfig/cron/v3/cron.go
delete mode 100644 vendor/github.com/robfig/cron/v3/doc.go
delete mode 100644 vendor/github.com/robfig/cron/v3/logger.go
delete mode 100644 vendor/github.com/robfig/cron/v3/option.go
delete mode 100644 vendor/github.com/robfig/cron/v3/parser.go
delete mode 100644 vendor/github.com/robfig/cron/v3/spec.go
delete mode 100644 vendor/github.com/stoewer/go-strcase/.gitignore
delete mode 100644 vendor/github.com/stoewer/go-strcase/.golangci.yml
delete mode 100644 vendor/github.com/stoewer/go-strcase/LICENSE
delete mode 100644 vendor/github.com/stoewer/go-strcase/README.md
delete mode 100644 vendor/github.com/stoewer/go-strcase/camel.go
delete mode 100644 vendor/github.com/stoewer/go-strcase/doc.go
delete mode 100644 vendor/github.com/stoewer/go-strcase/helper.go
delete mode 100644 vendor/github.com/stoewer/go-strcase/kebab.go
delete mode 100644 vendor/github.com/stoewer/go-strcase/snake.go
delete mode 100644 vendor/go.opentelemetry.io/auto/sdk/CONTRIBUTING.md
delete mode 100644 vendor/go.opentelemetry.io/auto/sdk/LICENSE
delete mode 100644 vendor/go.opentelemetry.io/auto/sdk/VERSIONING.md
delete mode 100644 vendor/go.opentelemetry.io/auto/sdk/doc.go
delete mode 100644 vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/attr.go
delete mode 100644 vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/doc.go
delete mode 100644 vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/id.go
delete mode 100644 vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/number.go
delete mode 100644 vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/resource.go
delete mode 100644 vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/scope.go
delete mode 100644 vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/span.go
delete mode 100644 vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/status.go
delete mode 100644 vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/traces.go
delete mode 100644 vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/value.go
delete mode 100644 vendor/go.opentelemetry.io/auto/sdk/limit.go
delete mode 100644 vendor/go.opentelemetry.io/auto/sdk/span.go
delete mode 100644 vendor/go.opentelemetry.io/auto/sdk/tracer.go
delete mode 100644 vendor/go.opentelemetry.io/auto/sdk/tracer_provider.go
delete mode 100644 vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/LICENSE
delete mode 100644 vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/client.go
delete mode 100644 vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/common.go
delete mode 100644 vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/config.go
delete mode 100644 vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/doc.go
delete mode 100644 vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/handler.go
delete mode 100644 vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/request/body_wrapper.go
delete mode 100644 vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/request/gen.go
delete mode 100644 vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/request/resp_writer_wrapper.go
delete mode 100644 vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv/env.go
delete mode 100644 vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv/gen.go
delete mode 100644 vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv/httpconv.go
delete mode 100644 vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv/util.go
delete mode 100644 vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconv/v1.20.0.go
delete mode 100644 vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconvutil/gen.go
delete mode 100644 vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconvutil/httpconv.go
delete mode 100644 vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconvutil/netconv.go
delete mode 100644 vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/labeler.go
delete mode 100644 vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/start_time_context.go
delete mode 100644 vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/transport.go
delete mode 100644 vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/version.go
delete mode 100644 vendor/go.opentelemetry.io/otel/.clomonitor.yml
delete mode 100644 vendor/go.opentelemetry.io/otel/.codespellignore
delete mode 100644 vendor/go.opentelemetry.io/otel/.codespellrc
delete mode 100644 vendor/go.opentelemetry.io/otel/.gitattributes
delete mode 100644 vendor/go.opentelemetry.io/otel/.gitignore
delete mode 100644 vendor/go.opentelemetry.io/otel/.golangci.yml
delete mode 100644 vendor/go.opentelemetry.io/otel/.lycheeignore
delete mode 100644 vendor/go.opentelemetry.io/otel/.markdownlint.yaml
delete mode 100644 vendor/go.opentelemetry.io/otel/CHANGELOG.md
delete mode 100644 vendor/go.opentelemetry.io/otel/CODEOWNERS
delete mode 100644 vendor/go.opentelemetry.io/otel/CONTRIBUTING.md
delete mode 100644 vendor/go.opentelemetry.io/otel/Makefile
delete mode 100644 vendor/go.opentelemetry.io/otel/README.md
delete mode 100644 vendor/go.opentelemetry.io/otel/RELEASING.md
delete mode 100644 vendor/go.opentelemetry.io/otel/SECURITY-INSIGHTS.yml
delete mode 100644 vendor/go.opentelemetry.io/otel/VERSIONING.md
delete mode 100644 vendor/go.opentelemetry.io/otel/baggage/README.md
delete mode 100644 vendor/go.opentelemetry.io/otel/baggage/baggage.go
delete mode 100644 vendor/go.opentelemetry.io/otel/baggage/context.go
delete mode 100644 vendor/go.opentelemetry.io/otel/baggage/doc.go
delete mode 100644 vendor/go.opentelemetry.io/otel/dependencies.Dockerfile
delete mode 100644 vendor/go.opentelemetry.io/otel/doc.go
delete mode 100644 vendor/go.opentelemetry.io/otel/error_handler.go
delete mode 100644 vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/LICENSE
delete mode 100644 vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/README.md
delete mode 100644 vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/clients.go
delete mode 100644 vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/doc.go
delete mode 100644 vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/exporter.go
delete mode 100644 vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/tracetransform/attribute.go
delete mode 100644 vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/tracetransform/instrumentation.go
delete mode 100644 vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/tracetransform/resource.go
delete mode 100644 vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/tracetransform/span.go
delete mode 100644 vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/LICENSE
delete mode 100644 vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/README.md
delete mode 100644 vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/client.go
delete mode 100644 vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/doc.go
delete mode 100644 vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/exporter.go
delete mode 100644 vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/envconfig/envconfig.go
delete mode 100644 vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/gen.go
delete mode 100644 vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/otlpconfig/envconfig.go
delete mode 100644 vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/otlpconfig/options.go
delete mode 100644 vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/otlpconfig/optiontypes.go
delete mode 100644 vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/otlpconfig/tls.go
delete mode 100644 vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/partialsuccess.go
delete mode 100644 vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/retry/retry.go
delete mode 100644 vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/options.go
delete mode 100644 vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/version.go
delete mode 100644 vendor/go.opentelemetry.io/otel/handler.go
delete mode 100644 vendor/go.opentelemetry.io/otel/internal/baggage/baggage.go
delete mode 100644 vendor/go.opentelemetry.io/otel/internal/baggage/context.go
delete mode 100644 vendor/go.opentelemetry.io/otel/internal/global/handler.go
delete mode 100644 vendor/go.opentelemetry.io/otel/internal/global/instruments.go
delete mode 100644 vendor/go.opentelemetry.io/otel/internal/global/internal_logging.go
delete mode 100644 vendor/go.opentelemetry.io/otel/internal/global/meter.go
delete mode 100644 vendor/go.opentelemetry.io/otel/internal/global/propagator.go
delete mode 100644 vendor/go.opentelemetry.io/otel/internal/global/state.go
delete mode 100644 vendor/go.opentelemetry.io/otel/internal/global/trace.go
delete mode 100644 vendor/go.opentelemetry.io/otel/internal_logging.go
delete mode 100644 vendor/go.opentelemetry.io/otel/metric.go
delete mode 100644 vendor/go.opentelemetry.io/otel/metric/LICENSE
delete mode 100644 vendor/go.opentelemetry.io/otel/metric/README.md
delete mode 100644 vendor/go.opentelemetry.io/otel/metric/asyncfloat64.go
delete mode 100644 vendor/go.opentelemetry.io/otel/metric/asyncint64.go
delete mode 100644 vendor/go.opentelemetry.io/otel/metric/config.go
delete mode 100644 vendor/go.opentelemetry.io/otel/metric/doc.go
delete mode 100644 vendor/go.opentelemetry.io/otel/metric/embedded/README.md
delete mode 100644 vendor/go.opentelemetry.io/otel/metric/embedded/embedded.go
delete mode 100644 vendor/go.opentelemetry.io/otel/metric/instrument.go
delete mode 100644 vendor/go.opentelemetry.io/otel/metric/meter.go
delete mode 100644 vendor/go.opentelemetry.io/otel/metric/noop/README.md
delete mode 100644 vendor/go.opentelemetry.io/otel/metric/noop/noop.go
delete mode 100644 vendor/go.opentelemetry.io/otel/metric/syncfloat64.go
delete mode 100644 vendor/go.opentelemetry.io/otel/metric/syncint64.go
delete mode 100644 vendor/go.opentelemetry.io/otel/propagation.go
delete mode 100644 vendor/go.opentelemetry.io/otel/propagation/README.md
delete mode 100644 vendor/go.opentelemetry.io/otel/propagation/baggage.go
delete mode 100644 vendor/go.opentelemetry.io/otel/propagation/doc.go
delete mode 100644 vendor/go.opentelemetry.io/otel/propagation/propagation.go
delete mode 100644 vendor/go.opentelemetry.io/otel/propagation/trace_context.go
delete mode 100644 vendor/go.opentelemetry.io/otel/renovate.json
delete mode 100644 vendor/go.opentelemetry.io/otel/requirements.txt
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/LICENSE
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/README.md
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/instrumentation/README.md
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/instrumentation/doc.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/instrumentation/library.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/instrumentation/scope.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/internal/x/README.md
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/internal/x/features.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/internal/x/x.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/resource/README.md
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/resource/auto.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/resource/builtin.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/resource/config.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/resource/container.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/resource/doc.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/resource/env.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/resource/host_id.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/resource/host_id_bsd.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/resource/host_id_darwin.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/resource/host_id_exec.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/resource/host_id_linux.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/resource/host_id_readfile.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/resource/host_id_unsupported.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/resource/host_id_windows.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/resource/os.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/resource/os_release_darwin.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/resource/os_release_unix.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/resource/os_unix.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/resource/os_unsupported.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/resource/os_windows.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/resource/process.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/resource/resource.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/trace/README.md
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/trace/batch_span_processor.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/trace/doc.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/trace/event.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/trace/evictedqueue.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/trace/id_generator.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/trace/internal/env/env.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/trace/internal/observ/batch_span_processor.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/trace/internal/observ/doc.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/trace/internal/observ/simple_span_processor.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/trace/internal/observ/tracer.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/trace/link.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/trace/provider.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/trace/sampler_env.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/trace/sampling.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/trace/simple_span_processor.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/trace/snapshot.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/trace/span.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/trace/span_exporter.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/trace/span_limits.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/trace/span_processor.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/trace/tracer.go
delete mode 100644 vendor/go.opentelemetry.io/otel/sdk/version.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.17.0/README.md
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.17.0/doc.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.17.0/event.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.17.0/exception.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.17.0/http.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.17.0/resource.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.17.0/schema.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.17.0/trace.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.20.0/README.md
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.20.0/attribute_group.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.20.0/doc.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.20.0/event.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.20.0/exception.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.20.0/http.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.20.0/resource.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.20.0/schema.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.20.0/trace.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.26.0/README.md
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.26.0/attribute_group.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.26.0/doc.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.26.0/exception.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.26.0/metric.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.26.0/schema.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.37.0/MIGRATION.md
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.37.0/README.md
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.37.0/attribute_group.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.37.0/doc.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.37.0/error_type.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.37.0/exception.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.37.0/schema.go
delete mode 100644 vendor/go.opentelemetry.io/otel/semconv/v1.39.0/otelconv/metric.go
delete mode 100644 vendor/go.opentelemetry.io/otel/trace.go
delete mode 100644 vendor/go.opentelemetry.io/otel/trace/noop/README.md
delete mode 100644 vendor/go.opentelemetry.io/otel/trace/noop/noop.go
delete mode 100644 vendor/go.opentelemetry.io/otel/verify_released_changelog.sh
delete mode 100644 vendor/go.opentelemetry.io/otel/version.go
delete mode 100644 vendor/go.opentelemetry.io/otel/versions.yaml
delete mode 100644 vendor/go.opentelemetry.io/proto/otlp/LICENSE
delete mode 100644 vendor/go.opentelemetry.io/proto/otlp/collector/trace/v1/trace_service.pb.go
delete mode 100644 vendor/go.opentelemetry.io/proto/otlp/collector/trace/v1/trace_service.pb.gw.go
delete mode 100644 vendor/go.opentelemetry.io/proto/otlp/collector/trace/v1/trace_service_grpc.pb.go
delete mode 100644 vendor/go.opentelemetry.io/proto/otlp/common/v1/common.pb.go
delete mode 100644 vendor/go.opentelemetry.io/proto/otlp/resource/v1/resource.pb.go
delete mode 100644 vendor/go.opentelemetry.io/proto/otlp/trace/v1/trace.pb.go
delete mode 100644 vendor/golang.org/x/crypto/LICENSE
delete mode 100644 vendor/golang.org/x/crypto/PATENTS
delete mode 100644 vendor/golang.org/x/crypto/blowfish/block.go
delete mode 100644 vendor/golang.org/x/crypto/blowfish/cipher.go
delete mode 100644 vendor/golang.org/x/crypto/blowfish/const.go
delete mode 100644 vendor/golang.org/x/crypto/chacha20/chacha_arm64.go
delete mode 100644 vendor/golang.org/x/crypto/chacha20/chacha_arm64.s
delete mode 100644 vendor/golang.org/x/crypto/chacha20/chacha_generic.go
delete mode 100644 vendor/golang.org/x/crypto/chacha20/chacha_noasm.go
delete mode 100644 vendor/golang.org/x/crypto/chacha20/chacha_ppc64x.go
delete mode 100644 vendor/golang.org/x/crypto/chacha20/chacha_ppc64x.s
delete mode 100644 vendor/golang.org/x/crypto/chacha20/chacha_s390x.go
delete mode 100644 vendor/golang.org/x/crypto/chacha20/chacha_s390x.s
delete mode 100644 vendor/golang.org/x/crypto/chacha20/xor.go
delete mode 100644 vendor/golang.org/x/crypto/curve25519/curve25519.go
delete mode 100644 vendor/golang.org/x/crypto/internal/alias/alias.go
delete mode 100644 vendor/golang.org/x/crypto/internal/alias/alias_purego.go
delete mode 100644 vendor/golang.org/x/crypto/internal/poly1305/mac_noasm.go
delete mode 100644 vendor/golang.org/x/crypto/internal/poly1305/poly1305.go
delete mode 100644 vendor/golang.org/x/crypto/internal/poly1305/sum_amd64.s
delete mode 100644 vendor/golang.org/x/crypto/internal/poly1305/sum_asm.go
delete mode 100644 vendor/golang.org/x/crypto/internal/poly1305/sum_generic.go
delete mode 100644 vendor/golang.org/x/crypto/internal/poly1305/sum_loong64.s
delete mode 100644 vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64x.s
delete mode 100644 vendor/golang.org/x/crypto/internal/poly1305/sum_s390x.go
delete mode 100644 vendor/golang.org/x/crypto/internal/poly1305/sum_s390x.s
delete mode 100644 vendor/golang.org/x/crypto/ssh/buffer.go
delete mode 100644 vendor/golang.org/x/crypto/ssh/certs.go
delete mode 100644 vendor/golang.org/x/crypto/ssh/channel.go
delete mode 100644 vendor/golang.org/x/crypto/ssh/cipher.go
delete mode 100644 vendor/golang.org/x/crypto/ssh/client.go
delete mode 100644 vendor/golang.org/x/crypto/ssh/client_auth.go
delete mode 100644 vendor/golang.org/x/crypto/ssh/common.go
delete mode 100644 vendor/golang.org/x/crypto/ssh/connection.go
delete mode 100644 vendor/golang.org/x/crypto/ssh/doc.go
delete mode 100644 vendor/golang.org/x/crypto/ssh/handshake.go
delete mode 100644 vendor/golang.org/x/crypto/ssh/internal/bcrypt_pbkdf/bcrypt_pbkdf.go
delete mode 100644 vendor/golang.org/x/crypto/ssh/kex.go
delete mode 100644 vendor/golang.org/x/crypto/ssh/keys.go
delete mode 100644 vendor/golang.org/x/crypto/ssh/mac.go
delete mode 100644 vendor/golang.org/x/crypto/ssh/messages.go
delete mode 100644 vendor/golang.org/x/crypto/ssh/mlkem.go
delete mode 100644 vendor/golang.org/x/crypto/ssh/mux.go
delete mode 100644 vendor/golang.org/x/crypto/ssh/server.go
delete mode 100644 vendor/golang.org/x/crypto/ssh/session.go
delete mode 100644 vendor/golang.org/x/crypto/ssh/ssh_gss.go
delete mode 100644 vendor/golang.org/x/crypto/ssh/streamlocal.go
delete mode 100644 vendor/golang.org/x/crypto/ssh/tcpip.go
delete mode 100644 vendor/golang.org/x/crypto/ssh/transport.go
delete mode 100644 vendor/golang.org/x/exp/LICENSE
delete mode 100644 vendor/golang.org/x/exp/PATENTS
delete mode 100644 vendor/golang.org/x/exp/constraints/constraints.go
delete mode 100644 vendor/golang.org/x/exp/slices/cmp.go
delete mode 100644 vendor/golang.org/x/exp/slices/slices.go
delete mode 100644 vendor/golang.org/x/exp/slices/sort.go
delete mode 100644 vendor/golang.org/x/exp/slices/zsortanyfunc.go
delete mode 100644 vendor/golang.org/x/exp/slices/zsortordered.go
create mode 100644 vendor/golang.org/x/net/html/nodetype_string.go
create mode 100644 vendor/golang.org/x/net/http2/client_priority_go126.go
create mode 100644 vendor/golang.org/x/net/http2/client_priority_go127.go
create mode 100644 vendor/golang.org/x/net/internal/httpsfv/httpsfv.go
delete mode 100644 vendor/golang.org/x/net/internal/socks/client.go
delete mode 100644 vendor/golang.org/x/net/internal/socks/socks.go
delete mode 100644 vendor/golang.org/x/net/internal/timeseries/timeseries.go
delete mode 100644 vendor/golang.org/x/net/proxy/dial.go
delete mode 100644 vendor/golang.org/x/net/proxy/direct.go
delete mode 100644 vendor/golang.org/x/net/proxy/per_host.go
delete mode 100644 vendor/golang.org/x/net/proxy/proxy.go
delete mode 100644 vendor/golang.org/x/net/proxy/socks5.go
delete mode 100644 vendor/golang.org/x/net/trace/events.go
delete mode 100644 vendor/golang.org/x/net/trace/histogram.go
delete mode 100644 vendor/golang.org/x/net/trace/trace.go
delete mode 100644 vendor/golang.org/x/net/websocket/client.go
delete mode 100644 vendor/golang.org/x/net/websocket/dial.go
delete mode 100644 vendor/golang.org/x/net/websocket/hybi.go
delete mode 100644 vendor/golang.org/x/net/websocket/server.go
delete mode 100644 vendor/golang.org/x/net/websocket/websocket.go
delete mode 100644 vendor/golang.org/x/sync/singleflight/singleflight.go
delete mode 100644 vendor/golang.org/x/sys/cpu/asm_aix_ppc64.s
delete mode 100644 vendor/golang.org/x/sys/cpu/asm_darwin_x86_gc.s
delete mode 100644 vendor/golang.org/x/sys/cpu/byteorder.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_aix.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_arm.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_arm64.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_arm64.s
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_darwin_x86.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_gc_arm64.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_gc_s390x.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_gc_x86.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_gc_x86.s
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_gccgo_arm64.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_gccgo_s390x.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.c
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_linux.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_linux_arm.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_linux_arm64.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_linux_loong64.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_linux_mips64x.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_linux_noinit.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_linux_ppc64x.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_linux_riscv64.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_linux_s390x.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_loong64.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_loong64.s
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_mips64x.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_mipsx.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_netbsd_arm64.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.s
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_other_arm.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_other_arm64.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_other_mips64x.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_other_ppc64x.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_other_riscv64.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_other_x86.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_ppc64x.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_riscv64.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_s390x.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_s390x.s
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_wasm.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_x86.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_zos.go
delete mode 100644 vendor/golang.org/x/sys/cpu/cpu_zos_s390x.go
delete mode 100644 vendor/golang.org/x/sys/cpu/endian_big.go
delete mode 100644 vendor/golang.org/x/sys/cpu/endian_little.go
delete mode 100644 vendor/golang.org/x/sys/cpu/hwcap_linux.go
delete mode 100644 vendor/golang.org/x/sys/cpu/parse.go
delete mode 100644 vendor/golang.org/x/sys/cpu/proc_cpuinfo_linux.go
delete mode 100644 vendor/golang.org/x/sys/cpu/runtime_auxv.go
delete mode 100644 vendor/golang.org/x/sys/cpu/runtime_auxv_go121.go
delete mode 100644 vendor/golang.org/x/sys/cpu/syscall_aix_gccgo.go
delete mode 100644 vendor/golang.org/x/sys/cpu/syscall_aix_ppc64_gc.go
delete mode 100644 vendor/golang.org/x/sys/cpu/syscall_darwin_x86_gc.go
delete mode 100644 vendor/golang.org/x/sys/windows/registry/key.go
delete mode 100644 vendor/golang.org/x/sys/windows/registry/mksyscall.go
delete mode 100644 vendor/golang.org/x/sys/windows/registry/syscall.go
delete mode 100644 vendor/golang.org/x/sys/windows/registry/value.go
delete mode 100644 vendor/golang.org/x/sys/windows/registry/zsyscall_windows.go
delete mode 100644 vendor/golang.org/x/text/cases/tables10.0.0.go
delete mode 100644 vendor/golang.org/x/text/cases/tables11.0.0.go
delete mode 100644 vendor/golang.org/x/text/cases/tables12.0.0.go
rename vendor/golang.org/x/text/cases/{tables13.0.0.go => tables17.0.0.go} (60%)
delete mode 100644 vendor/golang.org/x/text/cases/tables9.0.0.go
delete mode 100644 vendor/golang.org/x/text/feature/plural/common.go
delete mode 100644 vendor/golang.org/x/text/feature/plural/message.go
delete mode 100644 vendor/golang.org/x/text/feature/plural/plural.go
delete mode 100644 vendor/golang.org/x/text/feature/plural/tables.go
delete mode 100644 vendor/golang.org/x/text/internal/catmsg/catmsg.go
delete mode 100644 vendor/golang.org/x/text/internal/catmsg/codec.go
delete mode 100644 vendor/golang.org/x/text/internal/catmsg/varint.go
delete mode 100644 vendor/golang.org/x/text/internal/format/format.go
delete mode 100644 vendor/golang.org/x/text/internal/format/parser.go
delete mode 100644 vendor/golang.org/x/text/internal/number/common.go
delete mode 100644 vendor/golang.org/x/text/internal/number/decimal.go
delete mode 100644 vendor/golang.org/x/text/internal/number/format.go
delete mode 100644 vendor/golang.org/x/text/internal/number/number.go
delete mode 100644 vendor/golang.org/x/text/internal/number/pattern.go
delete mode 100644 vendor/golang.org/x/text/internal/number/roundingmode_string.go
delete mode 100644 vendor/golang.org/x/text/internal/number/tables.go
delete mode 100644 vendor/golang.org/x/text/internal/stringset/set.go
delete mode 100644 vendor/golang.org/x/text/message/catalog.go
delete mode 100644 vendor/golang.org/x/text/message/catalog/catalog.go
delete mode 100644 vendor/golang.org/x/text/message/catalog/dict.go
delete mode 100644 vendor/golang.org/x/text/message/catalog/go19.go
delete mode 100644 vendor/golang.org/x/text/message/catalog/gopre19.go
delete mode 100644 vendor/golang.org/x/text/message/doc.go
delete mode 100644 vendor/golang.org/x/text/message/format.go
delete mode 100644 vendor/golang.org/x/text/message/message.go
delete mode 100644 vendor/golang.org/x/text/message/print.go
delete mode 100644 vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.go
delete mode 100644 vendor/golang.org/x/text/secure/bidirule/bidirule9.0.0.go
delete mode 100644 vendor/golang.org/x/text/unicode/bidi/tables10.0.0.go
delete mode 100644 vendor/golang.org/x/text/unicode/bidi/tables11.0.0.go
delete mode 100644 vendor/golang.org/x/text/unicode/bidi/tables12.0.0.go
delete mode 100644 vendor/golang.org/x/text/unicode/bidi/tables13.0.0.go
create mode 100644 vendor/golang.org/x/text/unicode/bidi/tables17.0.0.go
delete mode 100644 vendor/golang.org/x/text/unicode/bidi/tables9.0.0.go
delete mode 100644 vendor/golang.org/x/text/unicode/norm/tables10.0.0.go
delete mode 100644 vendor/golang.org/x/text/unicode/norm/tables11.0.0.go
delete mode 100644 vendor/golang.org/x/text/unicode/norm/tables12.0.0.go
rename vendor/golang.org/x/text/unicode/norm/{tables13.0.0.go => tables17.0.0.go} (53%)
delete mode 100644 vendor/golang.org/x/text/unicode/norm/tables9.0.0.go
delete mode 100644 vendor/golang.org/x/tools/internal/aliases/aliases_go122.go
delete mode 100644 vendor/google.golang.org/genproto/googleapis/api/expr/v1alpha1/checked.pb.go
delete mode 100644 vendor/google.golang.org/genproto/googleapis/api/expr/v1alpha1/eval.pb.go
delete mode 100644 vendor/google.golang.org/genproto/googleapis/api/expr/v1alpha1/explain.pb.go
delete mode 100644 vendor/google.golang.org/genproto/googleapis/api/expr/v1alpha1/syntax.pb.go
delete mode 100644 vendor/google.golang.org/genproto/googleapis/api/expr/v1alpha1/value.pb.go
delete mode 100644 vendor/google.golang.org/genproto/googleapis/api/httpbody/httpbody.pb.go
delete mode 100644 vendor/google.golang.org/genproto/googleapis/rpc/errdetails/error_details.pb.go
delete mode 100644 vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go
delete mode 100644 vendor/google.golang.org/grpc/AUTHORS
delete mode 100644 vendor/google.golang.org/grpc/CODE-OF-CONDUCT.md
delete mode 100644 vendor/google.golang.org/grpc/CONTRIBUTING.md
delete mode 100644 vendor/google.golang.org/grpc/GOVERNANCE.md
delete mode 100644 vendor/google.golang.org/grpc/MAINTAINERS.md
delete mode 100644 vendor/google.golang.org/grpc/Makefile
delete mode 100644 vendor/google.golang.org/grpc/NOTICE.txt
delete mode 100644 vendor/google.golang.org/grpc/README.md
delete mode 100644 vendor/google.golang.org/grpc/SECURITY.md
delete mode 100644 vendor/google.golang.org/grpc/attributes/attributes.go
delete mode 100644 vendor/google.golang.org/grpc/backoff.go
delete mode 100644 vendor/google.golang.org/grpc/backoff/backoff.go
delete mode 100644 vendor/google.golang.org/grpc/balancer/balancer.go
delete mode 100644 vendor/google.golang.org/grpc/balancer/base/balancer.go
delete mode 100644 vendor/google.golang.org/grpc/balancer/base/base.go
delete mode 100644 vendor/google.golang.org/grpc/balancer/conn_state_evaluator.go
delete mode 100644 vendor/google.golang.org/grpc/balancer/endpointsharding/endpointsharding.go
delete mode 100644 vendor/google.golang.org/grpc/balancer/grpclb/state/state.go
delete mode 100644 vendor/google.golang.org/grpc/balancer/pickfirst/internal/internal.go
delete mode 100644 vendor/google.golang.org/grpc/balancer/pickfirst/pickfirst.go
delete mode 100644 vendor/google.golang.org/grpc/balancer/roundrobin/roundrobin.go
delete mode 100644 vendor/google.golang.org/grpc/balancer/subconn.go
delete mode 100644 vendor/google.golang.org/grpc/balancer_wrapper.go
delete mode 100644 vendor/google.golang.org/grpc/binarylog/grpc_binarylog_v1/binarylog.pb.go
delete mode 100644 vendor/google.golang.org/grpc/call.go
delete mode 100644 vendor/google.golang.org/grpc/channelz/channelz.go
delete mode 100644 vendor/google.golang.org/grpc/clientconn.go
delete mode 100644 vendor/google.golang.org/grpc/codec.go
delete mode 100644 vendor/google.golang.org/grpc/codes/code_string.go
delete mode 100644 vendor/google.golang.org/grpc/codes/codes.go
delete mode 100644 vendor/google.golang.org/grpc/connectivity/connectivity.go
delete mode 100644 vendor/google.golang.org/grpc/credentials/credentials.go
delete mode 100644 vendor/google.golang.org/grpc/credentials/insecure/insecure.go
delete mode 100644 vendor/google.golang.org/grpc/credentials/tls.go
delete mode 100644 vendor/google.golang.org/grpc/dialoptions.go
delete mode 100644 vendor/google.golang.org/grpc/doc.go
delete mode 100644 vendor/google.golang.org/grpc/encoding/encoding.go
delete mode 100644 vendor/google.golang.org/grpc/encoding/encoding_v2.go
delete mode 100644 vendor/google.golang.org/grpc/encoding/gzip/gzip.go
delete mode 100644 vendor/google.golang.org/grpc/encoding/internal/internal.go
delete mode 100644 vendor/google.golang.org/grpc/encoding/proto/proto.go
delete mode 100644 vendor/google.golang.org/grpc/experimental/stats/metricregistry.go
delete mode 100644 vendor/google.golang.org/grpc/experimental/stats/metrics.go
delete mode 100644 vendor/google.golang.org/grpc/grpclog/component.go
delete mode 100644 vendor/google.golang.org/grpc/grpclog/grpclog.go
delete mode 100644 vendor/google.golang.org/grpc/grpclog/internal/grpclog.go
delete mode 100644 vendor/google.golang.org/grpc/grpclog/internal/logger.go
delete mode 100644 vendor/google.golang.org/grpc/grpclog/internal/loggerv2.go
delete mode 100644 vendor/google.golang.org/grpc/grpclog/logger.go
delete mode 100644 vendor/google.golang.org/grpc/grpclog/loggerv2.go
delete mode 100644 vendor/google.golang.org/grpc/health/grpc_health_v1/health.pb.go
delete mode 100644 vendor/google.golang.org/grpc/health/grpc_health_v1/health_grpc.pb.go
delete mode 100644 vendor/google.golang.org/grpc/interceptor.go
delete mode 100644 vendor/google.golang.org/grpc/internal/backoff/backoff.go
delete mode 100644 vendor/google.golang.org/grpc/internal/balancer/gracefulswitch/config.go
delete mode 100644 vendor/google.golang.org/grpc/internal/balancer/gracefulswitch/gracefulswitch.go
delete mode 100644 vendor/google.golang.org/grpc/internal/balancer/weight/weight.go
delete mode 100644 vendor/google.golang.org/grpc/internal/balancerload/load.go
delete mode 100644 vendor/google.golang.org/grpc/internal/binarylog/binarylog.go
delete mode 100644 vendor/google.golang.org/grpc/internal/binarylog/binarylog_testutil.go
delete mode 100644 vendor/google.golang.org/grpc/internal/binarylog/env_config.go
delete mode 100644 vendor/google.golang.org/grpc/internal/binarylog/method_logger.go
delete mode 100644 vendor/google.golang.org/grpc/internal/binarylog/sink.go
delete mode 100644 vendor/google.golang.org/grpc/internal/buffer/unbounded.go
delete mode 100644 vendor/google.golang.org/grpc/internal/channelz/channel.go
delete mode 100644 vendor/google.golang.org/grpc/internal/channelz/channelmap.go
delete mode 100644 vendor/google.golang.org/grpc/internal/channelz/funcs.go
delete mode 100644 vendor/google.golang.org/grpc/internal/channelz/logging.go
delete mode 100644 vendor/google.golang.org/grpc/internal/channelz/server.go
delete mode 100644 vendor/google.golang.org/grpc/internal/channelz/socket.go
delete mode 100644 vendor/google.golang.org/grpc/internal/channelz/subchannel.go
delete mode 100644 vendor/google.golang.org/grpc/internal/channelz/syscall_linux.go
delete mode 100644 vendor/google.golang.org/grpc/internal/channelz/syscall_nonlinux.go
delete mode 100644 vendor/google.golang.org/grpc/internal/channelz/trace.go
delete mode 100644 vendor/google.golang.org/grpc/internal/credentials/credentials.go
delete mode 100644 vendor/google.golang.org/grpc/internal/credentials/spiffe.go
delete mode 100644 vendor/google.golang.org/grpc/internal/credentials/syscallconn.go
delete mode 100644 vendor/google.golang.org/grpc/internal/credentials/util.go
delete mode 100644 vendor/google.golang.org/grpc/internal/envconfig/envconfig.go
delete mode 100644 vendor/google.golang.org/grpc/internal/envconfig/observability.go
delete mode 100644 vendor/google.golang.org/grpc/internal/envconfig/xds.go
delete mode 100644 vendor/google.golang.org/grpc/internal/experimental.go
delete mode 100644 vendor/google.golang.org/grpc/internal/grpclog/prefix_logger.go
delete mode 100644 vendor/google.golang.org/grpc/internal/grpcsync/callback_serializer.go
delete mode 100644 vendor/google.golang.org/grpc/internal/grpcsync/event.go
delete mode 100644 vendor/google.golang.org/grpc/internal/grpcsync/pubsub.go
delete mode 100644 vendor/google.golang.org/grpc/internal/grpcutil/compressor.go
delete mode 100644 vendor/google.golang.org/grpc/internal/grpcutil/encode_duration.go
delete mode 100644 vendor/google.golang.org/grpc/internal/grpcutil/grpcutil.go
delete mode 100644 vendor/google.golang.org/grpc/internal/grpcutil/metadata.go
delete mode 100644 vendor/google.golang.org/grpc/internal/grpcutil/method.go
delete mode 100644 vendor/google.golang.org/grpc/internal/grpcutil/regex.go
delete mode 100644 vendor/google.golang.org/grpc/internal/idle/idle.go
delete mode 100644 vendor/google.golang.org/grpc/internal/internal.go
delete mode 100644 vendor/google.golang.org/grpc/internal/metadata/metadata.go
delete mode 100644 vendor/google.golang.org/grpc/internal/pretty/pretty.go
delete mode 100644 vendor/google.golang.org/grpc/internal/proxyattributes/proxyattributes.go
delete mode 100644 vendor/google.golang.org/grpc/internal/resolver/config_selector.go
delete mode 100644 vendor/google.golang.org/grpc/internal/resolver/delegatingresolver/delegatingresolver.go
delete mode 100644 vendor/google.golang.org/grpc/internal/resolver/dns/dns_resolver.go
delete mode 100644 vendor/google.golang.org/grpc/internal/resolver/dns/internal/internal.go
delete mode 100644 vendor/google.golang.org/grpc/internal/resolver/passthrough/passthrough.go
delete mode 100644 vendor/google.golang.org/grpc/internal/resolver/unix/unix.go
delete mode 100644 vendor/google.golang.org/grpc/internal/serviceconfig/duration.go
delete mode 100644 vendor/google.golang.org/grpc/internal/serviceconfig/serviceconfig.go
delete mode 100644 vendor/google.golang.org/grpc/internal/stats/labels.go
delete mode 100644 vendor/google.golang.org/grpc/internal/stats/metrics_recorder_list.go
delete mode 100644 vendor/google.golang.org/grpc/internal/stats/stats.go
delete mode 100644 vendor/google.golang.org/grpc/internal/status/status.go
delete mode 100644 vendor/google.golang.org/grpc/internal/syscall/syscall_linux.go
delete mode 100644 vendor/google.golang.org/grpc/internal/syscall/syscall_nonlinux.go
delete mode 100644 vendor/google.golang.org/grpc/internal/tcp_keepalive_others.go
delete mode 100644 vendor/google.golang.org/grpc/internal/tcp_keepalive_unix.go
delete mode 100644 vendor/google.golang.org/grpc/internal/tcp_keepalive_windows.go
delete mode 100644 vendor/google.golang.org/grpc/internal/transport/bdp_estimator.go
delete mode 100644 vendor/google.golang.org/grpc/internal/transport/client_stream.go
delete mode 100644 vendor/google.golang.org/grpc/internal/transport/controlbuf.go
delete mode 100644 vendor/google.golang.org/grpc/internal/transport/defaults.go
delete mode 100644 vendor/google.golang.org/grpc/internal/transport/flowcontrol.go
delete mode 100644 vendor/google.golang.org/grpc/internal/transport/handler_server.go
delete mode 100644 vendor/google.golang.org/grpc/internal/transport/http2_client.go
delete mode 100644 vendor/google.golang.org/grpc/internal/transport/http2_server.go
delete mode 100644 vendor/google.golang.org/grpc/internal/transport/http_util.go
delete mode 100644 vendor/google.golang.org/grpc/internal/transport/logging.go
delete mode 100644 vendor/google.golang.org/grpc/internal/transport/networktype/networktype.go
delete mode 100644 vendor/google.golang.org/grpc/internal/transport/proxy.go
delete mode 100644 vendor/google.golang.org/grpc/internal/transport/server_stream.go
delete mode 100644 vendor/google.golang.org/grpc/internal/transport/transport.go
delete mode 100644 vendor/google.golang.org/grpc/keepalive/keepalive.go
delete mode 100644 vendor/google.golang.org/grpc/mem/buffer_pool.go
delete mode 100644 vendor/google.golang.org/grpc/mem/buffer_slice.go
delete mode 100644 vendor/google.golang.org/grpc/mem/buffers.go
delete mode 100644 vendor/google.golang.org/grpc/metadata/metadata.go
delete mode 100644 vendor/google.golang.org/grpc/peer/peer.go
delete mode 100644 vendor/google.golang.org/grpc/picker_wrapper.go
delete mode 100644 vendor/google.golang.org/grpc/preloader.go
delete mode 100644 vendor/google.golang.org/grpc/resolver/dns/dns_resolver.go
delete mode 100644 vendor/google.golang.org/grpc/resolver/map.go
delete mode 100644 vendor/google.golang.org/grpc/resolver/resolver.go
delete mode 100644 vendor/google.golang.org/grpc/resolver_wrapper.go
delete mode 100644 vendor/google.golang.org/grpc/rpc_util.go
delete mode 100644 vendor/google.golang.org/grpc/server.go
delete mode 100644 vendor/google.golang.org/grpc/service_config.go
delete mode 100644 vendor/google.golang.org/grpc/serviceconfig/serviceconfig.go
delete mode 100644 vendor/google.golang.org/grpc/stats/handlers.go
delete mode 100644 vendor/google.golang.org/grpc/stats/metrics.go
delete mode 100644 vendor/google.golang.org/grpc/stats/stats.go
delete mode 100644 vendor/google.golang.org/grpc/status/status.go
delete mode 100644 vendor/google.golang.org/grpc/stream.go
delete mode 100644 vendor/google.golang.org/grpc/stream_interfaces.go
delete mode 100644 vendor/google.golang.org/grpc/tap/tap.go
delete mode 100644 vendor/google.golang.org/grpc/trace.go
delete mode 100644 vendor/google.golang.org/grpc/trace_notrace.go
delete mode 100644 vendor/google.golang.org/grpc/trace_withtrace.go
delete mode 100644 vendor/google.golang.org/grpc/version.go
delete mode 100644 vendor/google.golang.org/protobuf/encoding/protojson/decode.go
delete mode 100644 vendor/google.golang.org/protobuf/encoding/protojson/doc.go
delete mode 100644 vendor/google.golang.org/protobuf/encoding/protojson/encode.go
delete mode 100644 vendor/google.golang.org/protobuf/encoding/protojson/well_known_types.go
delete mode 100644 vendor/google.golang.org/protobuf/internal/editionssupport/editions.go
delete mode 100644 vendor/google.golang.org/protobuf/internal/encoding/json/decode.go
delete mode 100644 vendor/google.golang.org/protobuf/internal/encoding/json/decode_number.go
delete mode 100644 vendor/google.golang.org/protobuf/internal/encoding/json/decode_string.go
delete mode 100644 vendor/google.golang.org/protobuf/internal/encoding/json/decode_token.go
delete mode 100644 vendor/google.golang.org/protobuf/internal/encoding/json/encode.go
delete mode 100644 vendor/google.golang.org/protobuf/protoadapt/convert.go
delete mode 100644 vendor/google.golang.org/protobuf/reflect/protodesc/desc.go
delete mode 100644 vendor/google.golang.org/protobuf/reflect/protodesc/desc_init.go
delete mode 100644 vendor/google.golang.org/protobuf/reflect/protodesc/desc_resolve.go
delete mode 100644 vendor/google.golang.org/protobuf/reflect/protodesc/desc_validate.go
delete mode 100644 vendor/google.golang.org/protobuf/reflect/protodesc/editions.go
delete mode 100644 vendor/google.golang.org/protobuf/reflect/protodesc/proto.go
delete mode 100644 vendor/google.golang.org/protobuf/types/dynamicpb/dynamic.go
delete mode 100644 vendor/google.golang.org/protobuf/types/dynamicpb/types.go
delete mode 100644 vendor/google.golang.org/protobuf/types/gofeaturespb/go_features.pb.go
delete mode 100644 vendor/google.golang.org/protobuf/types/known/durationpb/duration.pb.go
delete mode 100644 vendor/google.golang.org/protobuf/types/known/emptypb/empty.pb.go
delete mode 100644 vendor/google.golang.org/protobuf/types/known/fieldmaskpb/field_mask.pb.go
delete mode 100644 vendor/google.golang.org/protobuf/types/known/structpb/struct.pb.go
delete mode 100644 vendor/google.golang.org/protobuf/types/known/wrapperspb/wrappers.pb.go
delete mode 100644 vendor/k8s.io/apiextensions-apiserver/pkg/features/OWNERS
delete mode 100644 vendor/k8s.io/apiextensions-apiserver/pkg/features/kube_features.go
delete mode 100644 vendor/k8s.io/apimachinery/pkg/api/validation/path/name.go
delete mode 100644 vendor/k8s.io/apimachinery/pkg/util/httpstream/doc.go
delete mode 100644 vendor/k8s.io/apimachinery/pkg/util/httpstream/httpstream.go
delete mode 100644 vendor/k8s.io/apimachinery/pkg/util/httpstream/spdy/connection.go
delete mode 100644 vendor/k8s.io/apimachinery/pkg/util/httpstream/spdy/roundtripper.go
delete mode 100644 vendor/k8s.io/apimachinery/pkg/util/httpstream/spdy/upgrade.go
delete mode 100644 vendor/k8s.io/apimachinery/pkg/util/httpstream/wsstream/conn.go
delete mode 100644 vendor/k8s.io/apimachinery/pkg/util/httpstream/wsstream/doc.go
delete mode 100644 vendor/k8s.io/apimachinery/pkg/util/httpstream/wsstream/stream.go
delete mode 100644 vendor/k8s.io/apimachinery/pkg/util/portforward/constants.go
delete mode 100644 vendor/k8s.io/apimachinery/pkg/util/proxy/dial.go
delete mode 100644 vendor/k8s.io/apimachinery/pkg/util/proxy/doc.go
delete mode 100644 vendor/k8s.io/apimachinery/pkg/util/proxy/transport.go
delete mode 100644 vendor/k8s.io/apimachinery/pkg/util/proxy/upgradeaware.go
delete mode 100644 vendor/k8s.io/apimachinery/pkg/util/remotecommand/constants.go
delete mode 100644 vendor/k8s.io/apimachinery/third_party/forked/golang/netutil/addr.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/attributes.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/audit.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/chain.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/config.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/configuration/configuration_manager.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/configuration/mutating_webhook_manager.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/configuration/validating_webhook_manager.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/conversion.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/decorator.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/errors.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/handler.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/initializer/initializer.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/initializer/interfaces.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/interfaces.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/metrics/metrics.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/cel/OWNERS
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/cel/activation.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/cel/compile.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/cel/composition.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/cel/condition.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/cel/interface.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/cel/mutation.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/accessors.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/doc.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/register.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/types.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/v1/doc.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/v1/register.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/v1/types.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/v1/zz_generated.conversion.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/v1/zz_generated.deepcopy.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/v1/zz_generated.defaults.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/v1alpha1/doc.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/v1alpha1/register.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/v1alpha1/types.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/v1alpha1/zz_generated.conversion.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/v1alpha1/zz_generated.deepcopy.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/v1alpha1/zz_generated.defaults.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/zz_generated.deepcopy.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/config/kubeconfig.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/errors/doc.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/errors/statuserror.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/generic/interfaces.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/generic/webhook.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/matchconditions/interface.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/matchconditions/matcher.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/doc.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/plugin.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/reinvocationcontext.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/namespace/doc.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/namespace/matcher.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/object/doc.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/object/matcher.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/rules/rules.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/request/admissionreview.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugin/webhook/request/doc.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/plugins.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/reinvocation.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/admission/util.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/doc.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/install/install.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/register.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/types.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/types_encryption.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/v1/defaults.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/v1/doc.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/v1/register.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/v1/types.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/v1/types_encryption.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/v1/zz_generated.conversion.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/v1/zz_generated.deepcopy.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/v1/zz_generated.defaults.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/v1alpha1/conversion.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/v1alpha1/defaults.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/v1alpha1/doc.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/v1alpha1/register.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/v1alpha1/types.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/v1alpha1/zz_generated.conversion.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/v1alpha1/zz_generated.deepcopy.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/v1alpha1/zz_generated.defaults.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/v1beta1/conversion.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/v1beta1/defaults.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/v1beta1/doc.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/v1beta1/register.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/v1beta1/types.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/v1beta1/zz_generated.conversion.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/v1beta1/zz_generated.deepcopy.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/v1beta1/zz_generated.defaults.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/apiserver/zz_generated.deepcopy.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/audit/OWNERS
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/audit/doc.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/audit/helpers.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/audit/register.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/audit/types.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/audit/v1/doc.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/audit/v1/generated.pb.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/audit/v1/generated.proto
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/audit/v1/generated.protomessage.pb.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/audit/v1/register.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/audit/v1/types.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/audit/v1/zz_generated.conversion.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/audit/v1/zz_generated.deepcopy.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/audit/v1/zz_generated.defaults.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/audit/v1/zz_generated.model_name.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/audit/zz_generated.deepcopy.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/apis/cel/config.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/audit/OWNERS
delete mode 100644 vendor/k8s.io/apiserver/pkg/audit/context.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/audit/evaluator.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/audit/format.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/audit/metrics.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/audit/request.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/audit/scheme.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/audit/types.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/audit/union.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/authentication/serviceaccount/util.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/authentication/user/doc.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/authentication/user/user.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/authorization/authorizer/interfaces.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/authorization/authorizer/rule.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/OWNERS
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/cidr.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/common/adaptor.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/common/equality.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/common/maplist.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/common/schemas.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/common/typeprovider.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/common/valuesreflect.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/common/valuesunstructured.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/environment/base.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/environment/environment.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/errors.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/escaping.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/format.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/ip.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/lazy/lazy.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/library/authz.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/library/cidr.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/library/cost.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/library/format.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/library/ip.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/library/jsonpatch.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/library/libraries.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/library/lists.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/library/quantity.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/library/regex.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/library/semverlib.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/library/test.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/library/urls.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/limits.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/mutation/dynamic/objects.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/mutation/jsonpatch.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/mutation/typeresolver.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/openapi/resolver/combined.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/openapi/resolver/definitions.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/openapi/resolver/discovery.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/openapi/resolver/refs.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/openapi/resolver/resolver.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/quantity.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/semver.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/types.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/url.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/cel/value.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/endpoints/openapi/openapi.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/endpoints/request/OWNERS
delete mode 100644 vendor/k8s.io/apiserver/pkg/endpoints/request/context.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/endpoints/request/doc.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/endpoints/request/methods.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/endpoints/request/received_time.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/endpoints/request/requestinfo.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/endpoints/request/server_shutdown_signal.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/endpoints/request/webhook_duration.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/features/OWNERS
delete mode 100644 vendor/k8s.io/apiserver/pkg/features/kube_features.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/quota/v1/OWNERS
delete mode 100644 vendor/k8s.io/apiserver/pkg/quota/v1/interfaces.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/quota/v1/resources.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/server/egressselector/config.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/server/egressselector/egress_selector.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/server/egressselector/metrics/metrics.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/util/compatibility/registry.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/util/compatibility/version.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/util/webhook/authentication.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/util/webhook/client.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/util/webhook/error.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/util/webhook/gencerts.sh
delete mode 100644 vendor/k8s.io/apiserver/pkg/util/webhook/metrics.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/util/webhook/serviceresolver.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/util/webhook/validation.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/util/webhook/webhook.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/util/x509metrics/server_cert_deprecations.go
delete mode 100644 vendor/k8s.io/apiserver/pkg/warning/context.go
delete mode 100644 vendor/k8s.io/client-go/tools/portforward/OWNERS
delete mode 100644 vendor/k8s.io/client-go/tools/portforward/doc.go
delete mode 100644 vendor/k8s.io/client-go/tools/portforward/fallback_dialer.go
delete mode 100644 vendor/k8s.io/client-go/tools/portforward/portforward.go
delete mode 100644 vendor/k8s.io/client-go/tools/portforward/tunneling_connection.go
delete mode 100644 vendor/k8s.io/client-go/tools/portforward/tunneling_dialer.go
delete mode 100644 vendor/k8s.io/client-go/tools/remotecommand/OWNERS
delete mode 100644 vendor/k8s.io/client-go/tools/remotecommand/doc.go
delete mode 100644 vendor/k8s.io/client-go/tools/remotecommand/errorstream.go
delete mode 100644 vendor/k8s.io/client-go/tools/remotecommand/fallback.go
delete mode 100644 vendor/k8s.io/client-go/tools/remotecommand/reader.go
delete mode 100644 vendor/k8s.io/client-go/tools/remotecommand/remotecommand.go
delete mode 100644 vendor/k8s.io/client-go/tools/remotecommand/resize.go
delete mode 100644 vendor/k8s.io/client-go/tools/remotecommand/spdy.go
delete mode 100644 vendor/k8s.io/client-go/tools/remotecommand/v1.go
delete mode 100644 vendor/k8s.io/client-go/tools/remotecommand/v2.go
delete mode 100644 vendor/k8s.io/client-go/tools/remotecommand/v3.go
delete mode 100644 vendor/k8s.io/client-go/tools/remotecommand/v4.go
delete mode 100644 vendor/k8s.io/client-go/tools/remotecommand/v5.go
delete mode 100644 vendor/k8s.io/client-go/tools/remotecommand/websocket.go
delete mode 100644 vendor/k8s.io/client-go/tools/watch/informerwatcher.go
delete mode 100644 vendor/k8s.io/client-go/tools/watch/retrywatcher.go
delete mode 100644 vendor/k8s.io/client-go/tools/watch/until.go
delete mode 100644 vendor/k8s.io/client-go/transport/spdy/spdy.go
delete mode 100644 vendor/k8s.io/client-go/transport/websocket/roundtripper.go
delete mode 100644 vendor/k8s.io/client-go/util/exec/exec.go
delete mode 100644 vendor/k8s.io/component-base/compatibility/OWNERS
delete mode 100644 vendor/k8s.io/component-base/compatibility/registry.go
delete mode 100644 vendor/k8s.io/component-base/compatibility/version.go
delete mode 100644 vendor/k8s.io/component-base/logs/OWNERS
delete mode 100644 vendor/k8s.io/component-base/logs/api/v1/doc.go
delete mode 100644 vendor/k8s.io/component-base/logs/api/v1/kube_features.go
delete mode 100644 vendor/k8s.io/component-base/logs/api/v1/options.go
delete mode 100644 vendor/k8s.io/component-base/logs/api/v1/options_no_slog.go
delete mode 100644 vendor/k8s.io/component-base/logs/api/v1/options_slog.go
delete mode 100644 vendor/k8s.io/component-base/logs/api/v1/pflags.go
delete mode 100644 vendor/k8s.io/component-base/logs/api/v1/registry.go
delete mode 100644 vendor/k8s.io/component-base/logs/api/v1/text.go
delete mode 100644 vendor/k8s.io/component-base/logs/api/v1/types.go
delete mode 100644 vendor/k8s.io/component-base/logs/api/v1/zz_generated.deepcopy.go
delete mode 100644 vendor/k8s.io/component-base/logs/api/v1/zz_generated.model_name.go
delete mode 100644 vendor/k8s.io/component-base/logs/internal/setverbositylevel/setverbositylevel.go
delete mode 100644 vendor/k8s.io/component-base/logs/klogflags/klogflags.go
delete mode 100644 vendor/k8s.io/component-base/logs/logs.go
delete mode 100644 vendor/k8s.io/component-base/logs/testinit/testinit.go
delete mode 100644 vendor/k8s.io/component-base/metrics/prometheus/compatversion/metrics.go
delete mode 100644 vendor/k8s.io/component-base/tracing/OWNERS
delete mode 100644 vendor/k8s.io/component-base/tracing/api/v1/config.go
delete mode 100644 vendor/k8s.io/component-base/tracing/api/v1/doc.go
delete mode 100644 vendor/k8s.io/component-base/tracing/api/v1/types.go
delete mode 100644 vendor/k8s.io/component-base/tracing/api/v1/zz_generated.deepcopy.go
delete mode 100644 vendor/k8s.io/component-base/tracing/api/v1/zz_generated.model_name.go
delete mode 100644 vendor/k8s.io/component-base/tracing/tracing.go
delete mode 100644 vendor/k8s.io/component-base/tracing/utils.go
delete mode 100644 vendor/k8s.io/component-base/zpages/features/doc.go
delete mode 100644 vendor/k8s.io/component-base/zpages/features/kube_features.go
delete mode 100644 vendor/k8s.io/component-helpers/node/util/sysctl/namespace.go
delete mode 100644 vendor/k8s.io/component-helpers/node/util/sysctl/sysctl.go
delete mode 100644 vendor/k8s.io/component-helpers/resource/OWNERS
delete mode 100644 vendor/k8s.io/component-helpers/resource/helpers.go
delete mode 100644 vendor/k8s.io/component-helpers/scheduling/corev1/doc.go
delete mode 100644 vendor/k8s.io/component-helpers/scheduling/corev1/helpers.go
delete mode 100644 vendor/k8s.io/component-helpers/scheduling/corev1/nodeaffinity/nodeaffinity.go
delete mode 100644 vendor/k8s.io/controller-manager/LICENSE
delete mode 100644 vendor/k8s.io/controller-manager/pkg/features/OWNERS
delete mode 100644 vendor/k8s.io/controller-manager/pkg/features/kube_features.go
delete mode 100644 vendor/k8s.io/klog/v2/internal/verbosity/verbosity.go
delete mode 100644 vendor/k8s.io/klog/v2/textlogger/options.go
delete mode 100644 vendor/k8s.io/klog/v2/textlogger/textlogger.go
delete mode 100644 vendor/k8s.io/klog/v2/textlogger/textlogger_slog.go
create mode 100644 vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/alias.go
delete mode 100644 vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/decode.go
delete mode 100644 vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/encode.go
create mode 100644 vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/internal/internal.go
create mode 100644 vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/internal/jsonflags/flags.go
create mode 100644 vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/internal/jsonopts/options.go
create mode 100644 vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/internal/jsonwire/decode.go
create mode 100644 vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/internal/jsonwire/encode.go
create mode 100644 vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/internal/jsonwire/wire.go
create mode 100644 vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/jsontext/alias.go
create mode 100644 vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/jsontext/decode.go
create mode 100644 vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/jsontext/doc.go
create mode 100644 vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/jsontext/encode.go
create mode 100644 vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/jsontext/errors.go
create mode 100644 vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/jsontext/export.go
create mode 100644 vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/jsontext/options.go
rename vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/{ => jsontext}/pools.go (64%)
create mode 100644 vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/jsontext/quote.go
rename vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/{ => jsontext}/state.go (63%)
rename vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/{ => jsontext}/token.go (87%)
create mode 100644 vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/jsontext/value.go
create mode 100644 vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/migrate.sh
create mode 100644 vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/options.go
delete mode 100644 vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/value.go
delete mode 100644 vendor/k8s.io/kube-openapi/pkg/internal/third_party/govalidator/LICENSE
delete mode 100644 vendor/k8s.io/kube-openapi/pkg/internal/third_party/govalidator/patterns.go
delete mode 100644 vendor/k8s.io/kube-openapi/pkg/internal/third_party/govalidator/validator.go
delete mode 100644 vendor/k8s.io/kube-openapi/pkg/validation/errors/.gitignore
delete mode 100644 vendor/k8s.io/kube-openapi/pkg/validation/errors/api.go
delete mode 100644 vendor/k8s.io/kube-openapi/pkg/validation/errors/doc.go
delete mode 100644 vendor/k8s.io/kube-openapi/pkg/validation/errors/headers.go
delete mode 100644 vendor/k8s.io/kube-openapi/pkg/validation/errors/schema.go
delete mode 100644 vendor/k8s.io/kube-openapi/pkg/validation/strfmt/.gitignore
delete mode 100644 vendor/k8s.io/kube-openapi/pkg/validation/strfmt/bson.go
delete mode 100644 vendor/k8s.io/kube-openapi/pkg/validation/strfmt/bson/objectid.go
delete mode 100644 vendor/k8s.io/kube-openapi/pkg/validation/strfmt/date.go
delete mode 100644 vendor/k8s.io/kube-openapi/pkg/validation/strfmt/default.go
delete mode 100644 vendor/k8s.io/kube-openapi/pkg/validation/strfmt/doc.go
delete mode 100644 vendor/k8s.io/kube-openapi/pkg/validation/strfmt/duration.go
delete mode 100644 vendor/k8s.io/kube-openapi/pkg/validation/strfmt/format.go
delete mode 100644 vendor/k8s.io/kube-openapi/pkg/validation/strfmt/kubernetes-extensions.go
delete mode 100644 vendor/k8s.io/kube-openapi/pkg/validation/strfmt/time.go
delete mode 100644 vendor/k8s.io/kubectl/pkg/scale/scale.go
delete mode 100644 vendor/k8s.io/kubectl/pkg/util/podutils/podutils.go
delete mode 100644 vendor/k8s.io/kubelet/pkg/apis/OWNERS
delete mode 100644 vendor/k8s.io/kubelet/pkg/apis/well_known_labels.go
delete mode 100644 vendor/k8s.io/kubelet/pkg/apis/well_known_openshift_labels.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/api/legacyscheme/scheme.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/api/service/OWNERS
delete mode 100644 vendor/k8s.io/kubernetes/pkg/api/service/util.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/api/service/warnings.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/api/v1/pod/util.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/api/v1/service/util.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/apps/OWNERS
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/apps/doc.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/apps/register.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/apps/types.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/apps/zz_generated.deepcopy.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/autoscaling/OWNERS
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/autoscaling/annotations.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/autoscaling/doc.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/autoscaling/helpers.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/autoscaling/register.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/autoscaling/types.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/autoscaling/zz_generated.deepcopy.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/batch/OWNERS
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/batch/doc.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/batch/register.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/batch/types.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/batch/zz_generated.deepcopy.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/certificates/OWNERS
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/certificates/doc.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/certificates/helpers.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/certificates/register.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/certificates/types.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/certificates/zz_generated.deepcopy.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/OWNERS
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/annotation_key_constants.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/doc.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/helper/helpers.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/helper/qos/qos.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/install/OWNERS
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/install/install.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/json.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/objectreference.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/pods/helpers.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/register.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/resource.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/taint.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/toleration.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/types.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/v1/OWNERS
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/v1/conversion.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/v1/defaults.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/v1/doc.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/v1/helper/helpers.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/v1/register.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/v1/zz_generated.conversion.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/v1/zz_generated.defaults.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/v1/zz_generated.validations.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/validation/OWNERS
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/validation/doc.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/validation/events.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/validation/names.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/validation/validation.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/validation/validation_patch.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/core/zz_generated.deepcopy.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/extensions/OWNERS
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/extensions/doc.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/extensions/register.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/extensions/types.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/extensions/zz_generated.deepcopy.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/networking/OWNERS
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/networking/doc.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/networking/register.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/networking/types.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/apis/networking/zz_generated.deepcopy.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/capabilities/capabilities.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/capabilities/doc.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/controller/OWNERS
delete mode 100644 vendor/k8s.io/kubernetes/pkg/controller/controller_ref_manager.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/controller/controller_utils.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/controller/deployment/util/deployment_util.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/controller/doc.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/features/OWNERS
delete mode 100644 vendor/k8s.io/kubernetes/pkg/features/client_adapter.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/features/kube_features.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/features/openshift_features.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/fieldpath/doc.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/fieldpath/fieldpath.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/util/hash/hash.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/util/labels/.readonly
delete mode 100644 vendor/k8s.io/kubernetes/pkg/util/labels/doc.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/util/labels/labels.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/util/parsers/parsers.go
delete mode 100644 vendor/k8s.io/kubernetes/pkg/util/taints/taints.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/.import-restrictions
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/OWNERS
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/README.md
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/bugs.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/expect.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/flake_reporting_util.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/framework.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/get.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/ginkgologger.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/ginkgowrapper.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/gomega.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/internal/junit/junit.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/internal/junit/junit_data_races.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/internal/junit/junit_no_data_races.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/kubectl/.import-restrictions
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/kubectl/builder.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/kubectl/kubectl_utils.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/log.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/namespacedname.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/node/.import-restrictions
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/node/helper.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/node/node_killer.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/node/resource.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/node/ssh.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/node/wait.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/nodes_util.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/pod/.import-restrictions
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/pod/create.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/pod/delete.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/pod/dial.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/pod/exec_util.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/pod/get.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/pod/node_selection.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/pod/pod_client.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/pod/resource.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/pod/utils.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/pod/wait.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/ports.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/provider.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/size.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/skipper/.import-restrictions
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/skipper/skipper.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/ssh/.import-restrictions
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/ssh/ssh.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/test_context.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/testfiles/.import-restrictions
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/testfiles/testfiles.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/timeouts.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/framework/util.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/README.md
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/dra/OWNERS
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/dra/dra-test-driver-proxy.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/embed.go
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/flexvolume/attachable-with-long-mount
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/flexvolume/dummy
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/flexvolume/dummy-attachable
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/gpu/gce/nvidia-driver-installer.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/gpu/gce/nvidia-gpu-device-plugin.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/guestbook/agnhost-primary-deployment.yaml.in
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/guestbook/agnhost-primary-service.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/guestbook/agnhost-replica-deployment.yaml.in
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/guestbook/agnhost-replica-service.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/guestbook/frontend-deployment.yaml.in
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/guestbook/frontend-service.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/guestbook/legacy/frontend-controller.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/guestbook/legacy/redis-master-controller.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/guestbook/legacy/redis-slave-controller.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/guestbook/redis-master-deployment.yaml.in
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/guestbook/redis-master-service.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/guestbook/redis-slave-deployment.yaml.in
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/guestbook/redis-slave-service.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/kubectl/agnhost-deployment1.yaml.in
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/kubectl/agnhost-deployment2.yaml.in
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/kubectl/agnhost-deployment3.yaml.in
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/kubectl/agnhost-primary-controller.json.in
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/kubectl/agnhost-primary-pod.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/kubectl/agnhost-primary-service.json
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/kubectl/agnhost-rc.yaml.in
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/kubectl/busybox-cronjob.yaml.in
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/kubectl/busybox-pod.yaml.in
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/kubectl/pause-pod.yaml.in
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/kubectl/pod-with-readiness-probe.yaml.in
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/pod
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/sample-device-plugin/sample-device-plugin-control-registration.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/sample-device-plugin/sample-device-plugin.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/cassandra/controller.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/cassandra/pdb.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/cassandra/service.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/cassandra/statefulset.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/cassandra/tester.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/cockroachdb/service.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/cockroachdb/statefulset.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/etcd/OWNERS
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/etcd/pdb.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/etcd/service.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/etcd/statefulset.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/etcd/tester.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/mysql-galera/service.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/mysql-galera/statefulset.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/mysql-upgrade/configmap.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/mysql-upgrade/service.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/mysql-upgrade/statefulset.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/mysql-upgrade/tester.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/zookeeper/service.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/statefulset/zookeeper/statefulset.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/OWNERS
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/any-volume-datasource/crd/hello-populator-crd.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/any-volume-datasource/crd/populator.storage.k8s.io_volumepopulators.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/any-volume-datasource/hello-populator-deploy.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/any-volume-datasource/volume-data-source-validator/rbac-data-source-validator.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/any-volume-datasource/volume-data-source-validator/setup-data-source-validator.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/controller-role.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/external-attacher/rbac.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/external-health-monitor/external-health-monitor-controller/rbac.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/external-provisioner/rbac.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/external-resizer/rbac.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/external-snapshotter/csi-snapshotter/rbac-csi-snapshotter.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/external-snapshotter/groupsnapshot.storage.k8s.io_volumegroupsnapshotclasses.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/external-snapshotter/groupsnapshot.storage.k8s.io_volumegroupsnapshotcontents.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/external-snapshotter/groupsnapshot.storage.k8s.io_volumegroupsnapshots.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/external-snapshotter/volume-group-snapshots/csi-hostpath-plugin.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/external-snapshotter/volume-group-snapshots/run_group_snapshot_e2e.sh
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/gce-pd/controller_ss.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/gce-pd/csi-controller-rbac.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/gce-pd/node_ds.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/hostpath/README.md
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpath-driverinfo.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpath-plugin.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpath-snapshotclass.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpath-testing.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/hostpath/hostpath/e2e-test-rbac.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/mock/csi-mock-driver-attacher.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/mock/csi-mock-driver-resizer.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/mock/csi-mock-driver-snapshotter.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/mock/csi-mock-driver.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/mock/csi-mock-driverinfo.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/mock/csi-mock-proxy.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/mock/csi-mock-rbac.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/mock/csi-storageclass.yaml
delete mode 100644 vendor/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/update-hostpath.sh
delete mode 100644 vendor/k8s.io/kubernetes/test/utils/admission_webhook.go
delete mode 100644 vendor/k8s.io/kubernetes/test/utils/audit.go
delete mode 100644 vendor/k8s.io/kubernetes/test/utils/conditions.go
delete mode 100644 vendor/k8s.io/kubernetes/test/utils/create_resources.go
delete mode 100644 vendor/k8s.io/kubernetes/test/utils/delete_resources.go
delete mode 100644 vendor/k8s.io/kubernetes/test/utils/density_utils.go
delete mode 100644 vendor/k8s.io/kubernetes/test/utils/deployment.go
delete mode 100644 vendor/k8s.io/kubernetes/test/utils/format/format.go
delete mode 100644 vendor/k8s.io/kubernetes/test/utils/image/OWNERS
delete mode 100644 vendor/k8s.io/kubernetes/test/utils/image/csi_manifest.go
delete mode 100644 vendor/k8s.io/kubernetes/test/utils/image/manifest.go
delete mode 100644 vendor/k8s.io/kubernetes/test/utils/kubeconfig/kubeconfig.go
delete mode 100644 vendor/k8s.io/kubernetes/test/utils/node.go
delete mode 100644 vendor/k8s.io/kubernetes/test/utils/paths.go
delete mode 100644 vendor/k8s.io/kubernetes/test/utils/pki_helpers.go
delete mode 100644 vendor/k8s.io/kubernetes/test/utils/pod_store.go
delete mode 100644 vendor/k8s.io/kubernetes/test/utils/replicaset.go
delete mode 100644 vendor/k8s.io/kubernetes/test/utils/runners.go
delete mode 100644 vendor/k8s.io/kubernetes/test/utils/tmpdir.go
delete mode 100644 vendor/k8s.io/kubernetes/test/utils/update_resources.go
delete mode 100644 vendor/k8s.io/pod-security-admission/LICENSE
delete mode 100644 vendor/k8s.io/pod-security-admission/api/attributes.go
delete mode 100644 vendor/k8s.io/pod-security-admission/api/constants.go
delete mode 100644 vendor/k8s.io/pod-security-admission/api/doc.go
delete mode 100644 vendor/k8s.io/pod-security-admission/api/helpers.go
delete mode 100644 vendor/k8s.io/pod-security-admission/policy/check_allowPrivilegeEscalation.go
delete mode 100644 vendor/k8s.io/pod-security-admission/policy/check_appArmorProfile.go
delete mode 100644 vendor/k8s.io/pod-security-admission/policy/check_capabilities_baseline.go
delete mode 100644 vendor/k8s.io/pod-security-admission/policy/check_capabilities_restricted.go
delete mode 100644 vendor/k8s.io/pod-security-admission/policy/check_hostNamespaces.go
delete mode 100644 vendor/k8s.io/pod-security-admission/policy/check_hostPathVolumes.go
delete mode 100644 vendor/k8s.io/pod-security-admission/policy/check_hostPorts.go
delete mode 100644 vendor/k8s.io/pod-security-admission/policy/check_hostProbesAndhostLifecycle.go
delete mode 100644 vendor/k8s.io/pod-security-admission/policy/check_privileged.go
delete mode 100644 vendor/k8s.io/pod-security-admission/policy/check_procMount_baseline.go
delete mode 100644 vendor/k8s.io/pod-security-admission/policy/check_procMount_restricted.go
delete mode 100644 vendor/k8s.io/pod-security-admission/policy/check_restrictedVolumes.go
delete mode 100644 vendor/k8s.io/pod-security-admission/policy/check_runAsNonRoot.go
delete mode 100644 vendor/k8s.io/pod-security-admission/policy/check_runAsUser.go
delete mode 100644 vendor/k8s.io/pod-security-admission/policy/check_seLinuxOptions.go
delete mode 100644 vendor/k8s.io/pod-security-admission/policy/check_seccompProfile_baseline.go
delete mode 100644 vendor/k8s.io/pod-security-admission/policy/check_seccompProfile_restricted.go
delete mode 100644 vendor/k8s.io/pod-security-admission/policy/check_sysctls.go
delete mode 100644 vendor/k8s.io/pod-security-admission/policy/check_windowsHostProcess.go
delete mode 100644 vendor/k8s.io/pod-security-admission/policy/checks.go
delete mode 100644 vendor/k8s.io/pod-security-admission/policy/doc.go
delete mode 100644 vendor/k8s.io/pod-security-admission/policy/helpers.go
delete mode 100644 vendor/k8s.io/pod-security-admission/policy/registry.go
delete mode 100644 vendor/k8s.io/pod-security-admission/policy/visitor.go
create mode 100644 vendor/k8s.io/utils/buffer/ring_fixed.go
delete mode 100644 vendor/k8s.io/utils/exec/fixup_go118.go
delete mode 100644 vendor/k8s.io/utils/exec/fixup_go119.go
delete mode 100644 vendor/k8s.io/utils/integer/integer.go
delete mode 100644 vendor/k8s.io/utils/path/file.go
delete mode 100644 vendor/sigs.k8s.io/apiserver-network-proxy/konnectivity-client/LICENSE
delete mode 100644 vendor/sigs.k8s.io/apiserver-network-proxy/konnectivity-client/pkg/client/client.go
delete mode 100644 vendor/sigs.k8s.io/apiserver-network-proxy/konnectivity-client/pkg/client/conn.go
delete mode 100644 vendor/sigs.k8s.io/apiserver-network-proxy/konnectivity-client/pkg/client/metrics/metrics.go
delete mode 100644 vendor/sigs.k8s.io/apiserver-network-proxy/konnectivity-client/pkg/common/metrics/metrics.go
delete mode 100644 vendor/sigs.k8s.io/apiserver-network-proxy/konnectivity-client/proto/client/client.pb.go
delete mode 100644 vendor/sigs.k8s.io/apiserver-network-proxy/konnectivity-client/proto/client/client.proto
delete mode 100644 vendor/sigs.k8s.io/apiserver-network-proxy/konnectivity-client/proto/client/client_grpc.pb.go
diff --git a/go.mod b/go.mod
index 91db3dcc7..12dd8264b 100644
--- a/go.mod
+++ b/go.mod
@@ -2,6 +2,8 @@ module github.com/openshift/machine-api-provider-aws
go 1.25.0
+replace github.com/openshift/api => ../api
+
require (
github.com/aws/aws-sdk-go v1.55.8
github.com/blang/semver v3.5.1+incompatible
@@ -17,8 +19,8 @@ require (
k8s.io/apiserver v0.35.2
k8s.io/client-go v0.35.2
k8s.io/component-base v0.35.2
- k8s.io/klog/v2 v2.130.1
- k8s.io/utils v0.0.0-20251002143259-bc988d571ff4
+ k8s.io/klog/v2 v2.140.0
+ k8s.io/utils v0.0.0-20260210185600-b8788abfbbc2
sigs.k8s.io/controller-runtime v0.23.3
sigs.k8s.io/controller-runtime/tools/setup-envtest v0.0.0-20250520071515-71f7db556ca5
sigs.k8s.io/controller-tools v0.19.0
@@ -34,7 +36,7 @@ require (
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/chai2010/gettext-go v1.0.3 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
- github.com/emicklei/go-restful/v3 v3.12.2 // indirect
+ github.com/emicklei/go-restful/v3 v3.13.0 // indirect
github.com/evanphx/json-patch/v5 v5.9.11 // indirect
github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f // indirect
github.com/fatih/color v1.18.0 // indirect
@@ -44,7 +46,18 @@ require (
github.com/go-logr/zapr v1.3.0 // indirect
github.com/go-openapi/jsonpointer v0.21.0 // indirect
github.com/go-openapi/jsonreference v0.21.0 // indirect
- github.com/go-openapi/swag v0.23.0 // indirect
+ github.com/go-openapi/swag v0.25.4 // indirect
+ github.com/go-openapi/swag/cmdutils v0.25.4 // indirect
+ github.com/go-openapi/swag/conv v0.25.4 // indirect
+ github.com/go-openapi/swag/fileutils v0.25.4 // indirect
+ github.com/go-openapi/swag/jsonname v0.25.4 // indirect
+ github.com/go-openapi/swag/jsonutils v0.25.4 // indirect
+ github.com/go-openapi/swag/loading v0.25.4 // indirect
+ github.com/go-openapi/swag/mangling v0.25.4 // indirect
+ github.com/go-openapi/swag/netutils v0.25.4 // indirect
+ github.com/go-openapi/swag/stringutils v0.25.4 // indirect
+ github.com/go-openapi/swag/typeutils v0.25.4 // indirect
+ github.com/go-openapi/swag/yamlutils v0.25.4 // indirect
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
github.com/gobuffalo/flect v1.0.3 // indirect
github.com/google/btree v1.1.3 // indirect
@@ -55,10 +68,8 @@ require (
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
- github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect
- github.com/mailru/easyjson v0.9.0 // indirect
github.com/mattn/go-colorable v0.1.14 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
@@ -87,15 +98,15 @@ require (
go.uber.org/zap v1.27.0 // indirect
go.yaml.in/yaml/v2 v2.4.3 // indirect
go.yaml.in/yaml/v3 v3.0.4 // indirect
- golang.org/x/mod v0.30.0 // indirect
- golang.org/x/net v0.48.0 // indirect
+ golang.org/x/mod v0.33.0 // indirect
+ golang.org/x/net v0.50.0 // indirect
golang.org/x/oauth2 v0.34.0 // indirect
golang.org/x/sync v0.19.0 // indirect
- golang.org/x/sys v0.40.0 // indirect
- golang.org/x/term v0.38.0 // indirect
- golang.org/x/text v0.32.0 // indirect
+ golang.org/x/sys v0.41.0 // indirect
+ golang.org/x/term v0.40.0 // indirect
+ golang.org/x/text v0.34.0 // indirect
golang.org/x/time v0.14.0 // indirect
- golang.org/x/tools v0.39.0 // indirect
+ golang.org/x/tools v0.42.0 // indirect
gomodules.xyz/jsonpatch/v2 v2.5.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 // indirect
@@ -109,12 +120,12 @@ require (
k8s.io/cli-runtime v0.35.2 // indirect
k8s.io/code-generator v0.35.2 // indirect
k8s.io/gengo/v2 v2.0.0-20250922181213-ec3ebc5fd46b // indirect
- k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 // indirect
+ k8s.io/kube-openapi v0.0.0-20260519202549-bbf5c5577288 // indirect
k8s.io/kubectl v0.35.2 // indirect
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
sigs.k8s.io/kustomize/api v0.20.1 // indirect
sigs.k8s.io/kustomize/kyaml v0.20.1 // indirect
sigs.k8s.io/randfill v1.0.0 // indirect
- sigs.k8s.io/structured-merge-diff/v6 v6.3.2-0.20260122202528-d9cc6641c482 // indirect
+ sigs.k8s.io/structured-merge-diff/v6 v6.3.2 // indirect
sigs.k8s.io/yaml v1.6.0 // indirect
)
diff --git a/go.sum b/go.sum
index 385eb75d1..25257cce8 100644
--- a/go.sum
+++ b/go.sum
@@ -97,8 +97,8 @@ github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/denis-tingaikin/go-header v0.5.0 h1:SRdnP5ZKvcO9KKRP1KJrhFR3RrlGuD+42t4429eC9k8=
github.com/denis-tingaikin/go-header v0.5.0/go.mod h1:mMenU5bWrok6Wl2UsZjy+1okegmwQ3UgWl4V1D8gjlY=
-github.com/emicklei/go-restful/v3 v3.12.2 h1:DhwDP0vY3k8ZzE0RunuJy8GhNpPL6zqLkDf9B/a0/xU=
-github.com/emicklei/go-restful/v3 v3.12.2/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc=
+github.com/emicklei/go-restful/v3 v3.13.0 h1:C4Bl2xDndpU6nJ4bc1jXd+uTmYPVUwkD6bFY/oTyCes=
+github.com/emicklei/go-restful/v3 v3.13.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc=
github.com/ettle/strcase v0.2.0 h1:fGNiVF21fHXpX1niBgk0aROov1LagYsOwV/xqKDKR/Q=
github.com/ettle/strcase v0.2.0/go.mod h1:DajmHElDSaX76ITe3/VHVyMin4LWSJN5Z909Wp+ED1A=
github.com/evanphx/json-patch v5.9.0+incompatible h1:fBXyNpNMuTTDdquAq/uisOr2lShz4oaXpDTX2bLe7ls=
@@ -143,8 +143,36 @@ github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1
github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY=
github.com/go-openapi/jsonreference v0.21.0 h1:Rs+Y7hSXT83Jacb7kFyjn4ijOuVGSvOdF2+tg1TRrwQ=
github.com/go-openapi/jsonreference v0.21.0/go.mod h1:LmZmgsrTkVg9LG4EaHeY8cBDslNPMo06cago5JNLkm4=
-github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE=
-github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ=
+github.com/go-openapi/swag v0.25.4 h1:OyUPUFYDPDBMkqyxOTkqDYFnrhuhi9NR6QVUvIochMU=
+github.com/go-openapi/swag v0.25.4/go.mod h1:zNfJ9WZABGHCFg2RnY0S4IOkAcVTzJ6z2Bi+Q4i6qFQ=
+github.com/go-openapi/swag/cmdutils v0.25.4 h1:8rYhB5n6WawR192/BfUu2iVlxqVR9aRgGJP6WaBoW+4=
+github.com/go-openapi/swag/cmdutils v0.25.4/go.mod h1:pdae/AFo6WxLl5L0rq87eRzVPm/XRHM3MoYgRMvG4A0=
+github.com/go-openapi/swag/conv v0.25.4 h1:/Dd7p0LZXczgUcC/Ikm1+YqVzkEeCc9LnOWjfkpkfe4=
+github.com/go-openapi/swag/conv v0.25.4/go.mod h1:3LXfie/lwoAv0NHoEuY1hjoFAYkvlqI/Bn5EQDD3PPU=
+github.com/go-openapi/swag/fileutils v0.25.4 h1:2oI0XNW5y6UWZTC7vAxC8hmsK/tOkWXHJQH4lKjqw+Y=
+github.com/go-openapi/swag/fileutils v0.25.4/go.mod h1:cdOT/PKbwcysVQ9Tpr0q20lQKH7MGhOEb6EwmHOirUk=
+github.com/go-openapi/swag/jsonname v0.25.4 h1:bZH0+MsS03MbnwBXYhuTttMOqk+5KcQ9869Vye1bNHI=
+github.com/go-openapi/swag/jsonname v0.25.4/go.mod h1:GPVEk9CWVhNvWhZgrnvRA6utbAltopbKwDu8mXNUMag=
+github.com/go-openapi/swag/jsonutils v0.25.4 h1:VSchfbGhD4UTf4vCdR2F4TLBdLwHyUDTd1/q4i+jGZA=
+github.com/go-openapi/swag/jsonutils v0.25.4/go.mod h1:7OYGXpvVFPn4PpaSdPHJBtF0iGnbEaTk8AvBkoWnaAY=
+github.com/go-openapi/swag/jsonutils/fixtures_test v0.25.4 h1:IACsSvBhiNJwlDix7wq39SS2Fh7lUOCJRmx/4SN4sVo=
+github.com/go-openapi/swag/jsonutils/fixtures_test v0.25.4/go.mod h1:Mt0Ost9l3cUzVv4OEZG+WSeoHwjWLnarzMePNDAOBiM=
+github.com/go-openapi/swag/loading v0.25.4 h1:jN4MvLj0X6yhCDduRsxDDw1aHe+ZWoLjW+9ZQWIKn2s=
+github.com/go-openapi/swag/loading v0.25.4/go.mod h1:rpUM1ZiyEP9+mNLIQUdMiD7dCETXvkkC30z53i+ftTE=
+github.com/go-openapi/swag/mangling v0.25.4 h1:2b9kBJk9JvPgxr36V23FxJLdwBrpijI26Bx5JH4Hp48=
+github.com/go-openapi/swag/mangling v0.25.4/go.mod h1:6dxwu6QyORHpIIApsdZgb6wBk/DPU15MdyYj/ikn0Hg=
+github.com/go-openapi/swag/netutils v0.25.4 h1:Gqe6K71bGRb3ZQLusdI8p/y1KLgV4M/k+/HzVSqT8H0=
+github.com/go-openapi/swag/netutils v0.25.4/go.mod h1:m2W8dtdaoX7oj9rEttLyTeEFFEBvnAx9qHd5nJEBzYg=
+github.com/go-openapi/swag/stringutils v0.25.4 h1:O6dU1Rd8bej4HPA3/CLPciNBBDwZj9HiEpdVsb8B5A8=
+github.com/go-openapi/swag/stringutils v0.25.4/go.mod h1:GTsRvhJW5xM5gkgiFe0fV3PUlFm0dr8vki6/VSRaZK0=
+github.com/go-openapi/swag/typeutils v0.25.4 h1:1/fbZOUN472NTc39zpa+YGHn3jzHWhv42wAJSN91wRw=
+github.com/go-openapi/swag/typeutils v0.25.4/go.mod h1:Ou7g//Wx8tTLS9vG0UmzfCsjZjKhpjxayRKTHXf2pTE=
+github.com/go-openapi/swag/yamlutils v0.25.4 h1:6jdaeSItEUb7ioS9lFoCZ65Cne1/RZtPBZ9A56h92Sw=
+github.com/go-openapi/swag/yamlutils v0.25.4/go.mod h1:MNzq1ulQu+yd8Kl7wPOut/YHAAU/H6hL91fF+E2RFwc=
+github.com/go-openapi/testify/enable/yaml/v2 v2.0.2 h1:0+Y41Pz1NkbTHz8NngxTuAXxEodtNSI1WG1c/m5Akw4=
+github.com/go-openapi/testify/enable/yaml/v2 v2.0.2/go.mod h1:kme83333GCtJQHXQ8UKX3IBZu6z8T5Dvy5+CW3NLUUg=
+github.com/go-openapi/testify/v2 v2.0.2 h1:X999g3jeLcoY8qctY/c/Z8iBHTbwLz7R2WXd6Ub6wls=
+github.com/go-openapi/testify/v2 v2.0.2/go.mod h1:HCPmvFFnheKK2BuwSA0TbbdxJ3I16pjwMkYkP4Ywn54=
github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI=
github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8=
github.com/go-test/deep v1.1.1 h1:0r/53hagsehfO4bzD2Pgr/+RgHqhmf+k1Bpse2cTu1U=
@@ -243,8 +271,6 @@ github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9Y
github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo=
github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8=
github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U=
-github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY=
-github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y=
github.com/joshdk/go-junit v1.0.0 h1:S86cUKIdwBHWwA6xCmFlf3RTLfVXYQfvanM5Uh+K6GE=
github.com/joshdk/go-junit v1.0.0/go.mod h1:TiiV0PqkaNfFXjEiyjWM3XXrhVyCa1K4Zfga6W52ung=
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
@@ -287,8 +313,6 @@ github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de h1:9TO3cAIGXtEhn
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de/go.mod h1:zAbeS9B/r2mtpb6U+EI2rYA5OAXxsYw6wTamcNW+zcE=
github.com/macabu/inamedparam v0.1.3 h1:2tk/phHkMlEL/1GNe/Yf6kkR/hkcUdAEY3L0hjYV1Mk=
github.com/macabu/inamedparam v0.1.3/go.mod h1:93FLICAIk/quk7eaPPQvbzihUdn/QkGDwIZEoLtpH6I=
-github.com/mailru/easyjson v0.9.0 h1:PrnmzHw7262yW8sTBwxi1PdJA3Iw/EKBa8psRf7d9a4=
-github.com/mailru/easyjson v0.9.0/go.mod h1:1+xMtQp2MRNVL/V1bOzuP3aP8VNwRW55fQUto+XFtTU=
github.com/maratori/testableexamples v1.0.0 h1:dU5alXRrD8WKSjOUnmJZuzdxWOEQ57+7s93SLMxb2vI=
github.com/maratori/testableexamples v1.0.0/go.mod h1:4rhjL1n20TUTT4vdh3RDqSizKLyXp7K2u6HgraZCGzE=
github.com/maratori/testpackage v1.1.1 h1:S58XVV5AD7HADMmD0fNnziNHqKvSdDuEKdPD1rNTU04=
@@ -343,8 +367,6 @@ github.com/onsi/ginkgo/v2 v2.27.2 h1:LzwLj0b89qtIy6SSASkzlNvX6WktqurSHwkk2ipF/Ns
github.com/onsi/ginkgo/v2 v2.27.2/go.mod h1:ArE1D/XhNXBXCBkKOLkbsb2c81dQHCRcF5zwn/ykDRo=
github.com/onsi/gomega v1.38.2 h1:eZCjf2xjZAqe+LeWvKb5weQ+NcPwX84kqJ0cZNxok2A=
github.com/onsi/gomega v1.38.2/go.mod h1:W2MJcYxRGV63b418Ai34Ud0hEdTVXq9NW9+Sx6uXf3k=
-github.com/openshift/api v0.0.0-20260310125822-c9c9ac0c889c h1:Nh/QU5htvdGtCN1o5VGtThy+ncw8zbhfG7n+bqecNvM=
-github.com/openshift/api v0.0.0-20260310125822-c9c9ac0c889c/go.mod h1:pyVjK0nZ4sRs4fuQVQ4rubsJdahI1PB94LnQ8sGdvxo=
github.com/openshift/client-go v0.0.0-20260305144912-aba4b273812d h1:TCwd4qbMSPfQaxrQD6e9RPw1Jc3qLGaHf8el4RNJjM0=
github.com/openshift/client-go v0.0.0-20260305144912-aba4b273812d/go.mod h1:7QeQMJHhEpcMankJSrwuMALpRRM1ADtaFyURHXyPSSQ=
github.com/openshift/cluster-api-actuator-pkg/testutils v0.0.0-20250910145856-21d03d30056d h1:+sqUThLi/lmgT5/scmmjnS6+RZFtbdxRAscNfCPyLPI=
@@ -538,13 +560,13 @@ golang.org/x/exp v0.0.0-20240909161429-701f63a606c0/go.mod h1:2TbTHSBQa924w8M6Xs
golang.org/x/exp/typeparams v0.0.0-20250210185358-939b2ce775ac h1:TSSpLIG4v+p0rPv1pNOQtl1I8knsO4S9trOxNMOLVP4=
golang.org/x/exp/typeparams v0.0.0-20250210185358-939b2ce775ac/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk=
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
-golang.org/x/mod v0.30.0 h1:fDEXFVZ/fmCKProc/yAXXUijritrDzahmwwefnjoPFk=
-golang.org/x/mod v0.30.0/go.mod h1:lAsf5O2EvJeSFMiBxXDki7sCgAxEUcZHXoXMKT4GJKc=
+golang.org/x/mod v0.33.0 h1:tHFzIWbBifEmbwtGz65eaWyGiGZatSrT9prnU8DbVL8=
+golang.org/x/mod v0.33.0/go.mod h1:swjeQEj+6r7fODbD2cqrnje9PnziFuw4bmLbBZFrQ5w=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
-golang.org/x/net v0.48.0 h1:zyQRTTrjc33Lhh0fBgT/H3oZq9WuvRR5gPC70xpDiQU=
-golang.org/x/net v0.48.0/go.mod h1:+ndRgGjkh8FGtu1w1FGbEC31if4VrNVMuKTgcAAnQRY=
+golang.org/x/net v0.50.0 h1:ucWh9eiCGyDR3vtzso0WMQinm2Dnt8cFMuQa9K33J60=
+golang.org/x/net v0.50.0/go.mod h1:UgoSli3F/pBgdJBHCTc+tp3gmrU4XswgGRgtnwWTfyM=
golang.org/x/oauth2 v0.34.0 h1:hqK/t4AKgbqWkdkcAeI8XLmbK+4m4G5YeQRrmiotGlw=
golang.org/x/oauth2 v0.34.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
@@ -558,22 +580,22 @@ golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.40.0 h1:DBZZqJ2Rkml6QMQsZywtnjnnGvHza6BTfYFWY9kjEWQ=
-golang.org/x/sys v0.40.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
+golang.org/x/sys v0.41.0 h1:Ivj+2Cp/ylzLiEU89QhWblYnOE9zerudt9Ftecq2C6k=
+golang.org/x/sys v0.41.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
-golang.org/x/term v0.38.0 h1:PQ5pkm/rLO6HnxFR7N2lJHOZX6Kez5Y1gDSJla6jo7Q=
-golang.org/x/term v0.38.0/go.mod h1:bSEAKrOT1W+VSu9TSCMtoGEOUcKxOKgl3LE5QEF/xVg=
+golang.org/x/term v0.40.0 h1:36e4zGLqU4yhjlmxEaagx2KuYbJq3EwY8K943ZsHcvg=
+golang.org/x/term v0.40.0/go.mod h1:w2P8uVp06p2iyKKuvXIm7N/y0UCRt3UfJTfZ7oOpglM=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
-golang.org/x/text v0.32.0 h1:ZD01bjUt1FQ9WJ0ClOL5vxgxOI/sVCNgX1YtKwcY0mU=
-golang.org/x/text v0.32.0/go.mod h1:o/rUWzghvpD5TXrTIBuJU77MTaN0ljMWE47kxGJQ7jY=
+golang.org/x/text v0.34.0 h1:oL/Qq0Kdaqxa1KbNeMKwQq0reLCCaFtqu2eNuSeNHbk=
+golang.org/x/text v0.34.0/go.mod h1:homfLqTYRFyVYemLBFl5GgL/DWEiH5wcsQ5gSh1yziA=
golang.org/x/time v0.14.0 h1:MRx4UaLrDotUKUdCIqzPC48t1Y9hANFKIRpNx+Te8PI=
golang.org/x/time v0.14.0/go.mod h1:eL/Oa2bBBK0TkX57Fyni+NgnyQQN4LitPmob2Hjnqw4=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
-golang.org/x/tools v0.39.0 h1:ik4ho21kwuQln40uelmciQPp9SipgNDdrafrYA4TmQQ=
-golang.org/x/tools v0.39.0/go.mod h1:JnefbkDPyD8UU2kI5fuf8ZX4/yUeh9W877ZeBONxUqQ=
+golang.org/x/tools v0.42.0 h1:uNgphsn75Tdz5Ji2q36v/nsFSfR/9BRFvqhGBaJGd5k=
+golang.org/x/tools v0.42.0/go.mod h1:Ma6lCIwGZvHK6XtgbswSoWroEkhugApmsXyrUmBhfr0=
golang.org/x/tools/go/expect v0.1.1-deprecated h1:jpBZDwmgPhXsKZC6WhL20P4b/wmnpsEAGHaNy0n/rJM=
golang.org/x/tools/go/expect v0.1.1-deprecated/go.mod h1:eihoPOH+FgIqa3FpoTwguz/bVUSGBlGQU67vpBeOrBY=
golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated h1:1h2MnaIAIXISqTFKdENegdpAgUXz6NrPEsbIeWaBRvM=
@@ -626,14 +648,14 @@ k8s.io/component-base v0.35.2 h1:btgR+qNrpWuRSuvWSnQYsZy88yf5gVwemvz0yw79pGc=
k8s.io/component-base v0.35.2/go.mod h1:B1iBJjooe6xIJYUucAxb26RwhAjzx0gHnqO9htWIX+0=
k8s.io/gengo/v2 v2.0.0-20250922181213-ec3ebc5fd46b h1:gMplByicHV/TJBizHd9aVEsTYoJBnnUAT5MHlTkbjhQ=
k8s.io/gengo/v2 v2.0.0-20250922181213-ec3ebc5fd46b/go.mod h1:CgujABENc3KuTrcsdpGmrrASjtQsWCT7R99mEV4U/fM=
-k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk=
-k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE=
-k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 h1:Y3gxNAuB0OBLImH611+UDZcmKS3g6CthxToOb37KgwE=
-k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912/go.mod h1:kdmbQkyfwUagLfXIad1y2TdrjPFWp2Q89B3qkRwf/pQ=
+k8s.io/klog/v2 v2.140.0 h1:Tf+J3AH7xnUzZyVVXhTgGhEKnFqye14aadWv7bzXdzc=
+k8s.io/klog/v2 v2.140.0/go.mod h1:o+/RWfJ6PwpnFn7OyAG3QnO47BFsymfEfrz6XyYSSp0=
+k8s.io/kube-openapi v0.0.0-20260519202549-bbf5c5577288 h1:A7Lby6ekC6nv+6oO38huCMFBRP0Os+tIeq1GkwxOQes=
+k8s.io/kube-openapi v0.0.0-20260519202549-bbf5c5577288/go.mod h1:V/QaCUYDa+0QpcHhVVc5l99Uz56wEMEXBSj9oCDkNDY=
k8s.io/kubectl v0.35.2 h1:aSmqhSOfsoG9NR5oR8OD5eMKpLN9x8oncxfqLHbJJII=
k8s.io/kubectl v0.35.2/go.mod h1:+OJC779UsDJGxNPbHxCwvb4e4w9Eh62v/DNYU2TlsyM=
-k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 h1:SjGebBtkBqHFOli+05xYbK8YF1Dzkbzn+gDM4X9T4Ck=
-k8s.io/utils v0.0.0-20251002143259-bc988d571ff4/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
+k8s.io/utils v0.0.0-20260210185600-b8788abfbbc2 h1:AZYQSJemyQB5eRxqcPky+/7EdBj0xi3g0ZcxxJ7vbWU=
+k8s.io/utils v0.0.0-20260210185600-b8788abfbbc2/go.mod h1:xDxuJ0whA3d0I4mf/C4ppKHxXynQ+fxnkmQH0vTHnuk=
mvdan.cc/gofumpt v0.7.0 h1:bg91ttqXmi9y2xawvkuMXyvAA/1ZGJqYAEGjXuP0JXU=
mvdan.cc/gofumpt v0.7.0/go.mod h1:txVFJy/Sc/mvaycET54pV8SW8gWxTlUuGHVEcncmNUo=
mvdan.cc/unparam v0.0.0-20240528143540-8a5130ca722f h1:lMpcwN6GxNbWtbpI1+xzFLSW8XzX0u72NttUGVFjO3U=
@@ -654,7 +676,7 @@ sigs.k8s.io/kustomize/kyaml v0.20.1 h1:PCMnA2mrVbRP3NIB6v9kYCAc38uvFLVs8j/CD567A
sigs.k8s.io/kustomize/kyaml v0.20.1/go.mod h1:0EmkQHRUsJxY8Ug9Niig1pUMSCGHxQ5RklbpV/Ri6po=
sigs.k8s.io/randfill v1.0.0 h1:JfjMILfT8A6RbawdsK2JXGBR5AQVfd+9TbzrlneTyrU=
sigs.k8s.io/randfill v1.0.0/go.mod h1:XeLlZ/jmk4i1HRopwe7/aU3H5n1zNUcX6TM94b3QxOY=
-sigs.k8s.io/structured-merge-diff/v6 v6.3.2-0.20260122202528-d9cc6641c482 h1:2WOzJpHUBVrrkDjU4KBT8n5LDcj824eX0I5UKcgeRUs=
-sigs.k8s.io/structured-merge-diff/v6 v6.3.2-0.20260122202528-d9cc6641c482/go.mod h1:M3W8sfWvn2HhQDIbGWj3S099YozAsymCo/wrT5ohRUE=
+sigs.k8s.io/structured-merge-diff/v6 v6.3.2 h1:kwVWMx5yS1CrnFWA/2QHyRVJ8jM6dBA80uLmm0wJkk8=
+sigs.k8s.io/structured-merge-diff/v6 v6.3.2/go.mod h1:M3W8sfWvn2HhQDIbGWj3S099YozAsymCo/wrT5ohRUE=
sigs.k8s.io/yaml v1.6.0 h1:G8fkbMSAFqgEFgh4b1wmtzDnioxFCUgTZhlbj5P9QYs=
sigs.k8s.io/yaml v1.6.0/go.mod h1:796bPqUfzR/0jLAl6XjHl3Ck7MiyVv8dbTdyT3/pMf4=
diff --git a/vendor/cel.dev/expr/.bazelversion b/vendor/cel.dev/expr/.bazelversion
deleted file mode 100644
index 13c50892b..000000000
--- a/vendor/cel.dev/expr/.bazelversion
+++ /dev/null
@@ -1,2 +0,0 @@
-7.3.2
-# Keep this pinned version in parity with cel-go
diff --git a/vendor/cel.dev/expr/.gitattributes b/vendor/cel.dev/expr/.gitattributes
deleted file mode 100644
index 3de1ec213..000000000
--- a/vendor/cel.dev/expr/.gitattributes
+++ /dev/null
@@ -1,2 +0,0 @@
-*.pb.go linguist-generated=true
-*.pb.go -diff -merge
diff --git a/vendor/cel.dev/expr/.gitignore b/vendor/cel.dev/expr/.gitignore
deleted file mode 100644
index 0d4fed27c..000000000
--- a/vendor/cel.dev/expr/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-bazel-*
-MODULE.bazel.lock
diff --git a/vendor/cel.dev/expr/BUILD.bazel b/vendor/cel.dev/expr/BUILD.bazel
deleted file mode 100644
index f5bda3bb1..000000000
--- a/vendor/cel.dev/expr/BUILD.bazel
+++ /dev/null
@@ -1,33 +0,0 @@
-load("@io_bazel_rules_go//go:def.bzl", "go_library")
-
-package(default_visibility = ["//visibility:public"])
-
-licenses(["notice"]) # Apache 2.0
-
-go_library(
- name = "expr",
- srcs = [
- "checked.pb.go",
- "eval.pb.go",
- "explain.pb.go",
- "syntax.pb.go",
- "value.pb.go",
- ],
- importpath = "cel.dev/expr",
- visibility = ["//visibility:public"],
- deps = [
- "@org_golang_google_protobuf//reflect/protoreflect",
- "@org_golang_google_protobuf//runtime/protoimpl",
- "@org_golang_google_protobuf//types/known/anypb",
- "@org_golang_google_protobuf//types/known/durationpb",
- "@org_golang_google_protobuf//types/known/emptypb",
- "@org_golang_google_protobuf//types/known/structpb",
- "@org_golang_google_protobuf//types/known/timestamppb",
- ],
-)
-
-alias(
- name = "go_default_library",
- actual = ":expr",
- visibility = ["//visibility:public"],
-)
diff --git a/vendor/cel.dev/expr/CODE_OF_CONDUCT.md b/vendor/cel.dev/expr/CODE_OF_CONDUCT.md
deleted file mode 100644
index 59908e2d8..000000000
--- a/vendor/cel.dev/expr/CODE_OF_CONDUCT.md
+++ /dev/null
@@ -1,25 +0,0 @@
-# Contributor Code of Conduct
-## Version 0.1.1 (adapted from 0.3b-angular)
-
-As contributors and maintainers of the Common Expression Language
-(CEL) project, we pledge to respect everyone who contributes by
-posting issues, updating documentation, submitting pull requests,
-providing feedback in comments, and any other activities.
-
-Communication through any of CEL's channels (GitHub, Gitter, IRC,
-mailing lists, Google+, Twitter, etc.) must be constructive and never
-resort to personal attacks, trolling, public or private harassment,
-insults, or other unprofessional conduct.
-
-We promise to extend courtesy and respect to everyone involved in this
-project regardless of gender, gender identity, sexual orientation,
-disability, age, race, ethnicity, religion, or level of experience. We
-expect anyone contributing to the project to do the same.
-
-If any member of the community violates this code of conduct, the
-maintainers of the CEL project may take action, removing issues,
-comments, and PRs or blocking accounts as deemed appropriate.
-
-If you are subject to or witness unacceptable behavior, or have any
-other concerns, please email us at
-[cel-conduct@google.com](mailto:cel-conduct@google.com).
diff --git a/vendor/cel.dev/expr/CONTRIBUTING.md b/vendor/cel.dev/expr/CONTRIBUTING.md
deleted file mode 100644
index 8f5fd5c31..000000000
--- a/vendor/cel.dev/expr/CONTRIBUTING.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# How to Contribute
-
-We'd love to accept your patches and contributions to this project. There are a
-few guidelines you need to follow.
-
-## Contributor License Agreement
-
-Contributions to this project must be accompanied by a Contributor License
-Agreement. You (or your employer) retain the copyright to your contribution,
-this simply gives us permission to use and redistribute your contributions as
-part of the project. Head over to to see
-your current agreements on file or to sign a new one.
-
-You generally only need to submit a CLA once, so if you've already submitted one
-(even if it was for a different project), you probably don't need to do it
-again.
-
-## Code reviews
-
-All submissions, including submissions by project members, require review. We
-use GitHub pull requests for this purpose. Consult
-[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
-information on using pull requests.
-
-## What to expect from maintainers
-
-Expect maintainers to respond to new issues or pull requests within a week.
-For outstanding and ongoing issues and particularly for long-running
-pull requests, expect the maintainers to review within a week of a
-contributor asking for a new review. There is no commitment to resolution --
-merging or closing a pull request, or fixing or closing an issue -- because some
-issues will require more discussion than others.
diff --git a/vendor/cel.dev/expr/GOVERNANCE.md b/vendor/cel.dev/expr/GOVERNANCE.md
deleted file mode 100644
index 0a525bc17..000000000
--- a/vendor/cel.dev/expr/GOVERNANCE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-# Project Governance
-
-This document defines the governance process for the CEL language. CEL is
-Google-developed, but openly governed. Major contributors to the CEL
-specification and its corresponding implementations constitute the CEL
-Language Council. New members may be added by a unanimous vote of the
-Council.
-
-The MAINTAINERS.md file lists the members of the CEL Language Council, and
-unofficially indicates the "areas of expertise" of each member with respect
-to the publicly available CEL repos.
-
-## Code Changes
-
-Code changes must follow the standard pull request (PR) model documented in the
-CONTRIBUTING.md for each CEL repo. All fixes and features must be reviewed by a
-maintainer. The maintainer reserves the right to request that any feature
-request (FR) or PR be reviewed by the language council.
-
-## Syntax and Semantic Changes
-
-Syntactic and semantic changes must be reviewed by the CEL Language Council.
-Maintainers may also request language council review at their discretion.
-
-The review process is as follows:
-
-- Create a Feature Request in the CEL-Spec repo. The feature description will
- serve as an abstract for the detailed design document.
-- Co-develop a design document with the Language Council.
-- Once the proposer gives the design document approval, the document will be
- linked to the FR in the CEL-Spec repo and opened for comments to members of
- the cel-lang-discuss@googlegroups.com.
-- The Language Council will review the design doc at the next council meeting
- (once every three weeks) and the council decision included in the document.
-
-If the proposal is approved, the spec will be updated by a maintainer (if
-applicable) and a rationale will be included in the CEL-Spec wiki to ensure
-future developers may follow CEL's growth and direction over time.
-
-Approved proposals may be implemented by the proposer or by the maintainers as
-the parties see fit. At the discretion of the maintainer, changes from the
-approved design are permitted during implementation if they improve the user
-experience and clarity of the feature.
diff --git a/vendor/cel.dev/expr/MAINTAINERS.md b/vendor/cel.dev/expr/MAINTAINERS.md
deleted file mode 100644
index 1ed2eb8ab..000000000
--- a/vendor/cel.dev/expr/MAINTAINERS.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# CEL Language Council
-
-| Name | Company | Area of Expertise |
-|-----------------|--------------|-------------------|
-| Alfred Fuller | Facebook | cel-cpp, cel-spec |
-| Jim Larson | Google | cel-go, cel-spec |
-| Matthais Blume | Google | cel-spec |
-| Tristan Swadell | Google | cel-go, cel-spec |
-
-## Emeritus
-
-* Sanjay Ghemawat (Google)
-* Wolfgang Grieskamp (Facebook)
diff --git a/vendor/cel.dev/expr/MODULE.bazel b/vendor/cel.dev/expr/MODULE.bazel
deleted file mode 100644
index cb98ed599..000000000
--- a/vendor/cel.dev/expr/MODULE.bazel
+++ /dev/null
@@ -1,56 +0,0 @@
-module(
- name = "cel-spec",
-)
-
-bazel_dep(
- name = "bazel_skylib",
- version = "1.7.1",
-)
-bazel_dep(
- name = "gazelle",
- version = "0.39.1",
- repo_name = "bazel_gazelle",
-)
-bazel_dep(
- name = "protobuf",
- version = "27.1",
- repo_name = "com_google_protobuf",
-)
-bazel_dep(
- name = "rules_cc",
- version = "0.0.17",
-)
-bazel_dep(
- name = "rules_go",
- version = "0.53.0",
- repo_name = "io_bazel_rules_go",
-)
-bazel_dep(
- name = "rules_java",
- version = "7.6.5",
-)
-bazel_dep(
- name = "rules_proto",
- version = "7.0.2",
-)
-bazel_dep(
- name = "rules_python",
- version = "0.35.0",
-)
-
-### PYTHON ###
-python = use_extension("@rules_python//python/extensions:python.bzl", "python")
-python.toolchain(
- ignore_root_user_error = True,
- python_version = "3.11",
-)
-
-go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk")
-go_sdk.download(version = "1.23.0")
-
-go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps")
-go_deps.from_file(go_mod = "//:go.mod")
-use_repo(
- go_deps,
- "org_golang_google_protobuf",
-)
diff --git a/vendor/cel.dev/expr/README.md b/vendor/cel.dev/expr/README.md
deleted file mode 100644
index 42d67f87c..000000000
--- a/vendor/cel.dev/expr/README.md
+++ /dev/null
@@ -1,71 +0,0 @@
-# Common Expression Language
-
-The Common Expression Language (CEL) implements common semantics for expression
-evaluation, enabling different applications to more easily interoperate.
-
-Key Applications
-
-* Security policy: organizations have complex infrastructure and need common
- tooling to reason about the system as a whole
-* Protocols: expressions are a useful data type and require interoperability
- across programming languages and platforms.
-
-
-Guiding philosophy:
-
-1. Keep it small & fast.
- * CEL evaluates in linear time, is mutation free, and not Turing-complete.
- This limitation is a feature of the language design, which allows the
- implementation to evaluate orders of magnitude faster than equivalently
- sandboxed JavaScript.
-2. Make it extensible.
- * CEL is designed to be embedded in applications, and allows for
- extensibility via its context which allows for functions and data to be
- provided by the software that embeds it.
-3. Developer-friendly.
- * The language is approachable to developers. The initial spec was based
- on the experience of developing Firebase Rules and usability testing
- many prior iterations.
- * The library itself and accompanying toolings should be easy to adopt by
- teams that seek to integrate CEL into their platforms.
-
-The required components of a system that supports CEL are:
-
-* The textual representation of an expression as written by a developer. It is
- of similar syntax to expressions in C/C++/Java/JavaScript
-* A representation of the program's abstract syntax tree (AST).
-* A compiler library that converts the textual representation to the binary
- representation. This can be done ahead of time (in the control plane) or
- just before evaluation (in the data plane).
-* A context containing one or more typed variables, often protobuf messages.
- Most use-cases will use `attribute_context.proto`
-* An evaluator library that takes the binary format in the context and
- produces a result, usually a Boolean.
-
-For use cases which require persistence or cross-process communcation, it is
-highly recommended to serialize the type-checked expression as a protocol
-buffer. The CEL team will maintains canonical protocol buffers for ASTs and
-will keep these versions identical and wire-compatible in perpetuity:
-
-* [CEL canonical](https://github.com/google/cel-spec/tree/master/proto/cel/expr)
-* [CEL v1alpha1](https://github.com/googleapis/googleapis/tree/master/google/api/expr/v1alpha1)
-
-
-Example of boolean conditions and object construction:
-
-``` c
-// Condition
-account.balance >= transaction.withdrawal
- || (account.overdraftProtection
- && account.overdraftLimit >= transaction.withdrawal - account.balance)
-
-// Object construction
-common.GeoPoint{ latitude: 10.0, longitude: -5.5 }
-```
-
-For more detail, see:
-
-* [Introduction](doc/intro.md)
-* [Language Definition](doc/langdef.md)
-
-Released under the [Apache License](LICENSE).
diff --git a/vendor/cel.dev/expr/WORKSPACE b/vendor/cel.dev/expr/WORKSPACE
deleted file mode 100644
index b6dc9ed67..000000000
--- a/vendor/cel.dev/expr/WORKSPACE
+++ /dev/null
@@ -1,145 +0,0 @@
-load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
-
-http_archive(
- name = "io_bazel_rules_go",
- sha256 = "099a9fb96a376ccbbb7d291ed4ecbdfd42f6bc822ab77ae6f1b5cb9e914e94fa",
- urls = [
- "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.35.0/rules_go-v0.35.0.zip",
- "https://github.com/bazelbuild/rules_go/releases/download/v0.35.0/rules_go-v0.35.0.zip",
- ],
-)
-
-http_archive(
- name = "bazel_gazelle",
- sha256 = "ecba0f04f96b4960a5b250c8e8eeec42281035970aa8852dda73098274d14a1d",
- urls = [
- "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.29.0/bazel-gazelle-v0.29.0.tar.gz",
- "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.29.0/bazel-gazelle-v0.29.0.tar.gz",
- ],
-)
-
-http_archive(
- name = "rules_proto",
- sha256 = "e017528fd1c91c5a33f15493e3a398181a9e821a804eb7ff5acdd1d2d6c2b18d",
- strip_prefix = "rules_proto-4.0.0-3.20.0",
- urls = [
- "https://github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0-3.20.0.tar.gz",
- ],
-)
-
-# googleapis as of 09/16/2024
-http_archive(
- name = "com_google_googleapis",
- strip_prefix = "googleapis-4082d5e51e8481f6ccc384cacd896f4e78f19dee",
- sha256 = "57319889d47578b3c89bf1b3f34888d796a8913d63b32d750a4cd12ed303c4e8",
- urls = [
- "https://github.com/googleapis/googleapis/archive/4082d5e51e8481f6ccc384cacd896f4e78f19dee.tar.gz",
- ],
-)
-
-# protobuf
-http_archive(
- name = "com_google_protobuf",
- sha256 = "8242327e5df8c80ba49e4165250b8f79a76bd11765facefaaecfca7747dc8da2",
- strip_prefix = "protobuf-3.21.5",
- urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.21.5.zip"],
-)
-
-# googletest
-http_archive(
- name = "com_google_googletest",
- urls = ["https://github.com/google/googletest/archive/master.zip"],
- strip_prefix = "googletest-master",
-)
-
-# gflags
-http_archive(
- name = "com_github_gflags_gflags",
- sha256 = "6e16c8bc91b1310a44f3965e616383dbda48f83e8c1eaa2370a215057b00cabe",
- strip_prefix = "gflags-77592648e3f3be87d6c7123eb81cbad75f9aef5a",
- urls = [
- "https://mirror.bazel.build/github.com/gflags/gflags/archive/77592648e3f3be87d6c7123eb81cbad75f9aef5a.tar.gz",
- "https://github.com/gflags/gflags/archive/77592648e3f3be87d6c7123eb81cbad75f9aef5a.tar.gz",
- ],
-)
-
-# glog
-http_archive(
- name = "com_google_glog",
- sha256 = "1ee310e5d0a19b9d584a855000434bb724aa744745d5b8ab1855c85bff8a8e21",
- strip_prefix = "glog-028d37889a1e80e8a07da1b8945ac706259e5fd8",
- urls = [
- "https://mirror.bazel.build/github.com/google/glog/archive/028d37889a1e80e8a07da1b8945ac706259e5fd8.tar.gz",
- "https://github.com/google/glog/archive/028d37889a1e80e8a07da1b8945ac706259e5fd8.tar.gz",
- ],
-)
-
-# absl
-http_archive(
- name = "com_google_absl",
- strip_prefix = "abseil-cpp-master",
- urls = ["https://github.com/abseil/abseil-cpp/archive/master.zip"],
-)
-
-load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
-load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
-load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language")
-load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
-load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
-
-switched_rules_by_language(
- name = "com_google_googleapis_imports",
- cc = True,
-)
-
-# Do *not* call *_dependencies(), etc, yet. See comment at the end.
-
-# Generated Google APIs protos for Golang
-# Generated Google APIs protos for Golang 08/26/2024
-go_repository(
- name = "org_golang_google_genproto_googleapis_api",
- build_file_proto_mode = "disable_global",
- importpath = "google.golang.org/genproto/googleapis/api",
- sum = "h1:YcyjlL1PRr2Q17/I0dPk2JmYS5CDXfcdb2Z3YRioEbw=",
- version = "v0.0.0-20240826202546-f6391c0de4c7",
-)
-
-# Generated Google APIs protos for Golang 08/26/2024
-go_repository(
- name = "org_golang_google_genproto_googleapis_rpc",
- build_file_proto_mode = "disable_global",
- importpath = "google.golang.org/genproto/googleapis/rpc",
- sum = "h1:2035KHhUv+EpyB+hWgJnaWKJOdX1E95w2S8Rr4uWKTs=",
- version = "v0.0.0-20240826202546-f6391c0de4c7",
-)
-
-# gRPC deps
-go_repository(
- name = "org_golang_google_grpc",
- build_file_proto_mode = "disable_global",
- importpath = "google.golang.org/grpc",
- tag = "v1.49.0",
-)
-
-go_repository(
- name = "org_golang_x_net",
- importpath = "golang.org/x/net",
- sum = "h1:oWX7TPOiFAMXLq8o0ikBYfCJVlRHBcsciT5bXOrH628=",
- version = "v0.0.0-20190311183353-d8887717615a",
-)
-
-go_repository(
- name = "org_golang_x_text",
- importpath = "golang.org/x/text",
- sum = "h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=",
- version = "v0.3.2",
-)
-
-# Run the dependencies at the end. These will silently try to import some
-# of the above repositories but at different versions, so ours must come first.
-go_rules_dependencies()
-go_register_toolchains(version = "1.19.1")
-gazelle_dependencies()
-rules_proto_dependencies()
-rules_proto_toolchains()
-protobuf_deps()
diff --git a/vendor/cel.dev/expr/WORKSPACE.bzlmod b/vendor/cel.dev/expr/WORKSPACE.bzlmod
deleted file mode 100644
index e69de29bb..000000000
diff --git a/vendor/cel.dev/expr/checked.pb.go b/vendor/cel.dev/expr/checked.pb.go
deleted file mode 100644
index b18085e9b..000000000
--- a/vendor/cel.dev/expr/checked.pb.go
+++ /dev/null
@@ -1,1231 +0,0 @@
-// Code generated by protoc-gen-go. DO NOT EDIT.
-// versions:
-// protoc-gen-go v1.36.10
-// protoc v5.27.1
-// source: cel/expr/checked.proto
-
-package expr
-
-import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- emptypb "google.golang.org/protobuf/types/known/emptypb"
- structpb "google.golang.org/protobuf/types/known/structpb"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
-)
-
-const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
-)
-
-type Type_PrimitiveType int32
-
-const (
- Type_PRIMITIVE_TYPE_UNSPECIFIED Type_PrimitiveType = 0
- Type_BOOL Type_PrimitiveType = 1
- Type_INT64 Type_PrimitiveType = 2
- Type_UINT64 Type_PrimitiveType = 3
- Type_DOUBLE Type_PrimitiveType = 4
- Type_STRING Type_PrimitiveType = 5
- Type_BYTES Type_PrimitiveType = 6
-)
-
-// Enum value maps for Type_PrimitiveType.
-var (
- Type_PrimitiveType_name = map[int32]string{
- 0: "PRIMITIVE_TYPE_UNSPECIFIED",
- 1: "BOOL",
- 2: "INT64",
- 3: "UINT64",
- 4: "DOUBLE",
- 5: "STRING",
- 6: "BYTES",
- }
- Type_PrimitiveType_value = map[string]int32{
- "PRIMITIVE_TYPE_UNSPECIFIED": 0,
- "BOOL": 1,
- "INT64": 2,
- "UINT64": 3,
- "DOUBLE": 4,
- "STRING": 5,
- "BYTES": 6,
- }
-)
-
-func (x Type_PrimitiveType) Enum() *Type_PrimitiveType {
- p := new(Type_PrimitiveType)
- *p = x
- return p
-}
-
-func (x Type_PrimitiveType) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
-}
-
-func (Type_PrimitiveType) Descriptor() protoreflect.EnumDescriptor {
- return file_cel_expr_checked_proto_enumTypes[0].Descriptor()
-}
-
-func (Type_PrimitiveType) Type() protoreflect.EnumType {
- return &file_cel_expr_checked_proto_enumTypes[0]
-}
-
-func (x Type_PrimitiveType) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
-}
-
-// Deprecated: Use Type_PrimitiveType.Descriptor instead.
-func (Type_PrimitiveType) EnumDescriptor() ([]byte, []int) {
- return file_cel_expr_checked_proto_rawDescGZIP(), []int{1, 0}
-}
-
-type Type_WellKnownType int32
-
-const (
- Type_WELL_KNOWN_TYPE_UNSPECIFIED Type_WellKnownType = 0
- Type_ANY Type_WellKnownType = 1
- Type_TIMESTAMP Type_WellKnownType = 2
- Type_DURATION Type_WellKnownType = 3
-)
-
-// Enum value maps for Type_WellKnownType.
-var (
- Type_WellKnownType_name = map[int32]string{
- 0: "WELL_KNOWN_TYPE_UNSPECIFIED",
- 1: "ANY",
- 2: "TIMESTAMP",
- 3: "DURATION",
- }
- Type_WellKnownType_value = map[string]int32{
- "WELL_KNOWN_TYPE_UNSPECIFIED": 0,
- "ANY": 1,
- "TIMESTAMP": 2,
- "DURATION": 3,
- }
-)
-
-func (x Type_WellKnownType) Enum() *Type_WellKnownType {
- p := new(Type_WellKnownType)
- *p = x
- return p
-}
-
-func (x Type_WellKnownType) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
-}
-
-func (Type_WellKnownType) Descriptor() protoreflect.EnumDescriptor {
- return file_cel_expr_checked_proto_enumTypes[1].Descriptor()
-}
-
-func (Type_WellKnownType) Type() protoreflect.EnumType {
- return &file_cel_expr_checked_proto_enumTypes[1]
-}
-
-func (x Type_WellKnownType) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
-}
-
-// Deprecated: Use Type_WellKnownType.Descriptor instead.
-func (Type_WellKnownType) EnumDescriptor() ([]byte, []int) {
- return file_cel_expr_checked_proto_rawDescGZIP(), []int{1, 1}
-}
-
-type CheckedExpr struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ReferenceMap map[int64]*Reference `protobuf:"bytes,2,rep,name=reference_map,json=referenceMap,proto3" json:"reference_map,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
- TypeMap map[int64]*Type `protobuf:"bytes,3,rep,name=type_map,json=typeMap,proto3" json:"type_map,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
- SourceInfo *SourceInfo `protobuf:"bytes,5,opt,name=source_info,json=sourceInfo,proto3" json:"source_info,omitempty"`
- ExprVersion string `protobuf:"bytes,6,opt,name=expr_version,json=exprVersion,proto3" json:"expr_version,omitempty"`
- Expr *Expr `protobuf:"bytes,4,opt,name=expr,proto3" json:"expr,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *CheckedExpr) Reset() {
- *x = CheckedExpr{}
- mi := &file_cel_expr_checked_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *CheckedExpr) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*CheckedExpr) ProtoMessage() {}
-
-func (x *CheckedExpr) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_checked_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use CheckedExpr.ProtoReflect.Descriptor instead.
-func (*CheckedExpr) Descriptor() ([]byte, []int) {
- return file_cel_expr_checked_proto_rawDescGZIP(), []int{0}
-}
-
-func (x *CheckedExpr) GetReferenceMap() map[int64]*Reference {
- if x != nil {
- return x.ReferenceMap
- }
- return nil
-}
-
-func (x *CheckedExpr) GetTypeMap() map[int64]*Type {
- if x != nil {
- return x.TypeMap
- }
- return nil
-}
-
-func (x *CheckedExpr) GetSourceInfo() *SourceInfo {
- if x != nil {
- return x.SourceInfo
- }
- return nil
-}
-
-func (x *CheckedExpr) GetExprVersion() string {
- if x != nil {
- return x.ExprVersion
- }
- return ""
-}
-
-func (x *CheckedExpr) GetExpr() *Expr {
- if x != nil {
- return x.Expr
- }
- return nil
-}
-
-type Type struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // Types that are valid to be assigned to TypeKind:
- //
- // *Type_Dyn
- // *Type_Null
- // *Type_Primitive
- // *Type_Wrapper
- // *Type_WellKnown
- // *Type_ListType_
- // *Type_MapType_
- // *Type_Function
- // *Type_MessageType
- // *Type_TypeParam
- // *Type_Type
- // *Type_Error
- // *Type_AbstractType_
- TypeKind isType_TypeKind `protobuf_oneof:"type_kind"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Type) Reset() {
- *x = Type{}
- mi := &file_cel_expr_checked_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Type) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Type) ProtoMessage() {}
-
-func (x *Type) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_checked_proto_msgTypes[1]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Type.ProtoReflect.Descriptor instead.
-func (*Type) Descriptor() ([]byte, []int) {
- return file_cel_expr_checked_proto_rawDescGZIP(), []int{1}
-}
-
-func (x *Type) GetTypeKind() isType_TypeKind {
- if x != nil {
- return x.TypeKind
- }
- return nil
-}
-
-func (x *Type) GetDyn() *emptypb.Empty {
- if x != nil {
- if x, ok := x.TypeKind.(*Type_Dyn); ok {
- return x.Dyn
- }
- }
- return nil
-}
-
-func (x *Type) GetNull() structpb.NullValue {
- if x != nil {
- if x, ok := x.TypeKind.(*Type_Null); ok {
- return x.Null
- }
- }
- return structpb.NullValue(0)
-}
-
-func (x *Type) GetPrimitive() Type_PrimitiveType {
- if x != nil {
- if x, ok := x.TypeKind.(*Type_Primitive); ok {
- return x.Primitive
- }
- }
- return Type_PRIMITIVE_TYPE_UNSPECIFIED
-}
-
-func (x *Type) GetWrapper() Type_PrimitiveType {
- if x != nil {
- if x, ok := x.TypeKind.(*Type_Wrapper); ok {
- return x.Wrapper
- }
- }
- return Type_PRIMITIVE_TYPE_UNSPECIFIED
-}
-
-func (x *Type) GetWellKnown() Type_WellKnownType {
- if x != nil {
- if x, ok := x.TypeKind.(*Type_WellKnown); ok {
- return x.WellKnown
- }
- }
- return Type_WELL_KNOWN_TYPE_UNSPECIFIED
-}
-
-func (x *Type) GetListType() *Type_ListType {
- if x != nil {
- if x, ok := x.TypeKind.(*Type_ListType_); ok {
- return x.ListType
- }
- }
- return nil
-}
-
-func (x *Type) GetMapType() *Type_MapType {
- if x != nil {
- if x, ok := x.TypeKind.(*Type_MapType_); ok {
- return x.MapType
- }
- }
- return nil
-}
-
-func (x *Type) GetFunction() *Type_FunctionType {
- if x != nil {
- if x, ok := x.TypeKind.(*Type_Function); ok {
- return x.Function
- }
- }
- return nil
-}
-
-func (x *Type) GetMessageType() string {
- if x != nil {
- if x, ok := x.TypeKind.(*Type_MessageType); ok {
- return x.MessageType
- }
- }
- return ""
-}
-
-func (x *Type) GetTypeParam() string {
- if x != nil {
- if x, ok := x.TypeKind.(*Type_TypeParam); ok {
- return x.TypeParam
- }
- }
- return ""
-}
-
-func (x *Type) GetType() *Type {
- if x != nil {
- if x, ok := x.TypeKind.(*Type_Type); ok {
- return x.Type
- }
- }
- return nil
-}
-
-func (x *Type) GetError() *emptypb.Empty {
- if x != nil {
- if x, ok := x.TypeKind.(*Type_Error); ok {
- return x.Error
- }
- }
- return nil
-}
-
-func (x *Type) GetAbstractType() *Type_AbstractType {
- if x != nil {
- if x, ok := x.TypeKind.(*Type_AbstractType_); ok {
- return x.AbstractType
- }
- }
- return nil
-}
-
-type isType_TypeKind interface {
- isType_TypeKind()
-}
-
-type Type_Dyn struct {
- Dyn *emptypb.Empty `protobuf:"bytes,1,opt,name=dyn,proto3,oneof"`
-}
-
-type Type_Null struct {
- Null structpb.NullValue `protobuf:"varint,2,opt,name=null,proto3,enum=google.protobuf.NullValue,oneof"`
-}
-
-type Type_Primitive struct {
- Primitive Type_PrimitiveType `protobuf:"varint,3,opt,name=primitive,proto3,enum=cel.expr.Type_PrimitiveType,oneof"`
-}
-
-type Type_Wrapper struct {
- Wrapper Type_PrimitiveType `protobuf:"varint,4,opt,name=wrapper,proto3,enum=cel.expr.Type_PrimitiveType,oneof"`
-}
-
-type Type_WellKnown struct {
- WellKnown Type_WellKnownType `protobuf:"varint,5,opt,name=well_known,json=wellKnown,proto3,enum=cel.expr.Type_WellKnownType,oneof"`
-}
-
-type Type_ListType_ struct {
- ListType *Type_ListType `protobuf:"bytes,6,opt,name=list_type,json=listType,proto3,oneof"`
-}
-
-type Type_MapType_ struct {
- MapType *Type_MapType `protobuf:"bytes,7,opt,name=map_type,json=mapType,proto3,oneof"`
-}
-
-type Type_Function struct {
- Function *Type_FunctionType `protobuf:"bytes,8,opt,name=function,proto3,oneof"`
-}
-
-type Type_MessageType struct {
- MessageType string `protobuf:"bytes,9,opt,name=message_type,json=messageType,proto3,oneof"`
-}
-
-type Type_TypeParam struct {
- TypeParam string `protobuf:"bytes,10,opt,name=type_param,json=typeParam,proto3,oneof"`
-}
-
-type Type_Type struct {
- Type *Type `protobuf:"bytes,11,opt,name=type,proto3,oneof"`
-}
-
-type Type_Error struct {
- Error *emptypb.Empty `protobuf:"bytes,12,opt,name=error,proto3,oneof"`
-}
-
-type Type_AbstractType_ struct {
- AbstractType *Type_AbstractType `protobuf:"bytes,14,opt,name=abstract_type,json=abstractType,proto3,oneof"`
-}
-
-func (*Type_Dyn) isType_TypeKind() {}
-
-func (*Type_Null) isType_TypeKind() {}
-
-func (*Type_Primitive) isType_TypeKind() {}
-
-func (*Type_Wrapper) isType_TypeKind() {}
-
-func (*Type_WellKnown) isType_TypeKind() {}
-
-func (*Type_ListType_) isType_TypeKind() {}
-
-func (*Type_MapType_) isType_TypeKind() {}
-
-func (*Type_Function) isType_TypeKind() {}
-
-func (*Type_MessageType) isType_TypeKind() {}
-
-func (*Type_TypeParam) isType_TypeKind() {}
-
-func (*Type_Type) isType_TypeKind() {}
-
-func (*Type_Error) isType_TypeKind() {}
-
-func (*Type_AbstractType_) isType_TypeKind() {}
-
-type Decl struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- // Types that are valid to be assigned to DeclKind:
- //
- // *Decl_Ident
- // *Decl_Function
- DeclKind isDecl_DeclKind `protobuf_oneof:"decl_kind"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Decl) Reset() {
- *x = Decl{}
- mi := &file_cel_expr_checked_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Decl) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Decl) ProtoMessage() {}
-
-func (x *Decl) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_checked_proto_msgTypes[2]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Decl.ProtoReflect.Descriptor instead.
-func (*Decl) Descriptor() ([]byte, []int) {
- return file_cel_expr_checked_proto_rawDescGZIP(), []int{2}
-}
-
-func (x *Decl) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *Decl) GetDeclKind() isDecl_DeclKind {
- if x != nil {
- return x.DeclKind
- }
- return nil
-}
-
-func (x *Decl) GetIdent() *Decl_IdentDecl {
- if x != nil {
- if x, ok := x.DeclKind.(*Decl_Ident); ok {
- return x.Ident
- }
- }
- return nil
-}
-
-func (x *Decl) GetFunction() *Decl_FunctionDecl {
- if x != nil {
- if x, ok := x.DeclKind.(*Decl_Function); ok {
- return x.Function
- }
- }
- return nil
-}
-
-type isDecl_DeclKind interface {
- isDecl_DeclKind()
-}
-
-type Decl_Ident struct {
- Ident *Decl_IdentDecl `protobuf:"bytes,2,opt,name=ident,proto3,oneof"`
-}
-
-type Decl_Function struct {
- Function *Decl_FunctionDecl `protobuf:"bytes,3,opt,name=function,proto3,oneof"`
-}
-
-func (*Decl_Ident) isDecl_DeclKind() {}
-
-func (*Decl_Function) isDecl_DeclKind() {}
-
-type Reference struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- OverloadId []string `protobuf:"bytes,3,rep,name=overload_id,json=overloadId,proto3" json:"overload_id,omitempty"`
- Value *Constant `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Reference) Reset() {
- *x = Reference{}
- mi := &file_cel_expr_checked_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Reference) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Reference) ProtoMessage() {}
-
-func (x *Reference) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_checked_proto_msgTypes[3]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Reference.ProtoReflect.Descriptor instead.
-func (*Reference) Descriptor() ([]byte, []int) {
- return file_cel_expr_checked_proto_rawDescGZIP(), []int{3}
-}
-
-func (x *Reference) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *Reference) GetOverloadId() []string {
- if x != nil {
- return x.OverloadId
- }
- return nil
-}
-
-func (x *Reference) GetValue() *Constant {
- if x != nil {
- return x.Value
- }
- return nil
-}
-
-type Type_ListType struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ElemType *Type `protobuf:"bytes,1,opt,name=elem_type,json=elemType,proto3" json:"elem_type,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Type_ListType) Reset() {
- *x = Type_ListType{}
- mi := &file_cel_expr_checked_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Type_ListType) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Type_ListType) ProtoMessage() {}
-
-func (x *Type_ListType) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_checked_proto_msgTypes[6]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Type_ListType.ProtoReflect.Descriptor instead.
-func (*Type_ListType) Descriptor() ([]byte, []int) {
- return file_cel_expr_checked_proto_rawDescGZIP(), []int{1, 0}
-}
-
-func (x *Type_ListType) GetElemType() *Type {
- if x != nil {
- return x.ElemType
- }
- return nil
-}
-
-type Type_MapType struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- KeyType *Type `protobuf:"bytes,1,opt,name=key_type,json=keyType,proto3" json:"key_type,omitempty"`
- ValueType *Type `protobuf:"bytes,2,opt,name=value_type,json=valueType,proto3" json:"value_type,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Type_MapType) Reset() {
- *x = Type_MapType{}
- mi := &file_cel_expr_checked_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Type_MapType) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Type_MapType) ProtoMessage() {}
-
-func (x *Type_MapType) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_checked_proto_msgTypes[7]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Type_MapType.ProtoReflect.Descriptor instead.
-func (*Type_MapType) Descriptor() ([]byte, []int) {
- return file_cel_expr_checked_proto_rawDescGZIP(), []int{1, 1}
-}
-
-func (x *Type_MapType) GetKeyType() *Type {
- if x != nil {
- return x.KeyType
- }
- return nil
-}
-
-func (x *Type_MapType) GetValueType() *Type {
- if x != nil {
- return x.ValueType
- }
- return nil
-}
-
-type Type_FunctionType struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ResultType *Type `protobuf:"bytes,1,opt,name=result_type,json=resultType,proto3" json:"result_type,omitempty"`
- ArgTypes []*Type `protobuf:"bytes,2,rep,name=arg_types,json=argTypes,proto3" json:"arg_types,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Type_FunctionType) Reset() {
- *x = Type_FunctionType{}
- mi := &file_cel_expr_checked_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Type_FunctionType) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Type_FunctionType) ProtoMessage() {}
-
-func (x *Type_FunctionType) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_checked_proto_msgTypes[8]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Type_FunctionType.ProtoReflect.Descriptor instead.
-func (*Type_FunctionType) Descriptor() ([]byte, []int) {
- return file_cel_expr_checked_proto_rawDescGZIP(), []int{1, 2}
-}
-
-func (x *Type_FunctionType) GetResultType() *Type {
- if x != nil {
- return x.ResultType
- }
- return nil
-}
-
-func (x *Type_FunctionType) GetArgTypes() []*Type {
- if x != nil {
- return x.ArgTypes
- }
- return nil
-}
-
-type Type_AbstractType struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- ParameterTypes []*Type `protobuf:"bytes,2,rep,name=parameter_types,json=parameterTypes,proto3" json:"parameter_types,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Type_AbstractType) Reset() {
- *x = Type_AbstractType{}
- mi := &file_cel_expr_checked_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Type_AbstractType) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Type_AbstractType) ProtoMessage() {}
-
-func (x *Type_AbstractType) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_checked_proto_msgTypes[9]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Type_AbstractType.ProtoReflect.Descriptor instead.
-func (*Type_AbstractType) Descriptor() ([]byte, []int) {
- return file_cel_expr_checked_proto_rawDescGZIP(), []int{1, 3}
-}
-
-func (x *Type_AbstractType) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *Type_AbstractType) GetParameterTypes() []*Type {
- if x != nil {
- return x.ParameterTypes
- }
- return nil
-}
-
-type Decl_IdentDecl struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Type *Type `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
- Value *Constant `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
- Doc string `protobuf:"bytes,3,opt,name=doc,proto3" json:"doc,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Decl_IdentDecl) Reset() {
- *x = Decl_IdentDecl{}
- mi := &file_cel_expr_checked_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Decl_IdentDecl) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Decl_IdentDecl) ProtoMessage() {}
-
-func (x *Decl_IdentDecl) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_checked_proto_msgTypes[10]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Decl_IdentDecl.ProtoReflect.Descriptor instead.
-func (*Decl_IdentDecl) Descriptor() ([]byte, []int) {
- return file_cel_expr_checked_proto_rawDescGZIP(), []int{2, 0}
-}
-
-func (x *Decl_IdentDecl) GetType() *Type {
- if x != nil {
- return x.Type
- }
- return nil
-}
-
-func (x *Decl_IdentDecl) GetValue() *Constant {
- if x != nil {
- return x.Value
- }
- return nil
-}
-
-func (x *Decl_IdentDecl) GetDoc() string {
- if x != nil {
- return x.Doc
- }
- return ""
-}
-
-type Decl_FunctionDecl struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Overloads []*Decl_FunctionDecl_Overload `protobuf:"bytes,1,rep,name=overloads,proto3" json:"overloads,omitempty"`
- Doc string `protobuf:"bytes,2,opt,name=doc,proto3" json:"doc,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Decl_FunctionDecl) Reset() {
- *x = Decl_FunctionDecl{}
- mi := &file_cel_expr_checked_proto_msgTypes[11]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Decl_FunctionDecl) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Decl_FunctionDecl) ProtoMessage() {}
-
-func (x *Decl_FunctionDecl) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_checked_proto_msgTypes[11]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Decl_FunctionDecl.ProtoReflect.Descriptor instead.
-func (*Decl_FunctionDecl) Descriptor() ([]byte, []int) {
- return file_cel_expr_checked_proto_rawDescGZIP(), []int{2, 1}
-}
-
-func (x *Decl_FunctionDecl) GetOverloads() []*Decl_FunctionDecl_Overload {
- if x != nil {
- return x.Overloads
- }
- return nil
-}
-
-func (x *Decl_FunctionDecl) GetDoc() string {
- if x != nil {
- return x.Doc
- }
- return ""
-}
-
-type Decl_FunctionDecl_Overload struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- OverloadId string `protobuf:"bytes,1,opt,name=overload_id,json=overloadId,proto3" json:"overload_id,omitempty"`
- Params []*Type `protobuf:"bytes,2,rep,name=params,proto3" json:"params,omitempty"`
- TypeParams []string `protobuf:"bytes,3,rep,name=type_params,json=typeParams,proto3" json:"type_params,omitempty"`
- ResultType *Type `protobuf:"bytes,4,opt,name=result_type,json=resultType,proto3" json:"result_type,omitempty"`
- IsInstanceFunction bool `protobuf:"varint,5,opt,name=is_instance_function,json=isInstanceFunction,proto3" json:"is_instance_function,omitempty"`
- Doc string `protobuf:"bytes,6,opt,name=doc,proto3" json:"doc,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Decl_FunctionDecl_Overload) Reset() {
- *x = Decl_FunctionDecl_Overload{}
- mi := &file_cel_expr_checked_proto_msgTypes[12]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Decl_FunctionDecl_Overload) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Decl_FunctionDecl_Overload) ProtoMessage() {}
-
-func (x *Decl_FunctionDecl_Overload) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_checked_proto_msgTypes[12]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Decl_FunctionDecl_Overload.ProtoReflect.Descriptor instead.
-func (*Decl_FunctionDecl_Overload) Descriptor() ([]byte, []int) {
- return file_cel_expr_checked_proto_rawDescGZIP(), []int{2, 1, 0}
-}
-
-func (x *Decl_FunctionDecl_Overload) GetOverloadId() string {
- if x != nil {
- return x.OverloadId
- }
- return ""
-}
-
-func (x *Decl_FunctionDecl_Overload) GetParams() []*Type {
- if x != nil {
- return x.Params
- }
- return nil
-}
-
-func (x *Decl_FunctionDecl_Overload) GetTypeParams() []string {
- if x != nil {
- return x.TypeParams
- }
- return nil
-}
-
-func (x *Decl_FunctionDecl_Overload) GetResultType() *Type {
- if x != nil {
- return x.ResultType
- }
- return nil
-}
-
-func (x *Decl_FunctionDecl_Overload) GetIsInstanceFunction() bool {
- if x != nil {
- return x.IsInstanceFunction
- }
- return false
-}
-
-func (x *Decl_FunctionDecl_Overload) GetDoc() string {
- if x != nil {
- return x.Doc
- }
- return ""
-}
-
-var File_cel_expr_checked_proto protoreflect.FileDescriptor
-
-const file_cel_expr_checked_proto_rawDesc = "" +
- "\n" +
- "\x16cel/expr/checked.proto\x12\bcel.expr\x1a\x15cel/expr/syntax.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xba\x03\n" +
- "\vCheckedExpr\x12L\n" +
- "\rreference_map\x18\x02 \x03(\v2'.cel.expr.CheckedExpr.ReferenceMapEntryR\freferenceMap\x12=\n" +
- "\btype_map\x18\x03 \x03(\v2\".cel.expr.CheckedExpr.TypeMapEntryR\atypeMap\x125\n" +
- "\vsource_info\x18\x05 \x01(\v2\x14.cel.expr.SourceInfoR\n" +
- "sourceInfo\x12!\n" +
- "\fexpr_version\x18\x06 \x01(\tR\vexprVersion\x12\"\n" +
- "\x04expr\x18\x04 \x01(\v2\x0e.cel.expr.ExprR\x04expr\x1aT\n" +
- "\x11ReferenceMapEntry\x12\x10\n" +
- "\x03key\x18\x01 \x01(\x03R\x03key\x12)\n" +
- "\x05value\x18\x02 \x01(\v2\x13.cel.expr.ReferenceR\x05value:\x028\x01\x1aJ\n" +
- "\fTypeMapEntry\x12\x10\n" +
- "\x03key\x18\x01 \x01(\x03R\x03key\x12$\n" +
- "\x05value\x18\x02 \x01(\v2\x0e.cel.expr.TypeR\x05value:\x028\x01\"\xe6\t\n" +
- "\x04Type\x12*\n" +
- "\x03dyn\x18\x01 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x03dyn\x120\n" +
- "\x04null\x18\x02 \x01(\x0e2\x1a.google.protobuf.NullValueH\x00R\x04null\x12<\n" +
- "\tprimitive\x18\x03 \x01(\x0e2\x1c.cel.expr.Type.PrimitiveTypeH\x00R\tprimitive\x128\n" +
- "\awrapper\x18\x04 \x01(\x0e2\x1c.cel.expr.Type.PrimitiveTypeH\x00R\awrapper\x12=\n" +
- "\n" +
- "well_known\x18\x05 \x01(\x0e2\x1c.cel.expr.Type.WellKnownTypeH\x00R\twellKnown\x126\n" +
- "\tlist_type\x18\x06 \x01(\v2\x17.cel.expr.Type.ListTypeH\x00R\blistType\x123\n" +
- "\bmap_type\x18\a \x01(\v2\x16.cel.expr.Type.MapTypeH\x00R\amapType\x129\n" +
- "\bfunction\x18\b \x01(\v2\x1b.cel.expr.Type.FunctionTypeH\x00R\bfunction\x12#\n" +
- "\fmessage_type\x18\t \x01(\tH\x00R\vmessageType\x12\x1f\n" +
- "\n" +
- "type_param\x18\n" +
- " \x01(\tH\x00R\ttypeParam\x12$\n" +
- "\x04type\x18\v \x01(\v2\x0e.cel.expr.TypeH\x00R\x04type\x12.\n" +
- "\x05error\x18\f \x01(\v2\x16.google.protobuf.EmptyH\x00R\x05error\x12B\n" +
- "\rabstract_type\x18\x0e \x01(\v2\x1b.cel.expr.Type.AbstractTypeH\x00R\fabstractType\x1a7\n" +
- "\bListType\x12+\n" +
- "\telem_type\x18\x01 \x01(\v2\x0e.cel.expr.TypeR\belemType\x1ac\n" +
- "\aMapType\x12)\n" +
- "\bkey_type\x18\x01 \x01(\v2\x0e.cel.expr.TypeR\akeyType\x12-\n" +
- "\n" +
- "value_type\x18\x02 \x01(\v2\x0e.cel.expr.TypeR\tvalueType\x1al\n" +
- "\fFunctionType\x12/\n" +
- "\vresult_type\x18\x01 \x01(\v2\x0e.cel.expr.TypeR\n" +
- "resultType\x12+\n" +
- "\targ_types\x18\x02 \x03(\v2\x0e.cel.expr.TypeR\bargTypes\x1a[\n" +
- "\fAbstractType\x12\x12\n" +
- "\x04name\x18\x01 \x01(\tR\x04name\x127\n" +
- "\x0fparameter_types\x18\x02 \x03(\v2\x0e.cel.expr.TypeR\x0eparameterTypes\"s\n" +
- "\rPrimitiveType\x12\x1e\n" +
- "\x1aPRIMITIVE_TYPE_UNSPECIFIED\x10\x00\x12\b\n" +
- "\x04BOOL\x10\x01\x12\t\n" +
- "\x05INT64\x10\x02\x12\n" +
- "\n" +
- "\x06UINT64\x10\x03\x12\n" +
- "\n" +
- "\x06DOUBLE\x10\x04\x12\n" +
- "\n" +
- "\x06STRING\x10\x05\x12\t\n" +
- "\x05BYTES\x10\x06\"V\n" +
- "\rWellKnownType\x12\x1f\n" +
- "\x1bWELL_KNOWN_TYPE_UNSPECIFIED\x10\x00\x12\a\n" +
- "\x03ANY\x10\x01\x12\r\n" +
- "\tTIMESTAMP\x10\x02\x12\f\n" +
- "\bDURATION\x10\x03B\v\n" +
- "\ttype_kind\"\xd4\x04\n" +
- "\x04Decl\x12\x12\n" +
- "\x04name\x18\x01 \x01(\tR\x04name\x120\n" +
- "\x05ident\x18\x02 \x01(\v2\x18.cel.expr.Decl.IdentDeclH\x00R\x05ident\x129\n" +
- "\bfunction\x18\x03 \x01(\v2\x1b.cel.expr.Decl.FunctionDeclH\x00R\bfunction\x1ak\n" +
- "\tIdentDecl\x12\"\n" +
- "\x04type\x18\x01 \x01(\v2\x0e.cel.expr.TypeR\x04type\x12(\n" +
- "\x05value\x18\x02 \x01(\v2\x12.cel.expr.ConstantR\x05value\x12\x10\n" +
- "\x03doc\x18\x03 \x01(\tR\x03doc\x1a\xd0\x02\n" +
- "\fFunctionDecl\x12B\n" +
- "\toverloads\x18\x01 \x03(\v2$.cel.expr.Decl.FunctionDecl.OverloadR\toverloads\x12\x10\n" +
- "\x03doc\x18\x02 \x01(\tR\x03doc\x1a\xe9\x01\n" +
- "\bOverload\x12\x1f\n" +
- "\voverload_id\x18\x01 \x01(\tR\n" +
- "overloadId\x12&\n" +
- "\x06params\x18\x02 \x03(\v2\x0e.cel.expr.TypeR\x06params\x12\x1f\n" +
- "\vtype_params\x18\x03 \x03(\tR\n" +
- "typeParams\x12/\n" +
- "\vresult_type\x18\x04 \x01(\v2\x0e.cel.expr.TypeR\n" +
- "resultType\x120\n" +
- "\x14is_instance_function\x18\x05 \x01(\bR\x12isInstanceFunction\x12\x10\n" +
- "\x03doc\x18\x06 \x01(\tR\x03docB\v\n" +
- "\tdecl_kind\"j\n" +
- "\tReference\x12\x12\n" +
- "\x04name\x18\x01 \x01(\tR\x04name\x12\x1f\n" +
- "\voverload_id\x18\x03 \x03(\tR\n" +
- "overloadId\x12(\n" +
- "\x05value\x18\x04 \x01(\v2\x12.cel.expr.ConstantR\x05valueB,\n" +
- "\fdev.cel.exprB\tDeclProtoP\x01Z\fcel.dev/expr\xf8\x01\x01b\x06proto3"
-
-var (
- file_cel_expr_checked_proto_rawDescOnce sync.Once
- file_cel_expr_checked_proto_rawDescData []byte
-)
-
-func file_cel_expr_checked_proto_rawDescGZIP() []byte {
- file_cel_expr_checked_proto_rawDescOnce.Do(func() {
- file_cel_expr_checked_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cel_expr_checked_proto_rawDesc), len(file_cel_expr_checked_proto_rawDesc)))
- })
- return file_cel_expr_checked_proto_rawDescData
-}
-
-var file_cel_expr_checked_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
-var file_cel_expr_checked_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
-var file_cel_expr_checked_proto_goTypes = []any{
- (Type_PrimitiveType)(0), // 0: cel.expr.Type.PrimitiveType
- (Type_WellKnownType)(0), // 1: cel.expr.Type.WellKnownType
- (*CheckedExpr)(nil), // 2: cel.expr.CheckedExpr
- (*Type)(nil), // 3: cel.expr.Type
- (*Decl)(nil), // 4: cel.expr.Decl
- (*Reference)(nil), // 5: cel.expr.Reference
- nil, // 6: cel.expr.CheckedExpr.ReferenceMapEntry
- nil, // 7: cel.expr.CheckedExpr.TypeMapEntry
- (*Type_ListType)(nil), // 8: cel.expr.Type.ListType
- (*Type_MapType)(nil), // 9: cel.expr.Type.MapType
- (*Type_FunctionType)(nil), // 10: cel.expr.Type.FunctionType
- (*Type_AbstractType)(nil), // 11: cel.expr.Type.AbstractType
- (*Decl_IdentDecl)(nil), // 12: cel.expr.Decl.IdentDecl
- (*Decl_FunctionDecl)(nil), // 13: cel.expr.Decl.FunctionDecl
- (*Decl_FunctionDecl_Overload)(nil), // 14: cel.expr.Decl.FunctionDecl.Overload
- (*SourceInfo)(nil), // 15: cel.expr.SourceInfo
- (*Expr)(nil), // 16: cel.expr.Expr
- (*emptypb.Empty)(nil), // 17: google.protobuf.Empty
- (structpb.NullValue)(0), // 18: google.protobuf.NullValue
- (*Constant)(nil), // 19: cel.expr.Constant
-}
-var file_cel_expr_checked_proto_depIdxs = []int32{
- 6, // 0: cel.expr.CheckedExpr.reference_map:type_name -> cel.expr.CheckedExpr.ReferenceMapEntry
- 7, // 1: cel.expr.CheckedExpr.type_map:type_name -> cel.expr.CheckedExpr.TypeMapEntry
- 15, // 2: cel.expr.CheckedExpr.source_info:type_name -> cel.expr.SourceInfo
- 16, // 3: cel.expr.CheckedExpr.expr:type_name -> cel.expr.Expr
- 17, // 4: cel.expr.Type.dyn:type_name -> google.protobuf.Empty
- 18, // 5: cel.expr.Type.null:type_name -> google.protobuf.NullValue
- 0, // 6: cel.expr.Type.primitive:type_name -> cel.expr.Type.PrimitiveType
- 0, // 7: cel.expr.Type.wrapper:type_name -> cel.expr.Type.PrimitiveType
- 1, // 8: cel.expr.Type.well_known:type_name -> cel.expr.Type.WellKnownType
- 8, // 9: cel.expr.Type.list_type:type_name -> cel.expr.Type.ListType
- 9, // 10: cel.expr.Type.map_type:type_name -> cel.expr.Type.MapType
- 10, // 11: cel.expr.Type.function:type_name -> cel.expr.Type.FunctionType
- 3, // 12: cel.expr.Type.type:type_name -> cel.expr.Type
- 17, // 13: cel.expr.Type.error:type_name -> google.protobuf.Empty
- 11, // 14: cel.expr.Type.abstract_type:type_name -> cel.expr.Type.AbstractType
- 12, // 15: cel.expr.Decl.ident:type_name -> cel.expr.Decl.IdentDecl
- 13, // 16: cel.expr.Decl.function:type_name -> cel.expr.Decl.FunctionDecl
- 19, // 17: cel.expr.Reference.value:type_name -> cel.expr.Constant
- 5, // 18: cel.expr.CheckedExpr.ReferenceMapEntry.value:type_name -> cel.expr.Reference
- 3, // 19: cel.expr.CheckedExpr.TypeMapEntry.value:type_name -> cel.expr.Type
- 3, // 20: cel.expr.Type.ListType.elem_type:type_name -> cel.expr.Type
- 3, // 21: cel.expr.Type.MapType.key_type:type_name -> cel.expr.Type
- 3, // 22: cel.expr.Type.MapType.value_type:type_name -> cel.expr.Type
- 3, // 23: cel.expr.Type.FunctionType.result_type:type_name -> cel.expr.Type
- 3, // 24: cel.expr.Type.FunctionType.arg_types:type_name -> cel.expr.Type
- 3, // 25: cel.expr.Type.AbstractType.parameter_types:type_name -> cel.expr.Type
- 3, // 26: cel.expr.Decl.IdentDecl.type:type_name -> cel.expr.Type
- 19, // 27: cel.expr.Decl.IdentDecl.value:type_name -> cel.expr.Constant
- 14, // 28: cel.expr.Decl.FunctionDecl.overloads:type_name -> cel.expr.Decl.FunctionDecl.Overload
- 3, // 29: cel.expr.Decl.FunctionDecl.Overload.params:type_name -> cel.expr.Type
- 3, // 30: cel.expr.Decl.FunctionDecl.Overload.result_type:type_name -> cel.expr.Type
- 31, // [31:31] is the sub-list for method output_type
- 31, // [31:31] is the sub-list for method input_type
- 31, // [31:31] is the sub-list for extension type_name
- 31, // [31:31] is the sub-list for extension extendee
- 0, // [0:31] is the sub-list for field type_name
-}
-
-func init() { file_cel_expr_checked_proto_init() }
-func file_cel_expr_checked_proto_init() {
- if File_cel_expr_checked_proto != nil {
- return
- }
- file_cel_expr_syntax_proto_init()
- file_cel_expr_checked_proto_msgTypes[1].OneofWrappers = []any{
- (*Type_Dyn)(nil),
- (*Type_Null)(nil),
- (*Type_Primitive)(nil),
- (*Type_Wrapper)(nil),
- (*Type_WellKnown)(nil),
- (*Type_ListType_)(nil),
- (*Type_MapType_)(nil),
- (*Type_Function)(nil),
- (*Type_MessageType)(nil),
- (*Type_TypeParam)(nil),
- (*Type_Type)(nil),
- (*Type_Error)(nil),
- (*Type_AbstractType_)(nil),
- }
- file_cel_expr_checked_proto_msgTypes[2].OneofWrappers = []any{
- (*Decl_Ident)(nil),
- (*Decl_Function)(nil),
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_cel_expr_checked_proto_rawDesc), len(file_cel_expr_checked_proto_rawDesc)),
- NumEnums: 2,
- NumMessages: 13,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_cel_expr_checked_proto_goTypes,
- DependencyIndexes: file_cel_expr_checked_proto_depIdxs,
- EnumInfos: file_cel_expr_checked_proto_enumTypes,
- MessageInfos: file_cel_expr_checked_proto_msgTypes,
- }.Build()
- File_cel_expr_checked_proto = out.File
- file_cel_expr_checked_proto_goTypes = nil
- file_cel_expr_checked_proto_depIdxs = nil
-}
diff --git a/vendor/cel.dev/expr/cloudbuild.yaml b/vendor/cel.dev/expr/cloudbuild.yaml
deleted file mode 100644
index e3e533a04..000000000
--- a/vendor/cel.dev/expr/cloudbuild.yaml
+++ /dev/null
@@ -1,9 +0,0 @@
-steps:
-- name: 'gcr.io/cloud-builders/bazel:7.3.2'
- entrypoint: bazel
- args: ['build', '...']
- id: bazel-build
- waitFor: ['-']
-timeout: 15m
-options:
- machineType: 'N1_HIGHCPU_32'
diff --git a/vendor/cel.dev/expr/eval.pb.go b/vendor/cel.dev/expr/eval.pb.go
deleted file mode 100644
index 83acb8935..000000000
--- a/vendor/cel.dev/expr/eval.pb.go
+++ /dev/null
@@ -1,468 +0,0 @@
-// Code generated by protoc-gen-go. DO NOT EDIT.
-// versions:
-// protoc-gen-go v1.36.10
-// protoc v5.27.1
-// source: cel/expr/eval.proto
-
-package expr
-
-import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- anypb "google.golang.org/protobuf/types/known/anypb"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
-)
-
-const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
-)
-
-type EvalState struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Values []*ExprValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
- Results []*EvalState_Result `protobuf:"bytes,3,rep,name=results,proto3" json:"results,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *EvalState) Reset() {
- *x = EvalState{}
- mi := &file_cel_expr_eval_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *EvalState) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*EvalState) ProtoMessage() {}
-
-func (x *EvalState) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_eval_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use EvalState.ProtoReflect.Descriptor instead.
-func (*EvalState) Descriptor() ([]byte, []int) {
- return file_cel_expr_eval_proto_rawDescGZIP(), []int{0}
-}
-
-func (x *EvalState) GetValues() []*ExprValue {
- if x != nil {
- return x.Values
- }
- return nil
-}
-
-func (x *EvalState) GetResults() []*EvalState_Result {
- if x != nil {
- return x.Results
- }
- return nil
-}
-
-type ExprValue struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // Types that are valid to be assigned to Kind:
- //
- // *ExprValue_Value
- // *ExprValue_Error
- // *ExprValue_Unknown
- Kind isExprValue_Kind `protobuf_oneof:"kind"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ExprValue) Reset() {
- *x = ExprValue{}
- mi := &file_cel_expr_eval_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ExprValue) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ExprValue) ProtoMessage() {}
-
-func (x *ExprValue) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_eval_proto_msgTypes[1]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ExprValue.ProtoReflect.Descriptor instead.
-func (*ExprValue) Descriptor() ([]byte, []int) {
- return file_cel_expr_eval_proto_rawDescGZIP(), []int{1}
-}
-
-func (x *ExprValue) GetKind() isExprValue_Kind {
- if x != nil {
- return x.Kind
- }
- return nil
-}
-
-func (x *ExprValue) GetValue() *Value {
- if x != nil {
- if x, ok := x.Kind.(*ExprValue_Value); ok {
- return x.Value
- }
- }
- return nil
-}
-
-func (x *ExprValue) GetError() *ErrorSet {
- if x != nil {
- if x, ok := x.Kind.(*ExprValue_Error); ok {
- return x.Error
- }
- }
- return nil
-}
-
-func (x *ExprValue) GetUnknown() *UnknownSet {
- if x != nil {
- if x, ok := x.Kind.(*ExprValue_Unknown); ok {
- return x.Unknown
- }
- }
- return nil
-}
-
-type isExprValue_Kind interface {
- isExprValue_Kind()
-}
-
-type ExprValue_Value struct {
- Value *Value `protobuf:"bytes,1,opt,name=value,proto3,oneof"`
-}
-
-type ExprValue_Error struct {
- Error *ErrorSet `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
-}
-
-type ExprValue_Unknown struct {
- Unknown *UnknownSet `protobuf:"bytes,3,opt,name=unknown,proto3,oneof"`
-}
-
-func (*ExprValue_Value) isExprValue_Kind() {}
-
-func (*ExprValue_Error) isExprValue_Kind() {}
-
-func (*ExprValue_Unknown) isExprValue_Kind() {}
-
-type ErrorSet struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Errors []*Status `protobuf:"bytes,1,rep,name=errors,proto3" json:"errors,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ErrorSet) Reset() {
- *x = ErrorSet{}
- mi := &file_cel_expr_eval_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ErrorSet) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ErrorSet) ProtoMessage() {}
-
-func (x *ErrorSet) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_eval_proto_msgTypes[2]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ErrorSet.ProtoReflect.Descriptor instead.
-func (*ErrorSet) Descriptor() ([]byte, []int) {
- return file_cel_expr_eval_proto_rawDescGZIP(), []int{2}
-}
-
-func (x *ErrorSet) GetErrors() []*Status {
- if x != nil {
- return x.Errors
- }
- return nil
-}
-
-type Status struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
- Details []*anypb.Any `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Status) Reset() {
- *x = Status{}
- mi := &file_cel_expr_eval_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Status) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Status) ProtoMessage() {}
-
-func (x *Status) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_eval_proto_msgTypes[3]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Status.ProtoReflect.Descriptor instead.
-func (*Status) Descriptor() ([]byte, []int) {
- return file_cel_expr_eval_proto_rawDescGZIP(), []int{3}
-}
-
-func (x *Status) GetCode() int32 {
- if x != nil {
- return x.Code
- }
- return 0
-}
-
-func (x *Status) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
-}
-
-func (x *Status) GetDetails() []*anypb.Any {
- if x != nil {
- return x.Details
- }
- return nil
-}
-
-type UnknownSet struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Exprs []int64 `protobuf:"varint,1,rep,packed,name=exprs,proto3" json:"exprs,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *UnknownSet) Reset() {
- *x = UnknownSet{}
- mi := &file_cel_expr_eval_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *UnknownSet) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*UnknownSet) ProtoMessage() {}
-
-func (x *UnknownSet) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_eval_proto_msgTypes[4]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use UnknownSet.ProtoReflect.Descriptor instead.
-func (*UnknownSet) Descriptor() ([]byte, []int) {
- return file_cel_expr_eval_proto_rawDescGZIP(), []int{4}
-}
-
-func (x *UnknownSet) GetExprs() []int64 {
- if x != nil {
- return x.Exprs
- }
- return nil
-}
-
-type EvalState_Result struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Expr int64 `protobuf:"varint,1,opt,name=expr,proto3" json:"expr,omitempty"`
- Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *EvalState_Result) Reset() {
- *x = EvalState_Result{}
- mi := &file_cel_expr_eval_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *EvalState_Result) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*EvalState_Result) ProtoMessage() {}
-
-func (x *EvalState_Result) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_eval_proto_msgTypes[5]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use EvalState_Result.ProtoReflect.Descriptor instead.
-func (*EvalState_Result) Descriptor() ([]byte, []int) {
- return file_cel_expr_eval_proto_rawDescGZIP(), []int{0, 0}
-}
-
-func (x *EvalState_Result) GetExpr() int64 {
- if x != nil {
- return x.Expr
- }
- return 0
-}
-
-func (x *EvalState_Result) GetValue() int64 {
- if x != nil {
- return x.Value
- }
- return 0
-}
-
-var File_cel_expr_eval_proto protoreflect.FileDescriptor
-
-const file_cel_expr_eval_proto_rawDesc = "" +
- "\n" +
- "\x13cel/expr/eval.proto\x12\bcel.expr\x1a\x19google/protobuf/any.proto\x1a\x14cel/expr/value.proto\"\xa2\x01\n" +
- "\tEvalState\x12+\n" +
- "\x06values\x18\x01 \x03(\v2\x13.cel.expr.ExprValueR\x06values\x124\n" +
- "\aresults\x18\x03 \x03(\v2\x1a.cel.expr.EvalState.ResultR\aresults\x1a2\n" +
- "\x06Result\x12\x12\n" +
- "\x04expr\x18\x01 \x01(\x03R\x04expr\x12\x14\n" +
- "\x05value\x18\x02 \x01(\x03R\x05value\"\x9a\x01\n" +
- "\tExprValue\x12'\n" +
- "\x05value\x18\x01 \x01(\v2\x0f.cel.expr.ValueH\x00R\x05value\x12*\n" +
- "\x05error\x18\x02 \x01(\v2\x12.cel.expr.ErrorSetH\x00R\x05error\x120\n" +
- "\aunknown\x18\x03 \x01(\v2\x14.cel.expr.UnknownSetH\x00R\aunknownB\x06\n" +
- "\x04kind\"4\n" +
- "\bErrorSet\x12(\n" +
- "\x06errors\x18\x01 \x03(\v2\x10.cel.expr.StatusR\x06errors\"f\n" +
- "\x06Status\x12\x12\n" +
- "\x04code\x18\x01 \x01(\x05R\x04code\x12\x18\n" +
- "\amessage\x18\x02 \x01(\tR\amessage\x12.\n" +
- "\adetails\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\adetails\"\"\n" +
- "\n" +
- "UnknownSet\x12\x14\n" +
- "\x05exprs\x18\x01 \x03(\x03R\x05exprsB,\n" +
- "\fdev.cel.exprB\tEvalProtoP\x01Z\fcel.dev/expr\xf8\x01\x01b\x06proto3"
-
-var (
- file_cel_expr_eval_proto_rawDescOnce sync.Once
- file_cel_expr_eval_proto_rawDescData []byte
-)
-
-func file_cel_expr_eval_proto_rawDescGZIP() []byte {
- file_cel_expr_eval_proto_rawDescOnce.Do(func() {
- file_cel_expr_eval_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cel_expr_eval_proto_rawDesc), len(file_cel_expr_eval_proto_rawDesc)))
- })
- return file_cel_expr_eval_proto_rawDescData
-}
-
-var file_cel_expr_eval_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
-var file_cel_expr_eval_proto_goTypes = []any{
- (*EvalState)(nil), // 0: cel.expr.EvalState
- (*ExprValue)(nil), // 1: cel.expr.ExprValue
- (*ErrorSet)(nil), // 2: cel.expr.ErrorSet
- (*Status)(nil), // 3: cel.expr.Status
- (*UnknownSet)(nil), // 4: cel.expr.UnknownSet
- (*EvalState_Result)(nil), // 5: cel.expr.EvalState.Result
- (*Value)(nil), // 6: cel.expr.Value
- (*anypb.Any)(nil), // 7: google.protobuf.Any
-}
-var file_cel_expr_eval_proto_depIdxs = []int32{
- 1, // 0: cel.expr.EvalState.values:type_name -> cel.expr.ExprValue
- 5, // 1: cel.expr.EvalState.results:type_name -> cel.expr.EvalState.Result
- 6, // 2: cel.expr.ExprValue.value:type_name -> cel.expr.Value
- 2, // 3: cel.expr.ExprValue.error:type_name -> cel.expr.ErrorSet
- 4, // 4: cel.expr.ExprValue.unknown:type_name -> cel.expr.UnknownSet
- 3, // 5: cel.expr.ErrorSet.errors:type_name -> cel.expr.Status
- 7, // 6: cel.expr.Status.details:type_name -> google.protobuf.Any
- 7, // [7:7] is the sub-list for method output_type
- 7, // [7:7] is the sub-list for method input_type
- 7, // [7:7] is the sub-list for extension type_name
- 7, // [7:7] is the sub-list for extension extendee
- 0, // [0:7] is the sub-list for field type_name
-}
-
-func init() { file_cel_expr_eval_proto_init() }
-func file_cel_expr_eval_proto_init() {
- if File_cel_expr_eval_proto != nil {
- return
- }
- file_cel_expr_value_proto_init()
- file_cel_expr_eval_proto_msgTypes[1].OneofWrappers = []any{
- (*ExprValue_Value)(nil),
- (*ExprValue_Error)(nil),
- (*ExprValue_Unknown)(nil),
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_cel_expr_eval_proto_rawDesc), len(file_cel_expr_eval_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 6,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_cel_expr_eval_proto_goTypes,
- DependencyIndexes: file_cel_expr_eval_proto_depIdxs,
- MessageInfos: file_cel_expr_eval_proto_msgTypes,
- }.Build()
- File_cel_expr_eval_proto = out.File
- file_cel_expr_eval_proto_goTypes = nil
- file_cel_expr_eval_proto_depIdxs = nil
-}
diff --git a/vendor/cel.dev/expr/explain.pb.go b/vendor/cel.dev/expr/explain.pb.go
deleted file mode 100644
index 423993397..000000000
--- a/vendor/cel.dev/expr/explain.pb.go
+++ /dev/null
@@ -1,195 +0,0 @@
-// Code generated by protoc-gen-go. DO NOT EDIT.
-// versions:
-// protoc-gen-go v1.36.10
-// protoc v5.27.1
-// source: cel/expr/explain.proto
-
-package expr
-
-import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
-)
-
-const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
-)
-
-// Deprecated: Marked as deprecated in cel/expr/explain.proto.
-type Explain struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
- ExprSteps []*Explain_ExprStep `protobuf:"bytes,2,rep,name=expr_steps,json=exprSteps,proto3" json:"expr_steps,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Explain) Reset() {
- *x = Explain{}
- mi := &file_cel_expr_explain_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Explain) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Explain) ProtoMessage() {}
-
-func (x *Explain) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_explain_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Explain.ProtoReflect.Descriptor instead.
-func (*Explain) Descriptor() ([]byte, []int) {
- return file_cel_expr_explain_proto_rawDescGZIP(), []int{0}
-}
-
-func (x *Explain) GetValues() []*Value {
- if x != nil {
- return x.Values
- }
- return nil
-}
-
-func (x *Explain) GetExprSteps() []*Explain_ExprStep {
- if x != nil {
- return x.ExprSteps
- }
- return nil
-}
-
-type Explain_ExprStep struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
- ValueIndex int32 `protobuf:"varint,2,opt,name=value_index,json=valueIndex,proto3" json:"value_index,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Explain_ExprStep) Reset() {
- *x = Explain_ExprStep{}
- mi := &file_cel_expr_explain_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Explain_ExprStep) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Explain_ExprStep) ProtoMessage() {}
-
-func (x *Explain_ExprStep) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_explain_proto_msgTypes[1]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Explain_ExprStep.ProtoReflect.Descriptor instead.
-func (*Explain_ExprStep) Descriptor() ([]byte, []int) {
- return file_cel_expr_explain_proto_rawDescGZIP(), []int{0, 0}
-}
-
-func (x *Explain_ExprStep) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
-}
-
-func (x *Explain_ExprStep) GetValueIndex() int32 {
- if x != nil {
- return x.ValueIndex
- }
- return 0
-}
-
-var File_cel_expr_explain_proto protoreflect.FileDescriptor
-
-const file_cel_expr_explain_proto_rawDesc = "" +
- "\n" +
- "\x16cel/expr/explain.proto\x12\bcel.expr\x1a\x14cel/expr/value.proto\"\xae\x01\n" +
- "\aExplain\x12'\n" +
- "\x06values\x18\x01 \x03(\v2\x0f.cel.expr.ValueR\x06values\x129\n" +
- "\n" +
- "expr_steps\x18\x02 \x03(\v2\x1a.cel.expr.Explain.ExprStepR\texprSteps\x1a;\n" +
- "\bExprStep\x12\x0e\n" +
- "\x02id\x18\x01 \x01(\x03R\x02id\x12\x1f\n" +
- "\vvalue_index\x18\x02 \x01(\x05R\n" +
- "valueIndex:\x02\x18\x01B/\n" +
- "\fdev.cel.exprB\fExplainProtoP\x01Z\fcel.dev/expr\xf8\x01\x01b\x06proto3"
-
-var (
- file_cel_expr_explain_proto_rawDescOnce sync.Once
- file_cel_expr_explain_proto_rawDescData []byte
-)
-
-func file_cel_expr_explain_proto_rawDescGZIP() []byte {
- file_cel_expr_explain_proto_rawDescOnce.Do(func() {
- file_cel_expr_explain_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cel_expr_explain_proto_rawDesc), len(file_cel_expr_explain_proto_rawDesc)))
- })
- return file_cel_expr_explain_proto_rawDescData
-}
-
-var file_cel_expr_explain_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
-var file_cel_expr_explain_proto_goTypes = []any{
- (*Explain)(nil), // 0: cel.expr.Explain
- (*Explain_ExprStep)(nil), // 1: cel.expr.Explain.ExprStep
- (*Value)(nil), // 2: cel.expr.Value
-}
-var file_cel_expr_explain_proto_depIdxs = []int32{
- 2, // 0: cel.expr.Explain.values:type_name -> cel.expr.Value
- 1, // 1: cel.expr.Explain.expr_steps:type_name -> cel.expr.Explain.ExprStep
- 2, // [2:2] is the sub-list for method output_type
- 2, // [2:2] is the sub-list for method input_type
- 2, // [2:2] is the sub-list for extension type_name
- 2, // [2:2] is the sub-list for extension extendee
- 0, // [0:2] is the sub-list for field type_name
-}
-
-func init() { file_cel_expr_explain_proto_init() }
-func file_cel_expr_explain_proto_init() {
- if File_cel_expr_explain_proto != nil {
- return
- }
- file_cel_expr_value_proto_init()
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_cel_expr_explain_proto_rawDesc), len(file_cel_expr_explain_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 2,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_cel_expr_explain_proto_goTypes,
- DependencyIndexes: file_cel_expr_explain_proto_depIdxs,
- MessageInfos: file_cel_expr_explain_proto_msgTypes,
- }.Build()
- File_cel_expr_explain_proto = out.File
- file_cel_expr_explain_proto_goTypes = nil
- file_cel_expr_explain_proto_depIdxs = nil
-}
diff --git a/vendor/cel.dev/expr/regen_go_proto.sh b/vendor/cel.dev/expr/regen_go_proto.sh
deleted file mode 100644
index fdcbb3ce2..000000000
--- a/vendor/cel.dev/expr/regen_go_proto.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-bazel build //proto/cel/expr/conformance/...
-files=($(bazel aquery 'kind(proto, //proto/cel/expr/conformance/...)' | grep Outputs | grep "[.]pb[.]go" | sed 's/Outputs: \[//' | sed 's/\]//' | tr "," "\n"))
-for src in ${files[@]};
-do
- dst=$(echo $src | sed 's/\(.*\/cel.dev\/expr\/\(.*\)\)/\2/')
- echo "copying $dst"
- $(cp $src $dst)
-done
diff --git a/vendor/cel.dev/expr/regen_go_proto_canonical_protos.sh b/vendor/cel.dev/expr/regen_go_proto_canonical_protos.sh
deleted file mode 100644
index 9a13479e4..000000000
--- a/vendor/cel.dev/expr/regen_go_proto_canonical_protos.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/usr/bin/env bash
-bazel build //proto/cel/expr:all
-
-rm -vf ./*.pb.go
-
-files=( $(bazel cquery //proto/cel/expr:expr_go_proto --output=starlark --starlark:expr="'\n'.join([f.path for f in target.output_groups.go_generated_srcs.to_list()])") )
-for src in "${files[@]}";
-do
- cp -v "${src}" ./
-done
diff --git a/vendor/cel.dev/expr/syntax.pb.go b/vendor/cel.dev/expr/syntax.pb.go
deleted file mode 100644
index 72d19b20d..000000000
--- a/vendor/cel.dev/expr/syntax.pb.go
+++ /dev/null
@@ -1,1394 +0,0 @@
-// Code generated by protoc-gen-go. DO NOT EDIT.
-// versions:
-// protoc-gen-go v1.36.10
-// protoc v5.27.1
-// source: cel/expr/syntax.proto
-
-package expr
-
-import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- durationpb "google.golang.org/protobuf/types/known/durationpb"
- structpb "google.golang.org/protobuf/types/known/structpb"
- timestamppb "google.golang.org/protobuf/types/known/timestamppb"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
-)
-
-const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
-)
-
-type SourceInfo_Extension_Component int32
-
-const (
- SourceInfo_Extension_COMPONENT_UNSPECIFIED SourceInfo_Extension_Component = 0
- SourceInfo_Extension_COMPONENT_PARSER SourceInfo_Extension_Component = 1
- SourceInfo_Extension_COMPONENT_TYPE_CHECKER SourceInfo_Extension_Component = 2
- SourceInfo_Extension_COMPONENT_RUNTIME SourceInfo_Extension_Component = 3
-)
-
-// Enum value maps for SourceInfo_Extension_Component.
-var (
- SourceInfo_Extension_Component_name = map[int32]string{
- 0: "COMPONENT_UNSPECIFIED",
- 1: "COMPONENT_PARSER",
- 2: "COMPONENT_TYPE_CHECKER",
- 3: "COMPONENT_RUNTIME",
- }
- SourceInfo_Extension_Component_value = map[string]int32{
- "COMPONENT_UNSPECIFIED": 0,
- "COMPONENT_PARSER": 1,
- "COMPONENT_TYPE_CHECKER": 2,
- "COMPONENT_RUNTIME": 3,
- }
-)
-
-func (x SourceInfo_Extension_Component) Enum() *SourceInfo_Extension_Component {
- p := new(SourceInfo_Extension_Component)
- *p = x
- return p
-}
-
-func (x SourceInfo_Extension_Component) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
-}
-
-func (SourceInfo_Extension_Component) Descriptor() protoreflect.EnumDescriptor {
- return file_cel_expr_syntax_proto_enumTypes[0].Descriptor()
-}
-
-func (SourceInfo_Extension_Component) Type() protoreflect.EnumType {
- return &file_cel_expr_syntax_proto_enumTypes[0]
-}
-
-func (x SourceInfo_Extension_Component) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
-}
-
-// Deprecated: Use SourceInfo_Extension_Component.Descriptor instead.
-func (SourceInfo_Extension_Component) EnumDescriptor() ([]byte, []int) {
- return file_cel_expr_syntax_proto_rawDescGZIP(), []int{3, 2, 0}
-}
-
-type ParsedExpr struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Expr *Expr `protobuf:"bytes,2,opt,name=expr,proto3" json:"expr,omitempty"`
- SourceInfo *SourceInfo `protobuf:"bytes,3,opt,name=source_info,json=sourceInfo,proto3" json:"source_info,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ParsedExpr) Reset() {
- *x = ParsedExpr{}
- mi := &file_cel_expr_syntax_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ParsedExpr) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ParsedExpr) ProtoMessage() {}
-
-func (x *ParsedExpr) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_syntax_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ParsedExpr.ProtoReflect.Descriptor instead.
-func (*ParsedExpr) Descriptor() ([]byte, []int) {
- return file_cel_expr_syntax_proto_rawDescGZIP(), []int{0}
-}
-
-func (x *ParsedExpr) GetExpr() *Expr {
- if x != nil {
- return x.Expr
- }
- return nil
-}
-
-func (x *ParsedExpr) GetSourceInfo() *SourceInfo {
- if x != nil {
- return x.SourceInfo
- }
- return nil
-}
-
-type Expr struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
- // Types that are valid to be assigned to ExprKind:
- //
- // *Expr_ConstExpr
- // *Expr_IdentExpr
- // *Expr_SelectExpr
- // *Expr_CallExpr
- // *Expr_ListExpr
- // *Expr_StructExpr
- // *Expr_ComprehensionExpr
- ExprKind isExpr_ExprKind `protobuf_oneof:"expr_kind"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Expr) Reset() {
- *x = Expr{}
- mi := &file_cel_expr_syntax_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Expr) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Expr) ProtoMessage() {}
-
-func (x *Expr) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_syntax_proto_msgTypes[1]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Expr.ProtoReflect.Descriptor instead.
-func (*Expr) Descriptor() ([]byte, []int) {
- return file_cel_expr_syntax_proto_rawDescGZIP(), []int{1}
-}
-
-func (x *Expr) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
-}
-
-func (x *Expr) GetExprKind() isExpr_ExprKind {
- if x != nil {
- return x.ExprKind
- }
- return nil
-}
-
-func (x *Expr) GetConstExpr() *Constant {
- if x != nil {
- if x, ok := x.ExprKind.(*Expr_ConstExpr); ok {
- return x.ConstExpr
- }
- }
- return nil
-}
-
-func (x *Expr) GetIdentExpr() *Expr_Ident {
- if x != nil {
- if x, ok := x.ExprKind.(*Expr_IdentExpr); ok {
- return x.IdentExpr
- }
- }
- return nil
-}
-
-func (x *Expr) GetSelectExpr() *Expr_Select {
- if x != nil {
- if x, ok := x.ExprKind.(*Expr_SelectExpr); ok {
- return x.SelectExpr
- }
- }
- return nil
-}
-
-func (x *Expr) GetCallExpr() *Expr_Call {
- if x != nil {
- if x, ok := x.ExprKind.(*Expr_CallExpr); ok {
- return x.CallExpr
- }
- }
- return nil
-}
-
-func (x *Expr) GetListExpr() *Expr_CreateList {
- if x != nil {
- if x, ok := x.ExprKind.(*Expr_ListExpr); ok {
- return x.ListExpr
- }
- }
- return nil
-}
-
-func (x *Expr) GetStructExpr() *Expr_CreateStruct {
- if x != nil {
- if x, ok := x.ExprKind.(*Expr_StructExpr); ok {
- return x.StructExpr
- }
- }
- return nil
-}
-
-func (x *Expr) GetComprehensionExpr() *Expr_Comprehension {
- if x != nil {
- if x, ok := x.ExprKind.(*Expr_ComprehensionExpr); ok {
- return x.ComprehensionExpr
- }
- }
- return nil
-}
-
-type isExpr_ExprKind interface {
- isExpr_ExprKind()
-}
-
-type Expr_ConstExpr struct {
- ConstExpr *Constant `protobuf:"bytes,3,opt,name=const_expr,json=constExpr,proto3,oneof"`
-}
-
-type Expr_IdentExpr struct {
- IdentExpr *Expr_Ident `protobuf:"bytes,4,opt,name=ident_expr,json=identExpr,proto3,oneof"`
-}
-
-type Expr_SelectExpr struct {
- SelectExpr *Expr_Select `protobuf:"bytes,5,opt,name=select_expr,json=selectExpr,proto3,oneof"`
-}
-
-type Expr_CallExpr struct {
- CallExpr *Expr_Call `protobuf:"bytes,6,opt,name=call_expr,json=callExpr,proto3,oneof"`
-}
-
-type Expr_ListExpr struct {
- ListExpr *Expr_CreateList `protobuf:"bytes,7,opt,name=list_expr,json=listExpr,proto3,oneof"`
-}
-
-type Expr_StructExpr struct {
- StructExpr *Expr_CreateStruct `protobuf:"bytes,8,opt,name=struct_expr,json=structExpr,proto3,oneof"`
-}
-
-type Expr_ComprehensionExpr struct {
- ComprehensionExpr *Expr_Comprehension `protobuf:"bytes,9,opt,name=comprehension_expr,json=comprehensionExpr,proto3,oneof"`
-}
-
-func (*Expr_ConstExpr) isExpr_ExprKind() {}
-
-func (*Expr_IdentExpr) isExpr_ExprKind() {}
-
-func (*Expr_SelectExpr) isExpr_ExprKind() {}
-
-func (*Expr_CallExpr) isExpr_ExprKind() {}
-
-func (*Expr_ListExpr) isExpr_ExprKind() {}
-
-func (*Expr_StructExpr) isExpr_ExprKind() {}
-
-func (*Expr_ComprehensionExpr) isExpr_ExprKind() {}
-
-type Constant struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // Types that are valid to be assigned to ConstantKind:
- //
- // *Constant_NullValue
- // *Constant_BoolValue
- // *Constant_Int64Value
- // *Constant_Uint64Value
- // *Constant_DoubleValue
- // *Constant_StringValue
- // *Constant_BytesValue
- // *Constant_DurationValue
- // *Constant_TimestampValue
- ConstantKind isConstant_ConstantKind `protobuf_oneof:"constant_kind"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Constant) Reset() {
- *x = Constant{}
- mi := &file_cel_expr_syntax_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Constant) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Constant) ProtoMessage() {}
-
-func (x *Constant) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_syntax_proto_msgTypes[2]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Constant.ProtoReflect.Descriptor instead.
-func (*Constant) Descriptor() ([]byte, []int) {
- return file_cel_expr_syntax_proto_rawDescGZIP(), []int{2}
-}
-
-func (x *Constant) GetConstantKind() isConstant_ConstantKind {
- if x != nil {
- return x.ConstantKind
- }
- return nil
-}
-
-func (x *Constant) GetNullValue() structpb.NullValue {
- if x != nil {
- if x, ok := x.ConstantKind.(*Constant_NullValue); ok {
- return x.NullValue
- }
- }
- return structpb.NullValue(0)
-}
-
-func (x *Constant) GetBoolValue() bool {
- if x != nil {
- if x, ok := x.ConstantKind.(*Constant_BoolValue); ok {
- return x.BoolValue
- }
- }
- return false
-}
-
-func (x *Constant) GetInt64Value() int64 {
- if x != nil {
- if x, ok := x.ConstantKind.(*Constant_Int64Value); ok {
- return x.Int64Value
- }
- }
- return 0
-}
-
-func (x *Constant) GetUint64Value() uint64 {
- if x != nil {
- if x, ok := x.ConstantKind.(*Constant_Uint64Value); ok {
- return x.Uint64Value
- }
- }
- return 0
-}
-
-func (x *Constant) GetDoubleValue() float64 {
- if x != nil {
- if x, ok := x.ConstantKind.(*Constant_DoubleValue); ok {
- return x.DoubleValue
- }
- }
- return 0
-}
-
-func (x *Constant) GetStringValue() string {
- if x != nil {
- if x, ok := x.ConstantKind.(*Constant_StringValue); ok {
- return x.StringValue
- }
- }
- return ""
-}
-
-func (x *Constant) GetBytesValue() []byte {
- if x != nil {
- if x, ok := x.ConstantKind.(*Constant_BytesValue); ok {
- return x.BytesValue
- }
- }
- return nil
-}
-
-// Deprecated: Marked as deprecated in cel/expr/syntax.proto.
-func (x *Constant) GetDurationValue() *durationpb.Duration {
- if x != nil {
- if x, ok := x.ConstantKind.(*Constant_DurationValue); ok {
- return x.DurationValue
- }
- }
- return nil
-}
-
-// Deprecated: Marked as deprecated in cel/expr/syntax.proto.
-func (x *Constant) GetTimestampValue() *timestamppb.Timestamp {
- if x != nil {
- if x, ok := x.ConstantKind.(*Constant_TimestampValue); ok {
- return x.TimestampValue
- }
- }
- return nil
-}
-
-type isConstant_ConstantKind interface {
- isConstant_ConstantKind()
-}
-
-type Constant_NullValue struct {
- NullValue structpb.NullValue `protobuf:"varint,1,opt,name=null_value,json=nullValue,proto3,enum=google.protobuf.NullValue,oneof"`
-}
-
-type Constant_BoolValue struct {
- BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof"`
-}
-
-type Constant_Int64Value struct {
- Int64Value int64 `protobuf:"varint,3,opt,name=int64_value,json=int64Value,proto3,oneof"`
-}
-
-type Constant_Uint64Value struct {
- Uint64Value uint64 `protobuf:"varint,4,opt,name=uint64_value,json=uint64Value,proto3,oneof"`
-}
-
-type Constant_DoubleValue struct {
- DoubleValue float64 `protobuf:"fixed64,5,opt,name=double_value,json=doubleValue,proto3,oneof"`
-}
-
-type Constant_StringValue struct {
- StringValue string `protobuf:"bytes,6,opt,name=string_value,json=stringValue,proto3,oneof"`
-}
-
-type Constant_BytesValue struct {
- BytesValue []byte `protobuf:"bytes,7,opt,name=bytes_value,json=bytesValue,proto3,oneof"`
-}
-
-type Constant_DurationValue struct {
- // Deprecated: Marked as deprecated in cel/expr/syntax.proto.
- DurationValue *durationpb.Duration `protobuf:"bytes,8,opt,name=duration_value,json=durationValue,proto3,oneof"`
-}
-
-type Constant_TimestampValue struct {
- // Deprecated: Marked as deprecated in cel/expr/syntax.proto.
- TimestampValue *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=timestamp_value,json=timestampValue,proto3,oneof"`
-}
-
-func (*Constant_NullValue) isConstant_ConstantKind() {}
-
-func (*Constant_BoolValue) isConstant_ConstantKind() {}
-
-func (*Constant_Int64Value) isConstant_ConstantKind() {}
-
-func (*Constant_Uint64Value) isConstant_ConstantKind() {}
-
-func (*Constant_DoubleValue) isConstant_ConstantKind() {}
-
-func (*Constant_StringValue) isConstant_ConstantKind() {}
-
-func (*Constant_BytesValue) isConstant_ConstantKind() {}
-
-func (*Constant_DurationValue) isConstant_ConstantKind() {}
-
-func (*Constant_TimestampValue) isConstant_ConstantKind() {}
-
-type SourceInfo struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SyntaxVersion string `protobuf:"bytes,1,opt,name=syntax_version,json=syntaxVersion,proto3" json:"syntax_version,omitempty"`
- Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
- LineOffsets []int32 `protobuf:"varint,3,rep,packed,name=line_offsets,json=lineOffsets,proto3" json:"line_offsets,omitempty"`
- Positions map[int64]int32 `protobuf:"bytes,4,rep,name=positions,proto3" json:"positions,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
- MacroCalls map[int64]*Expr `protobuf:"bytes,5,rep,name=macro_calls,json=macroCalls,proto3" json:"macro_calls,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
- Extensions []*SourceInfo_Extension `protobuf:"bytes,6,rep,name=extensions,proto3" json:"extensions,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *SourceInfo) Reset() {
- *x = SourceInfo{}
- mi := &file_cel_expr_syntax_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *SourceInfo) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*SourceInfo) ProtoMessage() {}
-
-func (x *SourceInfo) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_syntax_proto_msgTypes[3]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use SourceInfo.ProtoReflect.Descriptor instead.
-func (*SourceInfo) Descriptor() ([]byte, []int) {
- return file_cel_expr_syntax_proto_rawDescGZIP(), []int{3}
-}
-
-func (x *SourceInfo) GetSyntaxVersion() string {
- if x != nil {
- return x.SyntaxVersion
- }
- return ""
-}
-
-func (x *SourceInfo) GetLocation() string {
- if x != nil {
- return x.Location
- }
- return ""
-}
-
-func (x *SourceInfo) GetLineOffsets() []int32 {
- if x != nil {
- return x.LineOffsets
- }
- return nil
-}
-
-func (x *SourceInfo) GetPositions() map[int64]int32 {
- if x != nil {
- return x.Positions
- }
- return nil
-}
-
-func (x *SourceInfo) GetMacroCalls() map[int64]*Expr {
- if x != nil {
- return x.MacroCalls
- }
- return nil
-}
-
-func (x *SourceInfo) GetExtensions() []*SourceInfo_Extension {
- if x != nil {
- return x.Extensions
- }
- return nil
-}
-
-type Expr_Ident struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Expr_Ident) Reset() {
- *x = Expr_Ident{}
- mi := &file_cel_expr_syntax_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Expr_Ident) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Expr_Ident) ProtoMessage() {}
-
-func (x *Expr_Ident) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_syntax_proto_msgTypes[4]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Expr_Ident.ProtoReflect.Descriptor instead.
-func (*Expr_Ident) Descriptor() ([]byte, []int) {
- return file_cel_expr_syntax_proto_rawDescGZIP(), []int{1, 0}
-}
-
-func (x *Expr_Ident) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-type Expr_Select struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Operand *Expr `protobuf:"bytes,1,opt,name=operand,proto3" json:"operand,omitempty"`
- Field string `protobuf:"bytes,2,opt,name=field,proto3" json:"field,omitempty"`
- TestOnly bool `protobuf:"varint,3,opt,name=test_only,json=testOnly,proto3" json:"test_only,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Expr_Select) Reset() {
- *x = Expr_Select{}
- mi := &file_cel_expr_syntax_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Expr_Select) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Expr_Select) ProtoMessage() {}
-
-func (x *Expr_Select) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_syntax_proto_msgTypes[5]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Expr_Select.ProtoReflect.Descriptor instead.
-func (*Expr_Select) Descriptor() ([]byte, []int) {
- return file_cel_expr_syntax_proto_rawDescGZIP(), []int{1, 1}
-}
-
-func (x *Expr_Select) GetOperand() *Expr {
- if x != nil {
- return x.Operand
- }
- return nil
-}
-
-func (x *Expr_Select) GetField() string {
- if x != nil {
- return x.Field
- }
- return ""
-}
-
-func (x *Expr_Select) GetTestOnly() bool {
- if x != nil {
- return x.TestOnly
- }
- return false
-}
-
-type Expr_Call struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Target *Expr `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
- Function string `protobuf:"bytes,2,opt,name=function,proto3" json:"function,omitempty"`
- Args []*Expr `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Expr_Call) Reset() {
- *x = Expr_Call{}
- mi := &file_cel_expr_syntax_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Expr_Call) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Expr_Call) ProtoMessage() {}
-
-func (x *Expr_Call) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_syntax_proto_msgTypes[6]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Expr_Call.ProtoReflect.Descriptor instead.
-func (*Expr_Call) Descriptor() ([]byte, []int) {
- return file_cel_expr_syntax_proto_rawDescGZIP(), []int{1, 2}
-}
-
-func (x *Expr_Call) GetTarget() *Expr {
- if x != nil {
- return x.Target
- }
- return nil
-}
-
-func (x *Expr_Call) GetFunction() string {
- if x != nil {
- return x.Function
- }
- return ""
-}
-
-func (x *Expr_Call) GetArgs() []*Expr {
- if x != nil {
- return x.Args
- }
- return nil
-}
-
-type Expr_CreateList struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Elements []*Expr `protobuf:"bytes,1,rep,name=elements,proto3" json:"elements,omitempty"`
- OptionalIndices []int32 `protobuf:"varint,2,rep,packed,name=optional_indices,json=optionalIndices,proto3" json:"optional_indices,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Expr_CreateList) Reset() {
- *x = Expr_CreateList{}
- mi := &file_cel_expr_syntax_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Expr_CreateList) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Expr_CreateList) ProtoMessage() {}
-
-func (x *Expr_CreateList) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_syntax_proto_msgTypes[7]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Expr_CreateList.ProtoReflect.Descriptor instead.
-func (*Expr_CreateList) Descriptor() ([]byte, []int) {
- return file_cel_expr_syntax_proto_rawDescGZIP(), []int{1, 3}
-}
-
-func (x *Expr_CreateList) GetElements() []*Expr {
- if x != nil {
- return x.Elements
- }
- return nil
-}
-
-func (x *Expr_CreateList) GetOptionalIndices() []int32 {
- if x != nil {
- return x.OptionalIndices
- }
- return nil
-}
-
-type Expr_CreateStruct struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- MessageName string `protobuf:"bytes,1,opt,name=message_name,json=messageName,proto3" json:"message_name,omitempty"`
- Entries []*Expr_CreateStruct_Entry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Expr_CreateStruct) Reset() {
- *x = Expr_CreateStruct{}
- mi := &file_cel_expr_syntax_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Expr_CreateStruct) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Expr_CreateStruct) ProtoMessage() {}
-
-func (x *Expr_CreateStruct) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_syntax_proto_msgTypes[8]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Expr_CreateStruct.ProtoReflect.Descriptor instead.
-func (*Expr_CreateStruct) Descriptor() ([]byte, []int) {
- return file_cel_expr_syntax_proto_rawDescGZIP(), []int{1, 4}
-}
-
-func (x *Expr_CreateStruct) GetMessageName() string {
- if x != nil {
- return x.MessageName
- }
- return ""
-}
-
-func (x *Expr_CreateStruct) GetEntries() []*Expr_CreateStruct_Entry {
- if x != nil {
- return x.Entries
- }
- return nil
-}
-
-type Expr_Comprehension struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- IterVar string `protobuf:"bytes,1,opt,name=iter_var,json=iterVar,proto3" json:"iter_var,omitempty"`
- IterVar2 string `protobuf:"bytes,8,opt,name=iter_var2,json=iterVar2,proto3" json:"iter_var2,omitempty"`
- IterRange *Expr `protobuf:"bytes,2,opt,name=iter_range,json=iterRange,proto3" json:"iter_range,omitempty"`
- AccuVar string `protobuf:"bytes,3,opt,name=accu_var,json=accuVar,proto3" json:"accu_var,omitempty"`
- AccuInit *Expr `protobuf:"bytes,4,opt,name=accu_init,json=accuInit,proto3" json:"accu_init,omitempty"`
- LoopCondition *Expr `protobuf:"bytes,5,opt,name=loop_condition,json=loopCondition,proto3" json:"loop_condition,omitempty"`
- LoopStep *Expr `protobuf:"bytes,6,opt,name=loop_step,json=loopStep,proto3" json:"loop_step,omitempty"`
- Result *Expr `protobuf:"bytes,7,opt,name=result,proto3" json:"result,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Expr_Comprehension) Reset() {
- *x = Expr_Comprehension{}
- mi := &file_cel_expr_syntax_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Expr_Comprehension) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Expr_Comprehension) ProtoMessage() {}
-
-func (x *Expr_Comprehension) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_syntax_proto_msgTypes[9]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Expr_Comprehension.ProtoReflect.Descriptor instead.
-func (*Expr_Comprehension) Descriptor() ([]byte, []int) {
- return file_cel_expr_syntax_proto_rawDescGZIP(), []int{1, 5}
-}
-
-func (x *Expr_Comprehension) GetIterVar() string {
- if x != nil {
- return x.IterVar
- }
- return ""
-}
-
-func (x *Expr_Comprehension) GetIterVar2() string {
- if x != nil {
- return x.IterVar2
- }
- return ""
-}
-
-func (x *Expr_Comprehension) GetIterRange() *Expr {
- if x != nil {
- return x.IterRange
- }
- return nil
-}
-
-func (x *Expr_Comprehension) GetAccuVar() string {
- if x != nil {
- return x.AccuVar
- }
- return ""
-}
-
-func (x *Expr_Comprehension) GetAccuInit() *Expr {
- if x != nil {
- return x.AccuInit
- }
- return nil
-}
-
-func (x *Expr_Comprehension) GetLoopCondition() *Expr {
- if x != nil {
- return x.LoopCondition
- }
- return nil
-}
-
-func (x *Expr_Comprehension) GetLoopStep() *Expr {
- if x != nil {
- return x.LoopStep
- }
- return nil
-}
-
-func (x *Expr_Comprehension) GetResult() *Expr {
- if x != nil {
- return x.Result
- }
- return nil
-}
-
-type Expr_CreateStruct_Entry struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
- // Types that are valid to be assigned to KeyKind:
- //
- // *Expr_CreateStruct_Entry_FieldKey
- // *Expr_CreateStruct_Entry_MapKey
- KeyKind isExpr_CreateStruct_Entry_KeyKind `protobuf_oneof:"key_kind"`
- Value *Expr `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
- OptionalEntry bool `protobuf:"varint,5,opt,name=optional_entry,json=optionalEntry,proto3" json:"optional_entry,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Expr_CreateStruct_Entry) Reset() {
- *x = Expr_CreateStruct_Entry{}
- mi := &file_cel_expr_syntax_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Expr_CreateStruct_Entry) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Expr_CreateStruct_Entry) ProtoMessage() {}
-
-func (x *Expr_CreateStruct_Entry) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_syntax_proto_msgTypes[10]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Expr_CreateStruct_Entry.ProtoReflect.Descriptor instead.
-func (*Expr_CreateStruct_Entry) Descriptor() ([]byte, []int) {
- return file_cel_expr_syntax_proto_rawDescGZIP(), []int{1, 4, 0}
-}
-
-func (x *Expr_CreateStruct_Entry) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
-}
-
-func (x *Expr_CreateStruct_Entry) GetKeyKind() isExpr_CreateStruct_Entry_KeyKind {
- if x != nil {
- return x.KeyKind
- }
- return nil
-}
-
-func (x *Expr_CreateStruct_Entry) GetFieldKey() string {
- if x != nil {
- if x, ok := x.KeyKind.(*Expr_CreateStruct_Entry_FieldKey); ok {
- return x.FieldKey
- }
- }
- return ""
-}
-
-func (x *Expr_CreateStruct_Entry) GetMapKey() *Expr {
- if x != nil {
- if x, ok := x.KeyKind.(*Expr_CreateStruct_Entry_MapKey); ok {
- return x.MapKey
- }
- }
- return nil
-}
-
-func (x *Expr_CreateStruct_Entry) GetValue() *Expr {
- if x != nil {
- return x.Value
- }
- return nil
-}
-
-func (x *Expr_CreateStruct_Entry) GetOptionalEntry() bool {
- if x != nil {
- return x.OptionalEntry
- }
- return false
-}
-
-type isExpr_CreateStruct_Entry_KeyKind interface {
- isExpr_CreateStruct_Entry_KeyKind()
-}
-
-type Expr_CreateStruct_Entry_FieldKey struct {
- FieldKey string `protobuf:"bytes,2,opt,name=field_key,json=fieldKey,proto3,oneof"`
-}
-
-type Expr_CreateStruct_Entry_MapKey struct {
- MapKey *Expr `protobuf:"bytes,3,opt,name=map_key,json=mapKey,proto3,oneof"`
-}
-
-func (*Expr_CreateStruct_Entry_FieldKey) isExpr_CreateStruct_Entry_KeyKind() {}
-
-func (*Expr_CreateStruct_Entry_MapKey) isExpr_CreateStruct_Entry_KeyKind() {}
-
-type SourceInfo_Extension struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
- AffectedComponents []SourceInfo_Extension_Component `protobuf:"varint,2,rep,packed,name=affected_components,json=affectedComponents,proto3,enum=cel.expr.SourceInfo_Extension_Component" json:"affected_components,omitempty"`
- Version *SourceInfo_Extension_Version `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *SourceInfo_Extension) Reset() {
- *x = SourceInfo_Extension{}
- mi := &file_cel_expr_syntax_proto_msgTypes[13]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *SourceInfo_Extension) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*SourceInfo_Extension) ProtoMessage() {}
-
-func (x *SourceInfo_Extension) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_syntax_proto_msgTypes[13]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use SourceInfo_Extension.ProtoReflect.Descriptor instead.
-func (*SourceInfo_Extension) Descriptor() ([]byte, []int) {
- return file_cel_expr_syntax_proto_rawDescGZIP(), []int{3, 2}
-}
-
-func (x *SourceInfo_Extension) GetId() string {
- if x != nil {
- return x.Id
- }
- return ""
-}
-
-func (x *SourceInfo_Extension) GetAffectedComponents() []SourceInfo_Extension_Component {
- if x != nil {
- return x.AffectedComponents
- }
- return nil
-}
-
-func (x *SourceInfo_Extension) GetVersion() *SourceInfo_Extension_Version {
- if x != nil {
- return x.Version
- }
- return nil
-}
-
-type SourceInfo_Extension_Version struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Major int64 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"`
- Minor int64 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *SourceInfo_Extension_Version) Reset() {
- *x = SourceInfo_Extension_Version{}
- mi := &file_cel_expr_syntax_proto_msgTypes[14]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *SourceInfo_Extension_Version) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*SourceInfo_Extension_Version) ProtoMessage() {}
-
-func (x *SourceInfo_Extension_Version) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_syntax_proto_msgTypes[14]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use SourceInfo_Extension_Version.ProtoReflect.Descriptor instead.
-func (*SourceInfo_Extension_Version) Descriptor() ([]byte, []int) {
- return file_cel_expr_syntax_proto_rawDescGZIP(), []int{3, 2, 0}
-}
-
-func (x *SourceInfo_Extension_Version) GetMajor() int64 {
- if x != nil {
- return x.Major
- }
- return 0
-}
-
-func (x *SourceInfo_Extension_Version) GetMinor() int64 {
- if x != nil {
- return x.Minor
- }
- return 0
-}
-
-var File_cel_expr_syntax_proto protoreflect.FileDescriptor
-
-const file_cel_expr_syntax_proto_rawDesc = "" +
- "\n" +
- "\x15cel/expr/syntax.proto\x12\bcel.expr\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"g\n" +
- "\n" +
- "ParsedExpr\x12\"\n" +
- "\x04expr\x18\x02 \x01(\v2\x0e.cel.expr.ExprR\x04expr\x125\n" +
- "\vsource_info\x18\x03 \x01(\v2\x14.cel.expr.SourceInfoR\n" +
- "sourceInfo\"\x9a\v\n" +
- "\x04Expr\x12\x0e\n" +
- "\x02id\x18\x02 \x01(\x03R\x02id\x123\n" +
- "\n" +
- "const_expr\x18\x03 \x01(\v2\x12.cel.expr.ConstantH\x00R\tconstExpr\x125\n" +
- "\n" +
- "ident_expr\x18\x04 \x01(\v2\x14.cel.expr.Expr.IdentH\x00R\tidentExpr\x128\n" +
- "\vselect_expr\x18\x05 \x01(\v2\x15.cel.expr.Expr.SelectH\x00R\n" +
- "selectExpr\x122\n" +
- "\tcall_expr\x18\x06 \x01(\v2\x13.cel.expr.Expr.CallH\x00R\bcallExpr\x128\n" +
- "\tlist_expr\x18\a \x01(\v2\x19.cel.expr.Expr.CreateListH\x00R\blistExpr\x12>\n" +
- "\vstruct_expr\x18\b \x01(\v2\x1b.cel.expr.Expr.CreateStructH\x00R\n" +
- "structExpr\x12M\n" +
- "\x12comprehension_expr\x18\t \x01(\v2\x1c.cel.expr.Expr.ComprehensionH\x00R\x11comprehensionExpr\x1a\x1b\n" +
- "\x05Ident\x12\x12\n" +
- "\x04name\x18\x01 \x01(\tR\x04name\x1ae\n" +
- "\x06Select\x12(\n" +
- "\aoperand\x18\x01 \x01(\v2\x0e.cel.expr.ExprR\aoperand\x12\x14\n" +
- "\x05field\x18\x02 \x01(\tR\x05field\x12\x1b\n" +
- "\ttest_only\x18\x03 \x01(\bR\btestOnly\x1an\n" +
- "\x04Call\x12&\n" +
- "\x06target\x18\x01 \x01(\v2\x0e.cel.expr.ExprR\x06target\x12\x1a\n" +
- "\bfunction\x18\x02 \x01(\tR\bfunction\x12\"\n" +
- "\x04args\x18\x03 \x03(\v2\x0e.cel.expr.ExprR\x04args\x1ac\n" +
- "\n" +
- "CreateList\x12*\n" +
- "\belements\x18\x01 \x03(\v2\x0e.cel.expr.ExprR\belements\x12)\n" +
- "\x10optional_indices\x18\x02 \x03(\x05R\x0foptionalIndices\x1a\xab\x02\n" +
- "\fCreateStruct\x12!\n" +
- "\fmessage_name\x18\x01 \x01(\tR\vmessageName\x12;\n" +
- "\aentries\x18\x02 \x03(\v2!.cel.expr.Expr.CreateStruct.EntryR\aentries\x1a\xba\x01\n" +
- "\x05Entry\x12\x0e\n" +
- "\x02id\x18\x01 \x01(\x03R\x02id\x12\x1d\n" +
- "\tfield_key\x18\x02 \x01(\tH\x00R\bfieldKey\x12)\n" +
- "\amap_key\x18\x03 \x01(\v2\x0e.cel.expr.ExprH\x00R\x06mapKey\x12$\n" +
- "\x05value\x18\x04 \x01(\v2\x0e.cel.expr.ExprR\x05value\x12%\n" +
- "\x0eoptional_entry\x18\x05 \x01(\bR\roptionalEntryB\n" +
- "\n" +
- "\bkey_kind\x1a\xca\x02\n" +
- "\rComprehension\x12\x19\n" +
- "\biter_var\x18\x01 \x01(\tR\aiterVar\x12\x1b\n" +
- "\titer_var2\x18\b \x01(\tR\biterVar2\x12-\n" +
- "\n" +
- "iter_range\x18\x02 \x01(\v2\x0e.cel.expr.ExprR\titerRange\x12\x19\n" +
- "\baccu_var\x18\x03 \x01(\tR\aaccuVar\x12+\n" +
- "\taccu_init\x18\x04 \x01(\v2\x0e.cel.expr.ExprR\baccuInit\x125\n" +
- "\x0eloop_condition\x18\x05 \x01(\v2\x0e.cel.expr.ExprR\rloopCondition\x12+\n" +
- "\tloop_step\x18\x06 \x01(\v2\x0e.cel.expr.ExprR\bloopStep\x12&\n" +
- "\x06result\x18\a \x01(\v2\x0e.cel.expr.ExprR\x06resultB\v\n" +
- "\texpr_kind\"\xc1\x03\n" +
- "\bConstant\x12;\n" +
- "\n" +
- "null_value\x18\x01 \x01(\x0e2\x1a.google.protobuf.NullValueH\x00R\tnullValue\x12\x1f\n" +
- "\n" +
- "bool_value\x18\x02 \x01(\bH\x00R\tboolValue\x12!\n" +
- "\vint64_value\x18\x03 \x01(\x03H\x00R\n" +
- "int64Value\x12#\n" +
- "\fuint64_value\x18\x04 \x01(\x04H\x00R\vuint64Value\x12#\n" +
- "\fdouble_value\x18\x05 \x01(\x01H\x00R\vdoubleValue\x12#\n" +
- "\fstring_value\x18\x06 \x01(\tH\x00R\vstringValue\x12!\n" +
- "\vbytes_value\x18\a \x01(\fH\x00R\n" +
- "bytesValue\x12F\n" +
- "\x0eduration_value\x18\b \x01(\v2\x19.google.protobuf.DurationB\x02\x18\x01H\x00R\rdurationValue\x12I\n" +
- "\x0ftimestamp_value\x18\t \x01(\v2\x1a.google.protobuf.TimestampB\x02\x18\x01H\x00R\x0etimestampValueB\x0f\n" +
- "\rconstant_kind\"\xac\x06\n" +
- "\n" +
- "SourceInfo\x12%\n" +
- "\x0esyntax_version\x18\x01 \x01(\tR\rsyntaxVersion\x12\x1a\n" +
- "\blocation\x18\x02 \x01(\tR\blocation\x12!\n" +
- "\fline_offsets\x18\x03 \x03(\x05R\vlineOffsets\x12A\n" +
- "\tpositions\x18\x04 \x03(\v2#.cel.expr.SourceInfo.PositionsEntryR\tpositions\x12E\n" +
- "\vmacro_calls\x18\x05 \x03(\v2$.cel.expr.SourceInfo.MacroCallsEntryR\n" +
- "macroCalls\x12>\n" +
- "\n" +
- "extensions\x18\x06 \x03(\v2\x1e.cel.expr.SourceInfo.ExtensionR\n" +
- "extensions\x1a<\n" +
- "\x0ePositionsEntry\x12\x10\n" +
- "\x03key\x18\x01 \x01(\x03R\x03key\x12\x14\n" +
- "\x05value\x18\x02 \x01(\x05R\x05value:\x028\x01\x1aM\n" +
- "\x0fMacroCallsEntry\x12\x10\n" +
- "\x03key\x18\x01 \x01(\x03R\x03key\x12$\n" +
- "\x05value\x18\x02 \x01(\v2\x0e.cel.expr.ExprR\x05value:\x028\x01\x1a\xe0\x02\n" +
- "\tExtension\x12\x0e\n" +
- "\x02id\x18\x01 \x01(\tR\x02id\x12Y\n" +
- "\x13affected_components\x18\x02 \x03(\x0e2(.cel.expr.SourceInfo.Extension.ComponentR\x12affectedComponents\x12@\n" +
- "\aversion\x18\x03 \x01(\v2&.cel.expr.SourceInfo.Extension.VersionR\aversion\x1a5\n" +
- "\aVersion\x12\x14\n" +
- "\x05major\x18\x01 \x01(\x03R\x05major\x12\x14\n" +
- "\x05minor\x18\x02 \x01(\x03R\x05minor\"o\n" +
- "\tComponent\x12\x19\n" +
- "\x15COMPONENT_UNSPECIFIED\x10\x00\x12\x14\n" +
- "\x10COMPONENT_PARSER\x10\x01\x12\x1a\n" +
- "\x16COMPONENT_TYPE_CHECKER\x10\x02\x12\x15\n" +
- "\x11COMPONENT_RUNTIME\x10\x03B.\n" +
- "\fdev.cel.exprB\vSyntaxProtoP\x01Z\fcel.dev/expr\xf8\x01\x01b\x06proto3"
-
-var (
- file_cel_expr_syntax_proto_rawDescOnce sync.Once
- file_cel_expr_syntax_proto_rawDescData []byte
-)
-
-func file_cel_expr_syntax_proto_rawDescGZIP() []byte {
- file_cel_expr_syntax_proto_rawDescOnce.Do(func() {
- file_cel_expr_syntax_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cel_expr_syntax_proto_rawDesc), len(file_cel_expr_syntax_proto_rawDesc)))
- })
- return file_cel_expr_syntax_proto_rawDescData
-}
-
-var file_cel_expr_syntax_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
-var file_cel_expr_syntax_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
-var file_cel_expr_syntax_proto_goTypes = []any{
- (SourceInfo_Extension_Component)(0), // 0: cel.expr.SourceInfo.Extension.Component
- (*ParsedExpr)(nil), // 1: cel.expr.ParsedExpr
- (*Expr)(nil), // 2: cel.expr.Expr
- (*Constant)(nil), // 3: cel.expr.Constant
- (*SourceInfo)(nil), // 4: cel.expr.SourceInfo
- (*Expr_Ident)(nil), // 5: cel.expr.Expr.Ident
- (*Expr_Select)(nil), // 6: cel.expr.Expr.Select
- (*Expr_Call)(nil), // 7: cel.expr.Expr.Call
- (*Expr_CreateList)(nil), // 8: cel.expr.Expr.CreateList
- (*Expr_CreateStruct)(nil), // 9: cel.expr.Expr.CreateStruct
- (*Expr_Comprehension)(nil), // 10: cel.expr.Expr.Comprehension
- (*Expr_CreateStruct_Entry)(nil), // 11: cel.expr.Expr.CreateStruct.Entry
- nil, // 12: cel.expr.SourceInfo.PositionsEntry
- nil, // 13: cel.expr.SourceInfo.MacroCallsEntry
- (*SourceInfo_Extension)(nil), // 14: cel.expr.SourceInfo.Extension
- (*SourceInfo_Extension_Version)(nil), // 15: cel.expr.SourceInfo.Extension.Version
- (structpb.NullValue)(0), // 16: google.protobuf.NullValue
- (*durationpb.Duration)(nil), // 17: google.protobuf.Duration
- (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp
-}
-var file_cel_expr_syntax_proto_depIdxs = []int32{
- 2, // 0: cel.expr.ParsedExpr.expr:type_name -> cel.expr.Expr
- 4, // 1: cel.expr.ParsedExpr.source_info:type_name -> cel.expr.SourceInfo
- 3, // 2: cel.expr.Expr.const_expr:type_name -> cel.expr.Constant
- 5, // 3: cel.expr.Expr.ident_expr:type_name -> cel.expr.Expr.Ident
- 6, // 4: cel.expr.Expr.select_expr:type_name -> cel.expr.Expr.Select
- 7, // 5: cel.expr.Expr.call_expr:type_name -> cel.expr.Expr.Call
- 8, // 6: cel.expr.Expr.list_expr:type_name -> cel.expr.Expr.CreateList
- 9, // 7: cel.expr.Expr.struct_expr:type_name -> cel.expr.Expr.CreateStruct
- 10, // 8: cel.expr.Expr.comprehension_expr:type_name -> cel.expr.Expr.Comprehension
- 16, // 9: cel.expr.Constant.null_value:type_name -> google.protobuf.NullValue
- 17, // 10: cel.expr.Constant.duration_value:type_name -> google.protobuf.Duration
- 18, // 11: cel.expr.Constant.timestamp_value:type_name -> google.protobuf.Timestamp
- 12, // 12: cel.expr.SourceInfo.positions:type_name -> cel.expr.SourceInfo.PositionsEntry
- 13, // 13: cel.expr.SourceInfo.macro_calls:type_name -> cel.expr.SourceInfo.MacroCallsEntry
- 14, // 14: cel.expr.SourceInfo.extensions:type_name -> cel.expr.SourceInfo.Extension
- 2, // 15: cel.expr.Expr.Select.operand:type_name -> cel.expr.Expr
- 2, // 16: cel.expr.Expr.Call.target:type_name -> cel.expr.Expr
- 2, // 17: cel.expr.Expr.Call.args:type_name -> cel.expr.Expr
- 2, // 18: cel.expr.Expr.CreateList.elements:type_name -> cel.expr.Expr
- 11, // 19: cel.expr.Expr.CreateStruct.entries:type_name -> cel.expr.Expr.CreateStruct.Entry
- 2, // 20: cel.expr.Expr.Comprehension.iter_range:type_name -> cel.expr.Expr
- 2, // 21: cel.expr.Expr.Comprehension.accu_init:type_name -> cel.expr.Expr
- 2, // 22: cel.expr.Expr.Comprehension.loop_condition:type_name -> cel.expr.Expr
- 2, // 23: cel.expr.Expr.Comprehension.loop_step:type_name -> cel.expr.Expr
- 2, // 24: cel.expr.Expr.Comprehension.result:type_name -> cel.expr.Expr
- 2, // 25: cel.expr.Expr.CreateStruct.Entry.map_key:type_name -> cel.expr.Expr
- 2, // 26: cel.expr.Expr.CreateStruct.Entry.value:type_name -> cel.expr.Expr
- 2, // 27: cel.expr.SourceInfo.MacroCallsEntry.value:type_name -> cel.expr.Expr
- 0, // 28: cel.expr.SourceInfo.Extension.affected_components:type_name -> cel.expr.SourceInfo.Extension.Component
- 15, // 29: cel.expr.SourceInfo.Extension.version:type_name -> cel.expr.SourceInfo.Extension.Version
- 30, // [30:30] is the sub-list for method output_type
- 30, // [30:30] is the sub-list for method input_type
- 30, // [30:30] is the sub-list for extension type_name
- 30, // [30:30] is the sub-list for extension extendee
- 0, // [0:30] is the sub-list for field type_name
-}
-
-func init() { file_cel_expr_syntax_proto_init() }
-func file_cel_expr_syntax_proto_init() {
- if File_cel_expr_syntax_proto != nil {
- return
- }
- file_cel_expr_syntax_proto_msgTypes[1].OneofWrappers = []any{
- (*Expr_ConstExpr)(nil),
- (*Expr_IdentExpr)(nil),
- (*Expr_SelectExpr)(nil),
- (*Expr_CallExpr)(nil),
- (*Expr_ListExpr)(nil),
- (*Expr_StructExpr)(nil),
- (*Expr_ComprehensionExpr)(nil),
- }
- file_cel_expr_syntax_proto_msgTypes[2].OneofWrappers = []any{
- (*Constant_NullValue)(nil),
- (*Constant_BoolValue)(nil),
- (*Constant_Int64Value)(nil),
- (*Constant_Uint64Value)(nil),
- (*Constant_DoubleValue)(nil),
- (*Constant_StringValue)(nil),
- (*Constant_BytesValue)(nil),
- (*Constant_DurationValue)(nil),
- (*Constant_TimestampValue)(nil),
- }
- file_cel_expr_syntax_proto_msgTypes[10].OneofWrappers = []any{
- (*Expr_CreateStruct_Entry_FieldKey)(nil),
- (*Expr_CreateStruct_Entry_MapKey)(nil),
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_cel_expr_syntax_proto_rawDesc), len(file_cel_expr_syntax_proto_rawDesc)),
- NumEnums: 1,
- NumMessages: 15,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_cel_expr_syntax_proto_goTypes,
- DependencyIndexes: file_cel_expr_syntax_proto_depIdxs,
- EnumInfos: file_cel_expr_syntax_proto_enumTypes,
- MessageInfos: file_cel_expr_syntax_proto_msgTypes,
- }.Build()
- File_cel_expr_syntax_proto = out.File
- file_cel_expr_syntax_proto_goTypes = nil
- file_cel_expr_syntax_proto_depIdxs = nil
-}
diff --git a/vendor/cel.dev/expr/value.pb.go b/vendor/cel.dev/expr/value.pb.go
deleted file mode 100644
index 1f53a6a29..000000000
--- a/vendor/cel.dev/expr/value.pb.go
+++ /dev/null
@@ -1,575 +0,0 @@
-// Code generated by protoc-gen-go. DO NOT EDIT.
-// versions:
-// protoc-gen-go v1.36.10
-// protoc v5.27.1
-// source: cel/expr/value.proto
-
-package expr
-
-import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- anypb "google.golang.org/protobuf/types/known/anypb"
- structpb "google.golang.org/protobuf/types/known/structpb"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
-)
-
-const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
-)
-
-type Value struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // Types that are valid to be assigned to Kind:
- //
- // *Value_NullValue
- // *Value_BoolValue
- // *Value_Int64Value
- // *Value_Uint64Value
- // *Value_DoubleValue
- // *Value_StringValue
- // *Value_BytesValue
- // *Value_EnumValue
- // *Value_ObjectValue
- // *Value_MapValue
- // *Value_ListValue
- // *Value_TypeValue
- Kind isValue_Kind `protobuf_oneof:"kind"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Value) Reset() {
- *x = Value{}
- mi := &file_cel_expr_value_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Value) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Value) ProtoMessage() {}
-
-func (x *Value) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_value_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Value.ProtoReflect.Descriptor instead.
-func (*Value) Descriptor() ([]byte, []int) {
- return file_cel_expr_value_proto_rawDescGZIP(), []int{0}
-}
-
-func (x *Value) GetKind() isValue_Kind {
- if x != nil {
- return x.Kind
- }
- return nil
-}
-
-func (x *Value) GetNullValue() structpb.NullValue {
- if x != nil {
- if x, ok := x.Kind.(*Value_NullValue); ok {
- return x.NullValue
- }
- }
- return structpb.NullValue(0)
-}
-
-func (x *Value) GetBoolValue() bool {
- if x != nil {
- if x, ok := x.Kind.(*Value_BoolValue); ok {
- return x.BoolValue
- }
- }
- return false
-}
-
-func (x *Value) GetInt64Value() int64 {
- if x != nil {
- if x, ok := x.Kind.(*Value_Int64Value); ok {
- return x.Int64Value
- }
- }
- return 0
-}
-
-func (x *Value) GetUint64Value() uint64 {
- if x != nil {
- if x, ok := x.Kind.(*Value_Uint64Value); ok {
- return x.Uint64Value
- }
- }
- return 0
-}
-
-func (x *Value) GetDoubleValue() float64 {
- if x != nil {
- if x, ok := x.Kind.(*Value_DoubleValue); ok {
- return x.DoubleValue
- }
- }
- return 0
-}
-
-func (x *Value) GetStringValue() string {
- if x != nil {
- if x, ok := x.Kind.(*Value_StringValue); ok {
- return x.StringValue
- }
- }
- return ""
-}
-
-func (x *Value) GetBytesValue() []byte {
- if x != nil {
- if x, ok := x.Kind.(*Value_BytesValue); ok {
- return x.BytesValue
- }
- }
- return nil
-}
-
-func (x *Value) GetEnumValue() *EnumValue {
- if x != nil {
- if x, ok := x.Kind.(*Value_EnumValue); ok {
- return x.EnumValue
- }
- }
- return nil
-}
-
-func (x *Value) GetObjectValue() *anypb.Any {
- if x != nil {
- if x, ok := x.Kind.(*Value_ObjectValue); ok {
- return x.ObjectValue
- }
- }
- return nil
-}
-
-func (x *Value) GetMapValue() *MapValue {
- if x != nil {
- if x, ok := x.Kind.(*Value_MapValue); ok {
- return x.MapValue
- }
- }
- return nil
-}
-
-func (x *Value) GetListValue() *ListValue {
- if x != nil {
- if x, ok := x.Kind.(*Value_ListValue); ok {
- return x.ListValue
- }
- }
- return nil
-}
-
-func (x *Value) GetTypeValue() string {
- if x != nil {
- if x, ok := x.Kind.(*Value_TypeValue); ok {
- return x.TypeValue
- }
- }
- return ""
-}
-
-type isValue_Kind interface {
- isValue_Kind()
-}
-
-type Value_NullValue struct {
- NullValue structpb.NullValue `protobuf:"varint,1,opt,name=null_value,json=nullValue,proto3,enum=google.protobuf.NullValue,oneof"`
-}
-
-type Value_BoolValue struct {
- BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof"`
-}
-
-type Value_Int64Value struct {
- Int64Value int64 `protobuf:"varint,3,opt,name=int64_value,json=int64Value,proto3,oneof"`
-}
-
-type Value_Uint64Value struct {
- Uint64Value uint64 `protobuf:"varint,4,opt,name=uint64_value,json=uint64Value,proto3,oneof"`
-}
-
-type Value_DoubleValue struct {
- DoubleValue float64 `protobuf:"fixed64,5,opt,name=double_value,json=doubleValue,proto3,oneof"`
-}
-
-type Value_StringValue struct {
- StringValue string `protobuf:"bytes,6,opt,name=string_value,json=stringValue,proto3,oneof"`
-}
-
-type Value_BytesValue struct {
- BytesValue []byte `protobuf:"bytes,7,opt,name=bytes_value,json=bytesValue,proto3,oneof"`
-}
-
-type Value_EnumValue struct {
- EnumValue *EnumValue `protobuf:"bytes,9,opt,name=enum_value,json=enumValue,proto3,oneof"`
-}
-
-type Value_ObjectValue struct {
- ObjectValue *anypb.Any `protobuf:"bytes,10,opt,name=object_value,json=objectValue,proto3,oneof"`
-}
-
-type Value_MapValue struct {
- MapValue *MapValue `protobuf:"bytes,11,opt,name=map_value,json=mapValue,proto3,oneof"`
-}
-
-type Value_ListValue struct {
- ListValue *ListValue `protobuf:"bytes,12,opt,name=list_value,json=listValue,proto3,oneof"`
-}
-
-type Value_TypeValue struct {
- TypeValue string `protobuf:"bytes,15,opt,name=type_value,json=typeValue,proto3,oneof"`
-}
-
-func (*Value_NullValue) isValue_Kind() {}
-
-func (*Value_BoolValue) isValue_Kind() {}
-
-func (*Value_Int64Value) isValue_Kind() {}
-
-func (*Value_Uint64Value) isValue_Kind() {}
-
-func (*Value_DoubleValue) isValue_Kind() {}
-
-func (*Value_StringValue) isValue_Kind() {}
-
-func (*Value_BytesValue) isValue_Kind() {}
-
-func (*Value_EnumValue) isValue_Kind() {}
-
-func (*Value_ObjectValue) isValue_Kind() {}
-
-func (*Value_MapValue) isValue_Kind() {}
-
-func (*Value_ListValue) isValue_Kind() {}
-
-func (*Value_TypeValue) isValue_Kind() {}
-
-type EnumValue struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
- Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *EnumValue) Reset() {
- *x = EnumValue{}
- mi := &file_cel_expr_value_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *EnumValue) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*EnumValue) ProtoMessage() {}
-
-func (x *EnumValue) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_value_proto_msgTypes[1]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use EnumValue.ProtoReflect.Descriptor instead.
-func (*EnumValue) Descriptor() ([]byte, []int) {
- return file_cel_expr_value_proto_rawDescGZIP(), []int{1}
-}
-
-func (x *EnumValue) GetType() string {
- if x != nil {
- return x.Type
- }
- return ""
-}
-
-func (x *EnumValue) GetValue() int32 {
- if x != nil {
- return x.Value
- }
- return 0
-}
-
-type ListValue struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ListValue) Reset() {
- *x = ListValue{}
- mi := &file_cel_expr_value_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ListValue) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ListValue) ProtoMessage() {}
-
-func (x *ListValue) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_value_proto_msgTypes[2]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ListValue.ProtoReflect.Descriptor instead.
-func (*ListValue) Descriptor() ([]byte, []int) {
- return file_cel_expr_value_proto_rawDescGZIP(), []int{2}
-}
-
-func (x *ListValue) GetValues() []*Value {
- if x != nil {
- return x.Values
- }
- return nil
-}
-
-type MapValue struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Entries []*MapValue_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *MapValue) Reset() {
- *x = MapValue{}
- mi := &file_cel_expr_value_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *MapValue) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*MapValue) ProtoMessage() {}
-
-func (x *MapValue) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_value_proto_msgTypes[3]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use MapValue.ProtoReflect.Descriptor instead.
-func (*MapValue) Descriptor() ([]byte, []int) {
- return file_cel_expr_value_proto_rawDescGZIP(), []int{3}
-}
-
-func (x *MapValue) GetEntries() []*MapValue_Entry {
- if x != nil {
- return x.Entries
- }
- return nil
-}
-
-type MapValue_Entry struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Key *Value `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
- Value *Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *MapValue_Entry) Reset() {
- *x = MapValue_Entry{}
- mi := &file_cel_expr_value_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *MapValue_Entry) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*MapValue_Entry) ProtoMessage() {}
-
-func (x *MapValue_Entry) ProtoReflect() protoreflect.Message {
- mi := &file_cel_expr_value_proto_msgTypes[4]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use MapValue_Entry.ProtoReflect.Descriptor instead.
-func (*MapValue_Entry) Descriptor() ([]byte, []int) {
- return file_cel_expr_value_proto_rawDescGZIP(), []int{3, 0}
-}
-
-func (x *MapValue_Entry) GetKey() *Value {
- if x != nil {
- return x.Key
- }
- return nil
-}
-
-func (x *MapValue_Entry) GetValue() *Value {
- if x != nil {
- return x.Value
- }
- return nil
-}
-
-var File_cel_expr_value_proto protoreflect.FileDescriptor
-
-const file_cel_expr_value_proto_rawDesc = "" +
- "\n" +
- "\x14cel/expr/value.proto\x12\bcel.expr\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x9d\x04\n" +
- "\x05Value\x12;\n" +
- "\n" +
- "null_value\x18\x01 \x01(\x0e2\x1a.google.protobuf.NullValueH\x00R\tnullValue\x12\x1f\n" +
- "\n" +
- "bool_value\x18\x02 \x01(\bH\x00R\tboolValue\x12!\n" +
- "\vint64_value\x18\x03 \x01(\x03H\x00R\n" +
- "int64Value\x12#\n" +
- "\fuint64_value\x18\x04 \x01(\x04H\x00R\vuint64Value\x12#\n" +
- "\fdouble_value\x18\x05 \x01(\x01H\x00R\vdoubleValue\x12#\n" +
- "\fstring_value\x18\x06 \x01(\tH\x00R\vstringValue\x12!\n" +
- "\vbytes_value\x18\a \x01(\fH\x00R\n" +
- "bytesValue\x124\n" +
- "\n" +
- "enum_value\x18\t \x01(\v2\x13.cel.expr.EnumValueH\x00R\tenumValue\x129\n" +
- "\fobject_value\x18\n" +
- " \x01(\v2\x14.google.protobuf.AnyH\x00R\vobjectValue\x121\n" +
- "\tmap_value\x18\v \x01(\v2\x12.cel.expr.MapValueH\x00R\bmapValue\x124\n" +
- "\n" +
- "list_value\x18\f \x01(\v2\x13.cel.expr.ListValueH\x00R\tlistValue\x12\x1f\n" +
- "\n" +
- "type_value\x18\x0f \x01(\tH\x00R\ttypeValueB\x06\n" +
- "\x04kind\"5\n" +
- "\tEnumValue\x12\x12\n" +
- "\x04type\x18\x01 \x01(\tR\x04type\x12\x14\n" +
- "\x05value\x18\x02 \x01(\x05R\x05value\"4\n" +
- "\tListValue\x12'\n" +
- "\x06values\x18\x01 \x03(\v2\x0f.cel.expr.ValueR\x06values\"\x91\x01\n" +
- "\bMapValue\x122\n" +
- "\aentries\x18\x01 \x03(\v2\x18.cel.expr.MapValue.EntryR\aentries\x1aQ\n" +
- "\x05Entry\x12!\n" +
- "\x03key\x18\x01 \x01(\v2\x0f.cel.expr.ValueR\x03key\x12%\n" +
- "\x05value\x18\x02 \x01(\v2\x0f.cel.expr.ValueR\x05valueB-\n" +
- "\fdev.cel.exprB\n" +
- "ValueProtoP\x01Z\fcel.dev/expr\xf8\x01\x01b\x06proto3"
-
-var (
- file_cel_expr_value_proto_rawDescOnce sync.Once
- file_cel_expr_value_proto_rawDescData []byte
-)
-
-func file_cel_expr_value_proto_rawDescGZIP() []byte {
- file_cel_expr_value_proto_rawDescOnce.Do(func() {
- file_cel_expr_value_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cel_expr_value_proto_rawDesc), len(file_cel_expr_value_proto_rawDesc)))
- })
- return file_cel_expr_value_proto_rawDescData
-}
-
-var file_cel_expr_value_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
-var file_cel_expr_value_proto_goTypes = []any{
- (*Value)(nil), // 0: cel.expr.Value
- (*EnumValue)(nil), // 1: cel.expr.EnumValue
- (*ListValue)(nil), // 2: cel.expr.ListValue
- (*MapValue)(nil), // 3: cel.expr.MapValue
- (*MapValue_Entry)(nil), // 4: cel.expr.MapValue.Entry
- (structpb.NullValue)(0), // 5: google.protobuf.NullValue
- (*anypb.Any)(nil), // 6: google.protobuf.Any
-}
-var file_cel_expr_value_proto_depIdxs = []int32{
- 5, // 0: cel.expr.Value.null_value:type_name -> google.protobuf.NullValue
- 1, // 1: cel.expr.Value.enum_value:type_name -> cel.expr.EnumValue
- 6, // 2: cel.expr.Value.object_value:type_name -> google.protobuf.Any
- 3, // 3: cel.expr.Value.map_value:type_name -> cel.expr.MapValue
- 2, // 4: cel.expr.Value.list_value:type_name -> cel.expr.ListValue
- 0, // 5: cel.expr.ListValue.values:type_name -> cel.expr.Value
- 4, // 6: cel.expr.MapValue.entries:type_name -> cel.expr.MapValue.Entry
- 0, // 7: cel.expr.MapValue.Entry.key:type_name -> cel.expr.Value
- 0, // 8: cel.expr.MapValue.Entry.value:type_name -> cel.expr.Value
- 9, // [9:9] is the sub-list for method output_type
- 9, // [9:9] is the sub-list for method input_type
- 9, // [9:9] is the sub-list for extension type_name
- 9, // [9:9] is the sub-list for extension extendee
- 0, // [0:9] is the sub-list for field type_name
-}
-
-func init() { file_cel_expr_value_proto_init() }
-func file_cel_expr_value_proto_init() {
- if File_cel_expr_value_proto != nil {
- return
- }
- file_cel_expr_value_proto_msgTypes[0].OneofWrappers = []any{
- (*Value_NullValue)(nil),
- (*Value_BoolValue)(nil),
- (*Value_Int64Value)(nil),
- (*Value_Uint64Value)(nil),
- (*Value_DoubleValue)(nil),
- (*Value_StringValue)(nil),
- (*Value_BytesValue)(nil),
- (*Value_EnumValue)(nil),
- (*Value_ObjectValue)(nil),
- (*Value_MapValue)(nil),
- (*Value_ListValue)(nil),
- (*Value_TypeValue)(nil),
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_cel_expr_value_proto_rawDesc), len(file_cel_expr_value_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 5,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_cel_expr_value_proto_goTypes,
- DependencyIndexes: file_cel_expr_value_proto_depIdxs,
- MessageInfos: file_cel_expr_value_proto_msgTypes,
- }.Build()
- File_cel_expr_value_proto = out.File
- file_cel_expr_value_proto_goTypes = nil
- file_cel_expr_value_proto_depIdxs = nil
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/.gitignore b/vendor/github.com/antlr4-go/antlr/v4/.gitignore
deleted file mode 100644
index 38ea34ff5..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/.gitignore
+++ /dev/null
@@ -1,18 +0,0 @@
-### Go template
-
-# Binaries for programs and plugins
-*.exe
-*.exe~
-*.dll
-*.so
-*.dylib
-
-# Test binary, built with `go test -c`
-*.test
-
-
-# Go workspace file
-go.work
-
-# No Goland stuff in this repo
-.idea
diff --git a/vendor/github.com/antlr4-go/antlr/v4/LICENSE b/vendor/github.com/antlr4-go/antlr/v4/LICENSE
deleted file mode 100644
index a22292eb5..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/LICENSE
+++ /dev/null
@@ -1,28 +0,0 @@
-Copyright (c) 2012-2023 The ANTLR Project. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
-1. Redistributions of source code must retain the above copyright
-notice, this list of conditions and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the above copyright
-notice, this list of conditions and the following disclaimer in the
-documentation and/or other materials provided with the distribution.
-
-3. Neither name of copyright holders nor the names of its contributors
-may be used to endorse or promote products derived from this software
-without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
-CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/vendor/github.com/antlr4-go/antlr/v4/README.md b/vendor/github.com/antlr4-go/antlr/v4/README.md
deleted file mode 100644
index 03e5b83eb..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/README.md
+++ /dev/null
@@ -1,54 +0,0 @@
-[](https://goreportcard.com/report/github.com/antlr4-go/antlr)
-[](https://pkg.go.dev/github.com/antlr4-go/antlr)
-[](https://github.com/antlr4-go/antlr/releases/latest)
-[](https://github.com/antlr4-go/antlr/releases/latest)
-[](https://github.com/antlr4-go/antlr/commit-activity)
-[](https://opensource.org/licenses/BSD-3-Clause)
-[](https://GitHub.com/Naereen/StrapDown.js/stargazers/)
-# ANTLR4 Go Runtime Module Repo
-
-IMPORTANT: Please submit PRs via a clone of the https://github.com/antlr/antlr4 repo, and not here.
-
- - Do not submit PRs or any change requests to this repo
- - This repo is read only and is updated by the ANTLR team to create a new release of the Go Runtime for ANTLR
- - This repo contains the Go runtime that your generated projects should import
-
-## Introduction
-
-This repo contains the official modules for the Go Runtime for ANTLR. It is a copy of the runtime maintained
-at: https://github.com/antlr/antlr4/tree/master/runtime/Go/antlr and is automatically updated by the ANTLR team to create
-the official Go runtime release only. No development work is carried out in this repo and PRs are not accepted here.
-
-The dev branch of this repo is kept in sync with the dev branch of the main ANTLR repo and is updated periodically.
-
-### Why?
-
-The `go get` command is unable to retrieve the Go runtime when it is embedded so
-deeply in the main repo. A `go get` against the `antlr/antlr4` repo, while retrieving the correct source code for the runtime,
-does not correctly resolve tags and will create a reference in your `go.mod` file that is unclear, will not upgrade smoothly and
-causes confusion.
-
-For instance, the current Go runtime release, which is tagged with v4.13.0 in `antlr/antlr4` is retrieved by go get as:
-
-```sh
-require (
- github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230219212500-1f9a474cc2dc
-)
-```
-
-Where you would expect to see:
-
-```sh
-require (
- github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.13.0
-)
-```
-
-The decision was taken to create a separate org in a separate repo to hold the official Go runtime for ANTLR and
-from whence users can expect `go get` to behave as expected.
-
-
-# Documentation
-Please read the official documentation at: https://github.com/antlr/antlr4/blob/master/doc/index.md for tips on
-migrating existing projects to use the new module location and for information on how to use the Go runtime in
-general.
diff --git a/vendor/github.com/antlr4-go/antlr/v4/antlrdoc.go b/vendor/github.com/antlr4-go/antlr/v4/antlrdoc.go
deleted file mode 100644
index 3bb4fd7c4..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/antlrdoc.go
+++ /dev/null
@@ -1,102 +0,0 @@
-/*
-Package antlr implements the Go version of the ANTLR 4 runtime.
-
-# The ANTLR Tool
-
-ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing,
-or translating structured text or binary files. It's widely used to build languages, tools, and frameworks.
-From a grammar, ANTLR generates a parser that can build parse trees and also generates a listener interface
-(or visitor) that makes it easy to respond to the recognition of phrases of interest.
-
-# Go Runtime
-
-At version 4.11.x and prior, the Go runtime was not properly versioned for go modules. After this point, the runtime
-source code to be imported was held in the `runtime/Go/antlr/v4` directory, and the go.mod file was updated to reflect the version of
-ANTLR4 that it is compatible with (I.E. uses the /v4 path).
-
-However, this was found to be problematic, as it meant that with the runtime embedded so far underneath the root
-of the repo, the `go get` and related commands could not properly resolve the location of the go runtime source code.
-This meant that the reference to the runtime in your `go.mod` file would refer to the correct source code, but would not
-list the release tag such as @4.12.0 - this was confusing, to say the least.
-
-As of 4.12.1, the runtime is now available as a go module in its own repo, and can be imported as `github.com/antlr4-go/antlr`
-(the go get command should also be used with this path). See the main documentation for the ANTLR4 project for more information,
-which is available at [ANTLR docs]. The documentation for using the Go runtime is available at [Go runtime docs].
-
-This means that if you are using the source code without modules, you should also use the source code in the [new repo].
-Though we highly recommend that you use go modules, as they are now idiomatic for Go.
-
-I am aware that this change will prove Hyrum's Law, but am prepared to live with it for the common good.
-
-Go runtime author: [Jim Idle] jimi@idle.ws
-
-# Code Generation
-
-ANTLR supports the generation of code in a number of [target languages], and the generated code is supported by a
-runtime library, written specifically to support the generated code in the target language. This library is the
-runtime for the Go target.
-
-To generate code for the go target, it is generally recommended to place the source grammar files in a package of
-their own, and use the `.sh` script method of generating code, using the go generate directive. In that same directory
-it is usual, though not required, to place the antlr tool that should be used to generate the code. That does mean
-that the antlr tool JAR file will be checked in to your source code control though, so you are, of course, free to use any other
-way of specifying the version of the ANTLR tool to use, such as aliasing in `.zshrc` or equivalent, or a profile in
-your IDE, or configuration in your CI system. Checking in the jar does mean that it is easy to reproduce the build as
-it was at any point in its history.
-
-Here is a general/recommended template for an ANTLR based recognizer in Go:
-
- .
- ├── parser
- │ ├── mygrammar.g4
- │ ├── antlr-4.12.1-complete.jar
- │ ├── generate.go
- │ └── generate.sh
- ├── parsing - generated code goes here
- │ └── error_listeners.go
- ├── go.mod
- ├── go.sum
- ├── main.go
- └── main_test.go
-
-Make sure that the package statement in your grammar file(s) reflects the go package the generated code will exist in.
-
-The generate.go file then looks like this:
-
- package parser
-
- //go:generate ./generate.sh
-
-And the generate.sh file will look similar to this:
-
- #!/bin/sh
-
- alias antlr4='java -Xmx500M -cp "./antlr4-4.12.1-complete.jar:$CLASSPATH" org.antlr.v4.Tool'
- antlr4 -Dlanguage=Go -no-visitor -package parsing *.g4
-
-depending on whether you want visitors or listeners or any other ANTLR options. Not that another option here
-is to generate the code into a
-
-From the command line at the root of your source package (location of go.mo)d) you can then simply issue the command:
-
- go generate ./...
-
-Which will generate the code for the parser, and place it in the parsing package. You can then use the generated code
-by importing the parsing package.
-
-There are no hard and fast rules on this. It is just a recommendation. You can generate the code in any way and to anywhere you like.
-
-# Copyright Notice
-
-Copyright (c) 2012-2023 The ANTLR Project. All rights reserved.
-
-Use of this file is governed by the BSD 3-clause license, which can be found in the [LICENSE.txt] file in the project root.
-
-[target languages]: https://github.com/antlr/antlr4/tree/master/runtime
-[LICENSE.txt]: https://github.com/antlr/antlr4/blob/master/LICENSE.txt
-[ANTLR docs]: https://github.com/antlr/antlr4/blob/master/doc/index.md
-[new repo]: https://github.com/antlr4-go/antlr
-[Jim Idle]: https://github.com/jimidle
-[Go runtime docs]: https://github.com/antlr/antlr4/blob/master/doc/go-target.md
-*/
-package antlr
diff --git a/vendor/github.com/antlr4-go/antlr/v4/atn.go b/vendor/github.com/antlr4-go/antlr/v4/atn.go
deleted file mode 100644
index cdeefed24..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/atn.go
+++ /dev/null
@@ -1,179 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import "sync"
-
-// ATNInvalidAltNumber is used to represent an ALT number that has yet to be calculated or
-// which is invalid for a particular struct such as [*antlr.BaseRuleContext]
-var ATNInvalidAltNumber int
-
-// ATN represents an “[Augmented Transition Network]”, though general in ANTLR the term
-// “Augmented Recursive Transition Network” though there are some descriptions of “[Recursive Transition Network]”
-// in existence.
-//
-// ATNs represent the main networks in the system and are serialized by the code generator and support [ALL(*)].
-//
-// [Augmented Transition Network]: https://en.wikipedia.org/wiki/Augmented_transition_network
-// [ALL(*)]: https://www.antlr.org/papers/allstar-techreport.pdf
-// [Recursive Transition Network]: https://en.wikipedia.org/wiki/Recursive_transition_network
-type ATN struct {
-
- // DecisionToState is the decision points for all rules, sub-rules, optional
- // blocks, ()+, ()*, etc. Each sub-rule/rule is a decision point, and we must track them, so we
- // can go back later and build DFA predictors for them. This includes
- // all the rules, sub-rules, optional blocks, ()+, ()* etc...
- DecisionToState []DecisionState
-
- // grammarType is the ATN type and is used for deserializing ATNs from strings.
- grammarType int
-
- // lexerActions is referenced by action transitions in the ATN for lexer ATNs.
- lexerActions []LexerAction
-
- // maxTokenType is the maximum value for any symbol recognized by a transition in the ATN.
- maxTokenType int
-
- modeNameToStartState map[string]*TokensStartState
-
- modeToStartState []*TokensStartState
-
- // ruleToStartState maps from rule index to starting state number.
- ruleToStartState []*RuleStartState
-
- // ruleToStopState maps from rule index to stop state number.
- ruleToStopState []*RuleStopState
-
- // ruleToTokenType maps the rule index to the resulting token type for lexer
- // ATNs. For parser ATNs, it maps the rule index to the generated bypass token
- // type if ATNDeserializationOptions.isGenerateRuleBypassTransitions was
- // specified, and otherwise is nil.
- ruleToTokenType []int
-
- // ATNStates is a list of all states in the ATN, ordered by state number.
- //
- states []ATNState
-
- mu sync.Mutex
- stateMu sync.RWMutex
- edgeMu sync.RWMutex
-}
-
-// NewATN returns a new ATN struct representing the given grammarType and is used
-// for runtime deserialization of ATNs from the code generated by the ANTLR tool
-func NewATN(grammarType int, maxTokenType int) *ATN {
- return &ATN{
- grammarType: grammarType,
- maxTokenType: maxTokenType,
- modeNameToStartState: make(map[string]*TokensStartState),
- }
-}
-
-// NextTokensInContext computes and returns the set of valid tokens that can occur starting
-// in state s. If ctx is nil, the set of tokens will not include what can follow
-// the rule surrounding s. In other words, the set will be restricted to tokens
-// reachable staying within the rule of s.
-func (a *ATN) NextTokensInContext(s ATNState, ctx RuleContext) *IntervalSet {
- return NewLL1Analyzer(a).Look(s, nil, ctx)
-}
-
-// NextTokensNoContext computes and returns the set of valid tokens that can occur starting
-// in state s and staying in same rule. [antlr.Token.EPSILON] is in set if we reach end of
-// rule.
-func (a *ATN) NextTokensNoContext(s ATNState) *IntervalSet {
- a.mu.Lock()
- defer a.mu.Unlock()
- iset := s.GetNextTokenWithinRule()
- if iset == nil {
- iset = a.NextTokensInContext(s, nil)
- iset.readOnly = true
- s.SetNextTokenWithinRule(iset)
- }
- return iset
-}
-
-// NextTokens computes and returns the set of valid tokens starting in state s, by
-// calling either [NextTokensNoContext] (ctx == nil) or [NextTokensInContext] (ctx != nil).
-func (a *ATN) NextTokens(s ATNState, ctx RuleContext) *IntervalSet {
- if ctx == nil {
- return a.NextTokensNoContext(s)
- }
-
- return a.NextTokensInContext(s, ctx)
-}
-
-func (a *ATN) addState(state ATNState) {
- if state != nil {
- state.SetATN(a)
- state.SetStateNumber(len(a.states))
- }
-
- a.states = append(a.states, state)
-}
-
-func (a *ATN) removeState(state ATNState) {
- a.states[state.GetStateNumber()] = nil // Just free the memory; don't shift states in the slice
-}
-
-func (a *ATN) defineDecisionState(s DecisionState) int {
- a.DecisionToState = append(a.DecisionToState, s)
- s.setDecision(len(a.DecisionToState) - 1)
-
- return s.getDecision()
-}
-
-func (a *ATN) getDecisionState(decision int) DecisionState {
- if len(a.DecisionToState) == 0 {
- return nil
- }
-
- return a.DecisionToState[decision]
-}
-
-// getExpectedTokens computes the set of input symbols which could follow ATN
-// state number stateNumber in the specified full parse context ctx and returns
-// the set of potentially valid input symbols which could follow the specified
-// state in the specified context. This method considers the complete parser
-// context, but does not evaluate semantic predicates (i.e. all predicates
-// encountered during the calculation are assumed true). If a path in the ATN
-// exists from the starting state to the RuleStopState of the outermost context
-// without Matching any symbols, Token.EOF is added to the returned set.
-//
-// A nil ctx defaults to ParserRuleContext.EMPTY.
-//
-// It panics if the ATN does not contain state stateNumber.
-func (a *ATN) getExpectedTokens(stateNumber int, ctx RuleContext) *IntervalSet {
- if stateNumber < 0 || stateNumber >= len(a.states) {
- panic("Invalid state number.")
- }
-
- s := a.states[stateNumber]
- following := a.NextTokens(s, nil)
-
- if !following.contains(TokenEpsilon) {
- return following
- }
-
- expected := NewIntervalSet()
-
- expected.addSet(following)
- expected.removeOne(TokenEpsilon)
-
- for ctx != nil && ctx.GetInvokingState() >= 0 && following.contains(TokenEpsilon) {
- invokingState := a.states[ctx.GetInvokingState()]
- rt := invokingState.GetTransitions()[0]
-
- following = a.NextTokens(rt.(*RuleTransition).followState, nil)
- expected.addSet(following)
- expected.removeOne(TokenEpsilon)
- ctx = ctx.GetParent().(RuleContext)
- }
-
- if following.contains(TokenEpsilon) {
- expected.addOne(TokenEOF)
- }
-
- return expected
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/atn_config.go b/vendor/github.com/antlr4-go/antlr/v4/atn_config.go
deleted file mode 100644
index a83f25d34..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/atn_config.go
+++ /dev/null
@@ -1,335 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "fmt"
-)
-
-const (
- lexerConfig = iota // Indicates that this ATNConfig is for a lexer
- parserConfig // Indicates that this ATNConfig is for a parser
-)
-
-// ATNConfig is a tuple: (ATN state, predicted alt, syntactic, semantic
-// context). The syntactic context is a graph-structured stack node whose
-// path(s) to the root is the rule invocation(s) chain used to arrive in the
-// state. The semantic context is the tree of semantic predicates encountered
-// before reaching an ATN state.
-type ATNConfig struct {
- precedenceFilterSuppressed bool
- state ATNState
- alt int
- context *PredictionContext
- semanticContext SemanticContext
- reachesIntoOuterContext int
- cType int // lexerConfig or parserConfig
- lexerActionExecutor *LexerActionExecutor
- passedThroughNonGreedyDecision bool
-}
-
-// NewATNConfig6 creates a new ATNConfig instance given a state, alt and context only
-func NewATNConfig6(state ATNState, alt int, context *PredictionContext) *ATNConfig {
- return NewATNConfig5(state, alt, context, SemanticContextNone)
-}
-
-// NewATNConfig5 creates a new ATNConfig instance given a state, alt, context and semantic context
-func NewATNConfig5(state ATNState, alt int, context *PredictionContext, semanticContext SemanticContext) *ATNConfig {
- if semanticContext == nil {
- panic("semanticContext cannot be nil") // TODO: Necessary?
- }
-
- pac := &ATNConfig{}
- pac.state = state
- pac.alt = alt
- pac.context = context
- pac.semanticContext = semanticContext
- pac.cType = parserConfig
- return pac
-}
-
-// NewATNConfig4 creates a new ATNConfig instance given an existing config, and a state only
-func NewATNConfig4(c *ATNConfig, state ATNState) *ATNConfig {
- return NewATNConfig(c, state, c.GetContext(), c.GetSemanticContext())
-}
-
-// NewATNConfig3 creates a new ATNConfig instance given an existing config, a state and a semantic context
-func NewATNConfig3(c *ATNConfig, state ATNState, semanticContext SemanticContext) *ATNConfig {
- return NewATNConfig(c, state, c.GetContext(), semanticContext)
-}
-
-// NewATNConfig2 creates a new ATNConfig instance given an existing config, and a context only
-func NewATNConfig2(c *ATNConfig, semanticContext SemanticContext) *ATNConfig {
- return NewATNConfig(c, c.GetState(), c.GetContext(), semanticContext)
-}
-
-// NewATNConfig1 creates a new ATNConfig instance given an existing config, a state, and a context only
-func NewATNConfig1(c *ATNConfig, state ATNState, context *PredictionContext) *ATNConfig {
- return NewATNConfig(c, state, context, c.GetSemanticContext())
-}
-
-// NewATNConfig creates a new ATNConfig instance given an existing config, a state, a context and a semantic context, other 'constructors'
-// are just wrappers around this one.
-func NewATNConfig(c *ATNConfig, state ATNState, context *PredictionContext, semanticContext SemanticContext) *ATNConfig {
- if semanticContext == nil {
- panic("semanticContext cannot be nil") // TODO: Remove this - probably put here for some bug that is now fixed
- }
- b := &ATNConfig{}
- b.InitATNConfig(c, state, c.GetAlt(), context, semanticContext)
- b.cType = parserConfig
- return b
-}
-
-func (a *ATNConfig) InitATNConfig(c *ATNConfig, state ATNState, alt int, context *PredictionContext, semanticContext SemanticContext) {
-
- a.state = state
- a.alt = alt
- a.context = context
- a.semanticContext = semanticContext
- a.reachesIntoOuterContext = c.GetReachesIntoOuterContext()
- a.precedenceFilterSuppressed = c.getPrecedenceFilterSuppressed()
-}
-
-func (a *ATNConfig) getPrecedenceFilterSuppressed() bool {
- return a.precedenceFilterSuppressed
-}
-
-func (a *ATNConfig) setPrecedenceFilterSuppressed(v bool) {
- a.precedenceFilterSuppressed = v
-}
-
-// GetState returns the ATN state associated with this configuration
-func (a *ATNConfig) GetState() ATNState {
- return a.state
-}
-
-// GetAlt returns the alternative associated with this configuration
-func (a *ATNConfig) GetAlt() int {
- return a.alt
-}
-
-// SetContext sets the rule invocation stack associated with this configuration
-func (a *ATNConfig) SetContext(v *PredictionContext) {
- a.context = v
-}
-
-// GetContext returns the rule invocation stack associated with this configuration
-func (a *ATNConfig) GetContext() *PredictionContext {
- return a.context
-}
-
-// GetSemanticContext returns the semantic context associated with this configuration
-func (a *ATNConfig) GetSemanticContext() SemanticContext {
- return a.semanticContext
-}
-
-// GetReachesIntoOuterContext returns the count of references to an outer context from this configuration
-func (a *ATNConfig) GetReachesIntoOuterContext() int {
- return a.reachesIntoOuterContext
-}
-
-// SetReachesIntoOuterContext sets the count of references to an outer context from this configuration
-func (a *ATNConfig) SetReachesIntoOuterContext(v int) {
- a.reachesIntoOuterContext = v
-}
-
-// Equals is the default comparison function for an ATNConfig when no specialist implementation is required
-// for a collection.
-//
-// An ATN configuration is equal to another if both have the same state, they
-// predict the same alternative, and syntactic/semantic contexts are the same.
-func (a *ATNConfig) Equals(o Collectable[*ATNConfig]) bool {
- switch a.cType {
- case lexerConfig:
- return a.LEquals(o)
- case parserConfig:
- return a.PEquals(o)
- default:
- panic("Invalid ATNConfig type")
- }
-}
-
-// PEquals is the default comparison function for a Parser ATNConfig when no specialist implementation is required
-// for a collection.
-//
-// An ATN configuration is equal to another if both have the same state, they
-// predict the same alternative, and syntactic/semantic contexts are the same.
-func (a *ATNConfig) PEquals(o Collectable[*ATNConfig]) bool {
- var other, ok = o.(*ATNConfig)
-
- if !ok {
- return false
- }
- if a == other {
- return true
- } else if other == nil {
- return false
- }
-
- var equal bool
-
- if a.context == nil {
- equal = other.context == nil
- } else {
- equal = a.context.Equals(other.context)
- }
-
- var (
- nums = a.state.GetStateNumber() == other.state.GetStateNumber()
- alts = a.alt == other.alt
- cons = a.semanticContext.Equals(other.semanticContext)
- sups = a.precedenceFilterSuppressed == other.precedenceFilterSuppressed
- )
-
- return nums && alts && cons && sups && equal
-}
-
-// Hash is the default hash function for a parser ATNConfig, when no specialist hash function
-// is required for a collection
-func (a *ATNConfig) Hash() int {
- switch a.cType {
- case lexerConfig:
- return a.LHash()
- case parserConfig:
- return a.PHash()
- default:
- panic("Invalid ATNConfig type")
- }
-}
-
-// PHash is the default hash function for a parser ATNConfig, when no specialist hash function
-// is required for a collection
-func (a *ATNConfig) PHash() int {
- var c int
- if a.context != nil {
- c = a.context.Hash()
- }
-
- h := murmurInit(7)
- h = murmurUpdate(h, a.state.GetStateNumber())
- h = murmurUpdate(h, a.alt)
- h = murmurUpdate(h, c)
- h = murmurUpdate(h, a.semanticContext.Hash())
- return murmurFinish(h, 4)
-}
-
-// String returns a string representation of the ATNConfig, usually used for debugging purposes
-func (a *ATNConfig) String() string {
- var s1, s2, s3 string
-
- if a.context != nil {
- s1 = ",[" + fmt.Sprint(a.context) + "]"
- }
-
- if a.semanticContext != SemanticContextNone {
- s2 = "," + fmt.Sprint(a.semanticContext)
- }
-
- if a.reachesIntoOuterContext > 0 {
- s3 = ",up=" + fmt.Sprint(a.reachesIntoOuterContext)
- }
-
- return fmt.Sprintf("(%v,%v%v%v%v)", a.state, a.alt, s1, s2, s3)
-}
-
-func NewLexerATNConfig6(state ATNState, alt int, context *PredictionContext) *ATNConfig {
- lac := &ATNConfig{}
- lac.state = state
- lac.alt = alt
- lac.context = context
- lac.semanticContext = SemanticContextNone
- lac.cType = lexerConfig
- return lac
-}
-
-func NewLexerATNConfig4(c *ATNConfig, state ATNState) *ATNConfig {
- lac := &ATNConfig{}
- lac.lexerActionExecutor = c.lexerActionExecutor
- lac.passedThroughNonGreedyDecision = checkNonGreedyDecision(c, state)
- lac.InitATNConfig(c, state, c.GetAlt(), c.GetContext(), c.GetSemanticContext())
- lac.cType = lexerConfig
- return lac
-}
-
-func NewLexerATNConfig3(c *ATNConfig, state ATNState, lexerActionExecutor *LexerActionExecutor) *ATNConfig {
- lac := &ATNConfig{}
- lac.lexerActionExecutor = lexerActionExecutor
- lac.passedThroughNonGreedyDecision = checkNonGreedyDecision(c, state)
- lac.InitATNConfig(c, state, c.GetAlt(), c.GetContext(), c.GetSemanticContext())
- lac.cType = lexerConfig
- return lac
-}
-
-func NewLexerATNConfig2(c *ATNConfig, state ATNState, context *PredictionContext) *ATNConfig {
- lac := &ATNConfig{}
- lac.lexerActionExecutor = c.lexerActionExecutor
- lac.passedThroughNonGreedyDecision = checkNonGreedyDecision(c, state)
- lac.InitATNConfig(c, state, c.GetAlt(), context, c.GetSemanticContext())
- lac.cType = lexerConfig
- return lac
-}
-
-//goland:noinspection GoUnusedExportedFunction
-func NewLexerATNConfig1(state ATNState, alt int, context *PredictionContext) *ATNConfig {
- lac := &ATNConfig{}
- lac.state = state
- lac.alt = alt
- lac.context = context
- lac.semanticContext = SemanticContextNone
- lac.cType = lexerConfig
- return lac
-}
-
-// LHash is the default hash function for Lexer ATNConfig objects, it can be used directly or via
-// the default comparator [ObjEqComparator].
-func (a *ATNConfig) LHash() int {
- var f int
- if a.passedThroughNonGreedyDecision {
- f = 1
- } else {
- f = 0
- }
- h := murmurInit(7)
- h = murmurUpdate(h, a.state.GetStateNumber())
- h = murmurUpdate(h, a.alt)
- h = murmurUpdate(h, a.context.Hash())
- h = murmurUpdate(h, a.semanticContext.Hash())
- h = murmurUpdate(h, f)
- h = murmurUpdate(h, a.lexerActionExecutor.Hash())
- h = murmurFinish(h, 6)
- return h
-}
-
-// LEquals is the default comparison function for Lexer ATNConfig objects, it can be used directly or via
-// the default comparator [ObjEqComparator].
-func (a *ATNConfig) LEquals(other Collectable[*ATNConfig]) bool {
- var otherT, ok = other.(*ATNConfig)
- if !ok {
- return false
- } else if a == otherT {
- return true
- } else if a.passedThroughNonGreedyDecision != otherT.passedThroughNonGreedyDecision {
- return false
- }
-
- switch {
- case a.lexerActionExecutor == nil && otherT.lexerActionExecutor == nil:
- return true
- case a.lexerActionExecutor != nil && otherT.lexerActionExecutor != nil:
- if !a.lexerActionExecutor.Equals(otherT.lexerActionExecutor) {
- return false
- }
- default:
- return false // One but not both, are nil
- }
-
- return a.PEquals(otherT)
-}
-
-func checkNonGreedyDecision(source *ATNConfig, target ATNState) bool {
- var ds, ok = target.(DecisionState)
-
- return source.passedThroughNonGreedyDecision || (ok && ds.getNonGreedy())
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/atn_config_set.go b/vendor/github.com/antlr4-go/antlr/v4/atn_config_set.go
deleted file mode 100644
index 52dbaf806..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/atn_config_set.go
+++ /dev/null
@@ -1,301 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "fmt"
-)
-
-// ATNConfigSet is a specialized set of ATNConfig that tracks information
-// about its elements and can combine similar configurations using a
-// graph-structured stack.
-type ATNConfigSet struct {
- cachedHash int
-
- // configLookup is used to determine whether two ATNConfigSets are equal. We
- // need all configurations with the same (s, i, _, semctx) to be equal. A key
- // effectively doubles the number of objects associated with ATNConfigs. All
- // keys are hashed by (s, i, _, pi), not including the context. Wiped out when
- // read-only because a set becomes a DFA state.
- configLookup *JStore[*ATNConfig, Comparator[*ATNConfig]]
-
- // configs is the added elements that did not match an existing key in configLookup
- configs []*ATNConfig
-
- // TODO: These fields make me pretty uncomfortable, but it is nice to pack up
- // info together because it saves re-computation. Can we track conflicts as they
- // are added to save scanning configs later?
- conflictingAlts *BitSet
-
- // dipsIntoOuterContext is used by parsers and lexers. In a lexer, it indicates
- // we hit a pred while computing a closure operation. Do not make a DFA state
- // from the ATNConfigSet in this case. TODO: How is this used by parsers?
- dipsIntoOuterContext bool
-
- // fullCtx is whether it is part of a full context LL prediction. Used to
- // determine how to merge $. It is a wildcard with SLL, but not for an LL
- // context merge.
- fullCtx bool
-
- // Used in parser and lexer. In lexer, it indicates we hit a pred
- // while computing a closure operation. Don't make a DFA state from this set.
- hasSemanticContext bool
-
- // readOnly is whether it is read-only. Do not
- // allow any code to manipulate the set if true because DFA states will point at
- // sets and those must not change. It not, protect other fields; conflictingAlts
- // in particular, which is assigned after readOnly.
- readOnly bool
-
- // TODO: These fields make me pretty uncomfortable, but it is nice to pack up
- // info together because it saves re-computation. Can we track conflicts as they
- // are added to save scanning configs later?
- uniqueAlt int
-}
-
-// Alts returns the combined set of alts for all the configurations in this set.
-func (b *ATNConfigSet) Alts() *BitSet {
- alts := NewBitSet()
- for _, it := range b.configs {
- alts.add(it.GetAlt())
- }
- return alts
-}
-
-// NewATNConfigSet creates a new ATNConfigSet instance.
-func NewATNConfigSet(fullCtx bool) *ATNConfigSet {
- return &ATNConfigSet{
- cachedHash: -1,
- configLookup: NewJStore[*ATNConfig, Comparator[*ATNConfig]](aConfCompInst, ATNConfigLookupCollection, "NewATNConfigSet()"),
- fullCtx: fullCtx,
- }
-}
-
-// Add merges contexts with existing configs for (s, i, pi, _),
-// where 's' is the ATNConfig.state, 'i' is the ATNConfig.alt, and
-// 'pi' is the [ATNConfig].semanticContext.
-//
-// We use (s,i,pi) as the key.
-// Updates dipsIntoOuterContext and hasSemanticContext when necessary.
-func (b *ATNConfigSet) Add(config *ATNConfig, mergeCache *JPCMap) bool {
- if b.readOnly {
- panic("set is read-only")
- }
-
- if config.GetSemanticContext() != SemanticContextNone {
- b.hasSemanticContext = true
- }
-
- if config.GetReachesIntoOuterContext() > 0 {
- b.dipsIntoOuterContext = true
- }
-
- existing, present := b.configLookup.Put(config)
-
- // The config was not already in the set
- //
- if !present {
- b.cachedHash = -1
- b.configs = append(b.configs, config) // Track order here
- return true
- }
-
- // Merge a previous (s, i, pi, _) with it and save the result
- rootIsWildcard := !b.fullCtx
- merged := merge(existing.GetContext(), config.GetContext(), rootIsWildcard, mergeCache)
-
- // No need to check for existing.context because config.context is in the cache,
- // since the only way to create new graphs is the "call rule" and here. We cache
- // at both places.
- existing.SetReachesIntoOuterContext(intMax(existing.GetReachesIntoOuterContext(), config.GetReachesIntoOuterContext()))
-
- // Preserve the precedence filter suppression during the merge
- if config.getPrecedenceFilterSuppressed() {
- existing.setPrecedenceFilterSuppressed(true)
- }
-
- // Replace the context because there is no need to do alt mapping
- existing.SetContext(merged)
-
- return true
-}
-
-// GetStates returns the set of states represented by all configurations in this config set
-func (b *ATNConfigSet) GetStates() *JStore[ATNState, Comparator[ATNState]] {
-
- // states uses the standard comparator and Hash() provided by the ATNState instance
- //
- states := NewJStore[ATNState, Comparator[ATNState]](aStateEqInst, ATNStateCollection, "ATNConfigSet.GetStates()")
-
- for i := 0; i < len(b.configs); i++ {
- states.Put(b.configs[i].GetState())
- }
-
- return states
-}
-
-func (b *ATNConfigSet) GetPredicates() []SemanticContext {
- predicates := make([]SemanticContext, 0)
-
- for i := 0; i < len(b.configs); i++ {
- c := b.configs[i].GetSemanticContext()
-
- if c != SemanticContextNone {
- predicates = append(predicates, c)
- }
- }
-
- return predicates
-}
-
-func (b *ATNConfigSet) OptimizeConfigs(interpreter *BaseATNSimulator) {
- if b.readOnly {
- panic("set is read-only")
- }
-
- // Empty indicate no optimization is possible
- if b.configLookup == nil || b.configLookup.Len() == 0 {
- return
- }
-
- for i := 0; i < len(b.configs); i++ {
- config := b.configs[i]
- config.SetContext(interpreter.getCachedContext(config.GetContext()))
- }
-}
-
-func (b *ATNConfigSet) AddAll(coll []*ATNConfig) bool {
- for i := 0; i < len(coll); i++ {
- b.Add(coll[i], nil)
- }
-
- return false
-}
-
-// Compare The configs are only equal if they are in the same order and their Equals function returns true.
-// Java uses ArrayList.equals(), which requires the same order.
-func (b *ATNConfigSet) Compare(bs *ATNConfigSet) bool {
- if len(b.configs) != len(bs.configs) {
- return false
- }
- for i := 0; i < len(b.configs); i++ {
- if !b.configs[i].Equals(bs.configs[i]) {
- return false
- }
- }
-
- return true
-}
-
-func (b *ATNConfigSet) Equals(other Collectable[ATNConfig]) bool {
- if b == other {
- return true
- } else if _, ok := other.(*ATNConfigSet); !ok {
- return false
- }
-
- other2 := other.(*ATNConfigSet)
- var eca bool
- switch {
- case b.conflictingAlts == nil && other2.conflictingAlts == nil:
- eca = true
- case b.conflictingAlts != nil && other2.conflictingAlts != nil:
- eca = b.conflictingAlts.equals(other2.conflictingAlts)
- }
- return b.configs != nil &&
- b.fullCtx == other2.fullCtx &&
- b.uniqueAlt == other2.uniqueAlt &&
- eca &&
- b.hasSemanticContext == other2.hasSemanticContext &&
- b.dipsIntoOuterContext == other2.dipsIntoOuterContext &&
- b.Compare(other2)
-}
-
-func (b *ATNConfigSet) Hash() int {
- if b.readOnly {
- if b.cachedHash == -1 {
- b.cachedHash = b.hashCodeConfigs()
- }
-
- return b.cachedHash
- }
-
- return b.hashCodeConfigs()
-}
-
-func (b *ATNConfigSet) hashCodeConfigs() int {
- h := 1
- for _, config := range b.configs {
- h = 31*h + config.Hash()
- }
- return h
-}
-
-func (b *ATNConfigSet) Contains(item *ATNConfig) bool {
- if b.readOnly {
- panic("not implemented for read-only sets")
- }
- if b.configLookup == nil {
- return false
- }
- return b.configLookup.Contains(item)
-}
-
-func (b *ATNConfigSet) ContainsFast(item *ATNConfig) bool {
- return b.Contains(item)
-}
-
-func (b *ATNConfigSet) Clear() {
- if b.readOnly {
- panic("set is read-only")
- }
- b.configs = make([]*ATNConfig, 0)
- b.cachedHash = -1
- b.configLookup = NewJStore[*ATNConfig, Comparator[*ATNConfig]](aConfCompInst, ATNConfigLookupCollection, "NewATNConfigSet()")
-}
-
-func (b *ATNConfigSet) String() string {
-
- s := "["
-
- for i, c := range b.configs {
- s += c.String()
-
- if i != len(b.configs)-1 {
- s += ", "
- }
- }
-
- s += "]"
-
- if b.hasSemanticContext {
- s += ",hasSemanticContext=" + fmt.Sprint(b.hasSemanticContext)
- }
-
- if b.uniqueAlt != ATNInvalidAltNumber {
- s += ",uniqueAlt=" + fmt.Sprint(b.uniqueAlt)
- }
-
- if b.conflictingAlts != nil {
- s += ",conflictingAlts=" + b.conflictingAlts.String()
- }
-
- if b.dipsIntoOuterContext {
- s += ",dipsIntoOuterContext"
- }
-
- return s
-}
-
-// NewOrderedATNConfigSet creates a config set with a slightly different Hash/Equal pair
-// for use in lexers.
-func NewOrderedATNConfigSet() *ATNConfigSet {
- return &ATNConfigSet{
- cachedHash: -1,
- // This set uses the standard Hash() and Equals() from ATNConfig
- configLookup: NewJStore[*ATNConfig, Comparator[*ATNConfig]](aConfEqInst, ATNConfigCollection, "ATNConfigSet.NewOrderedATNConfigSet()"),
- fullCtx: false,
- }
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/atn_deserialization_options.go b/vendor/github.com/antlr4-go/antlr/v4/atn_deserialization_options.go
deleted file mode 100644
index bdb30b362..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/atn_deserialization_options.go
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import "errors"
-
-var defaultATNDeserializationOptions = ATNDeserializationOptions{true, true, false}
-
-type ATNDeserializationOptions struct {
- readOnly bool
- verifyATN bool
- generateRuleBypassTransitions bool
-}
-
-func (opts *ATNDeserializationOptions) ReadOnly() bool {
- return opts.readOnly
-}
-
-func (opts *ATNDeserializationOptions) SetReadOnly(readOnly bool) {
- if opts.readOnly {
- panic(errors.New("cannot mutate read only ATNDeserializationOptions"))
- }
- opts.readOnly = readOnly
-}
-
-func (opts *ATNDeserializationOptions) VerifyATN() bool {
- return opts.verifyATN
-}
-
-func (opts *ATNDeserializationOptions) SetVerifyATN(verifyATN bool) {
- if opts.readOnly {
- panic(errors.New("cannot mutate read only ATNDeserializationOptions"))
- }
- opts.verifyATN = verifyATN
-}
-
-func (opts *ATNDeserializationOptions) GenerateRuleBypassTransitions() bool {
- return opts.generateRuleBypassTransitions
-}
-
-func (opts *ATNDeserializationOptions) SetGenerateRuleBypassTransitions(generateRuleBypassTransitions bool) {
- if opts.readOnly {
- panic(errors.New("cannot mutate read only ATNDeserializationOptions"))
- }
- opts.generateRuleBypassTransitions = generateRuleBypassTransitions
-}
-
-//goland:noinspection GoUnusedExportedFunction
-func DefaultATNDeserializationOptions() *ATNDeserializationOptions {
- return NewATNDeserializationOptions(&defaultATNDeserializationOptions)
-}
-
-func NewATNDeserializationOptions(other *ATNDeserializationOptions) *ATNDeserializationOptions {
- o := new(ATNDeserializationOptions)
- if other != nil {
- *o = *other
- o.readOnly = false
- }
- return o
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/atn_deserializer.go b/vendor/github.com/antlr4-go/antlr/v4/atn_deserializer.go
deleted file mode 100644
index 2dcb9ae11..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/atn_deserializer.go
+++ /dev/null
@@ -1,684 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "fmt"
- "strconv"
-)
-
-const serializedVersion = 4
-
-type loopEndStateIntPair struct {
- item0 *LoopEndState
- item1 int
-}
-
-type blockStartStateIntPair struct {
- item0 BlockStartState
- item1 int
-}
-
-type ATNDeserializer struct {
- options *ATNDeserializationOptions
- data []int32
- pos int
-}
-
-func NewATNDeserializer(options *ATNDeserializationOptions) *ATNDeserializer {
- if options == nil {
- options = &defaultATNDeserializationOptions
- }
-
- return &ATNDeserializer{options: options}
-}
-
-//goland:noinspection GoUnusedFunction
-func stringInSlice(a string, list []string) int {
- for i, b := range list {
- if b == a {
- return i
- }
- }
-
- return -1
-}
-
-func (a *ATNDeserializer) Deserialize(data []int32) *ATN {
- a.data = data
- a.pos = 0
- a.checkVersion()
-
- atn := a.readATN()
-
- a.readStates(atn)
- a.readRules(atn)
- a.readModes(atn)
-
- sets := a.readSets(atn, nil)
-
- a.readEdges(atn, sets)
- a.readDecisions(atn)
- a.readLexerActions(atn)
- a.markPrecedenceDecisions(atn)
- a.verifyATN(atn)
-
- if a.options.GenerateRuleBypassTransitions() && atn.grammarType == ATNTypeParser {
- a.generateRuleBypassTransitions(atn)
- // Re-verify after modification
- a.verifyATN(atn)
- }
-
- return atn
-
-}
-
-func (a *ATNDeserializer) checkVersion() {
- version := a.readInt()
-
- if version != serializedVersion {
- panic("Could not deserialize ATN with version " + strconv.Itoa(version) + " (expected " + strconv.Itoa(serializedVersion) + ").")
- }
-}
-
-func (a *ATNDeserializer) readATN() *ATN {
- grammarType := a.readInt()
- maxTokenType := a.readInt()
-
- return NewATN(grammarType, maxTokenType)
-}
-
-func (a *ATNDeserializer) readStates(atn *ATN) {
- nstates := a.readInt()
-
- // Allocate worst case size.
- loopBackStateNumbers := make([]loopEndStateIntPair, 0, nstates)
- endStateNumbers := make([]blockStartStateIntPair, 0, nstates)
-
- // Preallocate states slice.
- atn.states = make([]ATNState, 0, nstates)
-
- for i := 0; i < nstates; i++ {
- stype := a.readInt()
-
- // Ignore bad types of states
- if stype == ATNStateInvalidType {
- atn.addState(nil)
- continue
- }
-
- ruleIndex := a.readInt()
-
- s := a.stateFactory(stype, ruleIndex)
-
- if stype == ATNStateLoopEnd {
- loopBackStateNumber := a.readInt()
-
- loopBackStateNumbers = append(loopBackStateNumbers, loopEndStateIntPair{s.(*LoopEndState), loopBackStateNumber})
- } else if s2, ok := s.(BlockStartState); ok {
- endStateNumber := a.readInt()
-
- endStateNumbers = append(endStateNumbers, blockStartStateIntPair{s2, endStateNumber})
- }
-
- atn.addState(s)
- }
-
- // Delay the assignment of loop back and end states until we know all the state
- // instances have been initialized
- for _, pair := range loopBackStateNumbers {
- pair.item0.loopBackState = atn.states[pair.item1]
- }
-
- for _, pair := range endStateNumbers {
- pair.item0.setEndState(atn.states[pair.item1].(*BlockEndState))
- }
-
- numNonGreedyStates := a.readInt()
- for j := 0; j < numNonGreedyStates; j++ {
- stateNumber := a.readInt()
-
- atn.states[stateNumber].(DecisionState).setNonGreedy(true)
- }
-
- numPrecedenceStates := a.readInt()
- for j := 0; j < numPrecedenceStates; j++ {
- stateNumber := a.readInt()
-
- atn.states[stateNumber].(*RuleStartState).isPrecedenceRule = true
- }
-}
-
-func (a *ATNDeserializer) readRules(atn *ATN) {
- nrules := a.readInt()
-
- if atn.grammarType == ATNTypeLexer {
- atn.ruleToTokenType = make([]int, nrules)
- }
-
- atn.ruleToStartState = make([]*RuleStartState, nrules)
-
- for i := range atn.ruleToStartState {
- s := a.readInt()
- startState := atn.states[s].(*RuleStartState)
-
- atn.ruleToStartState[i] = startState
-
- if atn.grammarType == ATNTypeLexer {
- tokenType := a.readInt()
-
- atn.ruleToTokenType[i] = tokenType
- }
- }
-
- atn.ruleToStopState = make([]*RuleStopState, nrules)
-
- for _, state := range atn.states {
- if s2, ok := state.(*RuleStopState); ok {
- atn.ruleToStopState[s2.ruleIndex] = s2
- atn.ruleToStartState[s2.ruleIndex].stopState = s2
- }
- }
-}
-
-func (a *ATNDeserializer) readModes(atn *ATN) {
- nmodes := a.readInt()
- atn.modeToStartState = make([]*TokensStartState, nmodes)
-
- for i := range atn.modeToStartState {
- s := a.readInt()
-
- atn.modeToStartState[i] = atn.states[s].(*TokensStartState)
- }
-}
-
-func (a *ATNDeserializer) readSets(_ *ATN, sets []*IntervalSet) []*IntervalSet {
- m := a.readInt()
-
- // Preallocate the needed capacity.
- if cap(sets)-len(sets) < m {
- isets := make([]*IntervalSet, len(sets), len(sets)+m)
- copy(isets, sets)
- sets = isets
- }
-
- for i := 0; i < m; i++ {
- iset := NewIntervalSet()
-
- sets = append(sets, iset)
-
- n := a.readInt()
- containsEOF := a.readInt()
-
- if containsEOF != 0 {
- iset.addOne(-1)
- }
-
- for j := 0; j < n; j++ {
- i1 := a.readInt()
- i2 := a.readInt()
-
- iset.addRange(i1, i2)
- }
- }
-
- return sets
-}
-
-func (a *ATNDeserializer) readEdges(atn *ATN, sets []*IntervalSet) {
- nedges := a.readInt()
-
- for i := 0; i < nedges; i++ {
- var (
- src = a.readInt()
- trg = a.readInt()
- ttype = a.readInt()
- arg1 = a.readInt()
- arg2 = a.readInt()
- arg3 = a.readInt()
- trans = a.edgeFactory(atn, ttype, src, trg, arg1, arg2, arg3, sets)
- srcState = atn.states[src]
- )
-
- srcState.AddTransition(trans, -1)
- }
-
- // Edges for rule stop states can be derived, so they are not serialized
- for _, state := range atn.states {
- for _, t := range state.GetTransitions() {
- var rt, ok = t.(*RuleTransition)
-
- if !ok {
- continue
- }
-
- outermostPrecedenceReturn := -1
-
- if atn.ruleToStartState[rt.getTarget().GetRuleIndex()].isPrecedenceRule {
- if rt.precedence == 0 {
- outermostPrecedenceReturn = rt.getTarget().GetRuleIndex()
- }
- }
-
- trans := NewEpsilonTransition(rt.followState, outermostPrecedenceReturn)
-
- atn.ruleToStopState[rt.getTarget().GetRuleIndex()].AddTransition(trans, -1)
- }
- }
-
- for _, state := range atn.states {
- if s2, ok := state.(BlockStartState); ok {
- // We need to know the end state to set its start state
- if s2.getEndState() == nil {
- panic("IllegalState")
- }
-
- // Block end states can only be associated to a single block start state
- if s2.getEndState().startState != nil {
- panic("IllegalState")
- }
-
- s2.getEndState().startState = state
- }
-
- if s2, ok := state.(*PlusLoopbackState); ok {
- for _, t := range s2.GetTransitions() {
- if t2, ok := t.getTarget().(*PlusBlockStartState); ok {
- t2.loopBackState = state
- }
- }
- } else if s2, ok := state.(*StarLoopbackState); ok {
- for _, t := range s2.GetTransitions() {
- if t2, ok := t.getTarget().(*StarLoopEntryState); ok {
- t2.loopBackState = state
- }
- }
- }
- }
-}
-
-func (a *ATNDeserializer) readDecisions(atn *ATN) {
- ndecisions := a.readInt()
-
- for i := 0; i < ndecisions; i++ {
- s := a.readInt()
- decState := atn.states[s].(DecisionState)
-
- atn.DecisionToState = append(atn.DecisionToState, decState)
- decState.setDecision(i)
- }
-}
-
-func (a *ATNDeserializer) readLexerActions(atn *ATN) {
- if atn.grammarType == ATNTypeLexer {
- count := a.readInt()
-
- atn.lexerActions = make([]LexerAction, count)
-
- for i := range atn.lexerActions {
- actionType := a.readInt()
- data1 := a.readInt()
- data2 := a.readInt()
- atn.lexerActions[i] = a.lexerActionFactory(actionType, data1, data2)
- }
- }
-}
-
-func (a *ATNDeserializer) generateRuleBypassTransitions(atn *ATN) {
- count := len(atn.ruleToStartState)
-
- for i := 0; i < count; i++ {
- atn.ruleToTokenType[i] = atn.maxTokenType + i + 1
- }
-
- for i := 0; i < count; i++ {
- a.generateRuleBypassTransition(atn, i)
- }
-}
-
-func (a *ATNDeserializer) generateRuleBypassTransition(atn *ATN, idx int) {
- bypassStart := NewBasicBlockStartState()
-
- bypassStart.ruleIndex = idx
- atn.addState(bypassStart)
-
- bypassStop := NewBlockEndState()
-
- bypassStop.ruleIndex = idx
- atn.addState(bypassStop)
-
- bypassStart.endState = bypassStop
-
- atn.defineDecisionState(&bypassStart.BaseDecisionState)
-
- bypassStop.startState = bypassStart
-
- var excludeTransition Transition
- var endState ATNState
-
- if atn.ruleToStartState[idx].isPrecedenceRule {
- // Wrap from the beginning of the rule to the StarLoopEntryState
- endState = nil
-
- for i := 0; i < len(atn.states); i++ {
- state := atn.states[i]
-
- if a.stateIsEndStateFor(state, idx) != nil {
- endState = state
- excludeTransition = state.(*StarLoopEntryState).loopBackState.GetTransitions()[0]
-
- break
- }
- }
-
- if excludeTransition == nil {
- panic("Couldn't identify final state of the precedence rule prefix section.")
- }
- } else {
- endState = atn.ruleToStopState[idx]
- }
-
- // All non-excluded transitions that currently target end state need to target
- // blockEnd instead
- for i := 0; i < len(atn.states); i++ {
- state := atn.states[i]
-
- for j := 0; j < len(state.GetTransitions()); j++ {
- transition := state.GetTransitions()[j]
-
- if transition == excludeTransition {
- continue
- }
-
- if transition.getTarget() == endState {
- transition.setTarget(bypassStop)
- }
- }
- }
-
- // All transitions leaving the rule start state need to leave blockStart instead
- ruleToStartState := atn.ruleToStartState[idx]
- count := len(ruleToStartState.GetTransitions())
-
- for count > 0 {
- bypassStart.AddTransition(ruleToStartState.GetTransitions()[count-1], -1)
- ruleToStartState.SetTransitions([]Transition{ruleToStartState.GetTransitions()[len(ruleToStartState.GetTransitions())-1]})
- }
-
- // Link the new states
- atn.ruleToStartState[idx].AddTransition(NewEpsilonTransition(bypassStart, -1), -1)
- bypassStop.AddTransition(NewEpsilonTransition(endState, -1), -1)
-
- MatchState := NewBasicState()
-
- atn.addState(MatchState)
- MatchState.AddTransition(NewAtomTransition(bypassStop, atn.ruleToTokenType[idx]), -1)
- bypassStart.AddTransition(NewEpsilonTransition(MatchState, -1), -1)
-}
-
-func (a *ATNDeserializer) stateIsEndStateFor(state ATNState, idx int) ATNState {
- if state.GetRuleIndex() != idx {
- return nil
- }
-
- if _, ok := state.(*StarLoopEntryState); !ok {
- return nil
- }
-
- maybeLoopEndState := state.GetTransitions()[len(state.GetTransitions())-1].getTarget()
-
- if _, ok := maybeLoopEndState.(*LoopEndState); !ok {
- return nil
- }
-
- var _, ok = maybeLoopEndState.GetTransitions()[0].getTarget().(*RuleStopState)
-
- if maybeLoopEndState.(*LoopEndState).epsilonOnlyTransitions && ok {
- return state
- }
-
- return nil
-}
-
-// markPrecedenceDecisions analyzes the StarLoopEntryState states in the
-// specified ATN to set the StarLoopEntryState.precedenceRuleDecision field to
-// the correct value.
-func (a *ATNDeserializer) markPrecedenceDecisions(atn *ATN) {
- for _, state := range atn.states {
- if _, ok := state.(*StarLoopEntryState); !ok {
- continue
- }
-
- // We analyze the [ATN] to determine if an ATN decision state is the
- // decision for the closure block that determines whether a
- // precedence rule should continue or complete.
- if atn.ruleToStartState[state.GetRuleIndex()].isPrecedenceRule {
- maybeLoopEndState := state.GetTransitions()[len(state.GetTransitions())-1].getTarget()
-
- if s3, ok := maybeLoopEndState.(*LoopEndState); ok {
- var _, ok2 = maybeLoopEndState.GetTransitions()[0].getTarget().(*RuleStopState)
-
- if s3.epsilonOnlyTransitions && ok2 {
- state.(*StarLoopEntryState).precedenceRuleDecision = true
- }
- }
- }
- }
-}
-
-func (a *ATNDeserializer) verifyATN(atn *ATN) {
- if !a.options.VerifyATN() {
- return
- }
-
- // Verify assumptions
- for _, state := range atn.states {
- if state == nil {
- continue
- }
-
- a.checkCondition(state.GetEpsilonOnlyTransitions() || len(state.GetTransitions()) <= 1, "")
-
- switch s2 := state.(type) {
- case *PlusBlockStartState:
- a.checkCondition(s2.loopBackState != nil, "")
-
- case *StarLoopEntryState:
- a.checkCondition(s2.loopBackState != nil, "")
- a.checkCondition(len(s2.GetTransitions()) == 2, "")
-
- switch s2.transitions[0].getTarget().(type) {
- case *StarBlockStartState:
- _, ok := s2.transitions[1].getTarget().(*LoopEndState)
-
- a.checkCondition(ok, "")
- a.checkCondition(!s2.nonGreedy, "")
-
- case *LoopEndState:
- var _, ok = s2.transitions[1].getTarget().(*StarBlockStartState)
-
- a.checkCondition(ok, "")
- a.checkCondition(s2.nonGreedy, "")
-
- default:
- panic("IllegalState")
- }
-
- case *StarLoopbackState:
- a.checkCondition(len(state.GetTransitions()) == 1, "")
-
- var _, ok = state.GetTransitions()[0].getTarget().(*StarLoopEntryState)
-
- a.checkCondition(ok, "")
-
- case *LoopEndState:
- a.checkCondition(s2.loopBackState != nil, "")
-
- case *RuleStartState:
- a.checkCondition(s2.stopState != nil, "")
-
- case BlockStartState:
- a.checkCondition(s2.getEndState() != nil, "")
-
- case *BlockEndState:
- a.checkCondition(s2.startState != nil, "")
-
- case DecisionState:
- a.checkCondition(len(s2.GetTransitions()) <= 1 || s2.getDecision() >= 0, "")
-
- default:
- var _, ok = s2.(*RuleStopState)
-
- a.checkCondition(len(s2.GetTransitions()) <= 1 || ok, "")
- }
- }
-}
-
-func (a *ATNDeserializer) checkCondition(condition bool, message string) {
- if !condition {
- if message == "" {
- message = "IllegalState"
- }
-
- panic(message)
- }
-}
-
-func (a *ATNDeserializer) readInt() int {
- v := a.data[a.pos]
-
- a.pos++
-
- return int(v) // data is 32 bits but int is at least that big
-}
-
-func (a *ATNDeserializer) edgeFactory(atn *ATN, typeIndex, _, trg, arg1, arg2, arg3 int, sets []*IntervalSet) Transition {
- target := atn.states[trg]
-
- switch typeIndex {
- case TransitionEPSILON:
- return NewEpsilonTransition(target, -1)
-
- case TransitionRANGE:
- if arg3 != 0 {
- return NewRangeTransition(target, TokenEOF, arg2)
- }
-
- return NewRangeTransition(target, arg1, arg2)
-
- case TransitionRULE:
- return NewRuleTransition(atn.states[arg1], arg2, arg3, target)
-
- case TransitionPREDICATE:
- return NewPredicateTransition(target, arg1, arg2, arg3 != 0)
-
- case TransitionPRECEDENCE:
- return NewPrecedencePredicateTransition(target, arg1)
-
- case TransitionATOM:
- if arg3 != 0 {
- return NewAtomTransition(target, TokenEOF)
- }
-
- return NewAtomTransition(target, arg1)
-
- case TransitionACTION:
- return NewActionTransition(target, arg1, arg2, arg3 != 0)
-
- case TransitionSET:
- return NewSetTransition(target, sets[arg1])
-
- case TransitionNOTSET:
- return NewNotSetTransition(target, sets[arg1])
-
- case TransitionWILDCARD:
- return NewWildcardTransition(target)
- }
-
- panic("The specified transition type is not valid.")
-}
-
-func (a *ATNDeserializer) stateFactory(typeIndex, ruleIndex int) ATNState {
- var s ATNState
-
- switch typeIndex {
- case ATNStateInvalidType:
- return nil
-
- case ATNStateBasic:
- s = NewBasicState()
-
- case ATNStateRuleStart:
- s = NewRuleStartState()
-
- case ATNStateBlockStart:
- s = NewBasicBlockStartState()
-
- case ATNStatePlusBlockStart:
- s = NewPlusBlockStartState()
-
- case ATNStateStarBlockStart:
- s = NewStarBlockStartState()
-
- case ATNStateTokenStart:
- s = NewTokensStartState()
-
- case ATNStateRuleStop:
- s = NewRuleStopState()
-
- case ATNStateBlockEnd:
- s = NewBlockEndState()
-
- case ATNStateStarLoopBack:
- s = NewStarLoopbackState()
-
- case ATNStateStarLoopEntry:
- s = NewStarLoopEntryState()
-
- case ATNStatePlusLoopBack:
- s = NewPlusLoopbackState()
-
- case ATNStateLoopEnd:
- s = NewLoopEndState()
-
- default:
- panic(fmt.Sprintf("state type %d is invalid", typeIndex))
- }
-
- s.SetRuleIndex(ruleIndex)
-
- return s
-}
-
-func (a *ATNDeserializer) lexerActionFactory(typeIndex, data1, data2 int) LexerAction {
- switch typeIndex {
- case LexerActionTypeChannel:
- return NewLexerChannelAction(data1)
-
- case LexerActionTypeCustom:
- return NewLexerCustomAction(data1, data2)
-
- case LexerActionTypeMode:
- return NewLexerModeAction(data1)
-
- case LexerActionTypeMore:
- return LexerMoreActionINSTANCE
-
- case LexerActionTypePopMode:
- return LexerPopModeActionINSTANCE
-
- case LexerActionTypePushMode:
- return NewLexerPushModeAction(data1)
-
- case LexerActionTypeSkip:
- return LexerSkipActionINSTANCE
-
- case LexerActionTypeType:
- return NewLexerTypeAction(data1)
-
- default:
- panic(fmt.Sprintf("lexer action %d is invalid", typeIndex))
- }
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/atn_simulator.go b/vendor/github.com/antlr4-go/antlr/v4/atn_simulator.go
deleted file mode 100644
index afe6c9f80..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/atn_simulator.go
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-var ATNSimulatorError = NewDFAState(0x7FFFFFFF, NewATNConfigSet(false))
-
-type IATNSimulator interface {
- SharedContextCache() *PredictionContextCache
- ATN() *ATN
- DecisionToDFA() []*DFA
-}
-
-type BaseATNSimulator struct {
- atn *ATN
- sharedContextCache *PredictionContextCache
- decisionToDFA []*DFA
-}
-
-func (b *BaseATNSimulator) getCachedContext(context *PredictionContext) *PredictionContext {
- if b.sharedContextCache == nil {
- return context
- }
-
- //visited := NewJMap[*PredictionContext, *PredictionContext, Comparator[*PredictionContext]](pContextEqInst, PredictionVisitedCollection, "Visit map in getCachedContext()")
- visited := NewVisitRecord()
- return getCachedBasePredictionContext(context, b.sharedContextCache, visited)
-}
-
-func (b *BaseATNSimulator) SharedContextCache() *PredictionContextCache {
- return b.sharedContextCache
-}
-
-func (b *BaseATNSimulator) ATN() *ATN {
- return b.atn
-}
-
-func (b *BaseATNSimulator) DecisionToDFA() []*DFA {
- return b.decisionToDFA
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/atn_state.go b/vendor/github.com/antlr4-go/antlr/v4/atn_state.go
deleted file mode 100644
index 2ae5807cd..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/atn_state.go
+++ /dev/null
@@ -1,461 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "fmt"
- "os"
- "strconv"
-)
-
-// Constants for serialization.
-const (
- ATNStateInvalidType = 0
- ATNStateBasic = 1
- ATNStateRuleStart = 2
- ATNStateBlockStart = 3
- ATNStatePlusBlockStart = 4
- ATNStateStarBlockStart = 5
- ATNStateTokenStart = 6
- ATNStateRuleStop = 7
- ATNStateBlockEnd = 8
- ATNStateStarLoopBack = 9
- ATNStateStarLoopEntry = 10
- ATNStatePlusLoopBack = 11
- ATNStateLoopEnd = 12
-
- ATNStateInvalidStateNumber = -1
-)
-
-//goland:noinspection GoUnusedGlobalVariable
-var ATNStateInitialNumTransitions = 4
-
-type ATNState interface {
- GetEpsilonOnlyTransitions() bool
-
- GetRuleIndex() int
- SetRuleIndex(int)
-
- GetNextTokenWithinRule() *IntervalSet
- SetNextTokenWithinRule(*IntervalSet)
-
- GetATN() *ATN
- SetATN(*ATN)
-
- GetStateType() int
-
- GetStateNumber() int
- SetStateNumber(int)
-
- GetTransitions() []Transition
- SetTransitions([]Transition)
- AddTransition(Transition, int)
-
- String() string
- Hash() int
- Equals(Collectable[ATNState]) bool
-}
-
-type BaseATNState struct {
- // NextTokenWithinRule caches lookahead during parsing. Not used during construction.
- NextTokenWithinRule *IntervalSet
-
- // atn is the current ATN.
- atn *ATN
-
- epsilonOnlyTransitions bool
-
- // ruleIndex tracks the Rule index because there are no Rule objects at runtime.
- ruleIndex int
-
- stateNumber int
-
- stateType int
-
- // Track the transitions emanating from this ATN state.
- transitions []Transition
-}
-
-func NewATNState() *BaseATNState {
- return &BaseATNState{stateNumber: ATNStateInvalidStateNumber, stateType: ATNStateInvalidType}
-}
-
-func (as *BaseATNState) GetRuleIndex() int {
- return as.ruleIndex
-}
-
-func (as *BaseATNState) SetRuleIndex(v int) {
- as.ruleIndex = v
-}
-func (as *BaseATNState) GetEpsilonOnlyTransitions() bool {
- return as.epsilonOnlyTransitions
-}
-
-func (as *BaseATNState) GetATN() *ATN {
- return as.atn
-}
-
-func (as *BaseATNState) SetATN(atn *ATN) {
- as.atn = atn
-}
-
-func (as *BaseATNState) GetTransitions() []Transition {
- return as.transitions
-}
-
-func (as *BaseATNState) SetTransitions(t []Transition) {
- as.transitions = t
-}
-
-func (as *BaseATNState) GetStateType() int {
- return as.stateType
-}
-
-func (as *BaseATNState) GetStateNumber() int {
- return as.stateNumber
-}
-
-func (as *BaseATNState) SetStateNumber(stateNumber int) {
- as.stateNumber = stateNumber
-}
-
-func (as *BaseATNState) GetNextTokenWithinRule() *IntervalSet {
- return as.NextTokenWithinRule
-}
-
-func (as *BaseATNState) SetNextTokenWithinRule(v *IntervalSet) {
- as.NextTokenWithinRule = v
-}
-
-func (as *BaseATNState) Hash() int {
- return as.stateNumber
-}
-
-func (as *BaseATNState) String() string {
- return strconv.Itoa(as.stateNumber)
-}
-
-func (as *BaseATNState) Equals(other Collectable[ATNState]) bool {
- if ot, ok := other.(ATNState); ok {
- return as.stateNumber == ot.GetStateNumber()
- }
-
- return false
-}
-
-func (as *BaseATNState) isNonGreedyExitState() bool {
- return false
-}
-
-func (as *BaseATNState) AddTransition(trans Transition, index int) {
- if len(as.transitions) == 0 {
- as.epsilonOnlyTransitions = trans.getIsEpsilon()
- } else if as.epsilonOnlyTransitions != trans.getIsEpsilon() {
- _, _ = fmt.Fprintf(os.Stdin, "ATN state %d has both epsilon and non-epsilon transitions.\n", as.stateNumber)
- as.epsilonOnlyTransitions = false
- }
-
- // TODO: Check code for already present compared to the Java equivalent
- //alreadyPresent := false
- //for _, t := range as.transitions {
- // if t.getTarget().GetStateNumber() == trans.getTarget().GetStateNumber() {
- // if t.getLabel() != nil && trans.getLabel() != nil && trans.getLabel().Equals(t.getLabel()) {
- // alreadyPresent = true
- // break
- // }
- // } else if t.getIsEpsilon() && trans.getIsEpsilon() {
- // alreadyPresent = true
- // break
- // }
- //}
- //if !alreadyPresent {
- if index == -1 {
- as.transitions = append(as.transitions, trans)
- } else {
- as.transitions = append(as.transitions[:index], append([]Transition{trans}, as.transitions[index:]...)...)
- // TODO: as.transitions.splice(index, 1, trans)
- }
- //} else {
- // _, _ = fmt.Fprintf(os.Stderr, "Transition already present in state %d\n", as.stateNumber)
- //}
-}
-
-type BasicState struct {
- BaseATNState
-}
-
-func NewBasicState() *BasicState {
- return &BasicState{
- BaseATNState: BaseATNState{
- stateNumber: ATNStateInvalidStateNumber,
- stateType: ATNStateBasic,
- },
- }
-}
-
-type DecisionState interface {
- ATNState
-
- getDecision() int
- setDecision(int)
-
- getNonGreedy() bool
- setNonGreedy(bool)
-}
-
-type BaseDecisionState struct {
- BaseATNState
- decision int
- nonGreedy bool
-}
-
-func NewBaseDecisionState() *BaseDecisionState {
- return &BaseDecisionState{
- BaseATNState: BaseATNState{
- stateNumber: ATNStateInvalidStateNumber,
- stateType: ATNStateBasic,
- },
- decision: -1,
- }
-}
-
-func (s *BaseDecisionState) getDecision() int {
- return s.decision
-}
-
-func (s *BaseDecisionState) setDecision(b int) {
- s.decision = b
-}
-
-func (s *BaseDecisionState) getNonGreedy() bool {
- return s.nonGreedy
-}
-
-func (s *BaseDecisionState) setNonGreedy(b bool) {
- s.nonGreedy = b
-}
-
-type BlockStartState interface {
- DecisionState
-
- getEndState() *BlockEndState
- setEndState(*BlockEndState)
-}
-
-// BaseBlockStartState is the start of a regular (...) block.
-type BaseBlockStartState struct {
- BaseDecisionState
- endState *BlockEndState
-}
-
-func NewBlockStartState() *BaseBlockStartState {
- return &BaseBlockStartState{
- BaseDecisionState: BaseDecisionState{
- BaseATNState: BaseATNState{
- stateNumber: ATNStateInvalidStateNumber,
- stateType: ATNStateBasic,
- },
- decision: -1,
- },
- }
-}
-
-func (s *BaseBlockStartState) getEndState() *BlockEndState {
- return s.endState
-}
-
-func (s *BaseBlockStartState) setEndState(b *BlockEndState) {
- s.endState = b
-}
-
-type BasicBlockStartState struct {
- BaseBlockStartState
-}
-
-func NewBasicBlockStartState() *BasicBlockStartState {
- return &BasicBlockStartState{
- BaseBlockStartState: BaseBlockStartState{
- BaseDecisionState: BaseDecisionState{
- BaseATNState: BaseATNState{
- stateNumber: ATNStateInvalidStateNumber,
- stateType: ATNStateBlockStart,
- },
- },
- },
- }
-}
-
-var _ BlockStartState = &BasicBlockStartState{}
-
-// BlockEndState is a terminal node of a simple (a|b|c) block.
-type BlockEndState struct {
- BaseATNState
- startState ATNState
-}
-
-func NewBlockEndState() *BlockEndState {
- return &BlockEndState{
- BaseATNState: BaseATNState{
- stateNumber: ATNStateInvalidStateNumber,
- stateType: ATNStateBlockEnd,
- },
- startState: nil,
- }
-}
-
-// RuleStopState is the last node in the ATN for a rule, unless that rule is the
-// start symbol. In that case, there is one transition to EOF. Later, we might
-// encode references to all calls to this rule to compute FOLLOW sets for error
-// handling.
-type RuleStopState struct {
- BaseATNState
-}
-
-func NewRuleStopState() *RuleStopState {
- return &RuleStopState{
- BaseATNState: BaseATNState{
- stateNumber: ATNStateInvalidStateNumber,
- stateType: ATNStateRuleStop,
- },
- }
-}
-
-type RuleStartState struct {
- BaseATNState
- stopState ATNState
- isPrecedenceRule bool
-}
-
-func NewRuleStartState() *RuleStartState {
- return &RuleStartState{
- BaseATNState: BaseATNState{
- stateNumber: ATNStateInvalidStateNumber,
- stateType: ATNStateRuleStart,
- },
- }
-}
-
-// PlusLoopbackState is a decision state for A+ and (A|B)+. It has two
-// transitions: one to the loop back to start of the block, and one to exit.
-type PlusLoopbackState struct {
- BaseDecisionState
-}
-
-func NewPlusLoopbackState() *PlusLoopbackState {
- return &PlusLoopbackState{
- BaseDecisionState: BaseDecisionState{
- BaseATNState: BaseATNState{
- stateNumber: ATNStateInvalidStateNumber,
- stateType: ATNStatePlusLoopBack,
- },
- },
- }
-}
-
-// PlusBlockStartState is the start of a (A|B|...)+ loop. Technically it is a
-// decision state; we don't use it for code generation. Somebody might need it,
-// it is included for completeness. In reality, PlusLoopbackState is the real
-// decision-making node for A+.
-type PlusBlockStartState struct {
- BaseBlockStartState
- loopBackState ATNState
-}
-
-func NewPlusBlockStartState() *PlusBlockStartState {
- return &PlusBlockStartState{
- BaseBlockStartState: BaseBlockStartState{
- BaseDecisionState: BaseDecisionState{
- BaseATNState: BaseATNState{
- stateNumber: ATNStateInvalidStateNumber,
- stateType: ATNStatePlusBlockStart,
- },
- },
- },
- }
-}
-
-var _ BlockStartState = &PlusBlockStartState{}
-
-// StarBlockStartState is the block that begins a closure loop.
-type StarBlockStartState struct {
- BaseBlockStartState
-}
-
-func NewStarBlockStartState() *StarBlockStartState {
- return &StarBlockStartState{
- BaseBlockStartState: BaseBlockStartState{
- BaseDecisionState: BaseDecisionState{
- BaseATNState: BaseATNState{
- stateNumber: ATNStateInvalidStateNumber,
- stateType: ATNStateStarBlockStart,
- },
- },
- },
- }
-}
-
-var _ BlockStartState = &StarBlockStartState{}
-
-type StarLoopbackState struct {
- BaseATNState
-}
-
-func NewStarLoopbackState() *StarLoopbackState {
- return &StarLoopbackState{
- BaseATNState: BaseATNState{
- stateNumber: ATNStateInvalidStateNumber,
- stateType: ATNStateStarLoopBack,
- },
- }
-}
-
-type StarLoopEntryState struct {
- BaseDecisionState
- loopBackState ATNState
- precedenceRuleDecision bool
-}
-
-func NewStarLoopEntryState() *StarLoopEntryState {
- // False precedenceRuleDecision indicates whether s state can benefit from a precedence DFA during SLL decision making.
- return &StarLoopEntryState{
- BaseDecisionState: BaseDecisionState{
- BaseATNState: BaseATNState{
- stateNumber: ATNStateInvalidStateNumber,
- stateType: ATNStateStarLoopEntry,
- },
- },
- }
-}
-
-// LoopEndState marks the end of a * or + loop.
-type LoopEndState struct {
- BaseATNState
- loopBackState ATNState
-}
-
-func NewLoopEndState() *LoopEndState {
- return &LoopEndState{
- BaseATNState: BaseATNState{
- stateNumber: ATNStateInvalidStateNumber,
- stateType: ATNStateLoopEnd,
- },
- }
-}
-
-// TokensStartState is the Tokens rule start state linking to each lexer rule start state.
-type TokensStartState struct {
- BaseDecisionState
-}
-
-func NewTokensStartState() *TokensStartState {
- return &TokensStartState{
- BaseDecisionState: BaseDecisionState{
- BaseATNState: BaseATNState{
- stateNumber: ATNStateInvalidStateNumber,
- stateType: ATNStateTokenStart,
- },
- },
- }
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/atn_type.go b/vendor/github.com/antlr4-go/antlr/v4/atn_type.go
deleted file mode 100644
index 3a515a145..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/atn_type.go
+++ /dev/null
@@ -1,11 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-// Represent the type of recognizer an ATN applies to.
-const (
- ATNTypeLexer = 0
- ATNTypeParser = 1
-)
diff --git a/vendor/github.com/antlr4-go/antlr/v4/char_stream.go b/vendor/github.com/antlr4-go/antlr/v4/char_stream.go
deleted file mode 100644
index bd8127b6b..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/char_stream.go
+++ /dev/null
@@ -1,12 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-type CharStream interface {
- IntStream
- GetText(int, int) string
- GetTextFromTokens(start, end Token) string
- GetTextFromInterval(Interval) string
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/common_token_factory.go b/vendor/github.com/antlr4-go/antlr/v4/common_token_factory.go
deleted file mode 100644
index 1bb0314ea..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/common_token_factory.go
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-// TokenFactory creates CommonToken objects.
-type TokenFactory interface {
- Create(source *TokenSourceCharStreamPair, ttype int, text string, channel, start, stop, line, column int) Token
-}
-
-// CommonTokenFactory is the default TokenFactory implementation.
-type CommonTokenFactory struct {
- // copyText indicates whether CommonToken.setText should be called after
- // constructing tokens to explicitly set the text. This is useful for cases
- // where the input stream might not be able to provide arbitrary substrings of
- // text from the input after the lexer creates a token (e.g. the
- // implementation of CharStream.GetText in UnbufferedCharStream panics an
- // UnsupportedOperationException). Explicitly setting the token text allows
- // Token.GetText to be called at any time regardless of the input stream
- // implementation.
- //
- // The default value is false to avoid the performance and memory overhead of
- // copying text for every token unless explicitly requested.
- copyText bool
-}
-
-func NewCommonTokenFactory(copyText bool) *CommonTokenFactory {
- return &CommonTokenFactory{copyText: copyText}
-}
-
-// CommonTokenFactoryDEFAULT is the default CommonTokenFactory. It does not
-// explicitly copy token text when constructing tokens.
-var CommonTokenFactoryDEFAULT = NewCommonTokenFactory(false)
-
-func (c *CommonTokenFactory) Create(source *TokenSourceCharStreamPair, ttype int, text string, channel, start, stop, line, column int) Token {
- t := NewCommonToken(source, ttype, channel, start, stop)
-
- t.line = line
- t.column = column
-
- if text != "" {
- t.SetText(text)
- } else if c.copyText && source.charStream != nil {
- t.SetText(source.charStream.GetTextFromInterval(NewInterval(start, stop)))
- }
-
- return t
-}
-
-func (c *CommonTokenFactory) createThin(ttype int, text string) Token {
- t := NewCommonToken(nil, ttype, TokenDefaultChannel, -1, -1)
- t.SetText(text)
-
- return t
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/common_token_stream.go b/vendor/github.com/antlr4-go/antlr/v4/common_token_stream.go
deleted file mode 100644
index b75da9df0..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/common_token_stream.go
+++ /dev/null
@@ -1,450 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "strconv"
-)
-
-// CommonTokenStream is an implementation of TokenStream that loads tokens from
-// a TokenSource on-demand and places the tokens in a buffer to provide access
-// to any previous token by index. This token stream ignores the value of
-// Token.getChannel. If your parser requires the token stream filter tokens to
-// only those on a particular channel, such as Token.DEFAULT_CHANNEL or
-// Token.HIDDEN_CHANNEL, use a filtering token stream such a CommonTokenStream.
-type CommonTokenStream struct {
- channel int
-
- // fetchedEOF indicates whether the Token.EOF token has been fetched from
- // tokenSource and added to tokens. This field improves performance for the
- // following cases:
- //
- // consume: The lookahead check in consume to preven consuming the EOF symbol is
- // optimized by checking the values of fetchedEOF and p instead of calling LA.
- //
- // fetch: The check to prevent adding multiple EOF symbols into tokens is
- // trivial with bt field.
- fetchedEOF bool
-
- // index into [tokens] of the current token (next token to consume).
- // tokens[p] should be LT(1). It is set to -1 when the stream is first
- // constructed or when SetTokenSource is called, indicating that the first token
- // has not yet been fetched from the token source. For additional information,
- // see the documentation of [IntStream] for a description of initializing methods.
- index int
-
- // tokenSource is the [TokenSource] from which tokens for the bt stream are
- // fetched.
- tokenSource TokenSource
-
- // tokens contains all tokens fetched from the token source. The list is considered a
- // complete view of the input once fetchedEOF is set to true.
- tokens []Token
-}
-
-// NewCommonTokenStream creates a new CommonTokenStream instance using the supplied lexer to produce
-// tokens and will pull tokens from the given lexer channel.
-func NewCommonTokenStream(lexer Lexer, channel int) *CommonTokenStream {
- return &CommonTokenStream{
- channel: channel,
- index: -1,
- tokenSource: lexer,
- tokens: make([]Token, 0),
- }
-}
-
-// GetAllTokens returns all tokens currently pulled from the token source.
-func (c *CommonTokenStream) GetAllTokens() []Token {
- return c.tokens
-}
-
-func (c *CommonTokenStream) Mark() int {
- return 0
-}
-
-func (c *CommonTokenStream) Release(_ int) {}
-
-func (c *CommonTokenStream) Reset() {
- c.fetchedEOF = false
- c.tokens = make([]Token, 0)
- c.Seek(0)
-}
-
-func (c *CommonTokenStream) Seek(index int) {
- c.lazyInit()
- c.index = c.adjustSeekIndex(index)
-}
-
-func (c *CommonTokenStream) Get(index int) Token {
- c.lazyInit()
-
- return c.tokens[index]
-}
-
-func (c *CommonTokenStream) Consume() {
- SkipEOFCheck := false
-
- if c.index >= 0 {
- if c.fetchedEOF {
- // The last token in tokens is EOF. Skip the check if p indexes any fetched.
- // token except the last.
- SkipEOFCheck = c.index < len(c.tokens)-1
- } else {
- // No EOF token in tokens. Skip the check if p indexes a fetched token.
- SkipEOFCheck = c.index < len(c.tokens)
- }
- } else {
- // Not yet initialized
- SkipEOFCheck = false
- }
-
- if !SkipEOFCheck && c.LA(1) == TokenEOF {
- panic("cannot consume EOF")
- }
-
- if c.Sync(c.index + 1) {
- c.index = c.adjustSeekIndex(c.index + 1)
- }
-}
-
-// Sync makes sure index i in tokens has a token and returns true if a token is
-// located at index i and otherwise false.
-func (c *CommonTokenStream) Sync(i int) bool {
- n := i - len(c.tokens) + 1 // How many more elements do we need?
-
- if n > 0 {
- fetched := c.fetch(n)
- return fetched >= n
- }
-
- return true
-}
-
-// fetch adds n elements to buffer and returns the actual number of elements
-// added to the buffer.
-func (c *CommonTokenStream) fetch(n int) int {
- if c.fetchedEOF {
- return 0
- }
-
- for i := 0; i < n; i++ {
- t := c.tokenSource.NextToken()
-
- t.SetTokenIndex(len(c.tokens))
- c.tokens = append(c.tokens, t)
-
- if t.GetTokenType() == TokenEOF {
- c.fetchedEOF = true
-
- return i + 1
- }
- }
-
- return n
-}
-
-// GetTokens gets all tokens from start to stop inclusive.
-func (c *CommonTokenStream) GetTokens(start int, stop int, types *IntervalSet) []Token {
- if start < 0 || stop < 0 {
- return nil
- }
-
- c.lazyInit()
-
- subset := make([]Token, 0)
-
- if stop >= len(c.tokens) {
- stop = len(c.tokens) - 1
- }
-
- for i := start; i < stop; i++ {
- t := c.tokens[i]
-
- if t.GetTokenType() == TokenEOF {
- break
- }
-
- if types == nil || types.contains(t.GetTokenType()) {
- subset = append(subset, t)
- }
- }
-
- return subset
-}
-
-func (c *CommonTokenStream) LA(i int) int {
- return c.LT(i).GetTokenType()
-}
-
-func (c *CommonTokenStream) lazyInit() {
- if c.index == -1 {
- c.setup()
- }
-}
-
-func (c *CommonTokenStream) setup() {
- c.Sync(0)
- c.index = c.adjustSeekIndex(0)
-}
-
-func (c *CommonTokenStream) GetTokenSource() TokenSource {
- return c.tokenSource
-}
-
-// SetTokenSource resets the c token stream by setting its token source.
-func (c *CommonTokenStream) SetTokenSource(tokenSource TokenSource) {
- c.tokenSource = tokenSource
- c.tokens = make([]Token, 0)
- c.index = -1
- c.fetchedEOF = false
-}
-
-// NextTokenOnChannel returns the index of the next token on channel given a
-// starting index. Returns i if tokens[i] is on channel. Returns -1 if there are
-// no tokens on channel between 'i' and [TokenEOF].
-func (c *CommonTokenStream) NextTokenOnChannel(i, _ int) int {
- c.Sync(i)
-
- if i >= len(c.tokens) {
- return -1
- }
-
- token := c.tokens[i]
-
- for token.GetChannel() != c.channel {
- if token.GetTokenType() == TokenEOF {
- return -1
- }
-
- i++
- c.Sync(i)
- token = c.tokens[i]
- }
-
- return i
-}
-
-// previousTokenOnChannel returns the index of the previous token on channel
-// given a starting index. Returns i if tokens[i] is on channel. Returns -1 if
-// there are no tokens on channel between i and 0.
-func (c *CommonTokenStream) previousTokenOnChannel(i, channel int) int {
- for i >= 0 && c.tokens[i].GetChannel() != channel {
- i--
- }
-
- return i
-}
-
-// GetHiddenTokensToRight collects all tokens on a specified channel to the
-// right of the current token up until we see a token on DEFAULT_TOKEN_CHANNEL
-// or EOF. If channel is -1, it finds any non-default channel token.
-func (c *CommonTokenStream) GetHiddenTokensToRight(tokenIndex, channel int) []Token {
- c.lazyInit()
-
- if tokenIndex < 0 || tokenIndex >= len(c.tokens) {
- panic(strconv.Itoa(tokenIndex) + " not in 0.." + strconv.Itoa(len(c.tokens)-1))
- }
-
- nextOnChannel := c.NextTokenOnChannel(tokenIndex+1, LexerDefaultTokenChannel)
- from := tokenIndex + 1
-
- // If no onChannel to the right, then nextOnChannel == -1, so set 'to' to the last token
- var to int
-
- if nextOnChannel == -1 {
- to = len(c.tokens) - 1
- } else {
- to = nextOnChannel
- }
-
- return c.filterForChannel(from, to, channel)
-}
-
-// GetHiddenTokensToLeft collects all tokens on channel to the left of the
-// current token until we see a token on DEFAULT_TOKEN_CHANNEL. If channel is
-// -1, it finds any non default channel token.
-func (c *CommonTokenStream) GetHiddenTokensToLeft(tokenIndex, channel int) []Token {
- c.lazyInit()
-
- if tokenIndex < 0 || tokenIndex >= len(c.tokens) {
- panic(strconv.Itoa(tokenIndex) + " not in 0.." + strconv.Itoa(len(c.tokens)-1))
- }
-
- prevOnChannel := c.previousTokenOnChannel(tokenIndex-1, LexerDefaultTokenChannel)
-
- if prevOnChannel == tokenIndex-1 {
- return nil
- }
-
- // If there are none on channel to the left and prevOnChannel == -1 then from = 0
- from := prevOnChannel + 1
- to := tokenIndex - 1
-
- return c.filterForChannel(from, to, channel)
-}
-
-func (c *CommonTokenStream) filterForChannel(left, right, channel int) []Token {
- hidden := make([]Token, 0)
-
- for i := left; i < right+1; i++ {
- t := c.tokens[i]
-
- if channel == -1 {
- if t.GetChannel() != LexerDefaultTokenChannel {
- hidden = append(hidden, t)
- }
- } else if t.GetChannel() == channel {
- hidden = append(hidden, t)
- }
- }
-
- if len(hidden) == 0 {
- return nil
- }
-
- return hidden
-}
-
-func (c *CommonTokenStream) GetSourceName() string {
- return c.tokenSource.GetSourceName()
-}
-
-func (c *CommonTokenStream) Size() int {
- return len(c.tokens)
-}
-
-func (c *CommonTokenStream) Index() int {
- return c.index
-}
-
-func (c *CommonTokenStream) GetAllText() string {
- c.Fill()
- return c.GetTextFromInterval(NewInterval(0, len(c.tokens)-1))
-}
-
-func (c *CommonTokenStream) GetTextFromTokens(start, end Token) string {
- if start == nil || end == nil {
- return ""
- }
-
- return c.GetTextFromInterval(NewInterval(start.GetTokenIndex(), end.GetTokenIndex()))
-}
-
-func (c *CommonTokenStream) GetTextFromRuleContext(interval RuleContext) string {
- return c.GetTextFromInterval(interval.GetSourceInterval())
-}
-
-func (c *CommonTokenStream) GetTextFromInterval(interval Interval) string {
- c.lazyInit()
- c.Sync(interval.Stop)
-
- start := interval.Start
- stop := interval.Stop
-
- if start < 0 || stop < 0 {
- return ""
- }
-
- if stop >= len(c.tokens) {
- stop = len(c.tokens) - 1
- }
-
- s := ""
-
- for i := start; i < stop+1; i++ {
- t := c.tokens[i]
-
- if t.GetTokenType() == TokenEOF {
- break
- }
-
- s += t.GetText()
- }
-
- return s
-}
-
-// Fill gets all tokens from the lexer until EOF.
-func (c *CommonTokenStream) Fill() {
- c.lazyInit()
-
- for c.fetch(1000) == 1000 {
- continue
- }
-}
-
-func (c *CommonTokenStream) adjustSeekIndex(i int) int {
- return c.NextTokenOnChannel(i, c.channel)
-}
-
-func (c *CommonTokenStream) LB(k int) Token {
- if k == 0 || c.index-k < 0 {
- return nil
- }
-
- i := c.index
- n := 1
-
- // Find k good tokens looking backward
- for n <= k {
- // Skip off-channel tokens
- i = c.previousTokenOnChannel(i-1, c.channel)
- n++
- }
-
- if i < 0 {
- return nil
- }
-
- return c.tokens[i]
-}
-
-func (c *CommonTokenStream) LT(k int) Token {
- c.lazyInit()
-
- if k == 0 {
- return nil
- }
-
- if k < 0 {
- return c.LB(-k)
- }
-
- i := c.index
- n := 1 // We know tokens[n] is valid
-
- // Find k good tokens
- for n < k {
- // Skip off-channel tokens, but make sure to not look past EOF
- if c.Sync(i + 1) {
- i = c.NextTokenOnChannel(i+1, c.channel)
- }
-
- n++
- }
-
- return c.tokens[i]
-}
-
-// getNumberOfOnChannelTokens counts EOF once.
-func (c *CommonTokenStream) getNumberOfOnChannelTokens() int {
- var n int
-
- c.Fill()
-
- for i := 0; i < len(c.tokens); i++ {
- t := c.tokens[i]
-
- if t.GetChannel() == c.channel {
- n++
- }
-
- if t.GetTokenType() == TokenEOF {
- break
- }
- }
-
- return n
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/comparators.go b/vendor/github.com/antlr4-go/antlr/v4/comparators.go
deleted file mode 100644
index 7467e9b43..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/comparators.go
+++ /dev/null
@@ -1,150 +0,0 @@
-package antlr
-
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-// This file contains all the implementations of custom comparators used for generic collections when the
-// Hash() and Equals() funcs supplied by the struct objects themselves need to be overridden. Normally, we would
-// put the comparators in the source file for the struct themselves, but given the organization of this code is
-// sorta kinda based upon the Java code, I found it confusing trying to find out which comparator was where and used by
-// which instantiation of a collection. For instance, an Array2DHashSet in the Java source, when used with ATNConfig
-// collections requires three different comparators depending on what the collection is being used for. Collecting - pun intended -
-// all the comparators here, makes it much easier to see which implementation of hash and equals is used by which collection.
-// It also makes it easy to verify that the Hash() and Equals() functions marry up with the Java implementations.
-
-// ObjEqComparator is the equivalent of the Java ObjectEqualityComparator, which is the default instance of
-// Equality comparator. We do not have inheritance in Go, only interfaces, so we use generics to enforce some
-// type safety and avoid having to implement this for every type that we want to perform comparison on.
-//
-// This comparator works by using the standard Hash() and Equals() methods of the type T that is being compared. Which
-// allows us to use it in any collection instance that does not require a special hash or equals implementation.
-type ObjEqComparator[T Collectable[T]] struct{}
-
-var (
- aStateEqInst = &ObjEqComparator[ATNState]{}
- aConfEqInst = &ObjEqComparator[*ATNConfig]{}
-
- // aConfCompInst is the comparator used for the ATNConfigSet for the configLookup cache
- aConfCompInst = &ATNConfigComparator[*ATNConfig]{}
- atnConfCompInst = &BaseATNConfigComparator[*ATNConfig]{}
- dfaStateEqInst = &ObjEqComparator[*DFAState]{}
- semctxEqInst = &ObjEqComparator[SemanticContext]{}
- atnAltCfgEqInst = &ATNAltConfigComparator[*ATNConfig]{}
- pContextEqInst = &ObjEqComparator[*PredictionContext]{}
-)
-
-// Equals2 delegates to the Equals() method of type T
-func (c *ObjEqComparator[T]) Equals2(o1, o2 T) bool {
- return o1.Equals(o2)
-}
-
-// Hash1 delegates to the Hash() method of type T
-func (c *ObjEqComparator[T]) Hash1(o T) int {
-
- return o.Hash()
-}
-
-type SemCComparator[T Collectable[T]] struct{}
-
-// ATNConfigComparator is used as the comparator for the configLookup field of an ATNConfigSet
-// and has a custom Equals() and Hash() implementation, because equality is not based on the
-// standard Hash() and Equals() methods of the ATNConfig type.
-type ATNConfigComparator[T Collectable[T]] struct {
-}
-
-// Equals2 is a custom comparator for ATNConfigs specifically for configLookup
-func (c *ATNConfigComparator[T]) Equals2(o1, o2 *ATNConfig) bool {
-
- // Same pointer, must be equal, even if both nil
- //
- if o1 == o2 {
- return true
-
- }
-
- // If either are nil, but not both, then the result is false
- //
- if o1 == nil || o2 == nil {
- return false
- }
-
- return o1.GetState().GetStateNumber() == o2.GetState().GetStateNumber() &&
- o1.GetAlt() == o2.GetAlt() &&
- o1.GetSemanticContext().Equals(o2.GetSemanticContext())
-}
-
-// Hash1 is custom hash implementation for ATNConfigs specifically for configLookup
-func (c *ATNConfigComparator[T]) Hash1(o *ATNConfig) int {
-
- hash := 7
- hash = 31*hash + o.GetState().GetStateNumber()
- hash = 31*hash + o.GetAlt()
- hash = 31*hash + o.GetSemanticContext().Hash()
- return hash
-}
-
-// ATNAltConfigComparator is used as the comparator for mapping configs to Alt Bitsets
-type ATNAltConfigComparator[T Collectable[T]] struct {
-}
-
-// Equals2 is a custom comparator for ATNConfigs specifically for configLookup
-func (c *ATNAltConfigComparator[T]) Equals2(o1, o2 *ATNConfig) bool {
-
- // Same pointer, must be equal, even if both nil
- //
- if o1 == o2 {
- return true
-
- }
-
- // If either are nil, but not both, then the result is false
- //
- if o1 == nil || o2 == nil {
- return false
- }
-
- return o1.GetState().GetStateNumber() == o2.GetState().GetStateNumber() &&
- o1.GetContext().Equals(o2.GetContext())
-}
-
-// Hash1 is custom hash implementation for ATNConfigs specifically for configLookup
-func (c *ATNAltConfigComparator[T]) Hash1(o *ATNConfig) int {
- h := murmurInit(7)
- h = murmurUpdate(h, o.GetState().GetStateNumber())
- h = murmurUpdate(h, o.GetContext().Hash())
- return murmurFinish(h, 2)
-}
-
-// BaseATNConfigComparator is used as the comparator for the configLookup field of a ATNConfigSet
-// and has a custom Equals() and Hash() implementation, because equality is not based on the
-// standard Hash() and Equals() methods of the ATNConfig type.
-type BaseATNConfigComparator[T Collectable[T]] struct {
-}
-
-// Equals2 is a custom comparator for ATNConfigs specifically for baseATNConfigSet
-func (c *BaseATNConfigComparator[T]) Equals2(o1, o2 *ATNConfig) bool {
-
- // Same pointer, must be equal, even if both nil
- //
- if o1 == o2 {
- return true
-
- }
-
- // If either are nil, but not both, then the result is false
- //
- if o1 == nil || o2 == nil {
- return false
- }
-
- return o1.GetState().GetStateNumber() == o2.GetState().GetStateNumber() &&
- o1.GetAlt() == o2.GetAlt() &&
- o1.GetSemanticContext().Equals(o2.GetSemanticContext())
-}
-
-// Hash1 is custom hash implementation for ATNConfigs specifically for configLookup, but in fact just
-// delegates to the standard Hash() method of the ATNConfig type.
-func (c *BaseATNConfigComparator[T]) Hash1(o *ATNConfig) int {
- return o.Hash()
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/configuration.go b/vendor/github.com/antlr4-go/antlr/v4/configuration.go
deleted file mode 100644
index c2b724514..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/configuration.go
+++ /dev/null
@@ -1,214 +0,0 @@
-package antlr
-
-type runtimeConfiguration struct {
- statsTraceStacks bool
- lexerATNSimulatorDebug bool
- lexerATNSimulatorDFADebug bool
- parserATNSimulatorDebug bool
- parserATNSimulatorTraceATNSim bool
- parserATNSimulatorDFADebug bool
- parserATNSimulatorRetryDebug bool
- lRLoopEntryBranchOpt bool
- memoryManager bool
-}
-
-// Global runtime configuration
-var runtimeConfig = runtimeConfiguration{
- lRLoopEntryBranchOpt: true,
-}
-
-type runtimeOption func(*runtimeConfiguration) error
-
-// ConfigureRuntime allows the runtime to be configured globally setting things like trace and statistics options.
-// It uses the functional options pattern for go. This is a package global function as it operates on the runtime
-// configuration regardless of the instantiation of anything higher up such as a parser or lexer. Generally this is
-// used for debugging/tracing/statistics options, which are usually used by the runtime maintainers (or rather the
-// only maintainer). However, it is possible that you might want to use this to set a global option concerning the
-// memory allocation type used by the runtime such as sync.Pool or not.
-//
-// The options are applied in the order they are passed in, so the last option will override any previous options.
-//
-// For example, if you want to turn on the collection create point stack flag to true, you can do:
-//
-// antlr.ConfigureRuntime(antlr.WithStatsTraceStacks(true))
-//
-// If you want to turn it off, you can do:
-//
-// antlr.ConfigureRuntime(antlr.WithStatsTraceStacks(false))
-func ConfigureRuntime(options ...runtimeOption) error {
- for _, option := range options {
- err := option(&runtimeConfig)
- if err != nil {
- return err
- }
- }
- return nil
-}
-
-// WithStatsTraceStacks sets the global flag indicating whether to collect stack traces at the create-point of
-// certain structs, such as collections, or the use point of certain methods such as Put().
-// Because this can be expensive, it is turned off by default. However, it
-// can be useful to track down exactly where memory is being created and used.
-//
-// Use:
-//
-// antlr.ConfigureRuntime(antlr.WithStatsTraceStacks(true))
-//
-// You can turn it off at any time using:
-//
-// antlr.ConfigureRuntime(antlr.WithStatsTraceStacks(false))
-func WithStatsTraceStacks(trace bool) runtimeOption {
- return func(config *runtimeConfiguration) error {
- config.statsTraceStacks = trace
- return nil
- }
-}
-
-// WithLexerATNSimulatorDebug sets the global flag indicating whether to log debug information from the lexer [ATN]
-// simulator. This is useful for debugging lexer issues by comparing the output with the Java runtime. Only useful
-// to the runtime maintainers.
-//
-// Use:
-//
-// antlr.ConfigureRuntime(antlr.WithLexerATNSimulatorDebug(true))
-//
-// You can turn it off at any time using:
-//
-// antlr.ConfigureRuntime(antlr.WithLexerATNSimulatorDebug(false))
-func WithLexerATNSimulatorDebug(debug bool) runtimeOption {
- return func(config *runtimeConfiguration) error {
- config.lexerATNSimulatorDebug = debug
- return nil
- }
-}
-
-// WithLexerATNSimulatorDFADebug sets the global flag indicating whether to log debug information from the lexer [ATN] [DFA]
-// simulator. This is useful for debugging lexer issues by comparing the output with the Java runtime. Only useful
-// to the runtime maintainers.
-//
-// Use:
-//
-// antlr.ConfigureRuntime(antlr.WithLexerATNSimulatorDFADebug(true))
-//
-// You can turn it off at any time using:
-//
-// antlr.ConfigureRuntime(antlr.WithLexerATNSimulatorDFADebug(false))
-func WithLexerATNSimulatorDFADebug(debug bool) runtimeOption {
- return func(config *runtimeConfiguration) error {
- config.lexerATNSimulatorDFADebug = debug
- return nil
- }
-}
-
-// WithParserATNSimulatorDebug sets the global flag indicating whether to log debug information from the parser [ATN]
-// simulator. This is useful for debugging parser issues by comparing the output with the Java runtime. Only useful
-// to the runtime maintainers.
-//
-// Use:
-//
-// antlr.ConfigureRuntime(antlr.WithParserATNSimulatorDebug(true))
-//
-// You can turn it off at any time using:
-//
-// antlr.ConfigureRuntime(antlr.WithParserATNSimulatorDebug(false))
-func WithParserATNSimulatorDebug(debug bool) runtimeOption {
- return func(config *runtimeConfiguration) error {
- config.parserATNSimulatorDebug = debug
- return nil
- }
-}
-
-// WithParserATNSimulatorTraceATNSim sets the global flag indicating whether to log trace information from the parser [ATN] simulator
-// [DFA]. This is useful for debugging parser issues by comparing the output with the Java runtime. Only useful
-// to the runtime maintainers.
-//
-// Use:
-//
-// antlr.ConfigureRuntime(antlr.WithParserATNSimulatorTraceATNSim(true))
-//
-// You can turn it off at any time using:
-//
-// antlr.ConfigureRuntime(antlr.WithParserATNSimulatorTraceATNSim(false))
-func WithParserATNSimulatorTraceATNSim(trace bool) runtimeOption {
- return func(config *runtimeConfiguration) error {
- config.parserATNSimulatorTraceATNSim = trace
- return nil
- }
-}
-
-// WithParserATNSimulatorDFADebug sets the global flag indicating whether to log debug information from the parser [ATN] [DFA]
-// simulator. This is useful for debugging parser issues by comparing the output with the Java runtime. Only useful
-// to the runtime maintainers.
-//
-// Use:
-//
-// antlr.ConfigureRuntime(antlr.WithParserATNSimulatorDFADebug(true))
-//
-// You can turn it off at any time using:
-//
-// antlr.ConfigureRuntime(antlr.WithParserATNSimulatorDFADebug(false))
-func WithParserATNSimulatorDFADebug(debug bool) runtimeOption {
- return func(config *runtimeConfiguration) error {
- config.parserATNSimulatorDFADebug = debug
- return nil
- }
-}
-
-// WithParserATNSimulatorRetryDebug sets the global flag indicating whether to log debug information from the parser [ATN] [DFA]
-// simulator when retrying a decision. This is useful for debugging parser issues by comparing the output with the Java runtime.
-// Only useful to the runtime maintainers.
-//
-// Use:
-//
-// antlr.ConfigureRuntime(antlr.WithParserATNSimulatorRetryDebug(true))
-//
-// You can turn it off at any time using:
-//
-// antlr.ConfigureRuntime(antlr.WithParserATNSimulatorRetryDebug(false))
-func WithParserATNSimulatorRetryDebug(debug bool) runtimeOption {
- return func(config *runtimeConfiguration) error {
- config.parserATNSimulatorRetryDebug = debug
- return nil
- }
-}
-
-// WithLRLoopEntryBranchOpt sets the global flag indicating whether let recursive loop operations should be
-// optimized or not. This is useful for debugging parser issues by comparing the output with the Java runtime.
-// It turns off the functionality of [canDropLoopEntryEdgeInLeftRecursiveRule] in [ParserATNSimulator].
-//
-// Note that default is to use this optimization.
-//
-// Use:
-//
-// antlr.ConfigureRuntime(antlr.WithLRLoopEntryBranchOpt(true))
-//
-// You can turn it off at any time using:
-//
-// antlr.ConfigureRuntime(antlr.WithLRLoopEntryBranchOpt(false))
-func WithLRLoopEntryBranchOpt(off bool) runtimeOption {
- return func(config *runtimeConfiguration) error {
- config.lRLoopEntryBranchOpt = off
- return nil
- }
-}
-
-// WithMemoryManager sets the global flag indicating whether to use the memory manager or not. This is useful
-// for poorly constructed grammars that create a lot of garbage. It turns on the functionality of [memoryManager], which
-// will intercept garbage collection and cause available memory to be reused. At the end of the day, this is no substitute
-// for fixing your grammar by ridding yourself of extreme ambiguity. BUt if you are just trying to reuse an opensource
-// grammar, this may help make it more practical.
-//
-// Note that default is to use normal Go memory allocation and not pool memory.
-//
-// Use:
-//
-// antlr.ConfigureRuntime(antlr.WithMemoryManager(true))
-//
-// Note that if you turn this on, you should probably leave it on. You should use only one memory strategy or the other
-// and should remember to nil out any references to the parser or lexer when you are done with them.
-func WithMemoryManager(use bool) runtimeOption {
- return func(config *runtimeConfiguration) error {
- config.memoryManager = use
- return nil
- }
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/dfa.go b/vendor/github.com/antlr4-go/antlr/v4/dfa.go
deleted file mode 100644
index 6b63eb158..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/dfa.go
+++ /dev/null
@@ -1,175 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-// DFA represents the Deterministic Finite Automaton used by the recognizer, including all the states it can
-// reach and the transitions between them.
-type DFA struct {
- // atnStartState is the ATN state in which this was created
- atnStartState DecisionState
-
- decision int
-
- // states is all the DFA states. Use Map to get the old state back; Set can only
- // indicate whether it is there. Go maps implement key hash collisions and so on and are very
- // good, but the DFAState is an object and can't be used directly as the key as it can in say Java
- // amd C#, whereby if the hashcode is the same for two objects, then Equals() is called against them
- // to see if they really are the same object. Hence, we have our own map storage.
- //
- states *JStore[*DFAState, *ObjEqComparator[*DFAState]]
-
- numstates int
-
- s0 *DFAState
-
- // precedenceDfa is the backing field for isPrecedenceDfa and setPrecedenceDfa.
- // True if the DFA is for a precedence decision and false otherwise.
- precedenceDfa bool
-}
-
-func NewDFA(atnStartState DecisionState, decision int) *DFA {
- dfa := &DFA{
- atnStartState: atnStartState,
- decision: decision,
- states: nil, // Lazy initialize
- }
- if s, ok := atnStartState.(*StarLoopEntryState); ok && s.precedenceRuleDecision {
- dfa.precedenceDfa = true
- dfa.s0 = NewDFAState(-1, NewATNConfigSet(false))
- dfa.s0.isAcceptState = false
- dfa.s0.requiresFullContext = false
- }
- return dfa
-}
-
-// getPrecedenceStartState gets the start state for the current precedence and
-// returns the start state corresponding to the specified precedence if a start
-// state exists for the specified precedence and nil otherwise. d must be a
-// precedence DFA. See also isPrecedenceDfa.
-func (d *DFA) getPrecedenceStartState(precedence int) *DFAState {
- if !d.getPrecedenceDfa() {
- panic("only precedence DFAs may contain a precedence start state")
- }
-
- // s0.edges is never nil for a precedence DFA
- if precedence < 0 || precedence >= len(d.getS0().getEdges()) {
- return nil
- }
-
- return d.getS0().getIthEdge(precedence)
-}
-
-// setPrecedenceStartState sets the start state for the current precedence. d
-// must be a precedence DFA. See also isPrecedenceDfa.
-func (d *DFA) setPrecedenceStartState(precedence int, startState *DFAState) {
- if !d.getPrecedenceDfa() {
- panic("only precedence DFAs may contain a precedence start state")
- }
-
- if precedence < 0 {
- return
- }
-
- // Synchronization on s0 here is ok. When the DFA is turned into a
- // precedence DFA, s0 will be initialized once and not updated again. s0.edges
- // is never nil for a precedence DFA.
- s0 := d.getS0()
- if precedence >= s0.numEdges() {
- edges := append(s0.getEdges(), make([]*DFAState, precedence+1-s0.numEdges())...)
- s0.setEdges(edges)
- d.setS0(s0)
- }
-
- s0.setIthEdge(precedence, startState)
-}
-
-func (d *DFA) getPrecedenceDfa() bool {
- return d.precedenceDfa
-}
-
-// setPrecedenceDfa sets whether d is a precedence DFA. If precedenceDfa differs
-// from the current DFA configuration, then d.states is cleared, the initial
-// state s0 is set to a new DFAState with an empty outgoing DFAState.edges to
-// store the start states for individual precedence values if precedenceDfa is
-// true or nil otherwise, and d.precedenceDfa is updated.
-func (d *DFA) setPrecedenceDfa(precedenceDfa bool) {
- if d.getPrecedenceDfa() != precedenceDfa {
- d.states = nil // Lazy initialize
- d.numstates = 0
-
- if precedenceDfa {
- precedenceState := NewDFAState(-1, NewATNConfigSet(false))
- precedenceState.setEdges(make([]*DFAState, 0))
- precedenceState.isAcceptState = false
- precedenceState.requiresFullContext = false
- d.setS0(precedenceState)
- } else {
- d.setS0(nil)
- }
-
- d.precedenceDfa = precedenceDfa
- }
-}
-
-// Len returns the number of states in d. We use this instead of accessing states directly so that we can implement lazy
-// instantiation of the states JMap.
-func (d *DFA) Len() int {
- if d.states == nil {
- return 0
- }
- return d.states.Len()
-}
-
-// Get returns a state that matches s if it is present in the DFA state set. We defer to this
-// function instead of accessing states directly so that we can implement lazy instantiation of the states JMap.
-func (d *DFA) Get(s *DFAState) (*DFAState, bool) {
- if d.states == nil {
- return nil, false
- }
- return d.states.Get(s)
-}
-
-func (d *DFA) Put(s *DFAState) (*DFAState, bool) {
- if d.states == nil {
- d.states = NewJStore[*DFAState, *ObjEqComparator[*DFAState]](dfaStateEqInst, DFAStateCollection, "DFA via DFA.Put")
- }
- return d.states.Put(s)
-}
-
-func (d *DFA) getS0() *DFAState {
- return d.s0
-}
-
-func (d *DFA) setS0(s *DFAState) {
- d.s0 = s
-}
-
-// sortedStates returns the states in d sorted by their state number, or an empty set if d.states is nil.
-func (d *DFA) sortedStates() []*DFAState {
- if d.states == nil {
- return []*DFAState{}
- }
- vs := d.states.SortedSlice(func(i, j *DFAState) bool {
- return i.stateNumber < j.stateNumber
- })
-
- return vs
-}
-
-func (d *DFA) String(literalNames []string, symbolicNames []string) string {
- if d.getS0() == nil {
- return ""
- }
-
- return NewDFASerializer(d, literalNames, symbolicNames).String()
-}
-
-func (d *DFA) ToLexerString() string {
- if d.getS0() == nil {
- return ""
- }
-
- return NewLexerDFASerializer(d).String()
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/dfa_serializer.go b/vendor/github.com/antlr4-go/antlr/v4/dfa_serializer.go
deleted file mode 100644
index 0e1100989..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/dfa_serializer.go
+++ /dev/null
@@ -1,158 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "fmt"
- "strconv"
- "strings"
-)
-
-// DFASerializer is a DFA walker that knows how to dump the DFA states to serialized
-// strings.
-type DFASerializer struct {
- dfa *DFA
- literalNames []string
- symbolicNames []string
-}
-
-func NewDFASerializer(dfa *DFA, literalNames, symbolicNames []string) *DFASerializer {
- if literalNames == nil {
- literalNames = make([]string, 0)
- }
-
- if symbolicNames == nil {
- symbolicNames = make([]string, 0)
- }
-
- return &DFASerializer{
- dfa: dfa,
- literalNames: literalNames,
- symbolicNames: symbolicNames,
- }
-}
-
-func (d *DFASerializer) String() string {
- if d.dfa.getS0() == nil {
- return ""
- }
-
- buf := ""
- states := d.dfa.sortedStates()
-
- for _, s := range states {
- if s.edges != nil {
- n := len(s.edges)
-
- for j := 0; j < n; j++ {
- t := s.edges[j]
-
- if t != nil && t.stateNumber != 0x7FFFFFFF {
- buf += d.GetStateString(s)
- buf += "-"
- buf += d.getEdgeLabel(j)
- buf += "->"
- buf += d.GetStateString(t)
- buf += "\n"
- }
- }
- }
- }
-
- if len(buf) == 0 {
- return ""
- }
-
- return buf
-}
-
-func (d *DFASerializer) getEdgeLabel(i int) string {
- if i == 0 {
- return "EOF"
- } else if d.literalNames != nil && i-1 < len(d.literalNames) {
- return d.literalNames[i-1]
- } else if d.symbolicNames != nil && i-1 < len(d.symbolicNames) {
- return d.symbolicNames[i-1]
- }
-
- return strconv.Itoa(i - 1)
-}
-
-func (d *DFASerializer) GetStateString(s *DFAState) string {
- var a, b string
-
- if s.isAcceptState {
- a = ":"
- }
-
- if s.requiresFullContext {
- b = "^"
- }
-
- baseStateStr := a + "s" + strconv.Itoa(s.stateNumber) + b
-
- if s.isAcceptState {
- if s.predicates != nil {
- return baseStateStr + "=>" + fmt.Sprint(s.predicates)
- }
-
- return baseStateStr + "=>" + fmt.Sprint(s.prediction)
- }
-
- return baseStateStr
-}
-
-type LexerDFASerializer struct {
- *DFASerializer
-}
-
-func NewLexerDFASerializer(dfa *DFA) *LexerDFASerializer {
- return &LexerDFASerializer{DFASerializer: NewDFASerializer(dfa, nil, nil)}
-}
-
-func (l *LexerDFASerializer) getEdgeLabel(i int) string {
- var sb strings.Builder
- sb.Grow(6)
- sb.WriteByte('\'')
- sb.WriteRune(rune(i))
- sb.WriteByte('\'')
- return sb.String()
-}
-
-func (l *LexerDFASerializer) String() string {
- if l.dfa.getS0() == nil {
- return ""
- }
-
- buf := ""
- states := l.dfa.sortedStates()
-
- for i := 0; i < len(states); i++ {
- s := states[i]
-
- if s.edges != nil {
- n := len(s.edges)
-
- for j := 0; j < n; j++ {
- t := s.edges[j]
-
- if t != nil && t.stateNumber != 0x7FFFFFFF {
- buf += l.GetStateString(s)
- buf += "-"
- buf += l.getEdgeLabel(j)
- buf += "->"
- buf += l.GetStateString(t)
- buf += "\n"
- }
- }
- }
- }
-
- if len(buf) == 0 {
- return ""
- }
-
- return buf
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/dfa_state.go b/vendor/github.com/antlr4-go/antlr/v4/dfa_state.go
deleted file mode 100644
index 654143074..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/dfa_state.go
+++ /dev/null
@@ -1,170 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "fmt"
-)
-
-// PredPrediction maps a predicate to a predicted alternative.
-type PredPrediction struct {
- alt int
- pred SemanticContext
-}
-
-func NewPredPrediction(pred SemanticContext, alt int) *PredPrediction {
- return &PredPrediction{alt: alt, pred: pred}
-}
-
-func (p *PredPrediction) String() string {
- return "(" + fmt.Sprint(p.pred) + ", " + fmt.Sprint(p.alt) + ")"
-}
-
-// DFAState represents a set of possible [ATN] configurations. As Aho, Sethi,
-// Ullman p. 117 says: "The DFA uses its state to keep track of all possible
-// states the ATN can be in after reading each input symbol. That is to say,
-// after reading input a1, a2,..an, the DFA is in a state that represents the
-// subset T of the states of the ATN that are reachable from the ATN's start
-// state along some path labeled a1a2..an."
-//
-// In conventional NFA-to-DFA conversion, therefore, the subset T would be a bitset representing the set of
-// states the [ATN] could be in. We need to track the alt predicted by each state
-// as well, however. More importantly, we need to maintain a stack of states,
-// tracking the closure operations as they jump from rule to rule, emulating
-// rule invocations (method calls). I have to add a stack to simulate the proper
-// lookahead sequences for the underlying LL grammar from which the ATN was
-// derived.
-//
-// I use a set of [ATNConfig] objects, not simple states. An [ATNConfig] is both a
-// state (ala normal conversion) and a [RuleContext] describing the chain of rules
-// (if any) followed to arrive at that state.
-//
-// A [DFAState] may have multiple references to a particular state, but with
-// different [ATN] contexts (with same or different alts) meaning that state was
-// reached via a different set of rule invocations.
-type DFAState struct {
- stateNumber int
- configs *ATNConfigSet
-
- // edges elements point to the target of the symbol. Shift up by 1 so (-1)
- // Token.EOF maps to the first element.
- edges []*DFAState
-
- isAcceptState bool
-
- // prediction is the 'ttype' we match or alt we predict if the state is 'accept'.
- // Set to ATN.INVALID_ALT_NUMBER when predicates != nil or
- // requiresFullContext.
- prediction int
-
- lexerActionExecutor *LexerActionExecutor
-
- // requiresFullContext indicates it was created during an SLL prediction that
- // discovered a conflict between the configurations in the state. Future
- // ParserATNSimulator.execATN invocations immediately jump doing
- // full context prediction if true.
- requiresFullContext bool
-
- // predicates is the predicates associated with the ATN configurations of the
- // DFA state during SLL parsing. When we have predicates, requiresFullContext
- // is false, since full context prediction evaluates predicates on-the-fly. If
- // d is
- // not nil, then prediction is ATN.INVALID_ALT_NUMBER.
- //
- // We only use these for non-requiresFullContext but conflicting states. That
- // means we know from the context (it's $ or we don't dip into outer context)
- // that it's an ambiguity not a conflict.
- //
- // This list is computed by
- // ParserATNSimulator.predicateDFAState.
- predicates []*PredPrediction
-}
-
-func NewDFAState(stateNumber int, configs *ATNConfigSet) *DFAState {
- if configs == nil {
- configs = NewATNConfigSet(false)
- }
-
- return &DFAState{configs: configs, stateNumber: stateNumber}
-}
-
-// GetAltSet gets the set of all alts mentioned by all ATN configurations in d.
-func (d *DFAState) GetAltSet() []int {
- var alts []int
-
- if d.configs != nil {
- for _, c := range d.configs.configs {
- alts = append(alts, c.GetAlt())
- }
- }
-
- if len(alts) == 0 {
- return nil
- }
-
- return alts
-}
-
-func (d *DFAState) getEdges() []*DFAState {
- return d.edges
-}
-
-func (d *DFAState) numEdges() int {
- return len(d.edges)
-}
-
-func (d *DFAState) getIthEdge(i int) *DFAState {
- return d.edges[i]
-}
-
-func (d *DFAState) setEdges(newEdges []*DFAState) {
- d.edges = newEdges
-}
-
-func (d *DFAState) setIthEdge(i int, edge *DFAState) {
- d.edges[i] = edge
-}
-
-func (d *DFAState) setPrediction(v int) {
- d.prediction = v
-}
-
-func (d *DFAState) String() string {
- var s string
- if d.isAcceptState {
- if d.predicates != nil {
- s = "=>" + fmt.Sprint(d.predicates)
- } else {
- s = "=>" + fmt.Sprint(d.prediction)
- }
- }
-
- return fmt.Sprintf("%d:%s%s", d.stateNumber, fmt.Sprint(d.configs), s)
-}
-
-func (d *DFAState) Hash() int {
- h := murmurInit(7)
- h = murmurUpdate(h, d.configs.Hash())
- return murmurFinish(h, 1)
-}
-
-// Equals returns whether d equals other. Two DFAStates are equal if their ATN
-// configuration sets are the same. This method is used to see if a state
-// already exists.
-//
-// Because the number of alternatives and number of ATN configurations are
-// finite, there is a finite number of DFA states that can be processed. This is
-// necessary to show that the algorithm terminates.
-//
-// Cannot test the DFA state numbers here because in
-// ParserATNSimulator.addDFAState we need to know if any other state exists that
-// has d exact set of ATN configurations. The stateNumber is irrelevant.
-func (d *DFAState) Equals(o Collectable[*DFAState]) bool {
- if d == o {
- return true
- }
-
- return d.configs.Equals(o.(*DFAState).configs)
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/diagnostic_error_listener.go b/vendor/github.com/antlr4-go/antlr/v4/diagnostic_error_listener.go
deleted file mode 100644
index bd2cd8bc3..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/diagnostic_error_listener.go
+++ /dev/null
@@ -1,110 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "strconv"
-)
-
-//
-// This implementation of {@link ANTLRErrorListener} can be used to identify
-// certain potential correctness and performance problems in grammars. "reports"
-// are made by calling {@link Parser//NotifyErrorListeners} with the appropriate
-// message.
-//
-//
-// - Ambiguities: These are cases where more than one path through the
-// grammar can Match the input.
-// - Weak context sensitivity: These are cases where full-context
-// prediction resolved an SLL conflict to a unique alternative which equaled the
-// minimum alternative of the SLL conflict.
-// - Strong (forced) context sensitivity: These are cases where the
-// full-context prediction resolved an SLL conflict to a unique alternative,
-// and the minimum alternative of the SLL conflict was found to not be
-// a truly viable alternative. Two-stage parsing cannot be used for inputs where
-// d situation occurs.
-//
-
-type DiagnosticErrorListener struct {
- *DefaultErrorListener
-
- exactOnly bool
-}
-
-//goland:noinspection GoUnusedExportedFunction
-func NewDiagnosticErrorListener(exactOnly bool) *DiagnosticErrorListener {
-
- n := new(DiagnosticErrorListener)
-
- // whether all ambiguities or only exact ambiguities are Reported.
- n.exactOnly = exactOnly
- return n
-}
-
-func (d *DiagnosticErrorListener) ReportAmbiguity(recognizer Parser, dfa *DFA, startIndex, stopIndex int, exact bool, ambigAlts *BitSet, configs *ATNConfigSet) {
- if d.exactOnly && !exact {
- return
- }
- msg := "reportAmbiguity d=" +
- d.getDecisionDescription(recognizer, dfa) +
- ": ambigAlts=" +
- d.getConflictingAlts(ambigAlts, configs).String() +
- ", input='" +
- recognizer.GetTokenStream().GetTextFromInterval(NewInterval(startIndex, stopIndex)) + "'"
- recognizer.NotifyErrorListeners(msg, nil, nil)
-}
-
-func (d *DiagnosticErrorListener) ReportAttemptingFullContext(recognizer Parser, dfa *DFA, startIndex, stopIndex int, _ *BitSet, _ *ATNConfigSet) {
-
- msg := "reportAttemptingFullContext d=" +
- d.getDecisionDescription(recognizer, dfa) +
- ", input='" +
- recognizer.GetTokenStream().GetTextFromInterval(NewInterval(startIndex, stopIndex)) + "'"
- recognizer.NotifyErrorListeners(msg, nil, nil)
-}
-
-func (d *DiagnosticErrorListener) ReportContextSensitivity(recognizer Parser, dfa *DFA, startIndex, stopIndex, _ int, _ *ATNConfigSet) {
- msg := "reportContextSensitivity d=" +
- d.getDecisionDescription(recognizer, dfa) +
- ", input='" +
- recognizer.GetTokenStream().GetTextFromInterval(NewInterval(startIndex, stopIndex)) + "'"
- recognizer.NotifyErrorListeners(msg, nil, nil)
-}
-
-func (d *DiagnosticErrorListener) getDecisionDescription(recognizer Parser, dfa *DFA) string {
- decision := dfa.decision
- ruleIndex := dfa.atnStartState.GetRuleIndex()
-
- ruleNames := recognizer.GetRuleNames()
- if ruleIndex < 0 || ruleIndex >= len(ruleNames) {
- return strconv.Itoa(decision)
- }
- ruleName := ruleNames[ruleIndex]
- if ruleName == "" {
- return strconv.Itoa(decision)
- }
- return strconv.Itoa(decision) + " (" + ruleName + ")"
-}
-
-// Computes the set of conflicting or ambiguous alternatives from a
-// configuration set, if that information was not already provided by the
-// parser.
-//
-// @param ReportedAlts The set of conflicting or ambiguous alternatives, as
-// Reported by the parser.
-// @param configs The conflicting or ambiguous configuration set.
-// @return Returns {@code ReportedAlts} if it is not {@code nil}, otherwise
-// returns the set of alternatives represented in {@code configs}.
-func (d *DiagnosticErrorListener) getConflictingAlts(ReportedAlts *BitSet, set *ATNConfigSet) *BitSet {
- if ReportedAlts != nil {
- return ReportedAlts
- }
- result := NewBitSet()
- for _, c := range set.configs {
- result.add(c.GetAlt())
- }
-
- return result
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/error_listener.go b/vendor/github.com/antlr4-go/antlr/v4/error_listener.go
deleted file mode 100644
index 21a021643..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/error_listener.go
+++ /dev/null
@@ -1,100 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "fmt"
- "os"
- "strconv"
-)
-
-// Provides an empty default implementation of {@link ANTLRErrorListener}. The
-// default implementation of each method does nothing, but can be overridden as
-// necessary.
-
-type ErrorListener interface {
- SyntaxError(recognizer Recognizer, offendingSymbol interface{}, line, column int, msg string, e RecognitionException)
- ReportAmbiguity(recognizer Parser, dfa *DFA, startIndex, stopIndex int, exact bool, ambigAlts *BitSet, configs *ATNConfigSet)
- ReportAttemptingFullContext(recognizer Parser, dfa *DFA, startIndex, stopIndex int, conflictingAlts *BitSet, configs *ATNConfigSet)
- ReportContextSensitivity(recognizer Parser, dfa *DFA, startIndex, stopIndex, prediction int, configs *ATNConfigSet)
-}
-
-type DefaultErrorListener struct {
-}
-
-//goland:noinspection GoUnusedExportedFunction
-func NewDefaultErrorListener() *DefaultErrorListener {
- return new(DefaultErrorListener)
-}
-
-func (d *DefaultErrorListener) SyntaxError(_ Recognizer, _ interface{}, _, _ int, _ string, _ RecognitionException) {
-}
-
-func (d *DefaultErrorListener) ReportAmbiguity(_ Parser, _ *DFA, _, _ int, _ bool, _ *BitSet, _ *ATNConfigSet) {
-}
-
-func (d *DefaultErrorListener) ReportAttemptingFullContext(_ Parser, _ *DFA, _, _ int, _ *BitSet, _ *ATNConfigSet) {
-}
-
-func (d *DefaultErrorListener) ReportContextSensitivity(_ Parser, _ *DFA, _, _, _ int, _ *ATNConfigSet) {
-}
-
-type ConsoleErrorListener struct {
- *DefaultErrorListener
-}
-
-func NewConsoleErrorListener() *ConsoleErrorListener {
- return new(ConsoleErrorListener)
-}
-
-// ConsoleErrorListenerINSTANCE provides a default instance of {@link ConsoleErrorListener}.
-var ConsoleErrorListenerINSTANCE = NewConsoleErrorListener()
-
-// SyntaxError prints messages to System.err containing the
-// values of line, charPositionInLine, and msg using
-// the following format:
-//
-// line :
-func (c *ConsoleErrorListener) SyntaxError(_ Recognizer, _ interface{}, line, column int, msg string, _ RecognitionException) {
- _, _ = fmt.Fprintln(os.Stderr, "line "+strconv.Itoa(line)+":"+strconv.Itoa(column)+" "+msg)
-}
-
-type ProxyErrorListener struct {
- *DefaultErrorListener
- delegates []ErrorListener
-}
-
-func NewProxyErrorListener(delegates []ErrorListener) *ProxyErrorListener {
- if delegates == nil {
- panic("delegates is not provided")
- }
- l := new(ProxyErrorListener)
- l.delegates = delegates
- return l
-}
-
-func (p *ProxyErrorListener) SyntaxError(recognizer Recognizer, offendingSymbol interface{}, line, column int, msg string, e RecognitionException) {
- for _, d := range p.delegates {
- d.SyntaxError(recognizer, offendingSymbol, line, column, msg, e)
- }
-}
-
-func (p *ProxyErrorListener) ReportAmbiguity(recognizer Parser, dfa *DFA, startIndex, stopIndex int, exact bool, ambigAlts *BitSet, configs *ATNConfigSet) {
- for _, d := range p.delegates {
- d.ReportAmbiguity(recognizer, dfa, startIndex, stopIndex, exact, ambigAlts, configs)
- }
-}
-
-func (p *ProxyErrorListener) ReportAttemptingFullContext(recognizer Parser, dfa *DFA, startIndex, stopIndex int, conflictingAlts *BitSet, configs *ATNConfigSet) {
- for _, d := range p.delegates {
- d.ReportAttemptingFullContext(recognizer, dfa, startIndex, stopIndex, conflictingAlts, configs)
- }
-}
-
-func (p *ProxyErrorListener) ReportContextSensitivity(recognizer Parser, dfa *DFA, startIndex, stopIndex, prediction int, configs *ATNConfigSet) {
- for _, d := range p.delegates {
- d.ReportContextSensitivity(recognizer, dfa, startIndex, stopIndex, prediction, configs)
- }
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/error_strategy.go b/vendor/github.com/antlr4-go/antlr/v4/error_strategy.go
deleted file mode 100644
index 9db2be1c7..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/error_strategy.go
+++ /dev/null
@@ -1,702 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "fmt"
- "reflect"
- "strconv"
- "strings"
-)
-
-type ErrorStrategy interface {
- reset(Parser)
- RecoverInline(Parser) Token
- Recover(Parser, RecognitionException)
- Sync(Parser)
- InErrorRecoveryMode(Parser) bool
- ReportError(Parser, RecognitionException)
- ReportMatch(Parser)
-}
-
-// DefaultErrorStrategy is the default implementation of ANTLRErrorStrategy used for
-// error reporting and recovery in ANTLR parsers.
-type DefaultErrorStrategy struct {
- errorRecoveryMode bool
- lastErrorIndex int
- lastErrorStates *IntervalSet
-}
-
-var _ ErrorStrategy = &DefaultErrorStrategy{}
-
-func NewDefaultErrorStrategy() *DefaultErrorStrategy {
-
- d := new(DefaultErrorStrategy)
-
- // Indicates whether the error strategy is currently "recovering from an
- // error". This is used to suppress Reporting multiple error messages while
- // attempting to recover from a detected syntax error.
- //
- // @see //InErrorRecoveryMode
- //
- d.errorRecoveryMode = false
-
- // The index into the input stream where the last error occurred.
- // This is used to prevent infinite loops where an error is found
- // but no token is consumed during recovery...another error is found,
- // ad nauseam. This is a failsafe mechanism to guarantee that at least
- // one token/tree node is consumed for two errors.
- //
- d.lastErrorIndex = -1
- d.lastErrorStates = nil
- return d
-}
-
-// The default implementation simply calls {@link //endErrorCondition} to
-// ensure that the handler is not in error recovery mode.
-func (d *DefaultErrorStrategy) reset(recognizer Parser) {
- d.endErrorCondition(recognizer)
-}
-
-// This method is called to enter error recovery mode when a recognition
-// exception is Reported.
-func (d *DefaultErrorStrategy) beginErrorCondition(_ Parser) {
- d.errorRecoveryMode = true
-}
-
-func (d *DefaultErrorStrategy) InErrorRecoveryMode(_ Parser) bool {
- return d.errorRecoveryMode
-}
-
-// This method is called to leave error recovery mode after recovering from
-// a recognition exception.
-func (d *DefaultErrorStrategy) endErrorCondition(_ Parser) {
- d.errorRecoveryMode = false
- d.lastErrorStates = nil
- d.lastErrorIndex = -1
-}
-
-// ReportMatch is the default implementation of error matching and simply calls endErrorCondition.
-func (d *DefaultErrorStrategy) ReportMatch(recognizer Parser) {
- d.endErrorCondition(recognizer)
-}
-
-// ReportError is the default implementation of error reporting.
-// It returns immediately if the handler is already
-// in error recovery mode. Otherwise, it calls [beginErrorCondition]
-// and dispatches the Reporting task based on the runtime type of e
-// according to the following table.
-//
-// [NoViableAltException] : Dispatches the call to [ReportNoViableAlternative]
-// [InputMisMatchException] : Dispatches the call to [ReportInputMisMatch]
-// [FailedPredicateException] : Dispatches the call to [ReportFailedPredicate]
-// All other types : Calls [NotifyErrorListeners] to Report the exception
-func (d *DefaultErrorStrategy) ReportError(recognizer Parser, e RecognitionException) {
- // if we've already Reported an error and have not Matched a token
- // yet successfully, don't Report any errors.
- if d.InErrorRecoveryMode(recognizer) {
- return // don't Report spurious errors
- }
- d.beginErrorCondition(recognizer)
-
- switch t := e.(type) {
- default:
- fmt.Println("unknown recognition error type: " + reflect.TypeOf(e).Name())
- // fmt.Println(e.stack)
- recognizer.NotifyErrorListeners(e.GetMessage(), e.GetOffendingToken(), e)
- case *NoViableAltException:
- d.ReportNoViableAlternative(recognizer, t)
- case *InputMisMatchException:
- d.ReportInputMisMatch(recognizer, t)
- case *FailedPredicateException:
- d.ReportFailedPredicate(recognizer, t)
- }
-}
-
-// Recover is the default recovery implementation.
-// It reSynchronizes the parser by consuming tokens until we find one in the reSynchronization set -
-// loosely the set of tokens that can follow the current rule.
-func (d *DefaultErrorStrategy) Recover(recognizer Parser, _ RecognitionException) {
-
- if d.lastErrorIndex == recognizer.GetInputStream().Index() &&
- d.lastErrorStates != nil && d.lastErrorStates.contains(recognizer.GetState()) {
- // uh oh, another error at same token index and previously-Visited
- // state in ATN must be a case where LT(1) is in the recovery
- // token set so nothing got consumed. Consume a single token
- // at least to prevent an infinite loop d is a failsafe.
- recognizer.Consume()
- }
- d.lastErrorIndex = recognizer.GetInputStream().Index()
- if d.lastErrorStates == nil {
- d.lastErrorStates = NewIntervalSet()
- }
- d.lastErrorStates.addOne(recognizer.GetState())
- followSet := d.GetErrorRecoverySet(recognizer)
- d.consumeUntil(recognizer, followSet)
-}
-
-// Sync is the default implementation of error strategy synchronization.
-//
-// This Sync makes sure that the current lookahead symbol is consistent with what were expecting
-// at this point in the [ATN]. You can call this anytime but ANTLR only
-// generates code to check before sub-rules/loops and each iteration.
-//
-// Implements [Jim Idle]'s magic Sync mechanism in closures and optional
-// sub-rules. E.g.:
-//
-// a : Sync ( stuff Sync )*
-// Sync : {consume to what can follow Sync}
-//
-// At the start of a sub-rule upon error, Sync performs single
-// token deletion, if possible. If it can't do that, it bails on the current
-// rule and uses the default error recovery, which consumes until the
-// reSynchronization set of the current rule.
-//
-// If the sub-rule is optional
-//
-// ({@code (...)?}, {@code (...)*},
-//
-// or a block with an empty alternative), then the expected set includes what follows
-// the sub-rule.
-//
-// During loop iteration, it consumes until it sees a token that can start a
-// sub-rule or what follows loop. Yes, that is pretty aggressive. We opt to
-// stay in the loop as long as possible.
-//
-// # Origins
-//
-// Previous versions of ANTLR did a poor job of their recovery within loops.
-// A single mismatch token or missing token would force the parser to bail
-// out of the entire rules surrounding the loop. So, for rule:
-//
-// classfunc : 'class' ID '{' member* '}'
-//
-// input with an extra token between members would force the parser to
-// consume until it found the next class definition rather than the next
-// member definition of the current class.
-//
-// This functionality cost a bit of effort because the parser has to
-// compare the token set at the start of the loop and at each iteration. If for
-// some reason speed is suffering for you, you can turn off this
-// functionality by simply overriding this method as empty:
-//
-// { }
-//
-// [Jim Idle]: https://github.com/jimidle
-func (d *DefaultErrorStrategy) Sync(recognizer Parser) {
- // If already recovering, don't try to Sync
- if d.InErrorRecoveryMode(recognizer) {
- return
- }
-
- s := recognizer.GetInterpreter().atn.states[recognizer.GetState()]
- la := recognizer.GetTokenStream().LA(1)
-
- // try cheaper subset first might get lucky. seems to shave a wee bit off
- nextTokens := recognizer.GetATN().NextTokens(s, nil)
- if nextTokens.contains(TokenEpsilon) || nextTokens.contains(la) {
- return
- }
-
- switch s.GetStateType() {
- case ATNStateBlockStart, ATNStateStarBlockStart, ATNStatePlusBlockStart, ATNStateStarLoopEntry:
- // Report error and recover if possible
- if d.SingleTokenDeletion(recognizer) != nil {
- return
- }
- recognizer.SetError(NewInputMisMatchException(recognizer))
- case ATNStatePlusLoopBack, ATNStateStarLoopBack:
- d.ReportUnwantedToken(recognizer)
- expecting := NewIntervalSet()
- expecting.addSet(recognizer.GetExpectedTokens())
- whatFollowsLoopIterationOrRule := expecting.addSet(d.GetErrorRecoverySet(recognizer))
- d.consumeUntil(recognizer, whatFollowsLoopIterationOrRule)
- default:
- // do nothing if we can't identify the exact kind of ATN state
- }
-}
-
-// ReportNoViableAlternative is called by [ReportError] when the exception is a [NoViableAltException].
-//
-// See also [ReportError]
-func (d *DefaultErrorStrategy) ReportNoViableAlternative(recognizer Parser, e *NoViableAltException) {
- tokens := recognizer.GetTokenStream()
- var input string
- if tokens != nil {
- if e.startToken.GetTokenType() == TokenEOF {
- input = ""
- } else {
- input = tokens.GetTextFromTokens(e.startToken, e.offendingToken)
- }
- } else {
- input = ""
- }
- msg := "no viable alternative at input " + d.escapeWSAndQuote(input)
- recognizer.NotifyErrorListeners(msg, e.offendingToken, e)
-}
-
-// ReportInputMisMatch is called by [ReportError] when the exception is an [InputMisMatchException]
-//
-// See also: [ReportError]
-func (d *DefaultErrorStrategy) ReportInputMisMatch(recognizer Parser, e *InputMisMatchException) {
- msg := "mismatched input " + d.GetTokenErrorDisplay(e.offendingToken) +
- " expecting " + e.getExpectedTokens().StringVerbose(recognizer.GetLiteralNames(), recognizer.GetSymbolicNames(), false)
- recognizer.NotifyErrorListeners(msg, e.offendingToken, e)
-}
-
-// ReportFailedPredicate is called by [ReportError] when the exception is a [FailedPredicateException].
-//
-// See also: [ReportError]
-func (d *DefaultErrorStrategy) ReportFailedPredicate(recognizer Parser, e *FailedPredicateException) {
- ruleName := recognizer.GetRuleNames()[recognizer.GetParserRuleContext().GetRuleIndex()]
- msg := "rule " + ruleName + " " + e.message
- recognizer.NotifyErrorListeners(msg, e.offendingToken, e)
-}
-
-// ReportUnwantedToken is called to report a syntax error that requires the removal
-// of a token from the input stream. At the time d method is called, the
-// erroneous symbol is the current LT(1) symbol and has not yet been
-// removed from the input stream. When this method returns,
-// recognizer is in error recovery mode.
-//
-// This method is called when singleTokenDeletion identifies
-// single-token deletion as a viable recovery strategy for a mismatched
-// input error.
-//
-// The default implementation simply returns if the handler is already in
-// error recovery mode. Otherwise, it calls beginErrorCondition to
-// enter error recovery mode, followed by calling
-// [NotifyErrorListeners]
-func (d *DefaultErrorStrategy) ReportUnwantedToken(recognizer Parser) {
- if d.InErrorRecoveryMode(recognizer) {
- return
- }
- d.beginErrorCondition(recognizer)
- t := recognizer.GetCurrentToken()
- tokenName := d.GetTokenErrorDisplay(t)
- expecting := d.GetExpectedTokens(recognizer)
- msg := "extraneous input " + tokenName + " expecting " +
- expecting.StringVerbose(recognizer.GetLiteralNames(), recognizer.GetSymbolicNames(), false)
- recognizer.NotifyErrorListeners(msg, t, nil)
-}
-
-// ReportMissingToken is called to report a syntax error which requires the
-// insertion of a missing token into the input stream. At the time this
-// method is called, the missing token has not yet been inserted. When this
-// method returns, recognizer is in error recovery mode.
-//
-// This method is called when singleTokenInsertion identifies
-// single-token insertion as a viable recovery strategy for a mismatched
-// input error.
-//
-// The default implementation simply returns if the handler is already in
-// error recovery mode. Otherwise, it calls beginErrorCondition to
-// enter error recovery mode, followed by calling [NotifyErrorListeners]
-func (d *DefaultErrorStrategy) ReportMissingToken(recognizer Parser) {
- if d.InErrorRecoveryMode(recognizer) {
- return
- }
- d.beginErrorCondition(recognizer)
- t := recognizer.GetCurrentToken()
- expecting := d.GetExpectedTokens(recognizer)
- msg := "missing " + expecting.StringVerbose(recognizer.GetLiteralNames(), recognizer.GetSymbolicNames(), false) +
- " at " + d.GetTokenErrorDisplay(t)
- recognizer.NotifyErrorListeners(msg, t, nil)
-}
-
-// The RecoverInline default implementation attempts to recover from the mismatched input
-// by using single token insertion and deletion as described below. If the
-// recovery attempt fails, this method panics with [InputMisMatchException}.
-// TODO: Not sure that panic() is the right thing to do here - JI
-//
-// # EXTRA TOKEN (single token deletion)
-//
-// LA(1) is not what we are looking for. If LA(2) has the
-// right token, however, then assume LA(1) is some extra spurious
-// token and delete it. Then consume and return the next token (which was
-// the LA(2) token) as the successful result of the Match operation.
-//
-// # This recovery strategy is implemented by singleTokenDeletion
-//
-// # MISSING TOKEN (single token insertion)
-//
-// If current token -at LA(1) - is consistent with what could come
-// after the expected LA(1) token, then assume the token is missing
-// and use the parser's [TokenFactory] to create it on the fly. The
-// “insertion” is performed by returning the created token as the successful
-// result of the Match operation.
-//
-// This recovery strategy is implemented by [SingleTokenInsertion].
-//
-// # Example
-//
-// For example, Input i=(3 is clearly missing the ')'. When
-// the parser returns from the nested call to expr, it will have
-// call the chain:
-//
-// stat → expr → atom
-//
-// and it will be trying to Match the ')' at this point in the
-// derivation:
-//
-// : ID '=' '(' INT ')' ('+' atom)* ';'
-// ^
-//
-// The attempt to [Match] ')' will fail when it sees ';' and
-// call [RecoverInline]. To recover, it sees that LA(1)==';'
-// is in the set of tokens that can follow the ')' token reference
-// in rule atom. It can assume that you forgot the ')'.
-func (d *DefaultErrorStrategy) RecoverInline(recognizer Parser) Token {
- // SINGLE TOKEN DELETION
- MatchedSymbol := d.SingleTokenDeletion(recognizer)
- if MatchedSymbol != nil {
- // we have deleted the extra token.
- // now, move past ttype token as if all were ok
- recognizer.Consume()
- return MatchedSymbol
- }
- // SINGLE TOKEN INSERTION
- if d.SingleTokenInsertion(recognizer) {
- return d.GetMissingSymbol(recognizer)
- }
- // even that didn't work must panic the exception
- recognizer.SetError(NewInputMisMatchException(recognizer))
- return nil
-}
-
-// SingleTokenInsertion implements the single-token insertion inline error recovery
-// strategy. It is called by [RecoverInline] if the single-token
-// deletion strategy fails to recover from the mismatched input. If this
-// method returns {@code true}, {@code recognizer} will be in error recovery
-// mode.
-//
-// This method determines whether single-token insertion is viable by
-// checking if the LA(1) input symbol could be successfully Matched
-// if it were instead the LA(2) symbol. If this method returns
-// {@code true}, the caller is responsible for creating and inserting a
-// token with the correct type to produce this behavior.
-//
-// This func returns true if single-token insertion is a viable recovery
-// strategy for the current mismatched input.
-func (d *DefaultErrorStrategy) SingleTokenInsertion(recognizer Parser) bool {
- currentSymbolType := recognizer.GetTokenStream().LA(1)
- // if current token is consistent with what could come after current
- // ATN state, then we know we're missing a token error recovery
- // is free to conjure up and insert the missing token
- atn := recognizer.GetInterpreter().atn
- currentState := atn.states[recognizer.GetState()]
- next := currentState.GetTransitions()[0].getTarget()
- expectingAtLL2 := atn.NextTokens(next, recognizer.GetParserRuleContext())
- if expectingAtLL2.contains(currentSymbolType) {
- d.ReportMissingToken(recognizer)
- return true
- }
-
- return false
-}
-
-// SingleTokenDeletion implements the single-token deletion inline error recovery
-// strategy. It is called by [RecoverInline] to attempt to recover
-// from mismatched input. If this method returns nil, the parser and error
-// handler state will not have changed. If this method returns non-nil,
-// recognizer will not be in error recovery mode since the
-// returned token was a successful Match.
-//
-// If the single-token deletion is successful, this method calls
-// [ReportUnwantedToken] to Report the error, followed by
-// [Consume] to actually “delete” the extraneous token. Then,
-// before returning, [ReportMatch] is called to signal a successful
-// Match.
-//
-// The func returns the successfully Matched [Token] instance if single-token
-// deletion successfully recovers from the mismatched input, otherwise nil.
-func (d *DefaultErrorStrategy) SingleTokenDeletion(recognizer Parser) Token {
- NextTokenType := recognizer.GetTokenStream().LA(2)
- expecting := d.GetExpectedTokens(recognizer)
- if expecting.contains(NextTokenType) {
- d.ReportUnwantedToken(recognizer)
- // print("recoverFromMisMatchedToken deleting " \
- // + str(recognizer.GetTokenStream().LT(1)) \
- // + " since " + str(recognizer.GetTokenStream().LT(2)) \
- // + " is what we want", file=sys.stderr)
- recognizer.Consume() // simply delete extra token
- // we want to return the token we're actually Matching
- MatchedSymbol := recognizer.GetCurrentToken()
- d.ReportMatch(recognizer) // we know current token is correct
- return MatchedSymbol
- }
-
- return nil
-}
-
-// GetMissingSymbol conjures up a missing token during error recovery.
-//
-// The recognizer attempts to recover from single missing
-// symbols. But, actions might refer to that missing symbol.
-// For example:
-//
-// x=ID {f($x)}.
-//
-// The action clearly assumes
-// that there has been an identifier Matched previously and that
-// $x points at that token. If that token is missing, but
-// the next token in the stream is what we want we assume that
-// this token is missing, and we keep going. Because we
-// have to return some token to replace the missing token,
-// we have to conjure one up. This method gives the user control
-// over the tokens returned for missing tokens. Mostly,
-// you will want to create something special for identifier
-// tokens. For literals such as '{' and ',', the default
-// action in the parser or tree parser works. It simply creates
-// a [CommonToken] of the appropriate type. The text will be the token name.
-// If you need to change which tokens must be created by the lexer,
-// override this method to create the appropriate tokens.
-func (d *DefaultErrorStrategy) GetMissingSymbol(recognizer Parser) Token {
- currentSymbol := recognizer.GetCurrentToken()
- expecting := d.GetExpectedTokens(recognizer)
- expectedTokenType := expecting.first()
- var tokenText string
-
- if expectedTokenType == TokenEOF {
- tokenText = ""
- } else {
- ln := recognizer.GetLiteralNames()
- if expectedTokenType > 0 && expectedTokenType < len(ln) {
- tokenText = ""
- } else {
- tokenText = "" // TODO: matches the JS impl
- }
- }
- current := currentSymbol
- lookback := recognizer.GetTokenStream().LT(-1)
- if current.GetTokenType() == TokenEOF && lookback != nil {
- current = lookback
- }
-
- tf := recognizer.GetTokenFactory()
-
- return tf.Create(current.GetSource(), expectedTokenType, tokenText, TokenDefaultChannel, -1, -1, current.GetLine(), current.GetColumn())
-}
-
-func (d *DefaultErrorStrategy) GetExpectedTokens(recognizer Parser) *IntervalSet {
- return recognizer.GetExpectedTokens()
-}
-
-// GetTokenErrorDisplay determines how a token should be displayed in an error message.
-// The default is to display just the text, but during development you might
-// want to have a lot of information spit out. Override this func in that case
-// to use t.String() (which, for [CommonToken], dumps everything about
-// the token). This is better than forcing you to override a method in
-// your token objects because you don't have to go modify your lexer
-// so that it creates a new type.
-func (d *DefaultErrorStrategy) GetTokenErrorDisplay(t Token) string {
- if t == nil {
- return ""
- }
- s := t.GetText()
- if s == "" {
- if t.GetTokenType() == TokenEOF {
- s = ""
- } else {
- s = "<" + strconv.Itoa(t.GetTokenType()) + ">"
- }
- }
- return d.escapeWSAndQuote(s)
-}
-
-func (d *DefaultErrorStrategy) escapeWSAndQuote(s string) string {
- s = strings.Replace(s, "\t", "\\t", -1)
- s = strings.Replace(s, "\n", "\\n", -1)
- s = strings.Replace(s, "\r", "\\r", -1)
- return "'" + s + "'"
-}
-
-// GetErrorRecoverySet computes the error recovery set for the current rule. During
-// rule invocation, the parser pushes the set of tokens that can
-// follow that rule reference on the stack. This amounts to
-// computing FIRST of what follows the rule reference in the
-// enclosing rule. See LinearApproximator.FIRST().
-//
-// This local follow set only includes tokens
-// from within the rule i.e., the FIRST computation done by
-// ANTLR stops at the end of a rule.
-//
-// # Example
-//
-// When you find a "no viable alt exception", the input is not
-// consistent with any of the alternatives for rule r. The best
-// thing to do is to consume tokens until you see something that
-// can legally follow a call to r or any rule that called r.
-// You don't want the exact set of viable next tokens because the
-// input might just be missing a token--you might consume the
-// rest of the input looking for one of the missing tokens.
-//
-// Consider the grammar:
-//
-// a : '[' b ']'
-// | '(' b ')'
-// ;
-//
-// b : c '^' INT
-// ;
-//
-// c : ID
-// | INT
-// ;
-//
-// At each rule invocation, the set of tokens that could follow
-// that rule is pushed on a stack. Here are the various
-// context-sensitive follow sets:
-//
-// FOLLOW(b1_in_a) = FIRST(']') = ']'
-// FOLLOW(b2_in_a) = FIRST(')') = ')'
-// FOLLOW(c_in_b) = FIRST('^') = '^'
-//
-// Upon erroneous input “[]”, the call chain is
-//
-// a → b → c
-//
-// and, hence, the follow context stack is:
-//
-// Depth Follow set Start of rule execution
-// 0 a (from main())
-// 1 ']' b
-// 2 '^' c
-//
-// Notice that ')' is not included, because b would have to have
-// been called from a different context in rule a for ')' to be
-// included.
-//
-// For error recovery, we cannot consider FOLLOW(c)
-// (context-sensitive or otherwise). We need the combined set of
-// all context-sensitive FOLLOW sets - the set of all tokens that
-// could follow any reference in the call chain. We need to
-// reSync to one of those tokens. Note that FOLLOW(c)='^' and if
-// we reSync'd to that token, we'd consume until EOF. We need to
-// Sync to context-sensitive FOLLOWs for a, b, and c:
-//
-// {']','^'}
-//
-// In this case, for input "[]", LA(1) is ']' and in the set, so we would
-// not consume anything. After printing an error, rule c would
-// return normally. Rule b would not find the required '^' though.
-// At this point, it gets a mismatched token error and panics an
-// exception (since LA(1) is not in the viable following token
-// set). The rule exception handler tries to recover, but finds
-// the same recovery set and doesn't consume anything. Rule b
-// exits normally returning to rule a. Now it finds the ']' (and
-// with the successful Match exits errorRecovery mode).
-//
-// So, you can see that the parser walks up the call chain looking
-// for the token that was a member of the recovery set.
-//
-// Errors are not generated in errorRecovery mode.
-//
-// ANTLR's error recovery mechanism is based upon original ideas:
-//
-// [Algorithms + Data Structures = Programs] by Niklaus Wirth and
-// [A note on error recovery in recursive descent parsers].
-//
-// Later, Josef Grosch had some good ideas in [Efficient and Comfortable Error Recovery in Recursive Descent
-// Parsers]
-//
-// Like Grosch I implement context-sensitive FOLLOW sets that are combined at run-time upon error to avoid overhead
-// during parsing. Later, the runtime Sync was improved for loops/sub-rules see [Sync] docs
-//
-// [A note on error recovery in recursive descent parsers]: http://portal.acm.org/citation.cfm?id=947902.947905
-// [Algorithms + Data Structures = Programs]: https://t.ly/5QzgE
-// [Efficient and Comfortable Error Recovery in Recursive Descent Parsers]: ftp://www.cocolab.com/products/cocktail/doca4.ps/ell.ps.zip
-func (d *DefaultErrorStrategy) GetErrorRecoverySet(recognizer Parser) *IntervalSet {
- atn := recognizer.GetInterpreter().atn
- ctx := recognizer.GetParserRuleContext()
- recoverSet := NewIntervalSet()
- for ctx != nil && ctx.GetInvokingState() >= 0 {
- // compute what follows who invoked us
- invokingState := atn.states[ctx.GetInvokingState()]
- rt := invokingState.GetTransitions()[0]
- follow := atn.NextTokens(rt.(*RuleTransition).followState, nil)
- recoverSet.addSet(follow)
- ctx = ctx.GetParent().(ParserRuleContext)
- }
- recoverSet.removeOne(TokenEpsilon)
- return recoverSet
-}
-
-// Consume tokens until one Matches the given token set.//
-func (d *DefaultErrorStrategy) consumeUntil(recognizer Parser, set *IntervalSet) {
- ttype := recognizer.GetTokenStream().LA(1)
- for ttype != TokenEOF && !set.contains(ttype) {
- recognizer.Consume()
- ttype = recognizer.GetTokenStream().LA(1)
- }
-}
-
-// The BailErrorStrategy implementation of ANTLRErrorStrategy responds to syntax errors
-// by immediately canceling the parse operation with a
-// [ParseCancellationException]. The implementation ensures that the
-// [ParserRuleContext//exception] field is set for all parse tree nodes
-// that were not completed prior to encountering the error.
-//
-// This error strategy is useful in the following scenarios.
-//
-// - Two-stage parsing: This error strategy allows the first
-// stage of two-stage parsing to immediately terminate if an error is
-// encountered, and immediately fall back to the second stage. In addition to
-// avoiding wasted work by attempting to recover from errors here, the empty
-// implementation of [BailErrorStrategy.Sync] improves the performance of
-// the first stage.
-//
-// - Silent validation: When syntax errors are not being
-// Reported or logged, and the parse result is simply ignored if errors occur,
-// the [BailErrorStrategy] avoids wasting work on recovering from errors
-// when the result will be ignored either way.
-//
-// myparser.SetErrorHandler(NewBailErrorStrategy())
-//
-// See also: [Parser.SetErrorHandler(ANTLRErrorStrategy)]
-type BailErrorStrategy struct {
- *DefaultErrorStrategy
-}
-
-var _ ErrorStrategy = &BailErrorStrategy{}
-
-//goland:noinspection GoUnusedExportedFunction
-func NewBailErrorStrategy() *BailErrorStrategy {
-
- b := new(BailErrorStrategy)
-
- b.DefaultErrorStrategy = NewDefaultErrorStrategy()
-
- return b
-}
-
-// Recover Instead of recovering from exception e, re-panic it wrapped
-// in a [ParseCancellationException] so it is not caught by the
-// rule func catches. Use Exception.GetCause() to get the
-// original [RecognitionException].
-func (b *BailErrorStrategy) Recover(recognizer Parser, e RecognitionException) {
- context := recognizer.GetParserRuleContext()
- for context != nil {
- context.SetException(e)
- if parent, ok := context.GetParent().(ParserRuleContext); ok {
- context = parent
- } else {
- context = nil
- }
- }
- recognizer.SetError(NewParseCancellationException()) // TODO: we don't emit e properly
-}
-
-// RecoverInline makes sure we don't attempt to recover inline if the parser
-// successfully recovers, it won't panic an exception.
-func (b *BailErrorStrategy) RecoverInline(recognizer Parser) Token {
- b.Recover(recognizer, NewInputMisMatchException(recognizer))
-
- return nil
-}
-
-// Sync makes sure we don't attempt to recover from problems in sub-rules.
-func (b *BailErrorStrategy) Sync(_ Parser) {
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/errors.go b/vendor/github.com/antlr4-go/antlr/v4/errors.go
deleted file mode 100644
index 8f0f2f601..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/errors.go
+++ /dev/null
@@ -1,259 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-// The root of the ANTLR exception hierarchy. In general, ANTLR tracks just
-// 3 kinds of errors: prediction errors, failed predicate errors, and
-// mismatched input errors. In each case, the parser knows where it is
-// in the input, where it is in the ATN, the rule invocation stack,
-// and what kind of problem occurred.
-
-type RecognitionException interface {
- GetOffendingToken() Token
- GetMessage() string
- GetInputStream() IntStream
-}
-
-type BaseRecognitionException struct {
- message string
- recognizer Recognizer
- offendingToken Token
- offendingState int
- ctx RuleContext
- input IntStream
-}
-
-func NewBaseRecognitionException(message string, recognizer Recognizer, input IntStream, ctx RuleContext) *BaseRecognitionException {
-
- // todo
- // Error.call(this)
- //
- // if (!!Error.captureStackTrace) {
- // Error.captureStackTrace(this, RecognitionException)
- // } else {
- // stack := NewError().stack
- // }
- // TODO: may be able to use - "runtime" func Stack(buf []byte, all bool) int
-
- t := new(BaseRecognitionException)
-
- t.message = message
- t.recognizer = recognizer
- t.input = input
- t.ctx = ctx
-
- // The current Token when an error occurred. Since not all streams
- // support accessing symbols by index, we have to track the {@link Token}
- // instance itself.
- //
- t.offendingToken = nil
-
- // Get the ATN state number the parser was in at the time the error
- // occurred. For NoViableAltException and LexerNoViableAltException exceptions, this is the
- // DecisionState number. For others, it is the state whose outgoing edge we couldn't Match.
- //
- t.offendingState = -1
- if t.recognizer != nil {
- t.offendingState = t.recognizer.GetState()
- }
-
- return t
-}
-
-func (b *BaseRecognitionException) GetMessage() string {
- return b.message
-}
-
-func (b *BaseRecognitionException) GetOffendingToken() Token {
- return b.offendingToken
-}
-
-func (b *BaseRecognitionException) GetInputStream() IntStream {
- return b.input
-}
-
-// If the state number is not known, b method returns -1.
-
-// getExpectedTokens gets the set of input symbols which could potentially follow the
-// previously Matched symbol at the time this exception was raised.
-//
-// If the set of expected tokens is not known and could not be computed,
-// this method returns nil.
-//
-// The func returns the set of token types that could potentially follow the current
-// state in the {ATN}, or nil if the information is not available.
-
-func (b *BaseRecognitionException) getExpectedTokens() *IntervalSet {
- if b.recognizer != nil {
- return b.recognizer.GetATN().getExpectedTokens(b.offendingState, b.ctx)
- }
-
- return nil
-}
-
-func (b *BaseRecognitionException) String() string {
- return b.message
-}
-
-type LexerNoViableAltException struct {
- *BaseRecognitionException
-
- startIndex int
- deadEndConfigs *ATNConfigSet
-}
-
-func NewLexerNoViableAltException(lexer Lexer, input CharStream, startIndex int, deadEndConfigs *ATNConfigSet) *LexerNoViableAltException {
-
- l := new(LexerNoViableAltException)
-
- l.BaseRecognitionException = NewBaseRecognitionException("", lexer, input, nil)
-
- l.startIndex = startIndex
- l.deadEndConfigs = deadEndConfigs
-
- return l
-}
-
-func (l *LexerNoViableAltException) String() string {
- symbol := ""
- if l.startIndex >= 0 && l.startIndex < l.input.Size() {
- symbol = l.input.(CharStream).GetTextFromInterval(NewInterval(l.startIndex, l.startIndex))
- }
- return "LexerNoViableAltException" + symbol
-}
-
-type NoViableAltException struct {
- *BaseRecognitionException
-
- startToken Token
- offendingToken Token
- ctx ParserRuleContext
- deadEndConfigs *ATNConfigSet
-}
-
-// NewNoViableAltException creates an exception indicating that the parser could not decide which of two or more paths
-// to take based upon the remaining input. It tracks the starting token
-// of the offending input and also knows where the parser was
-// in the various paths when the error.
-//
-// Reported by [ReportNoViableAlternative]
-func NewNoViableAltException(recognizer Parser, input TokenStream, startToken Token, offendingToken Token, deadEndConfigs *ATNConfigSet, ctx ParserRuleContext) *NoViableAltException {
-
- if ctx == nil {
- ctx = recognizer.GetParserRuleContext()
- }
-
- if offendingToken == nil {
- offendingToken = recognizer.GetCurrentToken()
- }
-
- if startToken == nil {
- startToken = recognizer.GetCurrentToken()
- }
-
- if input == nil {
- input = recognizer.GetInputStream().(TokenStream)
- }
-
- n := new(NoViableAltException)
- n.BaseRecognitionException = NewBaseRecognitionException("", recognizer, input, ctx)
-
- // Which configurations did we try at input.Index() that couldn't Match
- // input.LT(1)
- n.deadEndConfigs = deadEndConfigs
-
- // The token object at the start index the input stream might
- // not be buffering tokens so get a reference to it.
- //
- // At the time the error occurred, of course the stream needs to keep a
- // buffer of all the tokens, but later we might not have access to those.
- n.startToken = startToken
- n.offendingToken = offendingToken
-
- return n
-}
-
-type InputMisMatchException struct {
- *BaseRecognitionException
-}
-
-// NewInputMisMatchException creates an exception that signifies any kind of mismatched input exceptions such as
-// when the current input does not Match the expected token.
-func NewInputMisMatchException(recognizer Parser) *InputMisMatchException {
-
- i := new(InputMisMatchException)
- i.BaseRecognitionException = NewBaseRecognitionException("", recognizer, recognizer.GetInputStream(), recognizer.GetParserRuleContext())
-
- i.offendingToken = recognizer.GetCurrentToken()
-
- return i
-
-}
-
-// FailedPredicateException indicates that a semantic predicate failed during validation. Validation of predicates
-// occurs when normally parsing the alternative just like Matching a token.
-// Disambiguating predicate evaluation occurs when we test a predicate during
-// prediction.
-type FailedPredicateException struct {
- *BaseRecognitionException
-
- ruleIndex int
- predicateIndex int
- predicate string
-}
-
-//goland:noinspection GoUnusedExportedFunction
-func NewFailedPredicateException(recognizer Parser, predicate string, message string) *FailedPredicateException {
-
- f := new(FailedPredicateException)
-
- f.BaseRecognitionException = NewBaseRecognitionException(f.formatMessage(predicate, message), recognizer, recognizer.GetInputStream(), recognizer.GetParserRuleContext())
-
- s := recognizer.GetInterpreter().atn.states[recognizer.GetState()]
- trans := s.GetTransitions()[0]
- if trans2, ok := trans.(*PredicateTransition); ok {
- f.ruleIndex = trans2.ruleIndex
- f.predicateIndex = trans2.predIndex
- } else {
- f.ruleIndex = 0
- f.predicateIndex = 0
- }
- f.predicate = predicate
- f.offendingToken = recognizer.GetCurrentToken()
-
- return f
-}
-
-func (f *FailedPredicateException) formatMessage(predicate, message string) string {
- if message != "" {
- return message
- }
-
- return "failed predicate: {" + predicate + "}?"
-}
-
-type ParseCancellationException struct {
-}
-
-func (p ParseCancellationException) GetOffendingToken() Token {
- //TODO implement me
- panic("implement me")
-}
-
-func (p ParseCancellationException) GetMessage() string {
- //TODO implement me
- panic("implement me")
-}
-
-func (p ParseCancellationException) GetInputStream() IntStream {
- //TODO implement me
- panic("implement me")
-}
-
-func NewParseCancellationException() *ParseCancellationException {
- // Error.call(this)
- // Error.captureStackTrace(this, ParseCancellationException)
- return new(ParseCancellationException)
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/file_stream.go b/vendor/github.com/antlr4-go/antlr/v4/file_stream.go
deleted file mode 100644
index 5f65f809b..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/file_stream.go
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "bufio"
- "os"
-)
-
-// This is an InputStream that is loaded from a file all at once
-// when you construct the object.
-
-type FileStream struct {
- InputStream
- filename string
-}
-
-//goland:noinspection GoUnusedExportedFunction
-func NewFileStream(fileName string) (*FileStream, error) {
-
- f, err := os.Open(fileName)
- if err != nil {
- return nil, err
- }
-
- defer func(f *os.File) {
- errF := f.Close()
- if errF != nil {
- }
- }(f)
-
- reader := bufio.NewReader(f)
- fInfo, err := f.Stat()
- if err != nil {
- return nil, err
- }
-
- fs := &FileStream{
- InputStream: InputStream{
- index: 0,
- name: fileName,
- },
- filename: fileName,
- }
-
- // Pre-build the buffer and read runes efficiently
- //
- fs.data = make([]rune, 0, fInfo.Size())
- for {
- r, _, err := reader.ReadRune()
- if err != nil {
- break
- }
- fs.data = append(fs.data, r)
- }
- fs.size = len(fs.data) // Size in runes
-
- // All done.
- //
- return fs, nil
-}
-
-func (f *FileStream) GetSourceName() string {
- return f.filename
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/input_stream.go b/vendor/github.com/antlr4-go/antlr/v4/input_stream.go
deleted file mode 100644
index b737fe85f..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/input_stream.go
+++ /dev/null
@@ -1,157 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "bufio"
- "io"
-)
-
-type InputStream struct {
- name string
- index int
- data []rune
- size int
-}
-
-// NewIoStream creates a new input stream from the given io.Reader reader.
-// Note that the reader is read completely into memory and so it must actually
-// have a stopping point - you cannot pass in a reader on an open-ended source such
-// as a socket for instance.
-func NewIoStream(reader io.Reader) *InputStream {
-
- rReader := bufio.NewReader(reader)
-
- is := &InputStream{
- name: "",
- index: 0,
- }
-
- // Pre-build the buffer and read runes reasonably efficiently given that
- // we don't exactly know how big the input is.
- //
- is.data = make([]rune, 0, 512)
- for {
- r, _, err := rReader.ReadRune()
- if err != nil {
- break
- }
- is.data = append(is.data, r)
- }
- is.size = len(is.data) // number of runes
- return is
-}
-
-// NewInputStream creates a new input stream from the given string
-func NewInputStream(data string) *InputStream {
-
- is := &InputStream{
- name: "",
- index: 0,
- data: []rune(data), // This is actually the most efficient way
- }
- is.size = len(is.data) // number of runes, but we could also use len(data), which is efficient too
- return is
-}
-
-func (is *InputStream) reset() {
- is.index = 0
-}
-
-// Consume moves the input pointer to the next character in the input stream
-func (is *InputStream) Consume() {
- if is.index >= is.size {
- // assert is.LA(1) == TokenEOF
- panic("cannot consume EOF")
- }
- is.index++
-}
-
-// LA returns the character at the given offset from the start of the input stream
-func (is *InputStream) LA(offset int) int {
-
- if offset == 0 {
- return 0 // nil
- }
- if offset < 0 {
- offset++ // e.g., translate LA(-1) to use offset=0
- }
- pos := is.index + offset - 1
-
- if pos < 0 || pos >= is.size { // invalid
- return TokenEOF
- }
-
- return int(is.data[pos])
-}
-
-// LT returns the character at the given offset from the start of the input stream
-func (is *InputStream) LT(offset int) int {
- return is.LA(offset)
-}
-
-// Index returns the current offset in to the input stream
-func (is *InputStream) Index() int {
- return is.index
-}
-
-// Size returns the total number of characters in the input stream
-func (is *InputStream) Size() int {
- return is.size
-}
-
-// Mark does nothing here as we have entire buffer
-func (is *InputStream) Mark() int {
- return -1
-}
-
-// Release does nothing here as we have entire buffer
-func (is *InputStream) Release(_ int) {
-}
-
-// Seek the input point to the provided index offset
-func (is *InputStream) Seek(index int) {
- if index <= is.index {
- is.index = index // just jump don't update stream state (line,...)
- return
- }
- // seek forward
- is.index = intMin(index, is.size)
-}
-
-// GetText returns the text from the input stream from the start to the stop index
-func (is *InputStream) GetText(start int, stop int) string {
- if stop >= is.size {
- stop = is.size - 1
- }
- if start >= is.size {
- return ""
- }
-
- return string(is.data[start : stop+1])
-}
-
-// GetTextFromTokens returns the text from the input stream from the first character of the start token to the last
-// character of the stop token
-func (is *InputStream) GetTextFromTokens(start, stop Token) string {
- if start != nil && stop != nil {
- return is.GetTextFromInterval(NewInterval(start.GetTokenIndex(), stop.GetTokenIndex()))
- }
-
- return ""
-}
-
-func (is *InputStream) GetTextFromInterval(i Interval) string {
- return is.GetText(i.Start, i.Stop)
-}
-
-func (*InputStream) GetSourceName() string {
- return ""
-}
-
-// String returns the entire input stream as a string
-func (is *InputStream) String() string {
- return string(is.data)
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/int_stream.go b/vendor/github.com/antlr4-go/antlr/v4/int_stream.go
deleted file mode 100644
index 4778878bd..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/int_stream.go
+++ /dev/null
@@ -1,16 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-type IntStream interface {
- Consume()
- LA(int) int
- Mark() int
- Release(marker int)
- Index() int
- Seek(index int)
- Size() int
- GetSourceName() string
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/interval_set.go b/vendor/github.com/antlr4-go/antlr/v4/interval_set.go
deleted file mode 100644
index cc5066067..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/interval_set.go
+++ /dev/null
@@ -1,330 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "strconv"
- "strings"
-)
-
-type Interval struct {
- Start int
- Stop int
-}
-
-// NewInterval creates a new interval with the given start and stop values.
-func NewInterval(start, stop int) Interval {
- return Interval{
- Start: start,
- Stop: stop,
- }
-}
-
-// Contains returns true if the given item is contained within the interval.
-func (i Interval) Contains(item int) bool {
- return item >= i.Start && item < i.Stop
-}
-
-// String generates a string representation of the interval.
-func (i Interval) String() string {
- if i.Start == i.Stop-1 {
- return strconv.Itoa(i.Start)
- }
-
- return strconv.Itoa(i.Start) + ".." + strconv.Itoa(i.Stop-1)
-}
-
-// Length returns the length of the interval.
-func (i Interval) Length() int {
- return i.Stop - i.Start
-}
-
-// IntervalSet represents a collection of [Intervals], which may be read-only.
-type IntervalSet struct {
- intervals []Interval
- readOnly bool
-}
-
-// NewIntervalSet creates a new empty, writable, interval set.
-func NewIntervalSet() *IntervalSet {
-
- i := new(IntervalSet)
-
- i.intervals = nil
- i.readOnly = false
-
- return i
-}
-
-func (i *IntervalSet) Equals(other *IntervalSet) bool {
- if len(i.intervals) != len(other.intervals) {
- return false
- }
-
- for k, v := range i.intervals {
- if v.Start != other.intervals[k].Start || v.Stop != other.intervals[k].Stop {
- return false
- }
- }
-
- return true
-}
-
-func (i *IntervalSet) first() int {
- if len(i.intervals) == 0 {
- return TokenInvalidType
- }
-
- return i.intervals[0].Start
-}
-
-func (i *IntervalSet) addOne(v int) {
- i.addInterval(NewInterval(v, v+1))
-}
-
-func (i *IntervalSet) addRange(l, h int) {
- i.addInterval(NewInterval(l, h+1))
-}
-
-func (i *IntervalSet) addInterval(v Interval) {
- if i.intervals == nil {
- i.intervals = make([]Interval, 0)
- i.intervals = append(i.intervals, v)
- } else {
- // find insert pos
- for k, interval := range i.intervals {
- // distinct range -> insert
- if v.Stop < interval.Start {
- i.intervals = append(i.intervals[0:k], append([]Interval{v}, i.intervals[k:]...)...)
- return
- } else if v.Stop == interval.Start {
- i.intervals[k].Start = v.Start
- return
- } else if v.Start <= interval.Stop {
- i.intervals[k] = NewInterval(intMin(interval.Start, v.Start), intMax(interval.Stop, v.Stop))
-
- // if not applying to end, merge potential overlaps
- if k < len(i.intervals)-1 {
- l := i.intervals[k]
- r := i.intervals[k+1]
- // if r contained in l
- if l.Stop >= r.Stop {
- i.intervals = append(i.intervals[0:k+1], i.intervals[k+2:]...)
- } else if l.Stop >= r.Start { // partial overlap
- i.intervals[k] = NewInterval(l.Start, r.Stop)
- i.intervals = append(i.intervals[0:k+1], i.intervals[k+2:]...)
- }
- }
- return
- }
- }
- // greater than any exiting
- i.intervals = append(i.intervals, v)
- }
-}
-
-func (i *IntervalSet) addSet(other *IntervalSet) *IntervalSet {
- if other.intervals != nil {
- for k := 0; k < len(other.intervals); k++ {
- i2 := other.intervals[k]
- i.addInterval(NewInterval(i2.Start, i2.Stop))
- }
- }
- return i
-}
-
-func (i *IntervalSet) complement(start int, stop int) *IntervalSet {
- result := NewIntervalSet()
- result.addInterval(NewInterval(start, stop+1))
- for j := 0; j < len(i.intervals); j++ {
- result.removeRange(i.intervals[j])
- }
- return result
-}
-
-func (i *IntervalSet) contains(item int) bool {
- if i.intervals == nil {
- return false
- }
- for k := 0; k < len(i.intervals); k++ {
- if i.intervals[k].Contains(item) {
- return true
- }
- }
- return false
-}
-
-func (i *IntervalSet) length() int {
- iLen := 0
-
- for _, v := range i.intervals {
- iLen += v.Length()
- }
-
- return iLen
-}
-
-func (i *IntervalSet) removeRange(v Interval) {
- if v.Start == v.Stop-1 {
- i.removeOne(v.Start)
- } else if i.intervals != nil {
- k := 0
- for n := 0; n < len(i.intervals); n++ {
- ni := i.intervals[k]
- // intervals are ordered
- if v.Stop <= ni.Start {
- return
- } else if v.Start > ni.Start && v.Stop < ni.Stop {
- i.intervals[k] = NewInterval(ni.Start, v.Start)
- x := NewInterval(v.Stop, ni.Stop)
- // i.intervals.splice(k, 0, x)
- i.intervals = append(i.intervals[0:k], append([]Interval{x}, i.intervals[k:]...)...)
- return
- } else if v.Start <= ni.Start && v.Stop >= ni.Stop {
- // i.intervals.splice(k, 1)
- i.intervals = append(i.intervals[0:k], i.intervals[k+1:]...)
- k = k - 1 // need another pass
- } else if v.Start < ni.Stop {
- i.intervals[k] = NewInterval(ni.Start, v.Start)
- } else if v.Stop < ni.Stop {
- i.intervals[k] = NewInterval(v.Stop, ni.Stop)
- }
- k++
- }
- }
-}
-
-func (i *IntervalSet) removeOne(v int) {
- if i.intervals != nil {
- for k := 0; k < len(i.intervals); k++ {
- ki := i.intervals[k]
- // intervals i ordered
- if v < ki.Start {
- return
- } else if v == ki.Start && v == ki.Stop-1 {
- // i.intervals.splice(k, 1)
- i.intervals = append(i.intervals[0:k], i.intervals[k+1:]...)
- return
- } else if v == ki.Start {
- i.intervals[k] = NewInterval(ki.Start+1, ki.Stop)
- return
- } else if v == ki.Stop-1 {
- i.intervals[k] = NewInterval(ki.Start, ki.Stop-1)
- return
- } else if v < ki.Stop-1 {
- x := NewInterval(ki.Start, v)
- ki.Start = v + 1
- // i.intervals.splice(k, 0, x)
- i.intervals = append(i.intervals[0:k], append([]Interval{x}, i.intervals[k:]...)...)
- return
- }
- }
- }
-}
-
-func (i *IntervalSet) String() string {
- return i.StringVerbose(nil, nil, false)
-}
-
-func (i *IntervalSet) StringVerbose(literalNames []string, symbolicNames []string, elemsAreChar bool) string {
-
- if i.intervals == nil {
- return "{}"
- } else if literalNames != nil || symbolicNames != nil {
- return i.toTokenString(literalNames, symbolicNames)
- } else if elemsAreChar {
- return i.toCharString()
- }
-
- return i.toIndexString()
-}
-
-func (i *IntervalSet) GetIntervals() []Interval {
- return i.intervals
-}
-
-func (i *IntervalSet) toCharString() string {
- names := make([]string, len(i.intervals))
-
- var sb strings.Builder
-
- for j := 0; j < len(i.intervals); j++ {
- v := i.intervals[j]
- if v.Stop == v.Start+1 {
- if v.Start == TokenEOF {
- names = append(names, "")
- } else {
- sb.WriteByte('\'')
- sb.WriteRune(rune(v.Start))
- sb.WriteByte('\'')
- names = append(names, sb.String())
- sb.Reset()
- }
- } else {
- sb.WriteByte('\'')
- sb.WriteRune(rune(v.Start))
- sb.WriteString("'..'")
- sb.WriteRune(rune(v.Stop - 1))
- sb.WriteByte('\'')
- names = append(names, sb.String())
- sb.Reset()
- }
- }
- if len(names) > 1 {
- return "{" + strings.Join(names, ", ") + "}"
- }
-
- return names[0]
-}
-
-func (i *IntervalSet) toIndexString() string {
-
- names := make([]string, 0)
- for j := 0; j < len(i.intervals); j++ {
- v := i.intervals[j]
- if v.Stop == v.Start+1 {
- if v.Start == TokenEOF {
- names = append(names, "")
- } else {
- names = append(names, strconv.Itoa(v.Start))
- }
- } else {
- names = append(names, strconv.Itoa(v.Start)+".."+strconv.Itoa(v.Stop-1))
- }
- }
- if len(names) > 1 {
- return "{" + strings.Join(names, ", ") + "}"
- }
-
- return names[0]
-}
-
-func (i *IntervalSet) toTokenString(literalNames []string, symbolicNames []string) string {
- names := make([]string, 0)
- for _, v := range i.intervals {
- for j := v.Start; j < v.Stop; j++ {
- names = append(names, i.elementName(literalNames, symbolicNames, j))
- }
- }
- if len(names) > 1 {
- return "{" + strings.Join(names, ", ") + "}"
- }
-
- return names[0]
-}
-
-func (i *IntervalSet) elementName(literalNames []string, symbolicNames []string, a int) string {
- if a == TokenEOF {
- return ""
- } else if a == TokenEpsilon {
- return ""
- } else {
- if a < len(literalNames) && literalNames[a] != "" {
- return literalNames[a]
- }
-
- return symbolicNames[a]
- }
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/jcollect.go b/vendor/github.com/antlr4-go/antlr/v4/jcollect.go
deleted file mode 100644
index ceccd96d2..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/jcollect.go
+++ /dev/null
@@ -1,685 +0,0 @@
-package antlr
-
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-import (
- "container/list"
- "runtime/debug"
- "sort"
- "sync"
-)
-
-// Collectable is an interface that a struct should implement if it is to be
-// usable as a key in these collections.
-type Collectable[T any] interface {
- Hash() int
- Equals(other Collectable[T]) bool
-}
-
-type Comparator[T any] interface {
- Hash1(o T) int
- Equals2(T, T) bool
-}
-
-type CollectionSource int
-type CollectionDescriptor struct {
- SybolicName string
- Description string
-}
-
-const (
- UnknownCollection CollectionSource = iota
- ATNConfigLookupCollection
- ATNStateCollection
- DFAStateCollection
- ATNConfigCollection
- PredictionContextCollection
- SemanticContextCollection
- ClosureBusyCollection
- PredictionVisitedCollection
- MergeCacheCollection
- PredictionContextCacheCollection
- AltSetCollection
- ReachSetCollection
-)
-
-var CollectionDescriptors = map[CollectionSource]CollectionDescriptor{
- UnknownCollection: {
- SybolicName: "UnknownCollection",
- Description: "Unknown collection type. Only used if the target author thought it was an unimportant collection.",
- },
- ATNConfigCollection: {
- SybolicName: "ATNConfigCollection",
- Description: "ATNConfig collection. Used to store the ATNConfigs for a particular state in the ATN." +
- "For instance, it is used to store the results of the closure() operation in the ATN.",
- },
- ATNConfigLookupCollection: {
- SybolicName: "ATNConfigLookupCollection",
- Description: "ATNConfigLookup collection. Used to store the ATNConfigs for a particular state in the ATN." +
- "This is used to prevent duplicating equivalent states in an ATNConfigurationSet.",
- },
- ATNStateCollection: {
- SybolicName: "ATNStateCollection",
- Description: "ATNState collection. This is used to store the states of the ATN.",
- },
- DFAStateCollection: {
- SybolicName: "DFAStateCollection",
- Description: "DFAState collection. This is used to store the states of the DFA.",
- },
- PredictionContextCollection: {
- SybolicName: "PredictionContextCollection",
- Description: "PredictionContext collection. This is used to store the prediction contexts of the ATN and cache computes.",
- },
- SemanticContextCollection: {
- SybolicName: "SemanticContextCollection",
- Description: "SemanticContext collection. This is used to store the semantic contexts of the ATN.",
- },
- ClosureBusyCollection: {
- SybolicName: "ClosureBusyCollection",
- Description: "ClosureBusy collection. This is used to check and prevent infinite recursion right recursive rules." +
- "It stores ATNConfigs that are currently being processed in the closure() operation.",
- },
- PredictionVisitedCollection: {
- SybolicName: "PredictionVisitedCollection",
- Description: "A map that records whether we have visited a particular context when searching through cached entries.",
- },
- MergeCacheCollection: {
- SybolicName: "MergeCacheCollection",
- Description: "A map that records whether we have already merged two particular contexts and can save effort by not repeating it.",
- },
- PredictionContextCacheCollection: {
- SybolicName: "PredictionContextCacheCollection",
- Description: "A map that records whether we have already created a particular context and can save effort by not computing it again.",
- },
- AltSetCollection: {
- SybolicName: "AltSetCollection",
- Description: "Used to eliminate duplicate alternatives in an ATN config set.",
- },
- ReachSetCollection: {
- SybolicName: "ReachSetCollection",
- Description: "Used as merge cache to prevent us needing to compute the merge of two states if we have already done it.",
- },
-}
-
-// JStore implements a container that allows the use of a struct to calculate the key
-// for a collection of values akin to map. This is not meant to be a full-blown HashMap but just
-// serve the needs of the ANTLR Go runtime.
-//
-// For ease of porting the logic of the runtime from the master target (Java), this collection
-// operates in a similar way to Java, in that it can use any struct that supplies a Hash() and Equals()
-// function as the key. The values are stored in a standard go map which internally is a form of hashmap
-// itself, the key for the go map is the hash supplied by the key object. The collection is able to deal with
-// hash conflicts by using a simple slice of values associated with the hash code indexed bucket. That isn't
-// particularly efficient, but it is simple, and it works. As this is specifically for the ANTLR runtime, and
-// we understand the requirements, then this is fine - this is not a general purpose collection.
-type JStore[T any, C Comparator[T]] struct {
- store map[int][]T
- len int
- comparator Comparator[T]
- stats *JStatRec
-}
-
-func NewJStore[T any, C Comparator[T]](comparator Comparator[T], cType CollectionSource, desc string) *JStore[T, C] {
-
- if comparator == nil {
- panic("comparator cannot be nil")
- }
-
- s := &JStore[T, C]{
- store: make(map[int][]T, 1),
- comparator: comparator,
- }
- if collectStats {
- s.stats = &JStatRec{
- Source: cType,
- Description: desc,
- }
-
- // Track where we created it from if we are being asked to do so
- if runtimeConfig.statsTraceStacks {
- s.stats.CreateStack = debug.Stack()
- }
- Statistics.AddJStatRec(s.stats)
- }
- return s
-}
-
-// Put will store given value in the collection. Note that the key for storage is generated from
-// the value itself - this is specifically because that is what ANTLR needs - this would not be useful
-// as any kind of general collection.
-//
-// If the key has a hash conflict, then the value will be added to the slice of values associated with the
-// hash, unless the value is already in the slice, in which case the existing value is returned. Value equivalence is
-// tested by calling the equals() method on the key.
-//
-// # If the given value is already present in the store, then the existing value is returned as v and exists is set to true
-//
-// If the given value is not present in the store, then the value is added to the store and returned as v and exists is set to false.
-func (s *JStore[T, C]) Put(value T) (v T, exists bool) {
-
- if collectStats {
- s.stats.Puts++
- }
- kh := s.comparator.Hash1(value)
-
- var hClash bool
- for _, v1 := range s.store[kh] {
- hClash = true
- if s.comparator.Equals2(value, v1) {
- if collectStats {
- s.stats.PutHits++
- s.stats.PutHashConflicts++
- }
- return v1, true
- }
- if collectStats {
- s.stats.PutMisses++
- }
- }
- if collectStats && hClash {
- s.stats.PutHashConflicts++
- }
- s.store[kh] = append(s.store[kh], value)
-
- if collectStats {
- if len(s.store[kh]) > s.stats.MaxSlotSize {
- s.stats.MaxSlotSize = len(s.store[kh])
- }
- }
- s.len++
- if collectStats {
- s.stats.CurSize = s.len
- if s.len > s.stats.MaxSize {
- s.stats.MaxSize = s.len
- }
- }
- return value, false
-}
-
-// Get will return the value associated with the key - the type of the key is the same type as the value
-// which would not generally be useful, but this is a specific thing for ANTLR where the key is
-// generated using the object we are going to store.
-func (s *JStore[T, C]) Get(key T) (T, bool) {
- if collectStats {
- s.stats.Gets++
- }
- kh := s.comparator.Hash1(key)
- var hClash bool
- for _, v := range s.store[kh] {
- hClash = true
- if s.comparator.Equals2(key, v) {
- if collectStats {
- s.stats.GetHits++
- s.stats.GetHashConflicts++
- }
- return v, true
- }
- if collectStats {
- s.stats.GetMisses++
- }
- }
- if collectStats {
- if hClash {
- s.stats.GetHashConflicts++
- }
- s.stats.GetNoEnt++
- }
- return key, false
-}
-
-// Contains returns true if the given key is present in the store
-func (s *JStore[T, C]) Contains(key T) bool {
- _, present := s.Get(key)
- return present
-}
-
-func (s *JStore[T, C]) SortedSlice(less func(i, j T) bool) []T {
- vs := make([]T, 0, len(s.store))
- for _, v := range s.store {
- vs = append(vs, v...)
- }
- sort.Slice(vs, func(i, j int) bool {
- return less(vs[i], vs[j])
- })
-
- return vs
-}
-
-func (s *JStore[T, C]) Each(f func(T) bool) {
- for _, e := range s.store {
- for _, v := range e {
- f(v)
- }
- }
-}
-
-func (s *JStore[T, C]) Len() int {
- return s.len
-}
-
-func (s *JStore[T, C]) Values() []T {
- vs := make([]T, 0, len(s.store))
- for _, e := range s.store {
- vs = append(vs, e...)
- }
- return vs
-}
-
-type entry[K, V any] struct {
- key K
- val V
-}
-
-type JMap[K, V any, C Comparator[K]] struct {
- store map[int][]*entry[K, V]
- len int
- comparator Comparator[K]
- stats *JStatRec
-}
-
-func NewJMap[K, V any, C Comparator[K]](comparator Comparator[K], cType CollectionSource, desc string) *JMap[K, V, C] {
- m := &JMap[K, V, C]{
- store: make(map[int][]*entry[K, V], 1),
- comparator: comparator,
- }
- if collectStats {
- m.stats = &JStatRec{
- Source: cType,
- Description: desc,
- }
- // Track where we created it from if we are being asked to do so
- if runtimeConfig.statsTraceStacks {
- m.stats.CreateStack = debug.Stack()
- }
- Statistics.AddJStatRec(m.stats)
- }
- return m
-}
-
-func (m *JMap[K, V, C]) Put(key K, val V) (V, bool) {
- if collectStats {
- m.stats.Puts++
- }
- kh := m.comparator.Hash1(key)
-
- var hClash bool
- for _, e := range m.store[kh] {
- hClash = true
- if m.comparator.Equals2(e.key, key) {
- if collectStats {
- m.stats.PutHits++
- m.stats.PutHashConflicts++
- }
- return e.val, true
- }
- if collectStats {
- m.stats.PutMisses++
- }
- }
- if collectStats {
- if hClash {
- m.stats.PutHashConflicts++
- }
- }
- m.store[kh] = append(m.store[kh], &entry[K, V]{key, val})
- if collectStats {
- if len(m.store[kh]) > m.stats.MaxSlotSize {
- m.stats.MaxSlotSize = len(m.store[kh])
- }
- }
- m.len++
- if collectStats {
- m.stats.CurSize = m.len
- if m.len > m.stats.MaxSize {
- m.stats.MaxSize = m.len
- }
- }
- return val, false
-}
-
-func (m *JMap[K, V, C]) Values() []V {
- vs := make([]V, 0, len(m.store))
- for _, e := range m.store {
- for _, v := range e {
- vs = append(vs, v.val)
- }
- }
- return vs
-}
-
-func (m *JMap[K, V, C]) Get(key K) (V, bool) {
- if collectStats {
- m.stats.Gets++
- }
- var none V
- kh := m.comparator.Hash1(key)
- var hClash bool
- for _, e := range m.store[kh] {
- hClash = true
- if m.comparator.Equals2(e.key, key) {
- if collectStats {
- m.stats.GetHits++
- m.stats.GetHashConflicts++
- }
- return e.val, true
- }
- if collectStats {
- m.stats.GetMisses++
- }
- }
- if collectStats {
- if hClash {
- m.stats.GetHashConflicts++
- }
- m.stats.GetNoEnt++
- }
- return none, false
-}
-
-func (m *JMap[K, V, C]) Len() int {
- return m.len
-}
-
-func (m *JMap[K, V, C]) Delete(key K) {
- kh := m.comparator.Hash1(key)
- for i, e := range m.store[kh] {
- if m.comparator.Equals2(e.key, key) {
- m.store[kh] = append(m.store[kh][:i], m.store[kh][i+1:]...)
- m.len--
- return
- }
- }
-}
-
-func (m *JMap[K, V, C]) Clear() {
- m.store = make(map[int][]*entry[K, V])
-}
-
-type JPCMap struct {
- store *JMap[*PredictionContext, *JMap[*PredictionContext, *PredictionContext, *ObjEqComparator[*PredictionContext]], *ObjEqComparator[*PredictionContext]]
- size int
- stats *JStatRec
-}
-
-func NewJPCMap(cType CollectionSource, desc string) *JPCMap {
- m := &JPCMap{
- store: NewJMap[*PredictionContext, *JMap[*PredictionContext, *PredictionContext, *ObjEqComparator[*PredictionContext]], *ObjEqComparator[*PredictionContext]](pContextEqInst, cType, desc),
- }
- if collectStats {
- m.stats = &JStatRec{
- Source: cType,
- Description: desc,
- }
- // Track where we created it from if we are being asked to do so
- if runtimeConfig.statsTraceStacks {
- m.stats.CreateStack = debug.Stack()
- }
- Statistics.AddJStatRec(m.stats)
- }
- return m
-}
-
-func (pcm *JPCMap) Get(k1, k2 *PredictionContext) (*PredictionContext, bool) {
- if collectStats {
- pcm.stats.Gets++
- }
- // Do we have a map stored by k1?
- //
- m2, present := pcm.store.Get(k1)
- if present {
- if collectStats {
- pcm.stats.GetHits++
- }
- // We found a map of values corresponding to k1, so now we need to look up k2 in that map
- //
- return m2.Get(k2)
- }
- if collectStats {
- pcm.stats.GetMisses++
- }
- return nil, false
-}
-
-func (pcm *JPCMap) Put(k1, k2, v *PredictionContext) {
-
- if collectStats {
- pcm.stats.Puts++
- }
- // First does a map already exist for k1?
- //
- if m2, present := pcm.store.Get(k1); present {
- if collectStats {
- pcm.stats.PutHits++
- }
- _, present = m2.Put(k2, v)
- if !present {
- pcm.size++
- if collectStats {
- pcm.stats.CurSize = pcm.size
- if pcm.size > pcm.stats.MaxSize {
- pcm.stats.MaxSize = pcm.size
- }
- }
- }
- } else {
- // No map found for k1, so we create it, add in our value, then store is
- //
- if collectStats {
- pcm.stats.PutMisses++
- m2 = NewJMap[*PredictionContext, *PredictionContext, *ObjEqComparator[*PredictionContext]](pContextEqInst, pcm.stats.Source, pcm.stats.Description+" map entry")
- } else {
- m2 = NewJMap[*PredictionContext, *PredictionContext, *ObjEqComparator[*PredictionContext]](pContextEqInst, PredictionContextCacheCollection, "map entry")
- }
-
- m2.Put(k2, v)
- pcm.store.Put(k1, m2)
- pcm.size++
- }
-}
-
-type JPCMap2 struct {
- store map[int][]JPCEntry
- size int
- stats *JStatRec
-}
-
-type JPCEntry struct {
- k1, k2, v *PredictionContext
-}
-
-func NewJPCMap2(cType CollectionSource, desc string) *JPCMap2 {
- m := &JPCMap2{
- store: make(map[int][]JPCEntry, 1000),
- }
- if collectStats {
- m.stats = &JStatRec{
- Source: cType,
- Description: desc,
- }
- // Track where we created it from if we are being asked to do so
- if runtimeConfig.statsTraceStacks {
- m.stats.CreateStack = debug.Stack()
- }
- Statistics.AddJStatRec(m.stats)
- }
- return m
-}
-
-func dHash(k1, k2 *PredictionContext) int {
- return k1.cachedHash*31 + k2.cachedHash
-}
-
-func (pcm *JPCMap2) Get(k1, k2 *PredictionContext) (*PredictionContext, bool) {
- if collectStats {
- pcm.stats.Gets++
- }
-
- h := dHash(k1, k2)
- var hClash bool
- for _, e := range pcm.store[h] {
- hClash = true
- if e.k1.Equals(k1) && e.k2.Equals(k2) {
- if collectStats {
- pcm.stats.GetHits++
- pcm.stats.GetHashConflicts++
- }
- return e.v, true
- }
- if collectStats {
- pcm.stats.GetMisses++
- }
- }
- if collectStats {
- if hClash {
- pcm.stats.GetHashConflicts++
- }
- pcm.stats.GetNoEnt++
- }
- return nil, false
-}
-
-func (pcm *JPCMap2) Put(k1, k2, v *PredictionContext) (*PredictionContext, bool) {
- if collectStats {
- pcm.stats.Puts++
- }
- h := dHash(k1, k2)
- var hClash bool
- for _, e := range pcm.store[h] {
- hClash = true
- if e.k1.Equals(k1) && e.k2.Equals(k2) {
- if collectStats {
- pcm.stats.PutHits++
- pcm.stats.PutHashConflicts++
- }
- return e.v, true
- }
- if collectStats {
- pcm.stats.PutMisses++
- }
- }
- if collectStats {
- if hClash {
- pcm.stats.PutHashConflicts++
- }
- }
- pcm.store[h] = append(pcm.store[h], JPCEntry{k1, k2, v})
- pcm.size++
- if collectStats {
- pcm.stats.CurSize = pcm.size
- if pcm.size > pcm.stats.MaxSize {
- pcm.stats.MaxSize = pcm.size
- }
- }
- return nil, false
-}
-
-type VisitEntry struct {
- k *PredictionContext
- v *PredictionContext
-}
-type VisitRecord struct {
- store map[*PredictionContext]*PredictionContext
- len int
- stats *JStatRec
-}
-
-type VisitList struct {
- cache *list.List
- lock sync.RWMutex
-}
-
-var visitListPool = VisitList{
- cache: list.New(),
- lock: sync.RWMutex{},
-}
-
-// NewVisitRecord returns a new VisitRecord instance from the pool if available.
-// Note that this "map" uses a pointer as a key because we are emulating the behavior of
-// IdentityHashMap in Java, which uses the `==` operator to compare whether the keys are equal,
-// which means is the key the same reference to an object rather than is it .equals() to another
-// object.
-func NewVisitRecord() *VisitRecord {
- visitListPool.lock.Lock()
- el := visitListPool.cache.Front()
- defer visitListPool.lock.Unlock()
- var vr *VisitRecord
- if el == nil {
- vr = &VisitRecord{
- store: make(map[*PredictionContext]*PredictionContext),
- }
- if collectStats {
- vr.stats = &JStatRec{
- Source: PredictionContextCacheCollection,
- Description: "VisitRecord",
- }
- // Track where we created it from if we are being asked to do so
- if runtimeConfig.statsTraceStacks {
- vr.stats.CreateStack = debug.Stack()
- }
- }
- } else {
- vr = el.Value.(*VisitRecord)
- visitListPool.cache.Remove(el)
- vr.store = make(map[*PredictionContext]*PredictionContext)
- }
- if collectStats {
- Statistics.AddJStatRec(vr.stats)
- }
- return vr
-}
-
-func (vr *VisitRecord) Release() {
- vr.len = 0
- vr.store = nil
- if collectStats {
- vr.stats.MaxSize = 0
- vr.stats.CurSize = 0
- vr.stats.Gets = 0
- vr.stats.GetHits = 0
- vr.stats.GetMisses = 0
- vr.stats.GetHashConflicts = 0
- vr.stats.GetNoEnt = 0
- vr.stats.Puts = 0
- vr.stats.PutHits = 0
- vr.stats.PutMisses = 0
- vr.stats.PutHashConflicts = 0
- vr.stats.MaxSlotSize = 0
- }
- visitListPool.lock.Lock()
- visitListPool.cache.PushBack(vr)
- visitListPool.lock.Unlock()
-}
-
-func (vr *VisitRecord) Get(k *PredictionContext) (*PredictionContext, bool) {
- if collectStats {
- vr.stats.Gets++
- }
- v := vr.store[k]
- if v != nil {
- if collectStats {
- vr.stats.GetHits++
- }
- return v, true
- }
- if collectStats {
- vr.stats.GetNoEnt++
- }
- return nil, false
-}
-
-func (vr *VisitRecord) Put(k, v *PredictionContext) (*PredictionContext, bool) {
- if collectStats {
- vr.stats.Puts++
- }
- vr.store[k] = v
- vr.len++
- if collectStats {
- vr.stats.CurSize = vr.len
- if vr.len > vr.stats.MaxSize {
- vr.stats.MaxSize = vr.len
- }
- }
- return v, false
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/lexer.go b/vendor/github.com/antlr4-go/antlr/v4/lexer.go
deleted file mode 100644
index 3c7896a91..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/lexer.go
+++ /dev/null
@@ -1,426 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "fmt"
- "strconv"
-)
-
-// A lexer is recognizer that draws input symbols from a character stream.
-// lexer grammars result in a subclass of this object. A Lexer object
-// uses simplified Match() and error recovery mechanisms in the interest
-// of speed.
-///
-
-type Lexer interface {
- TokenSource
- Recognizer
-
- Emit() Token
-
- SetChannel(int)
- PushMode(int)
- PopMode() int
- SetType(int)
- SetMode(int)
-}
-
-type BaseLexer struct {
- *BaseRecognizer
-
- Interpreter ILexerATNSimulator
- TokenStartCharIndex int
- TokenStartLine int
- TokenStartColumn int
- ActionType int
- Virt Lexer // The most derived lexer implementation. Allows virtual method calls.
-
- input CharStream
- factory TokenFactory
- tokenFactorySourcePair *TokenSourceCharStreamPair
- token Token
- hitEOF bool
- channel int
- thetype int
- modeStack IntStack
- mode int
- text string
-}
-
-func NewBaseLexer(input CharStream) *BaseLexer {
-
- lexer := new(BaseLexer)
-
- lexer.BaseRecognizer = NewBaseRecognizer()
-
- lexer.input = input
- lexer.factory = CommonTokenFactoryDEFAULT
- lexer.tokenFactorySourcePair = &TokenSourceCharStreamPair{lexer, input}
-
- lexer.Virt = lexer
-
- lexer.Interpreter = nil // child classes must populate it
-
- // The goal of all lexer rules/methods is to create a token object.
- // l is an instance variable as multiple rules may collaborate to
- // create a single token. NextToken will return l object after
- // Matching lexer rule(s). If you subclass to allow multiple token
- // emissions, then set l to the last token to be Matched or
- // something non nil so that the auto token emit mechanism will not
- // emit another token.
- lexer.token = nil
-
- // What character index in the stream did the current token start at?
- // Needed, for example, to get the text for current token. Set at
- // the start of NextToken.
- lexer.TokenStartCharIndex = -1
-
- // The line on which the first character of the token resides///
- lexer.TokenStartLine = -1
-
- // The character position of first character within the line///
- lexer.TokenStartColumn = -1
-
- // Once we see EOF on char stream, next token will be EOF.
- // If you have DONE : EOF then you see DONE EOF.
- lexer.hitEOF = false
-
- // The channel number for the current token///
- lexer.channel = TokenDefaultChannel
-
- // The token type for the current token///
- lexer.thetype = TokenInvalidType
-
- lexer.modeStack = make([]int, 0)
- lexer.mode = LexerDefaultMode
-
- // You can set the text for the current token to override what is in
- // the input char buffer. Use setText() or can set l instance var.
- // /
- lexer.text = ""
-
- return lexer
-}
-
-const (
- LexerDefaultMode = 0
- LexerMore = -2
- LexerSkip = -3
-)
-
-//goland:noinspection GoUnusedConst
-const (
- LexerDefaultTokenChannel = TokenDefaultChannel
- LexerHidden = TokenHiddenChannel
- LexerMinCharValue = 0x0000
- LexerMaxCharValue = 0x10FFFF
-)
-
-func (b *BaseLexer) Reset() {
- // wack Lexer state variables
- if b.input != nil {
- b.input.Seek(0) // rewind the input
- }
- b.token = nil
- b.thetype = TokenInvalidType
- b.channel = TokenDefaultChannel
- b.TokenStartCharIndex = -1
- b.TokenStartColumn = -1
- b.TokenStartLine = -1
- b.text = ""
-
- b.hitEOF = false
- b.mode = LexerDefaultMode
- b.modeStack = make([]int, 0)
-
- b.Interpreter.reset()
-}
-
-func (b *BaseLexer) GetInterpreter() ILexerATNSimulator {
- return b.Interpreter
-}
-
-func (b *BaseLexer) GetInputStream() CharStream {
- return b.input
-}
-
-func (b *BaseLexer) GetSourceName() string {
- return b.GrammarFileName
-}
-
-func (b *BaseLexer) SetChannel(v int) {
- b.channel = v
-}
-
-func (b *BaseLexer) GetTokenFactory() TokenFactory {
- return b.factory
-}
-
-func (b *BaseLexer) setTokenFactory(f TokenFactory) {
- b.factory = f
-}
-
-func (b *BaseLexer) safeMatch() (ret int) {
- defer func() {
- if e := recover(); e != nil {
- if re, ok := e.(RecognitionException); ok {
- b.notifyListeners(re) // Report error
- b.Recover(re)
- ret = LexerSkip // default
- }
- }
- }()
-
- return b.Interpreter.Match(b.input, b.mode)
-}
-
-// NextToken returns a token from the lexer input source i.e., Match a token on the source char stream.
-func (b *BaseLexer) NextToken() Token {
- if b.input == nil {
- panic("NextToken requires a non-nil input stream.")
- }
-
- tokenStartMarker := b.input.Mark()
-
- // previously in finally block
- defer func() {
- // make sure we release marker after Match or
- // unbuffered char stream will keep buffering
- b.input.Release(tokenStartMarker)
- }()
-
- for {
- if b.hitEOF {
- b.EmitEOF()
- return b.token
- }
- b.token = nil
- b.channel = TokenDefaultChannel
- b.TokenStartCharIndex = b.input.Index()
- b.TokenStartColumn = b.Interpreter.GetCharPositionInLine()
- b.TokenStartLine = b.Interpreter.GetLine()
- b.text = ""
- continueOuter := false
- for {
- b.thetype = TokenInvalidType
-
- ttype := b.safeMatch()
-
- if b.input.LA(1) == TokenEOF {
- b.hitEOF = true
- }
- if b.thetype == TokenInvalidType {
- b.thetype = ttype
- }
- if b.thetype == LexerSkip {
- continueOuter = true
- break
- }
- if b.thetype != LexerMore {
- break
- }
- }
-
- if continueOuter {
- continue
- }
- if b.token == nil {
- b.Virt.Emit()
- }
- return b.token
- }
-}
-
-// Skip instructs the lexer to Skip creating a token for current lexer rule
-// and look for another token. [NextToken] knows to keep looking when
-// a lexer rule finishes with token set to [SKIPTOKEN]. Recall that
-// if token==nil at end of any token rule, it creates one for you
-// and emits it.
-func (b *BaseLexer) Skip() {
- b.thetype = LexerSkip
-}
-
-func (b *BaseLexer) More() {
- b.thetype = LexerMore
-}
-
-// SetMode changes the lexer to a new mode. The lexer will use this mode from hereon in and the rules for that mode
-// will be in force.
-func (b *BaseLexer) SetMode(m int) {
- b.mode = m
-}
-
-// PushMode saves the current lexer mode so that it can be restored later. See [PopMode], then sets the
-// current lexer mode to the supplied mode m.
-func (b *BaseLexer) PushMode(m int) {
- if runtimeConfig.lexerATNSimulatorDebug {
- fmt.Println("pushMode " + strconv.Itoa(m))
- }
- b.modeStack.Push(b.mode)
- b.mode = m
-}
-
-// PopMode restores the lexer mode saved by a call to [PushMode]. It is a panic error if there is no saved mode to
-// return to.
-func (b *BaseLexer) PopMode() int {
- if len(b.modeStack) == 0 {
- panic("Empty Stack")
- }
- if runtimeConfig.lexerATNSimulatorDebug {
- fmt.Println("popMode back to " + fmt.Sprint(b.modeStack[0:len(b.modeStack)-1]))
- }
- i, _ := b.modeStack.Pop()
- b.mode = i
- return b.mode
-}
-
-func (b *BaseLexer) inputStream() CharStream {
- return b.input
-}
-
-// SetInputStream resets the lexer input stream and associated lexer state.
-func (b *BaseLexer) SetInputStream(input CharStream) {
- b.input = nil
- b.tokenFactorySourcePair = &TokenSourceCharStreamPair{b, b.input}
- b.Reset()
- b.input = input
- b.tokenFactorySourcePair = &TokenSourceCharStreamPair{b, b.input}
-}
-
-func (b *BaseLexer) GetTokenSourceCharStreamPair() *TokenSourceCharStreamPair {
- return b.tokenFactorySourcePair
-}
-
-// EmitToken by default does not support multiple emits per [NextToken] invocation
-// for efficiency reasons. Subclass and override this func, [NextToken],
-// and [GetToken] (to push tokens into a list and pull from that list
-// rather than a single variable as this implementation does).
-func (b *BaseLexer) EmitToken(token Token) {
- b.token = token
-}
-
-// Emit is the standard method called to automatically emit a token at the
-// outermost lexical rule. The token object should point into the
-// char buffer start..stop. If there is a text override in 'text',
-// use that to set the token's text. Override this method to emit
-// custom [Token] objects or provide a new factory.
-// /
-func (b *BaseLexer) Emit() Token {
- t := b.factory.Create(b.tokenFactorySourcePair, b.thetype, b.text, b.channel, b.TokenStartCharIndex, b.GetCharIndex()-1, b.TokenStartLine, b.TokenStartColumn)
- b.EmitToken(t)
- return t
-}
-
-// EmitEOF emits an EOF token. By default, this is the last token emitted
-func (b *BaseLexer) EmitEOF() Token {
- cpos := b.GetCharPositionInLine()
- lpos := b.GetLine()
- eof := b.factory.Create(b.tokenFactorySourcePair, TokenEOF, "", TokenDefaultChannel, b.input.Index(), b.input.Index()-1, lpos, cpos)
- b.EmitToken(eof)
- return eof
-}
-
-// GetCharPositionInLine returns the current position in the current line as far as the lexer is concerned.
-func (b *BaseLexer) GetCharPositionInLine() int {
- return b.Interpreter.GetCharPositionInLine()
-}
-
-func (b *BaseLexer) GetLine() int {
- return b.Interpreter.GetLine()
-}
-
-func (b *BaseLexer) GetType() int {
- return b.thetype
-}
-
-func (b *BaseLexer) SetType(t int) {
- b.thetype = t
-}
-
-// GetCharIndex returns the index of the current character of lookahead
-func (b *BaseLexer) GetCharIndex() int {
- return b.input.Index()
-}
-
-// GetText returns the text Matched so far for the current token or any text override.
-func (b *BaseLexer) GetText() string {
- if b.text != "" {
- return b.text
- }
-
- return b.Interpreter.GetText(b.input)
-}
-
-// SetText sets the complete text of this token; it wipes any previous changes to the text.
-func (b *BaseLexer) SetText(text string) {
- b.text = text
-}
-
-// GetATN returns the ATN used by the lexer.
-func (b *BaseLexer) GetATN() *ATN {
- return b.Interpreter.ATN()
-}
-
-// GetAllTokens returns a list of all [Token] objects in input char stream.
-// Forces a load of all tokens that can be made from the input char stream.
-//
-// Does not include EOF token.
-func (b *BaseLexer) GetAllTokens() []Token {
- vl := b.Virt
- tokens := make([]Token, 0)
- t := vl.NextToken()
- for t.GetTokenType() != TokenEOF {
- tokens = append(tokens, t)
- t = vl.NextToken()
- }
- return tokens
-}
-
-func (b *BaseLexer) notifyListeners(e RecognitionException) {
- start := b.TokenStartCharIndex
- stop := b.input.Index()
- text := b.input.GetTextFromInterval(NewInterval(start, stop))
- msg := "token recognition error at: '" + text + "'"
- listener := b.GetErrorListenerDispatch()
- listener.SyntaxError(b, nil, b.TokenStartLine, b.TokenStartColumn, msg, e)
-}
-
-func (b *BaseLexer) getErrorDisplayForChar(c rune) string {
- if c == TokenEOF {
- return ""
- } else if c == '\n' {
- return "\\n"
- } else if c == '\t' {
- return "\\t"
- } else if c == '\r' {
- return "\\r"
- } else {
- return string(c)
- }
-}
-
-func (b *BaseLexer) getCharErrorDisplay(c rune) string {
- return "'" + b.getErrorDisplayForChar(c) + "'"
-}
-
-// Recover can normally Match any char in its vocabulary after Matching
-// a token, so here we do the easy thing and just kill a character and hope
-// it all works out. You can instead use the rule invocation stack
-// to do sophisticated error recovery if you are in a fragment rule.
-//
-// In general, lexers should not need to recover and should have rules that cover any eventuality, such as
-// a character that makes no sense to the recognizer.
-func (b *BaseLexer) Recover(re RecognitionException) {
- if b.input.LA(1) != TokenEOF {
- if _, ok := re.(*LexerNoViableAltException); ok {
- // Skip a char and try again
- b.Interpreter.Consume(b.input)
- } else {
- // TODO: Do we lose character or line position information?
- b.input.Consume()
- }
- }
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/lexer_action.go b/vendor/github.com/antlr4-go/antlr/v4/lexer_action.go
deleted file mode 100644
index eaa7393e0..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/lexer_action.go
+++ /dev/null
@@ -1,452 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import "strconv"
-
-const (
- // LexerActionTypeChannel represents a [LexerChannelAction] action.
- LexerActionTypeChannel = 0
-
- // LexerActionTypeCustom represents a [LexerCustomAction] action.
- LexerActionTypeCustom = 1
-
- // LexerActionTypeMode represents a [LexerModeAction] action.
- LexerActionTypeMode = 2
-
- // LexerActionTypeMore represents a [LexerMoreAction] action.
- LexerActionTypeMore = 3
-
- // LexerActionTypePopMode represents a [LexerPopModeAction] action.
- LexerActionTypePopMode = 4
-
- // LexerActionTypePushMode represents a [LexerPushModeAction] action.
- LexerActionTypePushMode = 5
-
- // LexerActionTypeSkip represents a [LexerSkipAction] action.
- LexerActionTypeSkip = 6
-
- // LexerActionTypeType represents a [LexerTypeAction] action.
- LexerActionTypeType = 7
-)
-
-type LexerAction interface {
- getActionType() int
- getIsPositionDependent() bool
- execute(lexer Lexer)
- Hash() int
- Equals(other LexerAction) bool
-}
-
-type BaseLexerAction struct {
- actionType int
- isPositionDependent bool
-}
-
-func NewBaseLexerAction(action int) *BaseLexerAction {
- la := new(BaseLexerAction)
-
- la.actionType = action
- la.isPositionDependent = false
-
- return la
-}
-
-func (b *BaseLexerAction) execute(_ Lexer) {
- panic("Not implemented")
-}
-
-func (b *BaseLexerAction) getActionType() int {
- return b.actionType
-}
-
-func (b *BaseLexerAction) getIsPositionDependent() bool {
- return b.isPositionDependent
-}
-
-func (b *BaseLexerAction) Hash() int {
- h := murmurInit(0)
- h = murmurUpdate(h, b.actionType)
- return murmurFinish(h, 1)
-}
-
-func (b *BaseLexerAction) Equals(other LexerAction) bool {
- return b.actionType == other.getActionType()
-}
-
-// LexerSkipAction implements the [BaseLexerAction.Skip] lexer action by calling [Lexer.Skip].
-//
-// The Skip command does not have any parameters, so this action is
-// implemented as a singleton instance exposed by the [LexerSkipActionINSTANCE].
-type LexerSkipAction struct {
- *BaseLexerAction
-}
-
-func NewLexerSkipAction() *LexerSkipAction {
- la := new(LexerSkipAction)
- la.BaseLexerAction = NewBaseLexerAction(LexerActionTypeSkip)
- return la
-}
-
-// LexerSkipActionINSTANCE provides a singleton instance of this parameterless lexer action.
-var LexerSkipActionINSTANCE = NewLexerSkipAction()
-
-func (l *LexerSkipAction) execute(lexer Lexer) {
- lexer.Skip()
-}
-
-// String returns a string representation of the current [LexerSkipAction].
-func (l *LexerSkipAction) String() string {
- return "skip"
-}
-
-func (b *LexerSkipAction) Equals(other LexerAction) bool {
- return other.getActionType() == LexerActionTypeSkip
-}
-
-// Implements the {@code type} lexer action by calling {@link Lexer//setType}
-//
-// with the assigned type.
-type LexerTypeAction struct {
- *BaseLexerAction
-
- thetype int
-}
-
-func NewLexerTypeAction(thetype int) *LexerTypeAction {
- l := new(LexerTypeAction)
- l.BaseLexerAction = NewBaseLexerAction(LexerActionTypeType)
- l.thetype = thetype
- return l
-}
-
-func (l *LexerTypeAction) execute(lexer Lexer) {
- lexer.SetType(l.thetype)
-}
-
-func (l *LexerTypeAction) Hash() int {
- h := murmurInit(0)
- h = murmurUpdate(h, l.actionType)
- h = murmurUpdate(h, l.thetype)
- return murmurFinish(h, 2)
-}
-
-func (l *LexerTypeAction) Equals(other LexerAction) bool {
- if l == other {
- return true
- } else if _, ok := other.(*LexerTypeAction); !ok {
- return false
- } else {
- return l.thetype == other.(*LexerTypeAction).thetype
- }
-}
-
-func (l *LexerTypeAction) String() string {
- return "actionType(" + strconv.Itoa(l.thetype) + ")"
-}
-
-// LexerPushModeAction implements the pushMode lexer action by calling
-// [Lexer.pushMode] with the assigned mode.
-type LexerPushModeAction struct {
- *BaseLexerAction
- mode int
-}
-
-func NewLexerPushModeAction(mode int) *LexerPushModeAction {
-
- l := new(LexerPushModeAction)
- l.BaseLexerAction = NewBaseLexerAction(LexerActionTypePushMode)
-
- l.mode = mode
- return l
-}
-
-// This action is implemented by calling {@link Lexer//pushMode} with the
-// value provided by {@link //getMode}.
-func (l *LexerPushModeAction) execute(lexer Lexer) {
- lexer.PushMode(l.mode)
-}
-
-func (l *LexerPushModeAction) Hash() int {
- h := murmurInit(0)
- h = murmurUpdate(h, l.actionType)
- h = murmurUpdate(h, l.mode)
- return murmurFinish(h, 2)
-}
-
-func (l *LexerPushModeAction) Equals(other LexerAction) bool {
- if l == other {
- return true
- } else if _, ok := other.(*LexerPushModeAction); !ok {
- return false
- } else {
- return l.mode == other.(*LexerPushModeAction).mode
- }
-}
-
-func (l *LexerPushModeAction) String() string {
- return "pushMode(" + strconv.Itoa(l.mode) + ")"
-}
-
-// LexerPopModeAction implements the popMode lexer action by calling [Lexer.popMode].
-//
-// The popMode command does not have any parameters, so this action is
-// implemented as a singleton instance exposed by [LexerPopModeActionINSTANCE]
-type LexerPopModeAction struct {
- *BaseLexerAction
-}
-
-func NewLexerPopModeAction() *LexerPopModeAction {
-
- l := new(LexerPopModeAction)
-
- l.BaseLexerAction = NewBaseLexerAction(LexerActionTypePopMode)
-
- return l
-}
-
-var LexerPopModeActionINSTANCE = NewLexerPopModeAction()
-
-// This action is implemented by calling {@link Lexer//popMode}.
-func (l *LexerPopModeAction) execute(lexer Lexer) {
- lexer.PopMode()
-}
-
-func (l *LexerPopModeAction) String() string {
- return "popMode"
-}
-
-// Implements the {@code more} lexer action by calling {@link Lexer//more}.
-//
-// The {@code more} command does not have any parameters, so l action is
-// implemented as a singleton instance exposed by {@link //INSTANCE}.
-
-type LexerMoreAction struct {
- *BaseLexerAction
-}
-
-func NewLexerMoreAction() *LexerMoreAction {
- l := new(LexerMoreAction)
- l.BaseLexerAction = NewBaseLexerAction(LexerActionTypeMore)
-
- return l
-}
-
-var LexerMoreActionINSTANCE = NewLexerMoreAction()
-
-// This action is implemented by calling {@link Lexer//popMode}.
-func (l *LexerMoreAction) execute(lexer Lexer) {
- lexer.More()
-}
-
-func (l *LexerMoreAction) String() string {
- return "more"
-}
-
-// LexerModeAction implements the mode lexer action by calling [Lexer.mode] with
-// the assigned mode.
-type LexerModeAction struct {
- *BaseLexerAction
- mode int
-}
-
-func NewLexerModeAction(mode int) *LexerModeAction {
- l := new(LexerModeAction)
- l.BaseLexerAction = NewBaseLexerAction(LexerActionTypeMode)
- l.mode = mode
- return l
-}
-
-// This action is implemented by calling {@link Lexer//mode} with the
-// value provided by {@link //getMode}.
-func (l *LexerModeAction) execute(lexer Lexer) {
- lexer.SetMode(l.mode)
-}
-
-func (l *LexerModeAction) Hash() int {
- h := murmurInit(0)
- h = murmurUpdate(h, l.actionType)
- h = murmurUpdate(h, l.mode)
- return murmurFinish(h, 2)
-}
-
-func (l *LexerModeAction) Equals(other LexerAction) bool {
- if l == other {
- return true
- } else if _, ok := other.(*LexerModeAction); !ok {
- return false
- } else {
- return l.mode == other.(*LexerModeAction).mode
- }
-}
-
-func (l *LexerModeAction) String() string {
- return "mode(" + strconv.Itoa(l.mode) + ")"
-}
-
-// Executes a custom lexer action by calling {@link Recognizer//action} with the
-// rule and action indexes assigned to the custom action. The implementation of
-// a custom action is added to the generated code for the lexer in an override
-// of {@link Recognizer//action} when the grammar is compiled.
-//
-// This class may represent embedded actions created with the {...}
-// syntax in ANTLR 4, as well as actions created for lexer commands where the
-// command argument could not be evaluated when the grammar was compiled.
-
-// Constructs a custom lexer action with the specified rule and action
-// indexes.
-//
-// @param ruleIndex The rule index to use for calls to
-// {@link Recognizer//action}.
-// @param actionIndex The action index to use for calls to
-// {@link Recognizer//action}.
-
-type LexerCustomAction struct {
- *BaseLexerAction
- ruleIndex, actionIndex int
-}
-
-func NewLexerCustomAction(ruleIndex, actionIndex int) *LexerCustomAction {
- l := new(LexerCustomAction)
- l.BaseLexerAction = NewBaseLexerAction(LexerActionTypeCustom)
- l.ruleIndex = ruleIndex
- l.actionIndex = actionIndex
- l.isPositionDependent = true
- return l
-}
-
-// Custom actions are implemented by calling {@link Lexer//action} with the
-// appropriate rule and action indexes.
-func (l *LexerCustomAction) execute(lexer Lexer) {
- lexer.Action(nil, l.ruleIndex, l.actionIndex)
-}
-
-func (l *LexerCustomAction) Hash() int {
- h := murmurInit(0)
- h = murmurUpdate(h, l.actionType)
- h = murmurUpdate(h, l.ruleIndex)
- h = murmurUpdate(h, l.actionIndex)
- return murmurFinish(h, 3)
-}
-
-func (l *LexerCustomAction) Equals(other LexerAction) bool {
- if l == other {
- return true
- } else if _, ok := other.(*LexerCustomAction); !ok {
- return false
- } else {
- return l.ruleIndex == other.(*LexerCustomAction).ruleIndex &&
- l.actionIndex == other.(*LexerCustomAction).actionIndex
- }
-}
-
-// LexerChannelAction implements the channel lexer action by calling
-// [Lexer.setChannel] with the assigned channel.
-//
-// Constructs a new channel action with the specified channel value.
-type LexerChannelAction struct {
- *BaseLexerAction
- channel int
-}
-
-// NewLexerChannelAction creates a channel lexer action by calling
-// [Lexer.setChannel] with the assigned channel.
-//
-// Constructs a new channel action with the specified channel value.
-func NewLexerChannelAction(channel int) *LexerChannelAction {
- l := new(LexerChannelAction)
- l.BaseLexerAction = NewBaseLexerAction(LexerActionTypeChannel)
- l.channel = channel
- return l
-}
-
-// This action is implemented by calling {@link Lexer//setChannel} with the
-// value provided by {@link //getChannel}.
-func (l *LexerChannelAction) execute(lexer Lexer) {
- lexer.SetChannel(l.channel)
-}
-
-func (l *LexerChannelAction) Hash() int {
- h := murmurInit(0)
- h = murmurUpdate(h, l.actionType)
- h = murmurUpdate(h, l.channel)
- return murmurFinish(h, 2)
-}
-
-func (l *LexerChannelAction) Equals(other LexerAction) bool {
- if l == other {
- return true
- } else if _, ok := other.(*LexerChannelAction); !ok {
- return false
- } else {
- return l.channel == other.(*LexerChannelAction).channel
- }
-}
-
-func (l *LexerChannelAction) String() string {
- return "channel(" + strconv.Itoa(l.channel) + ")"
-}
-
-// This implementation of {@link LexerAction} is used for tracking input offsets
-// for position-dependent actions within a {@link LexerActionExecutor}.
-//
-// This action is not serialized as part of the ATN, and is only required for
-// position-dependent lexer actions which appear at a location other than the
-// end of a rule. For more information about DFA optimizations employed for
-// lexer actions, see {@link LexerActionExecutor//append} and
-// {@link LexerActionExecutor//fixOffsetBeforeMatch}.
-
-type LexerIndexedCustomAction struct {
- *BaseLexerAction
- offset int
- lexerAction LexerAction
- isPositionDependent bool
-}
-
-// NewLexerIndexedCustomAction constructs a new indexed custom action by associating a character offset
-// with a [LexerAction].
-//
-// Note: This class is only required for lexer actions for which
-// [LexerAction.isPositionDependent] returns true.
-//
-// The offset points into the input [CharStream], relative to
-// the token start index, at which the specified lexerAction should be
-// executed.
-func NewLexerIndexedCustomAction(offset int, lexerAction LexerAction) *LexerIndexedCustomAction {
-
- l := new(LexerIndexedCustomAction)
- l.BaseLexerAction = NewBaseLexerAction(lexerAction.getActionType())
-
- l.offset = offset
- l.lexerAction = lexerAction
- l.isPositionDependent = true
-
- return l
-}
-
-// This method calls {@link //execute} on the result of {@link //getAction}
-// using the provided {@code lexer}.
-func (l *LexerIndexedCustomAction) execute(lexer Lexer) {
- // assume the input stream position was properly set by the calling code
- l.lexerAction.execute(lexer)
-}
-
-func (l *LexerIndexedCustomAction) Hash() int {
- h := murmurInit(0)
- h = murmurUpdate(h, l.offset)
- h = murmurUpdate(h, l.lexerAction.Hash())
- return murmurFinish(h, 2)
-}
-
-func (l *LexerIndexedCustomAction) equals(other LexerAction) bool {
- if l == other {
- return true
- } else if _, ok := other.(*LexerIndexedCustomAction); !ok {
- return false
- } else {
- return l.offset == other.(*LexerIndexedCustomAction).offset &&
- l.lexerAction.Equals(other.(*LexerIndexedCustomAction).lexerAction)
- }
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/lexer_action_executor.go b/vendor/github.com/antlr4-go/antlr/v4/lexer_action_executor.go
deleted file mode 100644
index dfc28c32b..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/lexer_action_executor.go
+++ /dev/null
@@ -1,173 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import "golang.org/x/exp/slices"
-
-// Represents an executor for a sequence of lexer actions which traversed during
-// the Matching operation of a lexer rule (token).
-//
-// The executor tracks position information for position-dependent lexer actions
-// efficiently, ensuring that actions appearing only at the end of the rule do
-// not cause bloating of the {@link DFA} created for the lexer.
-
-type LexerActionExecutor struct {
- lexerActions []LexerAction
- cachedHash int
-}
-
-func NewLexerActionExecutor(lexerActions []LexerAction) *LexerActionExecutor {
-
- if lexerActions == nil {
- lexerActions = make([]LexerAction, 0)
- }
-
- l := new(LexerActionExecutor)
-
- l.lexerActions = lexerActions
-
- // Caches the result of {@link //hashCode} since the hash code is an element
- // of the performance-critical {@link ATNConfig//hashCode} operation.
- l.cachedHash = murmurInit(0)
- for _, a := range lexerActions {
- l.cachedHash = murmurUpdate(l.cachedHash, a.Hash())
- }
- l.cachedHash = murmurFinish(l.cachedHash, len(lexerActions))
-
- return l
-}
-
-// LexerActionExecutorappend creates a [LexerActionExecutor] which executes the actions for
-// the input [LexerActionExecutor] followed by a specified
-// [LexerAction].
-// TODO: This does not match the Java code
-func LexerActionExecutorappend(lexerActionExecutor *LexerActionExecutor, lexerAction LexerAction) *LexerActionExecutor {
- if lexerActionExecutor == nil {
- return NewLexerActionExecutor([]LexerAction{lexerAction})
- }
-
- return NewLexerActionExecutor(append(lexerActionExecutor.lexerActions, lexerAction))
-}
-
-// fixOffsetBeforeMatch creates a [LexerActionExecutor] which encodes the current offset
-// for position-dependent lexer actions.
-//
-// Normally, when the executor encounters lexer actions where
-// [LexerAction.isPositionDependent] returns true, it calls
-// [IntStream.Seek] on the input [CharStream] to set the input
-// position to the end of the current token. This behavior provides
-// for efficient [DFA] representation of lexer actions which appear at the end
-// of a lexer rule, even when the lexer rule Matches a variable number of
-// characters.
-//
-// Prior to traversing a Match transition in the [ATN], the current offset
-// from the token start index is assigned to all position-dependent lexer
-// actions which have not already been assigned a fixed offset. By storing
-// the offsets relative to the token start index, the [DFA] representation of
-// lexer actions which appear in the middle of tokens remains efficient due
-// to sharing among tokens of the same Length, regardless of their absolute
-// position in the input stream.
-//
-// If the current executor already has offsets assigned to all
-// position-dependent lexer actions, the method returns this instance.
-//
-// The offset is assigned to all position-dependent
-// lexer actions which do not already have offsets assigned.
-//
-// The func returns a [LexerActionExecutor] that stores input stream offsets
-// for all position-dependent lexer actions.
-func (l *LexerActionExecutor) fixOffsetBeforeMatch(offset int) *LexerActionExecutor {
- var updatedLexerActions []LexerAction
- for i := 0; i < len(l.lexerActions); i++ {
- _, ok := l.lexerActions[i].(*LexerIndexedCustomAction)
- if l.lexerActions[i].getIsPositionDependent() && !ok {
- if updatedLexerActions == nil {
- updatedLexerActions = make([]LexerAction, 0, len(l.lexerActions))
- updatedLexerActions = append(updatedLexerActions, l.lexerActions...)
- }
- updatedLexerActions[i] = NewLexerIndexedCustomAction(offset, l.lexerActions[i])
- }
- }
- if updatedLexerActions == nil {
- return l
- }
-
- return NewLexerActionExecutor(updatedLexerActions)
-}
-
-// Execute the actions encapsulated by l executor within the context of a
-// particular {@link Lexer}.
-//
-// This method calls {@link IntStream//seek} to set the position of the
-// {@code input} {@link CharStream} prior to calling
-// {@link LexerAction//execute} on a position-dependent action. Before the
-// method returns, the input position will be restored to the same position
-// it was in when the method was invoked.
-//
-// @param lexer The lexer instance.
-// @param input The input stream which is the source for the current token.
-// When l method is called, the current {@link IntStream//index} for
-// {@code input} should be the start of the following token, i.e. 1
-// character past the end of the current token.
-// @param startIndex The token start index. This value may be passed to
-// {@link IntStream//seek} to set the {@code input} position to the beginning
-// of the token.
-// /
-func (l *LexerActionExecutor) execute(lexer Lexer, input CharStream, startIndex int) {
- requiresSeek := false
- stopIndex := input.Index()
-
- defer func() {
- if requiresSeek {
- input.Seek(stopIndex)
- }
- }()
-
- for i := 0; i < len(l.lexerActions); i++ {
- lexerAction := l.lexerActions[i]
- if la, ok := lexerAction.(*LexerIndexedCustomAction); ok {
- offset := la.offset
- input.Seek(startIndex + offset)
- lexerAction = la.lexerAction
- requiresSeek = (startIndex + offset) != stopIndex
- } else if lexerAction.getIsPositionDependent() {
- input.Seek(stopIndex)
- requiresSeek = false
- }
- lexerAction.execute(lexer)
- }
-}
-
-func (l *LexerActionExecutor) Hash() int {
- if l == nil {
- // TODO: Why is this here? l should not be nil
- return 61
- }
-
- // TODO: This is created from the action itself when the struct is created - will this be an issue at some point? Java uses the runtime assign hashcode
- return l.cachedHash
-}
-
-func (l *LexerActionExecutor) Equals(other interface{}) bool {
- if l == other {
- return true
- }
- othert, ok := other.(*LexerActionExecutor)
- if !ok {
- return false
- }
- if othert == nil {
- return false
- }
- if l.cachedHash != othert.cachedHash {
- return false
- }
- if len(l.lexerActions) != len(othert.lexerActions) {
- return false
- }
- return slices.EqualFunc(l.lexerActions, othert.lexerActions, func(i, j LexerAction) bool {
- return i.Equals(j)
- })
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/lexer_atn_simulator.go b/vendor/github.com/antlr4-go/antlr/v4/lexer_atn_simulator.go
deleted file mode 100644
index fe938b025..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/lexer_atn_simulator.go
+++ /dev/null
@@ -1,677 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "fmt"
- "strconv"
- "strings"
-)
-
-//goland:noinspection GoUnusedGlobalVariable
-var (
- LexerATNSimulatorMinDFAEdge = 0
- LexerATNSimulatorMaxDFAEdge = 127 // forces unicode to stay in ATN
-
- LexerATNSimulatorMatchCalls = 0
-)
-
-type ILexerATNSimulator interface {
- IATNSimulator
-
- reset()
- Match(input CharStream, mode int) int
- GetCharPositionInLine() int
- GetLine() int
- GetText(input CharStream) string
- Consume(input CharStream)
-}
-
-type LexerATNSimulator struct {
- BaseATNSimulator
-
- recog Lexer
- predictionMode int
- mergeCache *JPCMap2
- startIndex int
- Line int
- CharPositionInLine int
- mode int
- prevAccept *SimState
- MatchCalls int
-}
-
-func NewLexerATNSimulator(recog Lexer, atn *ATN, decisionToDFA []*DFA, sharedContextCache *PredictionContextCache) *LexerATNSimulator {
- l := &LexerATNSimulator{
- BaseATNSimulator: BaseATNSimulator{
- atn: atn,
- sharedContextCache: sharedContextCache,
- },
- }
-
- l.decisionToDFA = decisionToDFA
- l.recog = recog
-
- // The current token's starting index into the character stream.
- // Shared across DFA to ATN simulation in case the ATN fails and the
- // DFA did not have a previous accept state. In l case, we use the
- // ATN-generated exception object.
- l.startIndex = -1
-
- // line number 1..n within the input
- l.Line = 1
-
- // The index of the character relative to the beginning of the line
- // 0..n-1
- l.CharPositionInLine = 0
-
- l.mode = LexerDefaultMode
-
- // Used during DFA/ATN exec to record the most recent accept configuration
- // info
- l.prevAccept = NewSimState()
-
- return l
-}
-
-func (l *LexerATNSimulator) copyState(simulator *LexerATNSimulator) {
- l.CharPositionInLine = simulator.CharPositionInLine
- l.Line = simulator.Line
- l.mode = simulator.mode
- l.startIndex = simulator.startIndex
-}
-
-func (l *LexerATNSimulator) Match(input CharStream, mode int) int {
- l.MatchCalls++
- l.mode = mode
- mark := input.Mark()
-
- defer func() {
- input.Release(mark)
- }()
-
- l.startIndex = input.Index()
- l.prevAccept.reset()
-
- dfa := l.decisionToDFA[mode]
-
- var s0 *DFAState
- l.atn.stateMu.RLock()
- s0 = dfa.getS0()
- l.atn.stateMu.RUnlock()
-
- if s0 == nil {
- return l.MatchATN(input)
- }
-
- return l.execATN(input, s0)
-}
-
-func (l *LexerATNSimulator) reset() {
- l.prevAccept.reset()
- l.startIndex = -1
- l.Line = 1
- l.CharPositionInLine = 0
- l.mode = LexerDefaultMode
-}
-
-func (l *LexerATNSimulator) MatchATN(input CharStream) int {
- startState := l.atn.modeToStartState[l.mode]
-
- if runtimeConfig.lexerATNSimulatorDebug {
- fmt.Println("MatchATN mode " + strconv.Itoa(l.mode) + " start: " + startState.String())
- }
- oldMode := l.mode
- s0Closure := l.computeStartState(input, startState)
- suppressEdge := s0Closure.hasSemanticContext
- s0Closure.hasSemanticContext = false
-
- next := l.addDFAState(s0Closure, suppressEdge)
-
- predict := l.execATN(input, next)
-
- if runtimeConfig.lexerATNSimulatorDebug {
- fmt.Println("DFA after MatchATN: " + l.decisionToDFA[oldMode].ToLexerString())
- }
- return predict
-}
-
-func (l *LexerATNSimulator) execATN(input CharStream, ds0 *DFAState) int {
-
- if runtimeConfig.lexerATNSimulatorDebug {
- fmt.Println("start state closure=" + ds0.configs.String())
- }
- if ds0.isAcceptState {
- // allow zero-Length tokens
- l.captureSimState(l.prevAccept, input, ds0)
- }
- t := input.LA(1)
- s := ds0 // s is current/from DFA state
-
- for { // while more work
- if runtimeConfig.lexerATNSimulatorDebug {
- fmt.Println("execATN loop starting closure: " + s.configs.String())
- }
-
- // As we move src->trg, src->trg, we keep track of the previous trg to
- // avoid looking up the DFA state again, which is expensive.
- // If the previous target was already part of the DFA, we might
- // be able to avoid doing a reach operation upon t. If s!=nil,
- // it means that semantic predicates didn't prevent us from
- // creating a DFA state. Once we know s!=nil, we check to see if
- // the DFA state has an edge already for t. If so, we can just reuse
- // it's configuration set there's no point in re-computing it.
- // This is kind of like doing DFA simulation within the ATN
- // simulation because DFA simulation is really just a way to avoid
- // computing reach/closure sets. Technically, once we know that
- // we have a previously added DFA state, we could jump over to
- // the DFA simulator. But, that would mean popping back and forth
- // a lot and making things more complicated algorithmically.
- // This optimization makes a lot of sense for loops within DFA.
- // A character will take us back to an existing DFA state
- // that already has lots of edges out of it. e.g., .* in comments.
- target := l.getExistingTargetState(s, t)
- if target == nil {
- target = l.computeTargetState(input, s, t)
- // print("Computed:" + str(target))
- }
- if target == ATNSimulatorError {
- break
- }
- // If l is a consumable input element, make sure to consume before
- // capturing the accept state so the input index, line, and char
- // position accurately reflect the state of the interpreter at the
- // end of the token.
- if t != TokenEOF {
- l.Consume(input)
- }
- if target.isAcceptState {
- l.captureSimState(l.prevAccept, input, target)
- if t == TokenEOF {
- break
- }
- }
- t = input.LA(1)
- s = target // flip current DFA target becomes new src/from state
- }
-
- return l.failOrAccept(l.prevAccept, input, s.configs, t)
-}
-
-// Get an existing target state for an edge in the DFA. If the target state
-// for the edge has not yet been computed or is otherwise not available,
-// l method returns {@code nil}.
-//
-// @param s The current DFA state
-// @param t The next input symbol
-// @return The existing target DFA state for the given input symbol
-// {@code t}, or {@code nil} if the target state for l edge is not
-// already cached
-func (l *LexerATNSimulator) getExistingTargetState(s *DFAState, t int) *DFAState {
- if t < LexerATNSimulatorMinDFAEdge || t > LexerATNSimulatorMaxDFAEdge {
- return nil
- }
-
- l.atn.edgeMu.RLock()
- defer l.atn.edgeMu.RUnlock()
- if s.getEdges() == nil {
- return nil
- }
- target := s.getIthEdge(t - LexerATNSimulatorMinDFAEdge)
- if runtimeConfig.lexerATNSimulatorDebug && target != nil {
- fmt.Println("reuse state " + strconv.Itoa(s.stateNumber) + " edge to " + strconv.Itoa(target.stateNumber))
- }
- return target
-}
-
-// computeTargetState computes a target state for an edge in the [DFA], and attempt to add the
-// computed state and corresponding edge to the [DFA].
-//
-// The func returns the computed target [DFA] state for the given input symbol t.
-// If this does not lead to a valid [DFA] state, this method
-// returns ATNSimulatorError.
-func (l *LexerATNSimulator) computeTargetState(input CharStream, s *DFAState, t int) *DFAState {
- reach := NewOrderedATNConfigSet()
-
- // if we don't find an existing DFA state
- // Fill reach starting from closure, following t transitions
- l.getReachableConfigSet(input, s.configs, reach, t)
-
- if len(reach.configs) == 0 { // we got nowhere on t from s
- if !reach.hasSemanticContext {
- // we got nowhere on t, don't panic out l knowledge it'd
- // cause a fail-over from DFA later.
- l.addDFAEdge(s, t, ATNSimulatorError, nil)
- }
- // stop when we can't Match any more char
- return ATNSimulatorError
- }
- // Add an edge from s to target DFA found/created for reach
- return l.addDFAEdge(s, t, nil, reach)
-}
-
-func (l *LexerATNSimulator) failOrAccept(prevAccept *SimState, input CharStream, reach *ATNConfigSet, t int) int {
- if l.prevAccept.dfaState != nil {
- lexerActionExecutor := prevAccept.dfaState.lexerActionExecutor
- l.accept(input, lexerActionExecutor, l.startIndex, prevAccept.index, prevAccept.line, prevAccept.column)
- return prevAccept.dfaState.prediction
- }
-
- // if no accept and EOF is first char, return EOF
- if t == TokenEOF && input.Index() == l.startIndex {
- return TokenEOF
- }
-
- panic(NewLexerNoViableAltException(l.recog, input, l.startIndex, reach))
-}
-
-// getReachableConfigSet when given a starting configuration set, figures out all [ATN] configurations
-// we can reach upon input t.
-//
-// Parameter reach is a return parameter.
-func (l *LexerATNSimulator) getReachableConfigSet(input CharStream, closure *ATNConfigSet, reach *ATNConfigSet, t int) {
- // l is used to Skip processing for configs which have a lower priority
- // than a runtimeConfig that already reached an accept state for the same rule
- SkipAlt := ATNInvalidAltNumber
-
- for _, cfg := range closure.configs {
- currentAltReachedAcceptState := cfg.GetAlt() == SkipAlt
- if currentAltReachedAcceptState && cfg.passedThroughNonGreedyDecision {
- continue
- }
-
- if runtimeConfig.lexerATNSimulatorDebug {
-
- fmt.Printf("testing %s at %s\n", l.GetTokenName(t), cfg.String())
- }
-
- for _, trans := range cfg.GetState().GetTransitions() {
- target := l.getReachableTarget(trans, t)
- if target != nil {
- lexerActionExecutor := cfg.lexerActionExecutor
- if lexerActionExecutor != nil {
- lexerActionExecutor = lexerActionExecutor.fixOffsetBeforeMatch(input.Index() - l.startIndex)
- }
- treatEOFAsEpsilon := t == TokenEOF
- config := NewLexerATNConfig3(cfg, target, lexerActionExecutor)
- if l.closure(input, config, reach,
- currentAltReachedAcceptState, true, treatEOFAsEpsilon) {
- // any remaining configs for l alt have a lower priority
- // than the one that just reached an accept state.
- SkipAlt = cfg.GetAlt()
- }
- }
- }
- }
-}
-
-func (l *LexerATNSimulator) accept(input CharStream, lexerActionExecutor *LexerActionExecutor, startIndex, index, line, charPos int) {
- if runtimeConfig.lexerATNSimulatorDebug {
- fmt.Printf("ACTION %v\n", lexerActionExecutor)
- }
- // seek to after last char in token
- input.Seek(index)
- l.Line = line
- l.CharPositionInLine = charPos
- if lexerActionExecutor != nil && l.recog != nil {
- lexerActionExecutor.execute(l.recog, input, startIndex)
- }
-}
-
-func (l *LexerATNSimulator) getReachableTarget(trans Transition, t int) ATNState {
- if trans.Matches(t, 0, LexerMaxCharValue) {
- return trans.getTarget()
- }
-
- return nil
-}
-
-func (l *LexerATNSimulator) computeStartState(input CharStream, p ATNState) *ATNConfigSet {
- configs := NewOrderedATNConfigSet()
- for i := 0; i < len(p.GetTransitions()); i++ {
- target := p.GetTransitions()[i].getTarget()
- cfg := NewLexerATNConfig6(target, i+1, BasePredictionContextEMPTY)
- l.closure(input, cfg, configs, false, false, false)
- }
-
- return configs
-}
-
-// closure since the alternatives within any lexer decision are ordered by
-// preference, this method stops pursuing the closure as soon as an accept
-// state is reached. After the first accept state is reached by depth-first
-// search from runtimeConfig, all other (potentially reachable) states for
-// this rule would have a lower priority.
-//
-// The func returns true if an accept state is reached.
-func (l *LexerATNSimulator) closure(input CharStream, config *ATNConfig, configs *ATNConfigSet,
- currentAltReachedAcceptState, speculative, treatEOFAsEpsilon bool) bool {
-
- if runtimeConfig.lexerATNSimulatorDebug {
- fmt.Println("closure(" + config.String() + ")")
- }
-
- _, ok := config.state.(*RuleStopState)
- if ok {
-
- if runtimeConfig.lexerATNSimulatorDebug {
- if l.recog != nil {
- fmt.Printf("closure at %s rule stop %s\n", l.recog.GetRuleNames()[config.state.GetRuleIndex()], config)
- } else {
- fmt.Printf("closure at rule stop %s\n", config)
- }
- }
-
- if config.context == nil || config.context.hasEmptyPath() {
- if config.context == nil || config.context.isEmpty() {
- configs.Add(config, nil)
- return true
- }
-
- configs.Add(NewLexerATNConfig2(config, config.state, BasePredictionContextEMPTY), nil)
- currentAltReachedAcceptState = true
- }
- if config.context != nil && !config.context.isEmpty() {
- for i := 0; i < config.context.length(); i++ {
- if config.context.getReturnState(i) != BasePredictionContextEmptyReturnState {
- newContext := config.context.GetParent(i) // "pop" return state
- returnState := l.atn.states[config.context.getReturnState(i)]
- cfg := NewLexerATNConfig2(config, returnState, newContext)
- currentAltReachedAcceptState = l.closure(input, cfg, configs, currentAltReachedAcceptState, speculative, treatEOFAsEpsilon)
- }
- }
- }
- return currentAltReachedAcceptState
- }
- // optimization
- if !config.state.GetEpsilonOnlyTransitions() {
- if !currentAltReachedAcceptState || !config.passedThroughNonGreedyDecision {
- configs.Add(config, nil)
- }
- }
- for j := 0; j < len(config.state.GetTransitions()); j++ {
- trans := config.state.GetTransitions()[j]
- cfg := l.getEpsilonTarget(input, config, trans, configs, speculative, treatEOFAsEpsilon)
- if cfg != nil {
- currentAltReachedAcceptState = l.closure(input, cfg, configs,
- currentAltReachedAcceptState, speculative, treatEOFAsEpsilon)
- }
- }
- return currentAltReachedAcceptState
-}
-
-// side-effect: can alter configs.hasSemanticContext
-func (l *LexerATNSimulator) getEpsilonTarget(input CharStream, config *ATNConfig, trans Transition,
- configs *ATNConfigSet, speculative, treatEOFAsEpsilon bool) *ATNConfig {
-
- var cfg *ATNConfig
-
- if trans.getSerializationType() == TransitionRULE {
-
- rt := trans.(*RuleTransition)
- newContext := SingletonBasePredictionContextCreate(config.context, rt.followState.GetStateNumber())
- cfg = NewLexerATNConfig2(config, trans.getTarget(), newContext)
-
- } else if trans.getSerializationType() == TransitionPRECEDENCE {
- panic("Precedence predicates are not supported in lexers.")
- } else if trans.getSerializationType() == TransitionPREDICATE {
- // Track traversing semantic predicates. If we traverse,
- // we cannot add a DFA state for l "reach" computation
- // because the DFA would not test the predicate again in the
- // future. Rather than creating collections of semantic predicates
- // like v3 and testing them on prediction, v4 will test them on the
- // fly all the time using the ATN not the DFA. This is slower but
- // semantically it's not used that often. One of the key elements to
- // l predicate mechanism is not adding DFA states that see
- // predicates immediately afterwards in the ATN. For example,
-
- // a : ID {p1}? | ID {p2}?
-
- // should create the start state for rule 'a' (to save start state
- // competition), but should not create target of ID state. The
- // collection of ATN states the following ID references includes
- // states reached by traversing predicates. Since l is when we
- // test them, we cannot cash the DFA state target of ID.
-
- pt := trans.(*PredicateTransition)
-
- if runtimeConfig.lexerATNSimulatorDebug {
- fmt.Println("EVAL rule " + strconv.Itoa(trans.(*PredicateTransition).ruleIndex) + ":" + strconv.Itoa(pt.predIndex))
- }
- configs.hasSemanticContext = true
- if l.evaluatePredicate(input, pt.ruleIndex, pt.predIndex, speculative) {
- cfg = NewLexerATNConfig4(config, trans.getTarget())
- }
- } else if trans.getSerializationType() == TransitionACTION {
- if config.context == nil || config.context.hasEmptyPath() {
- // execute actions anywhere in the start rule for a token.
- //
- // TODO: if the entry rule is invoked recursively, some
- // actions may be executed during the recursive call. The
- // problem can appear when hasEmptyPath() is true but
- // isEmpty() is false. In this case, the config needs to be
- // split into two contexts - one with just the empty path
- // and another with everything but the empty path.
- // Unfortunately, the current algorithm does not allow
- // getEpsilonTarget to return two configurations, so
- // additional modifications are needed before we can support
- // the split operation.
- lexerActionExecutor := LexerActionExecutorappend(config.lexerActionExecutor, l.atn.lexerActions[trans.(*ActionTransition).actionIndex])
- cfg = NewLexerATNConfig3(config, trans.getTarget(), lexerActionExecutor)
- } else {
- // ignore actions in referenced rules
- cfg = NewLexerATNConfig4(config, trans.getTarget())
- }
- } else if trans.getSerializationType() == TransitionEPSILON {
- cfg = NewLexerATNConfig4(config, trans.getTarget())
- } else if trans.getSerializationType() == TransitionATOM ||
- trans.getSerializationType() == TransitionRANGE ||
- trans.getSerializationType() == TransitionSET {
- if treatEOFAsEpsilon {
- if trans.Matches(TokenEOF, 0, LexerMaxCharValue) {
- cfg = NewLexerATNConfig4(config, trans.getTarget())
- }
- }
- }
- return cfg
-}
-
-// evaluatePredicate eEvaluates a predicate specified in the lexer.
-//
-// If speculative is true, this method was called before
-// [consume] for the Matched character. This method should call
-// [consume] before evaluating the predicate to ensure position
-// sensitive values, including [GetText], [GetLine],
-// and [GetColumn], properly reflect the current
-// lexer state. This method should restore input and the simulator
-// to the original state before returning, i.e. undo the actions made by the
-// call to [Consume].
-//
-// The func returns true if the specified predicate evaluates to true.
-func (l *LexerATNSimulator) evaluatePredicate(input CharStream, ruleIndex, predIndex int, speculative bool) bool {
- // assume true if no recognizer was provided
- if l.recog == nil {
- return true
- }
- if !speculative {
- return l.recog.Sempred(nil, ruleIndex, predIndex)
- }
- savedcolumn := l.CharPositionInLine
- savedLine := l.Line
- index := input.Index()
- marker := input.Mark()
-
- defer func() {
- l.CharPositionInLine = savedcolumn
- l.Line = savedLine
- input.Seek(index)
- input.Release(marker)
- }()
-
- l.Consume(input)
- return l.recog.Sempred(nil, ruleIndex, predIndex)
-}
-
-func (l *LexerATNSimulator) captureSimState(settings *SimState, input CharStream, dfaState *DFAState) {
- settings.index = input.Index()
- settings.line = l.Line
- settings.column = l.CharPositionInLine
- settings.dfaState = dfaState
-}
-
-func (l *LexerATNSimulator) addDFAEdge(from *DFAState, tk int, to *DFAState, cfgs *ATNConfigSet) *DFAState {
- if to == nil && cfgs != nil {
- // leading to l call, ATNConfigSet.hasSemanticContext is used as a
- // marker indicating dynamic predicate evaluation makes l edge
- // dependent on the specific input sequence, so the static edge in the
- // DFA should be omitted. The target DFAState is still created since
- // execATN has the ability to reSynchronize with the DFA state cache
- // following the predicate evaluation step.
- //
- // TJP notes: next time through the DFA, we see a pred again and eval.
- // If that gets us to a previously created (but dangling) DFA
- // state, we can continue in pure DFA mode from there.
- //
- suppressEdge := cfgs.hasSemanticContext
- cfgs.hasSemanticContext = false
- to = l.addDFAState(cfgs, true)
-
- if suppressEdge {
- return to
- }
- }
- // add the edge
- if tk < LexerATNSimulatorMinDFAEdge || tk > LexerATNSimulatorMaxDFAEdge {
- // Only track edges within the DFA bounds
- return to
- }
- if runtimeConfig.lexerATNSimulatorDebug {
- fmt.Println("EDGE " + from.String() + " -> " + to.String() + " upon " + strconv.Itoa(tk))
- }
- l.atn.edgeMu.Lock()
- defer l.atn.edgeMu.Unlock()
- if from.getEdges() == nil {
- // make room for tokens 1..n and -1 masquerading as index 0
- from.setEdges(make([]*DFAState, LexerATNSimulatorMaxDFAEdge-LexerATNSimulatorMinDFAEdge+1))
- }
- from.setIthEdge(tk-LexerATNSimulatorMinDFAEdge, to) // connect
-
- return to
-}
-
-// Add a NewDFA state if there isn't one with l set of
-// configurations already. This method also detects the first
-// configuration containing an ATN rule stop state. Later, when
-// traversing the DFA, we will know which rule to accept.
-func (l *LexerATNSimulator) addDFAState(configs *ATNConfigSet, suppressEdge bool) *DFAState {
-
- proposed := NewDFAState(-1, configs)
- var firstConfigWithRuleStopState *ATNConfig
-
- for _, cfg := range configs.configs {
- _, ok := cfg.GetState().(*RuleStopState)
-
- if ok {
- firstConfigWithRuleStopState = cfg
- break
- }
- }
- if firstConfigWithRuleStopState != nil {
- proposed.isAcceptState = true
- proposed.lexerActionExecutor = firstConfigWithRuleStopState.lexerActionExecutor
- proposed.setPrediction(l.atn.ruleToTokenType[firstConfigWithRuleStopState.GetState().GetRuleIndex()])
- }
- dfa := l.decisionToDFA[l.mode]
-
- l.atn.stateMu.Lock()
- defer l.atn.stateMu.Unlock()
- existing, present := dfa.Get(proposed)
- if present {
-
- // This state was already present, so just return it.
- //
- proposed = existing
- } else {
-
- // We need to add the new state
- //
- proposed.stateNumber = dfa.Len()
- configs.readOnly = true
- configs.configLookup = nil // Not needed now
- proposed.configs = configs
- dfa.Put(proposed)
- }
- if !suppressEdge {
- dfa.setS0(proposed)
- }
- return proposed
-}
-
-func (l *LexerATNSimulator) getDFA(mode int) *DFA {
- return l.decisionToDFA[mode]
-}
-
-// GetText returns the text [Match]ed so far for the current token.
-func (l *LexerATNSimulator) GetText(input CharStream) string {
- // index is first lookahead char, don't include.
- return input.GetTextFromInterval(NewInterval(l.startIndex, input.Index()-1))
-}
-
-func (l *LexerATNSimulator) Consume(input CharStream) {
- curChar := input.LA(1)
- if curChar == int('\n') {
- l.Line++
- l.CharPositionInLine = 0
- } else {
- l.CharPositionInLine++
- }
- input.Consume()
-}
-
-func (l *LexerATNSimulator) GetCharPositionInLine() int {
- return l.CharPositionInLine
-}
-
-func (l *LexerATNSimulator) GetLine() int {
- return l.Line
-}
-
-func (l *LexerATNSimulator) GetTokenName(tt int) string {
- if tt == -1 {
- return "EOF"
- }
-
- var sb strings.Builder
- sb.Grow(6)
- sb.WriteByte('\'')
- sb.WriteRune(rune(tt))
- sb.WriteByte('\'')
-
- return sb.String()
-}
-
-func resetSimState(sim *SimState) {
- sim.index = -1
- sim.line = 0
- sim.column = -1
- sim.dfaState = nil
-}
-
-type SimState struct {
- index int
- line int
- column int
- dfaState *DFAState
-}
-
-func NewSimState() *SimState {
- s := new(SimState)
- resetSimState(s)
- return s
-}
-
-func (s *SimState) reset() {
- resetSimState(s)
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/ll1_analyzer.go b/vendor/github.com/antlr4-go/antlr/v4/ll1_analyzer.go
deleted file mode 100644
index 4955ac876..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/ll1_analyzer.go
+++ /dev/null
@@ -1,218 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-type LL1Analyzer struct {
- atn *ATN
-}
-
-func NewLL1Analyzer(atn *ATN) *LL1Analyzer {
- la := new(LL1Analyzer)
- la.atn = atn
- return la
-}
-
-const (
- // LL1AnalyzerHitPred is a special value added to the lookahead sets to indicate that we hit
- // a predicate during analysis if
- //
- // seeThruPreds==false
- LL1AnalyzerHitPred = TokenInvalidType
-)
-
-// *
-// Calculates the SLL(1) expected lookahead set for each outgoing transition
-// of an {@link ATNState}. The returned array has one element for each
-// outgoing transition in {@code s}. If the closure from transition
-// i leads to a semantic predicate before Matching a symbol, the
-// element at index i of the result will be {@code nil}.
-//
-// @param s the ATN state
-// @return the expected symbols for each outgoing transition of {@code s}.
-func (la *LL1Analyzer) getDecisionLookahead(s ATNState) []*IntervalSet {
- if s == nil {
- return nil
- }
- count := len(s.GetTransitions())
- look := make([]*IntervalSet, count)
- for alt := 0; alt < count; alt++ {
-
- look[alt] = NewIntervalSet()
- lookBusy := NewJStore[*ATNConfig, Comparator[*ATNConfig]](aConfEqInst, ClosureBusyCollection, "LL1Analyzer.getDecisionLookahead for lookBusy")
- la.look1(s.GetTransitions()[alt].getTarget(), nil, BasePredictionContextEMPTY, look[alt], lookBusy, NewBitSet(), false, false)
-
- // Wipe out lookahead for la alternative if we found nothing,
- // or we had a predicate when we !seeThruPreds
- if look[alt].length() == 0 || look[alt].contains(LL1AnalyzerHitPred) {
- look[alt] = nil
- }
- }
- return look
-}
-
-// Look computes the set of tokens that can follow s in the [ATN] in the
-// specified ctx.
-//
-// If ctx is nil and the end of the rule containing
-// s is reached, [EPSILON] is added to the result set.
-//
-// If ctx is not nil and the end of the outermost rule is
-// reached, [EOF] is added to the result set.
-//
-// Parameter s the ATN state, and stopState is the ATN state to stop at. This can be a
-// [BlockEndState] to detect epsilon paths through a closure.
-//
-// Parameter ctx is the complete parser context, or nil if the context
-// should be ignored
-//
-// The func returns the set of tokens that can follow s in the [ATN] in the
-// specified ctx.
-func (la *LL1Analyzer) Look(s, stopState ATNState, ctx RuleContext) *IntervalSet {
- r := NewIntervalSet()
- var lookContext *PredictionContext
- if ctx != nil {
- lookContext = predictionContextFromRuleContext(s.GetATN(), ctx)
- }
- la.look1(s, stopState, lookContext, r, NewJStore[*ATNConfig, Comparator[*ATNConfig]](aConfEqInst, ClosureBusyCollection, "LL1Analyzer.Look for la.look1()"),
- NewBitSet(), true, true)
- return r
-}
-
-//*
-// Compute set of tokens that can follow {@code s} in the ATN in the
-// specified {@code ctx}.
-//
-// If {@code ctx} is {@code nil} and {@code stopState} or the end of the
-// rule containing {@code s} is reached, {@link Token//EPSILON} is added to
-// the result set. If {@code ctx} is not {@code nil} and {@code addEOF} is
-// {@code true} and {@code stopState} or the end of the outermost rule is
-// reached, {@link Token//EOF} is added to the result set.
-//
-// @param s the ATN state.
-// @param stopState the ATN state to stop at. This can be a
-// {@link BlockEndState} to detect epsilon paths through a closure.
-// @param ctx The outer context, or {@code nil} if the outer context should
-// not be used.
-// @param look The result lookahead set.
-// @param lookBusy A set used for preventing epsilon closures in the ATN
-// from causing a stack overflow. Outside code should pass
-// {@code NewSet} for la argument.
-// @param calledRuleStack A set used for preventing left recursion in the
-// ATN from causing a stack overflow. Outside code should pass
-// {@code NewBitSet()} for la argument.
-// @param seeThruPreds {@code true} to true semantic predicates as
-// implicitly {@code true} and "see through them", otherwise {@code false}
-// to treat semantic predicates as opaque and add {@link //HitPred} to the
-// result if one is encountered.
-// @param addEOF Add {@link Token//EOF} to the result if the end of the
-// outermost context is reached. This parameter has no effect if {@code ctx}
-// is {@code nil}.
-
-func (la *LL1Analyzer) look2(_, stopState ATNState, ctx *PredictionContext, look *IntervalSet, lookBusy *JStore[*ATNConfig, Comparator[*ATNConfig]],
- calledRuleStack *BitSet, seeThruPreds, addEOF bool, i int) {
-
- returnState := la.atn.states[ctx.getReturnState(i)]
- la.look1(returnState, stopState, ctx.GetParent(i), look, lookBusy, calledRuleStack, seeThruPreds, addEOF)
-
-}
-
-func (la *LL1Analyzer) look1(s, stopState ATNState, ctx *PredictionContext, look *IntervalSet, lookBusy *JStore[*ATNConfig, Comparator[*ATNConfig]], calledRuleStack *BitSet, seeThruPreds, addEOF bool) {
-
- c := NewATNConfig6(s, 0, ctx)
-
- if lookBusy.Contains(c) {
- return
- }
-
- _, present := lookBusy.Put(c)
- if present {
- return
-
- }
- if s == stopState {
- if ctx == nil {
- look.addOne(TokenEpsilon)
- return
- } else if ctx.isEmpty() && addEOF {
- look.addOne(TokenEOF)
- return
- }
- }
-
- _, ok := s.(*RuleStopState)
-
- if ok {
- if ctx == nil {
- look.addOne(TokenEpsilon)
- return
- } else if ctx.isEmpty() && addEOF {
- look.addOne(TokenEOF)
- return
- }
-
- if ctx.pcType != PredictionContextEmpty {
- removed := calledRuleStack.contains(s.GetRuleIndex())
- defer func() {
- if removed {
- calledRuleStack.add(s.GetRuleIndex())
- }
- }()
- calledRuleStack.remove(s.GetRuleIndex())
- // run thru all possible stack tops in ctx
- for i := 0; i < ctx.length(); i++ {
- returnState := la.atn.states[ctx.getReturnState(i)]
- la.look2(returnState, stopState, ctx, look, lookBusy, calledRuleStack, seeThruPreds, addEOF, i)
- }
- return
- }
- }
-
- n := len(s.GetTransitions())
-
- for i := 0; i < n; i++ {
- t := s.GetTransitions()[i]
-
- if t1, ok := t.(*RuleTransition); ok {
- if calledRuleStack.contains(t1.getTarget().GetRuleIndex()) {
- continue
- }
-
- newContext := SingletonBasePredictionContextCreate(ctx, t1.followState.GetStateNumber())
- la.look3(stopState, newContext, look, lookBusy, calledRuleStack, seeThruPreds, addEOF, t1)
- } else if t2, ok := t.(AbstractPredicateTransition); ok {
- if seeThruPreds {
- la.look1(t2.getTarget(), stopState, ctx, look, lookBusy, calledRuleStack, seeThruPreds, addEOF)
- } else {
- look.addOne(LL1AnalyzerHitPred)
- }
- } else if t.getIsEpsilon() {
- la.look1(t.getTarget(), stopState, ctx, look, lookBusy, calledRuleStack, seeThruPreds, addEOF)
- } else if _, ok := t.(*WildcardTransition); ok {
- look.addRange(TokenMinUserTokenType, la.atn.maxTokenType)
- } else {
- set := t.getLabel()
- if set != nil {
- if _, ok := t.(*NotSetTransition); ok {
- set = set.complement(TokenMinUserTokenType, la.atn.maxTokenType)
- }
- look.addSet(set)
- }
- }
- }
-}
-
-func (la *LL1Analyzer) look3(stopState ATNState, ctx *PredictionContext, look *IntervalSet, lookBusy *JStore[*ATNConfig, Comparator[*ATNConfig]],
- calledRuleStack *BitSet, seeThruPreds, addEOF bool, t1 *RuleTransition) {
-
- newContext := SingletonBasePredictionContextCreate(ctx, t1.followState.GetStateNumber())
-
- defer func() {
- calledRuleStack.remove(t1.getTarget().GetRuleIndex())
- }()
-
- calledRuleStack.add(t1.getTarget().GetRuleIndex())
- la.look1(t1.getTarget(), stopState, newContext, look, lookBusy, calledRuleStack, seeThruPreds, addEOF)
-
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/nostatistics.go b/vendor/github.com/antlr4-go/antlr/v4/nostatistics.go
deleted file mode 100644
index 923c7b52c..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/nostatistics.go
+++ /dev/null
@@ -1,47 +0,0 @@
-//go:build !antlr.stats
-
-package antlr
-
-// This file is compiled when the build configuration antlr.stats is not enabled.
-// which then allows the compiler to optimize out all the code that is not used.
-const collectStats = false
-
-// goRunStats is a dummy struct used when build configuration antlr.stats is not enabled.
-type goRunStats struct {
-}
-
-var Statistics = &goRunStats{}
-
-func (s *goRunStats) AddJStatRec(_ *JStatRec) {
- // Do nothing - compiler will optimize this out (hopefully)
-}
-
-func (s *goRunStats) CollectionAnomalies() {
- // Do nothing - compiler will optimize this out (hopefully)
-}
-
-func (s *goRunStats) Reset() {
- // Do nothing - compiler will optimize this out (hopefully)
-}
-
-func (s *goRunStats) Report(dir string, prefix string) error {
- // Do nothing - compiler will optimize this out (hopefully)
- return nil
-}
-
-func (s *goRunStats) Analyze() {
- // Do nothing - compiler will optimize this out (hopefully)
-}
-
-type statsOption func(*goRunStats) error
-
-func (s *goRunStats) Configure(options ...statsOption) error {
- // Do nothing - compiler will optimize this out (hopefully)
- return nil
-}
-
-func WithTopN(topN int) statsOption {
- return func(s *goRunStats) error {
- return nil
- }
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/parser.go b/vendor/github.com/antlr4-go/antlr/v4/parser.go
deleted file mode 100644
index fb57ac15d..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/parser.go
+++ /dev/null
@@ -1,700 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "fmt"
- "strconv"
-)
-
-type Parser interface {
- Recognizer
-
- GetInterpreter() *ParserATNSimulator
-
- GetTokenStream() TokenStream
- GetTokenFactory() TokenFactory
- GetParserRuleContext() ParserRuleContext
- SetParserRuleContext(ParserRuleContext)
- Consume() Token
- GetParseListeners() []ParseTreeListener
-
- GetErrorHandler() ErrorStrategy
- SetErrorHandler(ErrorStrategy)
- GetInputStream() IntStream
- GetCurrentToken() Token
- GetExpectedTokens() *IntervalSet
- NotifyErrorListeners(string, Token, RecognitionException)
- IsExpectedToken(int) bool
- GetPrecedence() int
- GetRuleInvocationStack(ParserRuleContext) []string
-}
-
-type BaseParser struct {
- *BaseRecognizer
-
- Interpreter *ParserATNSimulator
- BuildParseTrees bool
-
- input TokenStream
- errHandler ErrorStrategy
- precedenceStack IntStack
- ctx ParserRuleContext
-
- tracer *TraceListener
- parseListeners []ParseTreeListener
- _SyntaxErrors int
-}
-
-// NewBaseParser contains all the parsing support code to embed in parsers. Essentially most of it is error
-// recovery stuff.
-//
-//goland:noinspection GoUnusedExportedFunction
-func NewBaseParser(input TokenStream) *BaseParser {
-
- p := new(BaseParser)
-
- p.BaseRecognizer = NewBaseRecognizer()
-
- // The input stream.
- p.input = nil
-
- // The error handling strategy for the parser. The default value is a new
- // instance of {@link DefaultErrorStrategy}.
- p.errHandler = NewDefaultErrorStrategy()
- p.precedenceStack = make([]int, 0)
- p.precedenceStack.Push(0)
-
- // The ParserRuleContext object for the currently executing rule.
- // p.is always non-nil during the parsing process.
- p.ctx = nil
-
- // Specifies whether the parser should construct a parse tree during
- // the parsing process. The default value is {@code true}.
- p.BuildParseTrees = true
-
- // When setTrace(true) is called, a reference to the
- // TraceListener is stored here, so it can be easily removed in a
- // later call to setTrace(false). The listener itself is
- // implemented as a parser listener so p.field is not directly used by
- // other parser methods.
- p.tracer = nil
-
- // The list of ParseTreeListener listeners registered to receive
- // events during the parse.
- p.parseListeners = nil
-
- // The number of syntax errors Reported during parsing. p.value is
- // incremented each time NotifyErrorListeners is called.
- p._SyntaxErrors = 0
- p.SetInputStream(input)
-
- return p
-}
-
-// This field maps from the serialized ATN string to the deserialized [ATN] with
-// bypass alternatives.
-//
-// [ATNDeserializationOptions.isGenerateRuleBypassTransitions]
-//
-//goland:noinspection GoUnusedGlobalVariable
-var bypassAltsAtnCache = make(map[string]int)
-
-// reset the parser's state//
-func (p *BaseParser) reset() {
- if p.input != nil {
- p.input.Seek(0)
- }
- p.errHandler.reset(p)
- p.ctx = nil
- p._SyntaxErrors = 0
- p.SetTrace(nil)
- p.precedenceStack = make([]int, 0)
- p.precedenceStack.Push(0)
- if p.Interpreter != nil {
- p.Interpreter.reset()
- }
-}
-
-func (p *BaseParser) GetErrorHandler() ErrorStrategy {
- return p.errHandler
-}
-
-func (p *BaseParser) SetErrorHandler(e ErrorStrategy) {
- p.errHandler = e
-}
-
-// Match current input symbol against {@code ttype}. If the symbol type
-// Matches, {@link ANTLRErrorStrategy//ReportMatch} and {@link //consume} are
-// called to complete the Match process.
-//
-// If the symbol type does not Match,
-// {@link ANTLRErrorStrategy//recoverInline} is called on the current error
-// strategy to attempt recovery. If {@link //getBuildParseTree} is
-// {@code true} and the token index of the symbol returned by
-// {@link ANTLRErrorStrategy//recoverInline} is -1, the symbol is added to
-// the parse tree by calling {@link ParserRuleContext//addErrorNode}.
-//
-// @param ttype the token type to Match
-// @return the Matched symbol
-// @panics RecognitionException if the current input symbol did not Match
-// {@code ttype} and the error strategy could not recover from the
-// mismatched symbol
-
-func (p *BaseParser) Match(ttype int) Token {
-
- t := p.GetCurrentToken()
-
- if t.GetTokenType() == ttype {
- p.errHandler.ReportMatch(p)
- p.Consume()
- } else {
- t = p.errHandler.RecoverInline(p)
- if p.HasError() {
- return nil
- }
- if p.BuildParseTrees && t.GetTokenIndex() == -1 {
-
- // we must have conjured up a new token during single token
- // insertion if it's not the current symbol
- p.ctx.AddErrorNode(t)
- }
- }
-
- return t
-}
-
-// Match current input symbol as a wildcard. If the symbol type Matches
-// (i.e. has a value greater than 0), {@link ANTLRErrorStrategy//ReportMatch}
-// and {@link //consume} are called to complete the Match process.
-//
-// If the symbol type does not Match,
-// {@link ANTLRErrorStrategy//recoverInline} is called on the current error
-// strategy to attempt recovery. If {@link //getBuildParseTree} is
-// {@code true} and the token index of the symbol returned by
-// {@link ANTLRErrorStrategy//recoverInline} is -1, the symbol is added to
-// the parse tree by calling {@link ParserRuleContext//addErrorNode}.
-//
-// @return the Matched symbol
-// @panics RecognitionException if the current input symbol did not Match
-// a wildcard and the error strategy could not recover from the mismatched
-// symbol
-
-func (p *BaseParser) MatchWildcard() Token {
- t := p.GetCurrentToken()
- if t.GetTokenType() > 0 {
- p.errHandler.ReportMatch(p)
- p.Consume()
- } else {
- t = p.errHandler.RecoverInline(p)
- if p.BuildParseTrees && t.GetTokenIndex() == -1 {
- // we must have conjured up a new token during single token
- // insertion if it's not the current symbol
- p.ctx.AddErrorNode(t)
- }
- }
- return t
-}
-
-func (p *BaseParser) GetParserRuleContext() ParserRuleContext {
- return p.ctx
-}
-
-func (p *BaseParser) SetParserRuleContext(v ParserRuleContext) {
- p.ctx = v
-}
-
-func (p *BaseParser) GetParseListeners() []ParseTreeListener {
- if p.parseListeners == nil {
- return make([]ParseTreeListener, 0)
- }
- return p.parseListeners
-}
-
-// AddParseListener registers listener to receive events during the parsing process.
-//
-// To support output-preserving grammar transformations (including but not
-// limited to left-recursion removal, automated left-factoring, and
-// optimized code generation), calls to listener methods during the parse
-// may differ substantially from calls made by
-// [ParseTreeWalker.DEFAULT] used after the parse is complete. In
-// particular, rule entry and exit events may occur in a different order
-// during the parse than after the parser. In addition, calls to certain
-// rule entry methods may be omitted.
-//
-// With the following specific exceptions, calls to listener events are
-// deterministic, i.e. for identical input the calls to listener
-// methods will be the same.
-//
-// - Alterations to the grammar used to generate code may change the
-// behavior of the listener calls.
-// - Alterations to the command line options passed to ANTLR 4 when
-// generating the parser may change the behavior of the listener calls.
-// - Changing the version of the ANTLR Tool used to generate the parser
-// may change the behavior of the listener calls.
-func (p *BaseParser) AddParseListener(listener ParseTreeListener) {
- if listener == nil {
- panic("listener")
- }
- if p.parseListeners == nil {
- p.parseListeners = make([]ParseTreeListener, 0)
- }
- p.parseListeners = append(p.parseListeners, listener)
-}
-
-// RemoveParseListener removes listener from the list of parse listeners.
-//
-// If listener is nil or has not been added as a parse
-// listener, this func does nothing.
-func (p *BaseParser) RemoveParseListener(listener ParseTreeListener) {
-
- if p.parseListeners != nil {
-
- idx := -1
- for i, v := range p.parseListeners {
- if v == listener {
- idx = i
- break
- }
- }
-
- if idx == -1 {
- return
- }
-
- // remove the listener from the slice
- p.parseListeners = append(p.parseListeners[0:idx], p.parseListeners[idx+1:]...)
-
- if len(p.parseListeners) == 0 {
- p.parseListeners = nil
- }
- }
-}
-
-// Remove all parse listeners.
-func (p *BaseParser) removeParseListeners() {
- p.parseListeners = nil
-}
-
-// TriggerEnterRuleEvent notifies all parse listeners of an enter rule event.
-func (p *BaseParser) TriggerEnterRuleEvent() {
- if p.parseListeners != nil {
- ctx := p.ctx
- for _, listener := range p.parseListeners {
- listener.EnterEveryRule(ctx)
- ctx.EnterRule(listener)
- }
- }
-}
-
-// TriggerExitRuleEvent notifies any parse listeners of an exit rule event.
-func (p *BaseParser) TriggerExitRuleEvent() {
- if p.parseListeners != nil {
- // reverse order walk of listeners
- ctx := p.ctx
- l := len(p.parseListeners) - 1
-
- for i := range p.parseListeners {
- listener := p.parseListeners[l-i]
- ctx.ExitRule(listener)
- listener.ExitEveryRule(ctx)
- }
- }
-}
-
-func (p *BaseParser) GetInterpreter() *ParserATNSimulator {
- return p.Interpreter
-}
-
-func (p *BaseParser) GetATN() *ATN {
- return p.Interpreter.atn
-}
-
-func (p *BaseParser) GetTokenFactory() TokenFactory {
- return p.input.GetTokenSource().GetTokenFactory()
-}
-
-// setTokenFactory is used to tell our token source and error strategy about a new way to create tokens.
-func (p *BaseParser) setTokenFactory(factory TokenFactory) {
- p.input.GetTokenSource().setTokenFactory(factory)
-}
-
-// GetATNWithBypassAlts - the ATN with bypass alternatives is expensive to create, so we create it
-// lazily.
-func (p *BaseParser) GetATNWithBypassAlts() {
-
- // TODO - Implement this?
- panic("Not implemented!")
-
- // serializedAtn := p.getSerializedATN()
- // if (serializedAtn == nil) {
- // panic("The current parser does not support an ATN with bypass alternatives.")
- // }
- // result := p.bypassAltsAtnCache[serializedAtn]
- // if (result == nil) {
- // deserializationOptions := NewATNDeserializationOptions(nil)
- // deserializationOptions.generateRuleBypassTransitions = true
- // result = NewATNDeserializer(deserializationOptions).deserialize(serializedAtn)
- // p.bypassAltsAtnCache[serializedAtn] = result
- // }
- // return result
-}
-
-// The preferred method of getting a tree pattern. For example, here's a
-// sample use:
-//
-//
-// ParseTree t = parser.expr()
-// ParseTreePattern p = parser.compileParseTreePattern("<ID>+0",
-// MyParser.RULE_expr)
-// ParseTreeMatch m = p.Match(t)
-// String id = m.Get("ID")
-//
-
-//goland:noinspection GoUnusedParameter
-func (p *BaseParser) compileParseTreePattern(pattern, patternRuleIndex, lexer Lexer) {
-
- panic("NewParseTreePatternMatcher not implemented!")
- //
- // if (lexer == nil) {
- // if (p.GetTokenStream() != nil) {
- // tokenSource := p.GetTokenStream().GetTokenSource()
- // if _, ok := tokenSource.(ILexer); ok {
- // lexer = tokenSource
- // }
- // }
- // }
- // if (lexer == nil) {
- // panic("Parser can't discover a lexer to use")
- // }
-
- // m := NewParseTreePatternMatcher(lexer, p)
- // return m.compile(pattern, patternRuleIndex)
-}
-
-func (p *BaseParser) GetInputStream() IntStream {
- return p.GetTokenStream()
-}
-
-func (p *BaseParser) SetInputStream(input TokenStream) {
- p.SetTokenStream(input)
-}
-
-func (p *BaseParser) GetTokenStream() TokenStream {
- return p.input
-}
-
-// SetTokenStream installs input as the token stream and resets the parser.
-func (p *BaseParser) SetTokenStream(input TokenStream) {
- p.input = nil
- p.reset()
- p.input = input
-}
-
-// GetCurrentToken returns the current token at LT(1).
-//
-// [Match] needs to return the current input symbol, which gets put
-// into the label for the associated token ref e.g., x=ID.
-func (p *BaseParser) GetCurrentToken() Token {
- return p.input.LT(1)
-}
-
-func (p *BaseParser) NotifyErrorListeners(msg string, offendingToken Token, err RecognitionException) {
- if offendingToken == nil {
- offendingToken = p.GetCurrentToken()
- }
- p._SyntaxErrors++
- line := offendingToken.GetLine()
- column := offendingToken.GetColumn()
- listener := p.GetErrorListenerDispatch()
- listener.SyntaxError(p, offendingToken, line, column, msg, err)
-}
-
-func (p *BaseParser) Consume() Token {
- o := p.GetCurrentToken()
- if o.GetTokenType() != TokenEOF {
- p.GetInputStream().Consume()
- }
- hasListener := p.parseListeners != nil && len(p.parseListeners) > 0
- if p.BuildParseTrees || hasListener {
- if p.errHandler.InErrorRecoveryMode(p) {
- node := p.ctx.AddErrorNode(o)
- if p.parseListeners != nil {
- for _, l := range p.parseListeners {
- l.VisitErrorNode(node)
- }
- }
-
- } else {
- node := p.ctx.AddTokenNode(o)
- if p.parseListeners != nil {
- for _, l := range p.parseListeners {
- l.VisitTerminal(node)
- }
- }
- }
- // node.invokingState = p.state
- }
-
- return o
-}
-
-func (p *BaseParser) addContextToParseTree() {
- // add current context to parent if we have a parent
- if p.ctx.GetParent() != nil {
- p.ctx.GetParent().(ParserRuleContext).AddChild(p.ctx)
- }
-}
-
-func (p *BaseParser) EnterRule(localctx ParserRuleContext, state, _ int) {
- p.SetState(state)
- p.ctx = localctx
- p.ctx.SetStart(p.input.LT(1))
- if p.BuildParseTrees {
- p.addContextToParseTree()
- }
- if p.parseListeners != nil {
- p.TriggerEnterRuleEvent()
- }
-}
-
-func (p *BaseParser) ExitRule() {
- p.ctx.SetStop(p.input.LT(-1))
- // trigger event on ctx, before it reverts to parent
- if p.parseListeners != nil {
- p.TriggerExitRuleEvent()
- }
- p.SetState(p.ctx.GetInvokingState())
- if p.ctx.GetParent() != nil {
- p.ctx = p.ctx.GetParent().(ParserRuleContext)
- } else {
- p.ctx = nil
- }
-}
-
-func (p *BaseParser) EnterOuterAlt(localctx ParserRuleContext, altNum int) {
- localctx.SetAltNumber(altNum)
- // if we have a new localctx, make sure we replace existing ctx
- // that is previous child of parse tree
- if p.BuildParseTrees && p.ctx != localctx {
- if p.ctx.GetParent() != nil {
- p.ctx.GetParent().(ParserRuleContext).RemoveLastChild()
- p.ctx.GetParent().(ParserRuleContext).AddChild(localctx)
- }
- }
- p.ctx = localctx
-}
-
-// Get the precedence level for the top-most precedence rule.
-//
-// @return The precedence level for the top-most precedence rule, or -1 if
-// the parser context is not nested within a precedence rule.
-
-func (p *BaseParser) GetPrecedence() int {
- if len(p.precedenceStack) == 0 {
- return -1
- }
-
- return p.precedenceStack[len(p.precedenceStack)-1]
-}
-
-func (p *BaseParser) EnterRecursionRule(localctx ParserRuleContext, state, _, precedence int) {
- p.SetState(state)
- p.precedenceStack.Push(precedence)
- p.ctx = localctx
- p.ctx.SetStart(p.input.LT(1))
- if p.parseListeners != nil {
- p.TriggerEnterRuleEvent() // simulates rule entry for
- // left-recursive rules
- }
-}
-
-//
-// Like {@link //EnterRule} but for recursive rules.
-
-func (p *BaseParser) PushNewRecursionContext(localctx ParserRuleContext, state, _ int) {
- previous := p.ctx
- previous.SetParent(localctx)
- previous.SetInvokingState(state)
- previous.SetStop(p.input.LT(-1))
-
- p.ctx = localctx
- p.ctx.SetStart(previous.GetStart())
- if p.BuildParseTrees {
- p.ctx.AddChild(previous)
- }
- if p.parseListeners != nil {
- p.TriggerEnterRuleEvent() // simulates rule entry for
- // left-recursive rules
- }
-}
-
-func (p *BaseParser) UnrollRecursionContexts(parentCtx ParserRuleContext) {
- _, _ = p.precedenceStack.Pop()
- p.ctx.SetStop(p.input.LT(-1))
- retCtx := p.ctx // save current ctx (return value)
- // unroll so ctx is as it was before call to recursive method
- if p.parseListeners != nil {
- for p.ctx != parentCtx {
- p.TriggerExitRuleEvent()
- p.ctx = p.ctx.GetParent().(ParserRuleContext)
- }
- } else {
- p.ctx = parentCtx
- }
- // hook into tree
- retCtx.SetParent(parentCtx)
- if p.BuildParseTrees && parentCtx != nil {
- // add return ctx into invoking rule's tree
- parentCtx.AddChild(retCtx)
- }
-}
-
-func (p *BaseParser) GetInvokingContext(ruleIndex int) ParserRuleContext {
- ctx := p.ctx
- for ctx != nil {
- if ctx.GetRuleIndex() == ruleIndex {
- return ctx
- }
- ctx = ctx.GetParent().(ParserRuleContext)
- }
- return nil
-}
-
-func (p *BaseParser) Precpred(_ RuleContext, precedence int) bool {
- return precedence >= p.precedenceStack[len(p.precedenceStack)-1]
-}
-
-//goland:noinspection GoUnusedParameter
-func (p *BaseParser) inContext(context ParserRuleContext) bool {
- // TODO: useful in parser?
- return false
-}
-
-// IsExpectedToken checks whether symbol can follow the current state in the
-// {ATN}. The behavior of p.method is equivalent to the following, but is
-// implemented such that the complete context-sensitive follow set does not
-// need to be explicitly constructed.
-//
-// return getExpectedTokens().contains(symbol)
-func (p *BaseParser) IsExpectedToken(symbol int) bool {
- atn := p.Interpreter.atn
- ctx := p.ctx
- s := atn.states[p.state]
- following := atn.NextTokens(s, nil)
- if following.contains(symbol) {
- return true
- }
- if !following.contains(TokenEpsilon) {
- return false
- }
- for ctx != nil && ctx.GetInvokingState() >= 0 && following.contains(TokenEpsilon) {
- invokingState := atn.states[ctx.GetInvokingState()]
- rt := invokingState.GetTransitions()[0]
- following = atn.NextTokens(rt.(*RuleTransition).followState, nil)
- if following.contains(symbol) {
- return true
- }
- ctx = ctx.GetParent().(ParserRuleContext)
- }
- if following.contains(TokenEpsilon) && symbol == TokenEOF {
- return true
- }
-
- return false
-}
-
-// GetExpectedTokens and returns the set of input symbols which could follow the current parser
-// state and context, as given by [GetState] and [GetContext],
-// respectively.
-func (p *BaseParser) GetExpectedTokens() *IntervalSet {
- return p.Interpreter.atn.getExpectedTokens(p.state, p.ctx)
-}
-
-func (p *BaseParser) GetExpectedTokensWithinCurrentRule() *IntervalSet {
- atn := p.Interpreter.atn
- s := atn.states[p.state]
- return atn.NextTokens(s, nil)
-}
-
-// GetRuleIndex get a rule's index (i.e., RULE_ruleName field) or -1 if not found.
-func (p *BaseParser) GetRuleIndex(ruleName string) int {
- var ruleIndex, ok = p.GetRuleIndexMap()[ruleName]
- if ok {
- return ruleIndex
- }
-
- return -1
-}
-
-// GetRuleInvocationStack returns a list of the rule names in your parser instance
-// leading up to a call to the current rule. You could override if
-// you want more details such as the file/line info of where
-// in the ATN a rule is invoked.
-func (p *BaseParser) GetRuleInvocationStack(c ParserRuleContext) []string {
- if c == nil {
- c = p.ctx
- }
- stack := make([]string, 0)
- for c != nil {
- // compute what follows who invoked us
- ruleIndex := c.GetRuleIndex()
- if ruleIndex < 0 {
- stack = append(stack, "n/a")
- } else {
- stack = append(stack, p.GetRuleNames()[ruleIndex])
- }
-
- vp := c.GetParent()
-
- if vp == nil {
- break
- }
-
- c = vp.(ParserRuleContext)
- }
- return stack
-}
-
-// GetDFAStrings returns a list of all DFA states used for debugging purposes
-func (p *BaseParser) GetDFAStrings() string {
- return fmt.Sprint(p.Interpreter.decisionToDFA)
-}
-
-// DumpDFA prints the whole of the DFA for debugging
-func (p *BaseParser) DumpDFA() {
- seenOne := false
- for _, dfa := range p.Interpreter.decisionToDFA {
- if dfa.Len() > 0 {
- if seenOne {
- fmt.Println()
- }
- fmt.Println("Decision " + strconv.Itoa(dfa.decision) + ":")
- fmt.Print(dfa.String(p.LiteralNames, p.SymbolicNames))
- seenOne = true
- }
- }
-}
-
-func (p *BaseParser) GetSourceName() string {
- return p.GrammarFileName
-}
-
-// SetTrace installs a trace listener for the parse.
-//
-// During a parse it is sometimes useful to listen in on the rule entry and exit
-// events as well as token Matches. This is for quick and dirty debugging.
-func (p *BaseParser) SetTrace(trace *TraceListener) {
- if trace == nil {
- p.RemoveParseListener(p.tracer)
- p.tracer = nil
- } else {
- if p.tracer != nil {
- p.RemoveParseListener(p.tracer)
- }
- p.tracer = NewTraceListener(p)
- p.AddParseListener(p.tracer)
- }
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/parser_atn_simulator.go b/vendor/github.com/antlr4-go/antlr/v4/parser_atn_simulator.go
deleted file mode 100644
index ae2869692..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/parser_atn_simulator.go
+++ /dev/null
@@ -1,1668 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "fmt"
- "strconv"
- "strings"
-)
-
-var ()
-
-// ClosureBusy is a store of ATNConfigs and is a tiny abstraction layer over
-// a standard JStore so that we can use Lazy instantiation of the JStore, mostly
-// to avoid polluting the stats module with a ton of JStore instances with nothing in them.
-type ClosureBusy struct {
- bMap *JStore[*ATNConfig, Comparator[*ATNConfig]]
- desc string
-}
-
-// NewClosureBusy creates a new ClosureBusy instance used to avoid infinite recursion for right-recursive rules
-func NewClosureBusy(desc string) *ClosureBusy {
- return &ClosureBusy{
- desc: desc,
- }
-}
-
-func (c *ClosureBusy) Put(config *ATNConfig) (*ATNConfig, bool) {
- if c.bMap == nil {
- c.bMap = NewJStore[*ATNConfig, Comparator[*ATNConfig]](aConfEqInst, ClosureBusyCollection, c.desc)
- }
- return c.bMap.Put(config)
-}
-
-type ParserATNSimulator struct {
- BaseATNSimulator
-
- parser Parser
- predictionMode int
- input TokenStream
- startIndex int
- dfa *DFA
- mergeCache *JPCMap
- outerContext ParserRuleContext
-}
-
-//goland:noinspection GoUnusedExportedFunction
-func NewParserATNSimulator(parser Parser, atn *ATN, decisionToDFA []*DFA, sharedContextCache *PredictionContextCache) *ParserATNSimulator {
-
- p := &ParserATNSimulator{
- BaseATNSimulator: BaseATNSimulator{
- atn: atn,
- sharedContextCache: sharedContextCache,
- },
- }
-
- p.parser = parser
- p.decisionToDFA = decisionToDFA
- // SLL, LL, or LL + exact ambig detection?//
- p.predictionMode = PredictionModeLL
- // LAME globals to avoid parameters!!!!! I need these down deep in predTransition
- p.input = nil
- p.startIndex = 0
- p.outerContext = nil
- p.dfa = nil
- // Each prediction operation uses a cache for merge of prediction contexts.
- // Don't keep around as it wastes huge amounts of memory. [JPCMap]
- // isn't Synchronized, but we're ok since two threads shouldn't reuse same
- // parser/atn-simulator object because it can only handle one input at a time.
- // This maps graphs a and b to merged result c. (a,b) -> c. We can avoid
- // the merge if we ever see a and b again. Note that (b,a) -> c should
- // also be examined during cache lookup.
- //
- p.mergeCache = nil
-
- return p
-}
-
-func (p *ParserATNSimulator) GetPredictionMode() int {
- return p.predictionMode
-}
-
-func (p *ParserATNSimulator) SetPredictionMode(v int) {
- p.predictionMode = v
-}
-
-func (p *ParserATNSimulator) reset() {
-}
-
-//goland:noinspection GoBoolExpressions
-func (p *ParserATNSimulator) AdaptivePredict(parser *BaseParser, input TokenStream, decision int, outerContext ParserRuleContext) int {
- if runtimeConfig.parserATNSimulatorDebug || runtimeConfig.parserATNSimulatorTraceATNSim {
- fmt.Println("adaptivePredict decision " + strconv.Itoa(decision) +
- " exec LA(1)==" + p.getLookaheadName(input) +
- " line " + strconv.Itoa(input.LT(1).GetLine()) + ":" +
- strconv.Itoa(input.LT(1).GetColumn()))
- }
- p.input = input
- p.startIndex = input.Index()
- p.outerContext = outerContext
-
- dfa := p.decisionToDFA[decision]
- p.dfa = dfa
- m := input.Mark()
- index := input.Index()
-
- defer func() {
- p.dfa = nil
- p.mergeCache = nil // whack cache after each prediction
- // Do not attempt to run a GC now that we're done with the cache as makes the
- // GC overhead terrible for badly formed grammars and has little effect on well formed
- // grammars.
- // I have made some extra effort to try and reduce memory pressure by reusing allocations when
- // possible. However, it can only have a limited effect. The real solution is to encourage grammar
- // authors to think more carefully about their grammar and to use the new antlr.stats tag to inspect
- // what is happening at runtime, along with using the error listener to report ambiguities.
-
- input.Seek(index)
- input.Release(m)
- }()
-
- // Now we are certain to have a specific decision's DFA
- // But, do we still need an initial state?
- var s0 *DFAState
- p.atn.stateMu.RLock()
- if dfa.getPrecedenceDfa() {
- p.atn.edgeMu.RLock()
- // the start state for a precedence DFA depends on the current
- // parser precedence, and is provided by a DFA method.
- s0 = dfa.getPrecedenceStartState(p.parser.GetPrecedence())
- p.atn.edgeMu.RUnlock()
- } else {
- // the start state for a "regular" DFA is just s0
- s0 = dfa.getS0()
- }
- p.atn.stateMu.RUnlock()
-
- if s0 == nil {
- if outerContext == nil {
- outerContext = ParserRuleContextEmpty
- }
- if runtimeConfig.parserATNSimulatorDebug {
- fmt.Println("predictATN decision " + strconv.Itoa(dfa.decision) +
- " exec LA(1)==" + p.getLookaheadName(input) +
- ", outerContext=" + outerContext.String(p.parser.GetRuleNames(), nil))
- }
- fullCtx := false
- s0Closure := p.computeStartState(dfa.atnStartState, ParserRuleContextEmpty, fullCtx)
-
- p.atn.stateMu.Lock()
- if dfa.getPrecedenceDfa() {
- // If p is a precedence DFA, we use applyPrecedenceFilter
- // to convert the computed start state to a precedence start
- // state. We then use DFA.setPrecedenceStartState to set the
- // appropriate start state for the precedence level rather
- // than simply setting DFA.s0.
- //
- dfa.s0.configs = s0Closure
- s0Closure = p.applyPrecedenceFilter(s0Closure)
- s0 = p.addDFAState(dfa, NewDFAState(-1, s0Closure))
- p.atn.edgeMu.Lock()
- dfa.setPrecedenceStartState(p.parser.GetPrecedence(), s0)
- p.atn.edgeMu.Unlock()
- } else {
- s0 = p.addDFAState(dfa, NewDFAState(-1, s0Closure))
- dfa.setS0(s0)
- }
- p.atn.stateMu.Unlock()
- }
-
- alt, re := p.execATN(dfa, s0, input, index, outerContext)
- parser.SetError(re)
- if runtimeConfig.parserATNSimulatorDebug {
- fmt.Println("DFA after predictATN: " + dfa.String(p.parser.GetLiteralNames(), nil))
- }
- return alt
-
-}
-
-// execATN performs ATN simulation to compute a predicted alternative based
-// upon the remaining input, but also updates the DFA cache to avoid
-// having to traverse the ATN again for the same input sequence.
-//
-// There are some key conditions we're looking for after computing a new
-// set of ATN configs (proposed DFA state):
-//
-// - If the set is empty, there is no viable alternative for current symbol
-// - Does the state uniquely predict an alternative?
-// - Does the state have a conflict that would prevent us from
-// putting it on the work list?
-//
-// We also have some key operations to do:
-//
-// - Add an edge from previous DFA state to potentially NewDFA state, D,
-// - Upon current symbol but only if adding to work list, which means in all
-// cases except no viable alternative (and possibly non-greedy decisions?)
-// - Collecting predicates and adding semantic context to DFA accept states
-// - adding rule context to context-sensitive DFA accept states
-// - Consuming an input symbol
-// - Reporting a conflict
-// - Reporting an ambiguity
-// - Reporting a context sensitivity
-// - Reporting insufficient predicates
-//
-// Cover these cases:
-//
-// - dead end
-// - single alt
-// - single alt + predicates
-// - conflict
-// - conflict + predicates
-//
-//goland:noinspection GoBoolExpressions
-func (p *ParserATNSimulator) execATN(dfa *DFA, s0 *DFAState, input TokenStream, startIndex int, outerContext ParserRuleContext) (int, RecognitionException) {
-
- if runtimeConfig.parserATNSimulatorDebug || runtimeConfig.parserATNSimulatorTraceATNSim {
- fmt.Println("execATN decision " + strconv.Itoa(dfa.decision) +
- ", DFA state " + s0.String() +
- ", LA(1)==" + p.getLookaheadName(input) +
- " line " + strconv.Itoa(input.LT(1).GetLine()) + ":" + strconv.Itoa(input.LT(1).GetColumn()))
- }
-
- previousD := s0
-
- if runtimeConfig.parserATNSimulatorDebug {
- fmt.Println("s0 = " + s0.String())
- }
- t := input.LA(1)
- for { // for more work
- D := p.getExistingTargetState(previousD, t)
- if D == nil {
- D = p.computeTargetState(dfa, previousD, t)
- }
- if D == ATNSimulatorError {
- // if any configs in previous dipped into outer context, that
- // means that input up to t actually finished entry rule
- // at least for SLL decision. Full LL doesn't dip into outer
- // so don't need special case.
- // We will get an error no matter what so delay until after
- // decision better error message. Also, no reachable target
- // ATN states in SLL implies LL will also get nowhere.
- // If conflict in states that dip out, choose min since we
- // will get error no matter what.
- e := p.noViableAlt(input, outerContext, previousD.configs, startIndex)
- input.Seek(startIndex)
- alt := p.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(previousD.configs, outerContext)
- if alt != ATNInvalidAltNumber {
- return alt, nil
- }
- p.parser.SetError(e)
- return ATNInvalidAltNumber, e
- }
- if D.requiresFullContext && p.predictionMode != PredictionModeSLL {
- // IF PREDS, MIGHT RESOLVE TO SINGLE ALT => SLL (or syntax error)
- conflictingAlts := D.configs.conflictingAlts
- if D.predicates != nil {
- if runtimeConfig.parserATNSimulatorDebug {
- fmt.Println("DFA state has preds in DFA sim LL fail-over")
- }
- conflictIndex := input.Index()
- if conflictIndex != startIndex {
- input.Seek(startIndex)
- }
- conflictingAlts = p.evalSemanticContext(D.predicates, outerContext, true)
- if conflictingAlts.length() == 1 {
- if runtimeConfig.parserATNSimulatorDebug {
- fmt.Println("Full LL avoided")
- }
- return conflictingAlts.minValue(), nil
- }
- if conflictIndex != startIndex {
- // restore the index so Reporting the fallback to full
- // context occurs with the index at the correct spot
- input.Seek(conflictIndex)
- }
- }
- if runtimeConfig.parserATNSimulatorDFADebug {
- fmt.Println("ctx sensitive state " + outerContext.String(nil, nil) + " in " + D.String())
- }
- fullCtx := true
- s0Closure := p.computeStartState(dfa.atnStartState, outerContext, fullCtx)
- p.ReportAttemptingFullContext(dfa, conflictingAlts, D.configs, startIndex, input.Index())
- alt, re := p.execATNWithFullContext(dfa, D, s0Closure, input, startIndex, outerContext)
- return alt, re
- }
- if D.isAcceptState {
- if D.predicates == nil {
- return D.prediction, nil
- }
- stopIndex := input.Index()
- input.Seek(startIndex)
- alts := p.evalSemanticContext(D.predicates, outerContext, true)
-
- switch alts.length() {
- case 0:
- return ATNInvalidAltNumber, p.noViableAlt(input, outerContext, D.configs, startIndex)
- case 1:
- return alts.minValue(), nil
- default:
- // Report ambiguity after predicate evaluation to make sure the correct set of ambig alts is Reported.
- p.ReportAmbiguity(dfa, D, startIndex, stopIndex, false, alts, D.configs)
- return alts.minValue(), nil
- }
- }
- previousD = D
-
- if t != TokenEOF {
- input.Consume()
- t = input.LA(1)
- }
- }
-}
-
-// Get an existing target state for an edge in the DFA. If the target state
-// for the edge has not yet been computed or is otherwise not available,
-// p method returns {@code nil}.
-//
-// @param previousD The current DFA state
-// @param t The next input symbol
-// @return The existing target DFA state for the given input symbol
-// {@code t}, or {@code nil} if the target state for p edge is not
-// already cached
-
-func (p *ParserATNSimulator) getExistingTargetState(previousD *DFAState, t int) *DFAState {
- if t+1 < 0 {
- return nil
- }
-
- p.atn.edgeMu.RLock()
- defer p.atn.edgeMu.RUnlock()
- edges := previousD.getEdges()
- if edges == nil || t+1 >= len(edges) {
- return nil
- }
- return previousD.getIthEdge(t + 1)
-}
-
-// Compute a target state for an edge in the DFA, and attempt to add the
-// computed state and corresponding edge to the DFA.
-//
-// @param dfa The DFA
-// @param previousD The current DFA state
-// @param t The next input symbol
-//
-// @return The computed target DFA state for the given input symbol
-// {@code t}. If {@code t} does not lead to a valid DFA state, p method
-// returns {@link //ERROR}.
-//
-//goland:noinspection GoBoolExpressions
-func (p *ParserATNSimulator) computeTargetState(dfa *DFA, previousD *DFAState, t int) *DFAState {
- reach := p.computeReachSet(previousD.configs, t, false)
-
- if reach == nil {
- p.addDFAEdge(dfa, previousD, t, ATNSimulatorError)
- return ATNSimulatorError
- }
- // create new target state we'll add to DFA after it's complete
- D := NewDFAState(-1, reach)
-
- predictedAlt := p.getUniqueAlt(reach)
-
- if runtimeConfig.parserATNSimulatorDebug {
- altSubSets := PredictionModegetConflictingAltSubsets(reach)
- fmt.Println("SLL altSubSets=" + fmt.Sprint(altSubSets) +
- ", previous=" + previousD.configs.String() +
- ", configs=" + reach.String() +
- ", predict=" + strconv.Itoa(predictedAlt) +
- ", allSubsetsConflict=" +
- fmt.Sprint(PredictionModeallSubsetsConflict(altSubSets)) +
- ", conflictingAlts=" + p.getConflictingAlts(reach).String())
- }
- if predictedAlt != ATNInvalidAltNumber {
- // NO CONFLICT, UNIQUELY PREDICTED ALT
- D.isAcceptState = true
- D.configs.uniqueAlt = predictedAlt
- D.setPrediction(predictedAlt)
- } else if PredictionModehasSLLConflictTerminatingPrediction(p.predictionMode, reach) {
- // MORE THAN ONE VIABLE ALTERNATIVE
- D.configs.conflictingAlts = p.getConflictingAlts(reach)
- D.requiresFullContext = true
- // in SLL-only mode, we will stop at p state and return the minimum alt
- D.isAcceptState = true
- D.setPrediction(D.configs.conflictingAlts.minValue())
- }
- if D.isAcceptState && D.configs.hasSemanticContext {
- p.predicateDFAState(D, p.atn.getDecisionState(dfa.decision))
- if D.predicates != nil {
- D.setPrediction(ATNInvalidAltNumber)
- }
- }
- // all adds to dfa are done after we've created full D state
- D = p.addDFAEdge(dfa, previousD, t, D)
- return D
-}
-
-func (p *ParserATNSimulator) predicateDFAState(dfaState *DFAState, decisionState DecisionState) {
- // We need to test all predicates, even in DFA states that
- // uniquely predict alternative.
- nalts := len(decisionState.GetTransitions())
- // Update DFA so reach becomes accept state with (predicate,alt)
- // pairs if preds found for conflicting alts
- altsToCollectPredsFrom := p.getConflictingAltsOrUniqueAlt(dfaState.configs)
- altToPred := p.getPredsForAmbigAlts(altsToCollectPredsFrom, dfaState.configs, nalts)
- if altToPred != nil {
- dfaState.predicates = p.getPredicatePredictions(altsToCollectPredsFrom, altToPred)
- dfaState.setPrediction(ATNInvalidAltNumber) // make sure we use preds
- } else {
- // There are preds in configs but they might go away
- // when OR'd together like {p}? || NONE == NONE. If neither
- // alt has preds, resolve to min alt
- dfaState.setPrediction(altsToCollectPredsFrom.minValue())
- }
-}
-
-// comes back with reach.uniqueAlt set to a valid alt
-//
-//goland:noinspection GoBoolExpressions
-func (p *ParserATNSimulator) execATNWithFullContext(dfa *DFA, D *DFAState, s0 *ATNConfigSet, input TokenStream, startIndex int, outerContext ParserRuleContext) (int, RecognitionException) {
-
- if runtimeConfig.parserATNSimulatorDebug || runtimeConfig.parserATNSimulatorTraceATNSim {
- fmt.Println("execATNWithFullContext " + s0.String())
- }
-
- fullCtx := true
- foundExactAmbig := false
- var reach *ATNConfigSet
- previous := s0
- input.Seek(startIndex)
- t := input.LA(1)
- predictedAlt := -1
-
- for { // for more work
- reach = p.computeReachSet(previous, t, fullCtx)
- if reach == nil {
- // if any configs in previous dipped into outer context, that
- // means that input up to t actually finished entry rule
- // at least for LL decision. Full LL doesn't dip into outer
- // so don't need special case.
- // We will get an error no matter what so delay until after
- // decision better error message. Also, no reachable target
- // ATN states in SLL implies LL will also get nowhere.
- // If conflict in states that dip out, choose min since we
- // will get error no matter what.
- input.Seek(startIndex)
- alt := p.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(previous, outerContext)
- if alt != ATNInvalidAltNumber {
- return alt, nil
- }
- return alt, p.noViableAlt(input, outerContext, previous, startIndex)
- }
- altSubSets := PredictionModegetConflictingAltSubsets(reach)
- if runtimeConfig.parserATNSimulatorDebug {
- fmt.Println("LL altSubSets=" + fmt.Sprint(altSubSets) + ", predict=" +
- strconv.Itoa(PredictionModegetUniqueAlt(altSubSets)) + ", resolvesToJustOneViableAlt=" +
- fmt.Sprint(PredictionModeresolvesToJustOneViableAlt(altSubSets)))
- }
- reach.uniqueAlt = p.getUniqueAlt(reach)
- // unique prediction?
- if reach.uniqueAlt != ATNInvalidAltNumber {
- predictedAlt = reach.uniqueAlt
- break
- }
- if p.predictionMode != PredictionModeLLExactAmbigDetection {
- predictedAlt = PredictionModeresolvesToJustOneViableAlt(altSubSets)
- if predictedAlt != ATNInvalidAltNumber {
- break
- }
- } else {
- // In exact ambiguity mode, we never try to terminate early.
- // Just keeps scarfing until we know what the conflict is
- if PredictionModeallSubsetsConflict(altSubSets) && PredictionModeallSubsetsEqual(altSubSets) {
- foundExactAmbig = true
- predictedAlt = PredictionModegetSingleViableAlt(altSubSets)
- break
- }
- // else there are multiple non-conflicting subsets or
- // we're not sure what the ambiguity is yet.
- // So, keep going.
- }
- previous = reach
- if t != TokenEOF {
- input.Consume()
- t = input.LA(1)
- }
- }
- // If the configuration set uniquely predicts an alternative,
- // without conflict, then we know that it's a full LL decision
- // not SLL.
- if reach.uniqueAlt != ATNInvalidAltNumber {
- p.ReportContextSensitivity(dfa, predictedAlt, reach, startIndex, input.Index())
- return predictedAlt, nil
- }
- // We do not check predicates here because we have checked them
- // on-the-fly when doing full context prediction.
-
- //
- // In non-exact ambiguity detection mode, we might actually be able to
- // detect an exact ambiguity, but I'm not going to spend the cycles
- // needed to check. We only emit ambiguity warnings in exact ambiguity
- // mode.
- //
- // For example, we might know that we have conflicting configurations.
- // But, that does not mean that there is no way forward without a
- // conflict. It's possible to have non-conflicting alt subsets as in:
- //
- // altSubSets=[{1, 2}, {1, 2}, {1}, {1, 2}]
- //
- // from
- //
- // [(17,1,[5 $]), (13,1,[5 10 $]), (21,1,[5 10 $]), (11,1,[$]),
- // (13,2,[5 10 $]), (21,2,[5 10 $]), (11,2,[$])]
- //
- // In p case, (17,1,[5 $]) indicates there is some next sequence that
- // would resolve p without conflict to alternative 1. Any other viable
- // next sequence, however, is associated with a conflict. We stop
- // looking for input because no amount of further lookahead will alter
- // the fact that we should predict alternative 1. We just can't say for
- // sure that there is an ambiguity without looking further.
-
- p.ReportAmbiguity(dfa, D, startIndex, input.Index(), foundExactAmbig, reach.Alts(), reach)
-
- return predictedAlt, nil
-}
-
-//goland:noinspection GoBoolExpressions
-func (p *ParserATNSimulator) computeReachSet(closure *ATNConfigSet, t int, fullCtx bool) *ATNConfigSet {
- if p.mergeCache == nil {
- p.mergeCache = NewJPCMap(ReachSetCollection, "Merge cache for computeReachSet()")
- }
- intermediate := NewATNConfigSet(fullCtx)
-
- // Configurations already in a rule stop state indicate reaching the end
- // of the decision rule (local context) or end of the start rule (full
- // context). Once reached, these configurations are never updated by a
- // closure operation, so they are handled separately for the performance
- // advantage of having a smaller intermediate set when calling closure.
- //
- // For full-context reach operations, separate handling is required to
- // ensure that the alternative Matching the longest overall sequence is
- // chosen when multiple such configurations can Match the input.
-
- var skippedStopStates []*ATNConfig
-
- // First figure out where we can reach on input t
- for _, c := range closure.configs {
- if runtimeConfig.parserATNSimulatorDebug {
- fmt.Println("testing " + p.GetTokenName(t) + " at " + c.String())
- }
-
- if _, ok := c.GetState().(*RuleStopState); ok {
- if fullCtx || t == TokenEOF {
- skippedStopStates = append(skippedStopStates, c)
- if runtimeConfig.parserATNSimulatorDebug {
- fmt.Println("added " + c.String() + " to SkippedStopStates")
- }
- }
- continue
- }
-
- for _, trans := range c.GetState().GetTransitions() {
- target := p.getReachableTarget(trans, t)
- if target != nil {
- cfg := NewATNConfig4(c, target)
- intermediate.Add(cfg, p.mergeCache)
- if runtimeConfig.parserATNSimulatorDebug {
- fmt.Println("added " + cfg.String() + " to intermediate")
- }
- }
- }
- }
-
- // Now figure out where the reach operation can take us...
- var reach *ATNConfigSet
-
- // This block optimizes the reach operation for intermediate sets which
- // trivially indicate a termination state for the overall
- // AdaptivePredict operation.
- //
- // The conditions assume that intermediate
- // contains all configurations relevant to the reach set, but p
- // condition is not true when one or more configurations have been
- // withheld in SkippedStopStates, or when the current symbol is EOF.
- //
- if skippedStopStates == nil && t != TokenEOF {
- if len(intermediate.configs) == 1 {
- // Don't pursue the closure if there is just one state.
- // It can only have one alternative just add to result
- // Also don't pursue the closure if there is unique alternative
- // among the configurations.
- reach = intermediate
- } else if p.getUniqueAlt(intermediate) != ATNInvalidAltNumber {
- // Also don't pursue the closure if there is unique alternative
- // among the configurations.
- reach = intermediate
- }
- }
- // If the reach set could not be trivially determined, perform a closure
- // operation on the intermediate set to compute its initial value.
- //
- if reach == nil {
- reach = NewATNConfigSet(fullCtx)
- closureBusy := NewClosureBusy("ParserATNSimulator.computeReachSet() make a closureBusy")
- treatEOFAsEpsilon := t == TokenEOF
- amount := len(intermediate.configs)
- for k := 0; k < amount; k++ {
- p.closure(intermediate.configs[k], reach, closureBusy, false, fullCtx, treatEOFAsEpsilon)
- }
- }
- if t == TokenEOF {
- // After consuming EOF no additional input is possible, so we are
- // only interested in configurations which reached the end of the
- // decision rule (local context) or end of the start rule (full
- // context). Update reach to contain only these configurations. This
- // handles both explicit EOF transitions in the grammar and implicit
- // EOF transitions following the end of the decision or start rule.
- //
- // When reach==intermediate, no closure operation was performed. In
- // p case, removeAllConfigsNotInRuleStopState needs to check for
- // reachable rule stop states as well as configurations already in
- // a rule stop state.
- //
- // This is handled before the configurations in SkippedStopStates,
- // because any configurations potentially added from that list are
- // already guaranteed to meet this condition whether it's
- // required.
- //
- reach = p.removeAllConfigsNotInRuleStopState(reach, reach.Equals(intermediate))
- }
- // If SkippedStopStates!=nil, then it contains at least one
- // configuration. For full-context reach operations, these
- // configurations reached the end of the start rule, in which case we
- // only add them back to reach if no configuration during the current
- // closure operation reached such a state. This ensures AdaptivePredict
- // chooses an alternative Matching the longest overall sequence when
- // multiple alternatives are viable.
- //
- if skippedStopStates != nil && ((!fullCtx) || (!PredictionModehasConfigInRuleStopState(reach))) {
- for l := 0; l < len(skippedStopStates); l++ {
- reach.Add(skippedStopStates[l], p.mergeCache)
- }
- }
-
- if runtimeConfig.parserATNSimulatorTraceATNSim {
- fmt.Println("computeReachSet " + closure.String() + " -> " + reach.String())
- }
-
- if len(reach.configs) == 0 {
- return nil
- }
-
- return reach
-}
-
-// removeAllConfigsNotInRuleStopState returns a configuration set containing only the configurations from
-// configs which are in a [RuleStopState]. If all
-// configurations in configs are already in a rule stop state, this
-// method simply returns configs.
-//
-// When lookToEndOfRule is true, this method uses
-// [ATN].[NextTokens] for each configuration in configs which is
-// not already in a rule stop state to see if a rule stop state is reachable
-// from the configuration via epsilon-only transitions.
-//
-// When lookToEndOfRule is true, this method checks for rule stop states
-// reachable by epsilon-only transitions from each configuration in
-// configs.
-//
-// The func returns configs if all configurations in configs are in a
-// rule stop state, otherwise it returns a new configuration set containing only
-// the configurations from configs which are in a rule stop state
-func (p *ParserATNSimulator) removeAllConfigsNotInRuleStopState(configs *ATNConfigSet, lookToEndOfRule bool) *ATNConfigSet {
- if PredictionModeallConfigsInRuleStopStates(configs) {
- return configs
- }
- result := NewATNConfigSet(configs.fullCtx)
- for _, config := range configs.configs {
- if _, ok := config.GetState().(*RuleStopState); ok {
- result.Add(config, p.mergeCache)
- continue
- }
- if lookToEndOfRule && config.GetState().GetEpsilonOnlyTransitions() {
- NextTokens := p.atn.NextTokens(config.GetState(), nil)
- if NextTokens.contains(TokenEpsilon) {
- endOfRuleState := p.atn.ruleToStopState[config.GetState().GetRuleIndex()]
- result.Add(NewATNConfig4(config, endOfRuleState), p.mergeCache)
- }
- }
- }
- return result
-}
-
-//goland:noinspection GoBoolExpressions
-func (p *ParserATNSimulator) computeStartState(a ATNState, ctx RuleContext, fullCtx bool) *ATNConfigSet {
- // always at least the implicit call to start rule
- initialContext := predictionContextFromRuleContext(p.atn, ctx)
- configs := NewATNConfigSet(fullCtx)
- if runtimeConfig.parserATNSimulatorDebug || runtimeConfig.parserATNSimulatorTraceATNSim {
- fmt.Println("computeStartState from ATN state " + a.String() +
- " initialContext=" + initialContext.String())
- }
-
- for i := 0; i < len(a.GetTransitions()); i++ {
- target := a.GetTransitions()[i].getTarget()
- c := NewATNConfig6(target, i+1, initialContext)
- closureBusy := NewClosureBusy("ParserATNSimulator.computeStartState() make a closureBusy")
- p.closure(c, configs, closureBusy, true, fullCtx, false)
- }
- return configs
-}
-
-// applyPrecedenceFilter transforms the start state computed by
-// [computeStartState] to the special start state used by a
-// precedence [DFA] for a particular precedence value. The transformation
-// process applies the following changes to the start state's configuration
-// set.
-//
-// 1. Evaluate the precedence predicates for each configuration using
-// [SemanticContext].evalPrecedence.
-// 2. Remove all configurations which predict an alternative greater than
-// 1, for which another configuration that predicts alternative 1 is in the
-// same ATN state with the same prediction context.
-//
-// Transformation 2 is valid for the following reasons:
-//
-// - The closure block cannot contain any epsilon transitions which bypass
-// the body of the closure, so all states reachable via alternative 1 are
-// part of the precedence alternatives of the transformed left-recursive
-// rule.
-// - The "primary" portion of a left recursive rule cannot contain an
-// epsilon transition, so the only way an alternative other than 1 can exist
-// in a state that is also reachable via alternative 1 is by nesting calls
-// to the left-recursive rule, with the outer calls not being at the
-// preferred precedence level.
-//
-// The prediction context must be considered by this filter to address
-// situations like the following:
-//
-// grammar TA
-// prog: statement* EOF
-// statement: letterA | statement letterA 'b'
-// letterA: 'a'
-//
-// In the above grammar, the [ATN] state immediately before the token
-// reference 'a' in letterA is reachable from the left edge
-// of both the primary and closure blocks of the left-recursive rule
-// statement. The prediction context associated with each of these
-// configurations distinguishes between them, and prevents the alternative
-// which stepped out to prog, and then back in to statement
-// from being eliminated by the filter.
-//
-// The func returns the transformed configuration set representing the start state
-// for a precedence [DFA] at a particular precedence level (determined by
-// calling [Parser].getPrecedence).
-func (p *ParserATNSimulator) applyPrecedenceFilter(configs *ATNConfigSet) *ATNConfigSet {
-
- statesFromAlt1 := make(map[int]*PredictionContext)
- configSet := NewATNConfigSet(configs.fullCtx)
-
- for _, config := range configs.configs {
- // handle alt 1 first
- if config.GetAlt() != 1 {
- continue
- }
- updatedContext := config.GetSemanticContext().evalPrecedence(p.parser, p.outerContext)
- if updatedContext == nil {
- // the configuration was eliminated
- continue
- }
- statesFromAlt1[config.GetState().GetStateNumber()] = config.GetContext()
- if updatedContext != config.GetSemanticContext() {
- configSet.Add(NewATNConfig2(config, updatedContext), p.mergeCache)
- } else {
- configSet.Add(config, p.mergeCache)
- }
- }
- for _, config := range configs.configs {
-
- if config.GetAlt() == 1 {
- // already handled
- continue
- }
- // In the future, p elimination step could be updated to also
- // filter the prediction context for alternatives predicting alt>1
- // (basically a graph subtraction algorithm).
- if !config.getPrecedenceFilterSuppressed() {
- context := statesFromAlt1[config.GetState().GetStateNumber()]
- if context != nil && context.Equals(config.GetContext()) {
- // eliminated
- continue
- }
- }
- configSet.Add(config, p.mergeCache)
- }
- return configSet
-}
-
-func (p *ParserATNSimulator) getReachableTarget(trans Transition, ttype int) ATNState {
- if trans.Matches(ttype, 0, p.atn.maxTokenType) {
- return trans.getTarget()
- }
-
- return nil
-}
-
-//goland:noinspection GoBoolExpressions
-func (p *ParserATNSimulator) getPredsForAmbigAlts(ambigAlts *BitSet, configs *ATNConfigSet, nalts int) []SemanticContext {
-
- altToPred := make([]SemanticContext, nalts+1)
- for _, c := range configs.configs {
- if ambigAlts.contains(c.GetAlt()) {
- altToPred[c.GetAlt()] = SemanticContextorContext(altToPred[c.GetAlt()], c.GetSemanticContext())
- }
- }
- nPredAlts := 0
- for i := 1; i <= nalts; i++ {
- pred := altToPred[i]
- if pred == nil {
- altToPred[i] = SemanticContextNone
- } else if pred != SemanticContextNone {
- nPredAlts++
- }
- }
- // unambiguous alts are nil in altToPred
- if nPredAlts == 0 {
- altToPred = nil
- }
- if runtimeConfig.parserATNSimulatorDebug {
- fmt.Println("getPredsForAmbigAlts result " + fmt.Sprint(altToPred))
- }
- return altToPred
-}
-
-func (p *ParserATNSimulator) getPredicatePredictions(ambigAlts *BitSet, altToPred []SemanticContext) []*PredPrediction {
- pairs := make([]*PredPrediction, 0)
- containsPredicate := false
- for i := 1; i < len(altToPred); i++ {
- pred := altToPred[i]
- // un-predicated is indicated by SemanticContextNONE
- if ambigAlts != nil && ambigAlts.contains(i) {
- pairs = append(pairs, NewPredPrediction(pred, i))
- }
- if pred != SemanticContextNone {
- containsPredicate = true
- }
- }
- if !containsPredicate {
- return nil
- }
- return pairs
-}
-
-// getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule is used to improve the localization of error messages by
-// choosing an alternative rather than panic a NoViableAltException in particular prediction scenarios where the
-// Error state was reached during [ATN] simulation.
-//
-// The default implementation of this method uses the following
-// algorithm to identify an [ATN] configuration which successfully parsed the
-// decision entry rule. Choosing such an alternative ensures that the
-// [ParserRuleContext] returned by the calling rule will be complete
-// and valid, and the syntax error will be Reported later at a more
-// localized location.
-//
-// - If a syntactically valid path or paths reach the end of the decision rule, and
-// they are semantically valid if predicated, return the min associated alt.
-// - Else, if a semantically invalid but syntactically valid path exist
-// or paths exist, return the minimum associated alt.
-// - Otherwise, return [ATNInvalidAltNumber].
-//
-// In some scenarios, the algorithm described above could predict an
-// alternative which will result in a [FailedPredicateException] in
-// the parser. Specifically, this could occur if the only configuration
-// capable of successfully parsing to the end of the decision rule is
-// blocked by a semantic predicate. By choosing this alternative within
-// [AdaptivePredict] instead of panic a [NoViableAltException], the resulting
-// [FailedPredicateException] in the parser will identify the specific
-// predicate which is preventing the parser from successfully parsing the
-// decision rule, which helps developers identify and correct logic errors
-// in semantic predicates.
-//
-// pass in the configs holding ATN configurations which were valid immediately before
-// the ERROR state was reached, outerContext as the initial parser context from the paper
-// or the parser stack at the instant before prediction commences.
-//
-// Teh func returns the value to return from [AdaptivePredict], or
-// [ATNInvalidAltNumber] if a suitable alternative was not
-// identified and [AdaptivePredict] should report an error instead.
-func (p *ParserATNSimulator) getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(configs *ATNConfigSet, outerContext ParserRuleContext) int {
- cfgs := p.splitAccordingToSemanticValidity(configs, outerContext)
- semValidConfigs := cfgs[0]
- semInvalidConfigs := cfgs[1]
- alt := p.GetAltThatFinishedDecisionEntryRule(semValidConfigs)
- if alt != ATNInvalidAltNumber { // semantically/syntactically viable path exists
- return alt
- }
- // Is there a syntactically valid path with a failed pred?
- if len(semInvalidConfigs.configs) > 0 {
- alt = p.GetAltThatFinishedDecisionEntryRule(semInvalidConfigs)
- if alt != ATNInvalidAltNumber { // syntactically viable path exists
- return alt
- }
- }
- return ATNInvalidAltNumber
-}
-
-func (p *ParserATNSimulator) GetAltThatFinishedDecisionEntryRule(configs *ATNConfigSet) int {
- alts := NewIntervalSet()
-
- for _, c := range configs.configs {
- _, ok := c.GetState().(*RuleStopState)
-
- if c.GetReachesIntoOuterContext() > 0 || (ok && c.GetContext().hasEmptyPath()) {
- alts.addOne(c.GetAlt())
- }
- }
- if alts.length() == 0 {
- return ATNInvalidAltNumber
- }
-
- return alts.first()
-}
-
-// Walk the list of configurations and split them according to
-// those that have preds evaluating to true/false. If no pred, assume
-// true pred and include in succeeded set. Returns Pair of sets.
-//
-// Create a NewSet so as not to alter the incoming parameter.
-//
-// Assumption: the input stream has been restored to the starting point
-// prediction, which is where predicates need to evaluate.
-
-type ATNConfigSetPair struct {
- item0, item1 *ATNConfigSet
-}
-
-func (p *ParserATNSimulator) splitAccordingToSemanticValidity(configs *ATNConfigSet, outerContext ParserRuleContext) []*ATNConfigSet {
- succeeded := NewATNConfigSet(configs.fullCtx)
- failed := NewATNConfigSet(configs.fullCtx)
-
- for _, c := range configs.configs {
- if c.GetSemanticContext() != SemanticContextNone {
- predicateEvaluationResult := c.GetSemanticContext().evaluate(p.parser, outerContext)
- if predicateEvaluationResult {
- succeeded.Add(c, nil)
- } else {
- failed.Add(c, nil)
- }
- } else {
- succeeded.Add(c, nil)
- }
- }
- return []*ATNConfigSet{succeeded, failed}
-}
-
-// evalSemanticContext looks through a list of predicate/alt pairs, returning alts for the
-// pairs that win. A [SemanticContextNone] predicate indicates an alt containing an
-// un-predicated runtimeConfig which behaves as "always true." If !complete
-// then we stop at the first predicate that evaluates to true. This
-// includes pairs with nil predicates.
-//
-//goland:noinspection GoBoolExpressions
-func (p *ParserATNSimulator) evalSemanticContext(predPredictions []*PredPrediction, outerContext ParserRuleContext, complete bool) *BitSet {
- predictions := NewBitSet()
- for i := 0; i < len(predPredictions); i++ {
- pair := predPredictions[i]
- if pair.pred == SemanticContextNone {
- predictions.add(pair.alt)
- if !complete {
- break
- }
- continue
- }
-
- predicateEvaluationResult := pair.pred.evaluate(p.parser, outerContext)
- if runtimeConfig.parserATNSimulatorDebug || runtimeConfig.parserATNSimulatorDFADebug {
- fmt.Println("eval pred " + pair.String() + "=" + fmt.Sprint(predicateEvaluationResult))
- }
- if predicateEvaluationResult {
- if runtimeConfig.parserATNSimulatorDebug || runtimeConfig.parserATNSimulatorDFADebug {
- fmt.Println("PREDICT " + fmt.Sprint(pair.alt))
- }
- predictions.add(pair.alt)
- if !complete {
- break
- }
- }
- }
- return predictions
-}
-
-func (p *ParserATNSimulator) closure(config *ATNConfig, configs *ATNConfigSet, closureBusy *ClosureBusy, collectPredicates, fullCtx, treatEOFAsEpsilon bool) {
- initialDepth := 0
- p.closureCheckingStopState(config, configs, closureBusy, collectPredicates,
- fullCtx, initialDepth, treatEOFAsEpsilon)
-}
-
-func (p *ParserATNSimulator) closureCheckingStopState(config *ATNConfig, configs *ATNConfigSet, closureBusy *ClosureBusy, collectPredicates, fullCtx bool, depth int, treatEOFAsEpsilon bool) {
- if runtimeConfig.parserATNSimulatorTraceATNSim {
- fmt.Println("closure(" + config.String() + ")")
- }
-
- var stack []*ATNConfig
- visited := make(map[*ATNConfig]bool)
-
- stack = append(stack, config)
-
- for len(stack) > 0 {
- currConfig := stack[len(stack)-1]
- stack = stack[:len(stack)-1]
-
- if _, ok := visited[currConfig]; ok {
- continue
- }
- visited[currConfig] = true
-
- if _, ok := currConfig.GetState().(*RuleStopState); ok {
- // We hit rule end. If we have context info, use it
- // run thru all possible stack tops in ctx
- if !currConfig.GetContext().isEmpty() {
- for i := 0; i < currConfig.GetContext().length(); i++ {
- if currConfig.GetContext().getReturnState(i) == BasePredictionContextEmptyReturnState {
- if fullCtx {
- nb := NewATNConfig1(currConfig, currConfig.GetState(), BasePredictionContextEMPTY)
- configs.Add(nb, p.mergeCache)
- continue
- } else {
- // we have no context info, just chase follow links (if greedy)
- if runtimeConfig.parserATNSimulatorDebug {
- fmt.Println("FALLING off rule " + p.getRuleName(currConfig.GetState().GetRuleIndex()))
- }
- p.closureWork(currConfig, configs, closureBusy, collectPredicates, fullCtx, depth, treatEOFAsEpsilon)
- }
- continue
- }
- returnState := p.atn.states[currConfig.GetContext().getReturnState(i)]
- newContext := currConfig.GetContext().GetParent(i) // "pop" return state
-
- c := NewATNConfig5(returnState, currConfig.GetAlt(), newContext, currConfig.GetSemanticContext())
- // While we have context to pop back from, we may have
- // gotten that context AFTER having falling off a rule.
- // Make sure we track that we are now out of context.
- c.SetReachesIntoOuterContext(currConfig.GetReachesIntoOuterContext())
-
- stack = append(stack, c)
- }
- continue
- } else if fullCtx {
- // reached end of start rule
- configs.Add(currConfig, p.mergeCache)
- continue
- } else {
- // else if we have no context info, just chase follow links (if greedy)
- if runtimeConfig.parserATNSimulatorDebug {
- fmt.Println("FALLING off rule " + p.getRuleName(currConfig.GetState().GetRuleIndex()))
- }
- }
- }
-
- p.closureWork(currConfig, configs, closureBusy, collectPredicates, fullCtx, depth, treatEOFAsEpsilon)
- }
-}
-
-//goland:noinspection GoBoolExpressions
-func (p *ParserATNSimulator) closureCheckingStopStateRecursive(config *ATNConfig, configs *ATNConfigSet, closureBusy *ClosureBusy, collectPredicates, fullCtx bool, depth int, treatEOFAsEpsilon bool) {
- if runtimeConfig.parserATNSimulatorTraceATNSim {
- fmt.Println("closure(" + config.String() + ")")
- }
-
- if _, ok := config.GetState().(*RuleStopState); ok {
- // We hit rule end. If we have context info, use it
- // run thru all possible stack tops in ctx
- if !config.GetContext().isEmpty() {
- for i := 0; i < config.GetContext().length(); i++ {
- if config.GetContext().getReturnState(i) == BasePredictionContextEmptyReturnState {
- if fullCtx {
- nb := NewATNConfig1(config, config.GetState(), BasePredictionContextEMPTY)
- configs.Add(nb, p.mergeCache)
- continue
- } else {
- // we have no context info, just chase follow links (if greedy)
- if runtimeConfig.parserATNSimulatorDebug {
- fmt.Println("FALLING off rule " + p.getRuleName(config.GetState().GetRuleIndex()))
- }
- p.closureWork(config, configs, closureBusy, collectPredicates, fullCtx, depth, treatEOFAsEpsilon)
- }
- continue
- }
- returnState := p.atn.states[config.GetContext().getReturnState(i)]
- newContext := config.GetContext().GetParent(i) // "pop" return state
-
- c := NewATNConfig5(returnState, config.GetAlt(), newContext, config.GetSemanticContext())
- // While we have context to pop back from, we may have
- // gotten that context AFTER having falling off a rule.
- // Make sure we track that we are now out of context.
- c.SetReachesIntoOuterContext(config.GetReachesIntoOuterContext())
- p.closureCheckingStopState(c, configs, closureBusy, collectPredicates, fullCtx, depth-1, treatEOFAsEpsilon)
- }
- return
- } else if fullCtx {
- // reached end of start rule
- configs.Add(config, p.mergeCache)
- return
- } else {
- // else if we have no context info, just chase follow links (if greedy)
- if runtimeConfig.parserATNSimulatorDebug {
- fmt.Println("FALLING off rule " + p.getRuleName(config.GetState().GetRuleIndex()))
- }
- }
- }
- p.closureWork(config, configs, closureBusy, collectPredicates, fullCtx, depth, treatEOFAsEpsilon)
-}
-
-// Do the actual work of walking epsilon edges
-//
-//goland:noinspection GoBoolExpressions
-func (p *ParserATNSimulator) closureWork(config *ATNConfig, configs *ATNConfigSet, closureBusy *ClosureBusy, collectPredicates, fullCtx bool, depth int, treatEOFAsEpsilon bool) {
- state := config.GetState()
- // optimization
- if !state.GetEpsilonOnlyTransitions() {
- configs.Add(config, p.mergeCache)
- // make sure to not return here, because EOF transitions can act as
- // both epsilon transitions and non-epsilon transitions.
- }
- for i := 0; i < len(state.GetTransitions()); i++ {
- if i == 0 && p.canDropLoopEntryEdgeInLeftRecursiveRule(config) {
- continue
- }
-
- t := state.GetTransitions()[i]
- _, ok := t.(*ActionTransition)
- continueCollecting := collectPredicates && !ok
- c := p.getEpsilonTarget(config, t, continueCollecting, depth == 0, fullCtx, treatEOFAsEpsilon)
- if c != nil {
- newDepth := depth
-
- if _, ok := config.GetState().(*RuleStopState); ok {
- // target fell off end of rule mark resulting c as having dipped into outer context
- // We can't get here if incoming config was rule stop and we had context
- // track how far we dip into outer context. Might
- // come in handy and we avoid evaluating context dependent
- // preds if this is > 0.
-
- if p.dfa != nil && p.dfa.getPrecedenceDfa() {
- if t.(*EpsilonTransition).outermostPrecedenceReturn == p.dfa.atnStartState.GetRuleIndex() {
- c.setPrecedenceFilterSuppressed(true)
- }
- }
-
- c.SetReachesIntoOuterContext(c.GetReachesIntoOuterContext() + 1)
-
- _, present := closureBusy.Put(c)
- if present {
- // avoid infinite recursion for right-recursive rules
- continue
- }
-
- configs.dipsIntoOuterContext = true // TODO: can remove? only care when we add to set per middle of this method
- newDepth--
- if runtimeConfig.parserATNSimulatorDebug {
- fmt.Println("dips into outer ctx: " + c.String())
- }
- } else {
-
- if !t.getIsEpsilon() {
- _, present := closureBusy.Put(c)
- if present {
- // avoid infinite recursion for EOF* and EOF+
- continue
- }
- }
- if _, ok := t.(*RuleTransition); ok {
- // latch when newDepth goes negative - once we step out of the entry context we can't return
- if newDepth >= 0 {
- newDepth++
- }
- }
- }
- p.closureCheckingStopState(c, configs, closureBusy, continueCollecting, fullCtx, newDepth, treatEOFAsEpsilon)
- }
- }
-}
-
-//goland:noinspection GoBoolExpressions
-func (p *ParserATNSimulator) canDropLoopEntryEdgeInLeftRecursiveRule(config *ATNConfig) bool {
- if !runtimeConfig.lRLoopEntryBranchOpt {
- return false
- }
-
- _p := config.GetState()
-
- // First check to see if we are in StarLoopEntryState generated during
- // left-recursion elimination. For efficiency, also check if
- // the context has an empty stack case. If so, it would mean
- // global FOLLOW so we can't perform optimization
- if _p.GetStateType() != ATNStateStarLoopEntry {
- return false
- }
- startLoop, ok := _p.(*StarLoopEntryState)
- if !ok {
- return false
- }
- if !startLoop.precedenceRuleDecision ||
- config.GetContext().isEmpty() ||
- config.GetContext().hasEmptyPath() {
- return false
- }
-
- // Require all return states to return back to the same rule
- // that p is in.
- numCtxs := config.GetContext().length()
- for i := 0; i < numCtxs; i++ {
- returnState := p.atn.states[config.GetContext().getReturnState(i)]
- if returnState.GetRuleIndex() != _p.GetRuleIndex() {
- return false
- }
- }
- x := _p.GetTransitions()[0].getTarget()
- decisionStartState := x.(BlockStartState)
- blockEndStateNum := decisionStartState.getEndState().stateNumber
- blockEndState := p.atn.states[blockEndStateNum].(*BlockEndState)
-
- // Verify that the top of each stack context leads to loop entry/exit
- // state through epsilon edges and w/o leaving rule.
-
- for i := 0; i < numCtxs; i++ { // for each stack context
- returnStateNumber := config.GetContext().getReturnState(i)
- returnState := p.atn.states[returnStateNumber]
-
- // all states must have single outgoing epsilon edge
- if len(returnState.GetTransitions()) != 1 || !returnState.GetTransitions()[0].getIsEpsilon() {
- return false
- }
-
- // Look for prefix op case like 'not expr', (' type ')' expr
- returnStateTarget := returnState.GetTransitions()[0].getTarget()
- if returnState.GetStateType() == ATNStateBlockEnd && returnStateTarget == _p {
- continue
- }
-
- // Look for 'expr op expr' or case where expr's return state is block end
- // of (...)* internal block; the block end points to loop back
- // which points to p but we don't need to check that
- if returnState == blockEndState {
- continue
- }
-
- // Look for ternary expr ? expr : expr. The return state points at block end,
- // which points at loop entry state
- if returnStateTarget == blockEndState {
- continue
- }
-
- // Look for complex prefix 'between expr and expr' case where 2nd expr's
- // return state points at block end state of (...)* internal block
- if returnStateTarget.GetStateType() == ATNStateBlockEnd &&
- len(returnStateTarget.GetTransitions()) == 1 &&
- returnStateTarget.GetTransitions()[0].getIsEpsilon() &&
- returnStateTarget.GetTransitions()[0].getTarget() == _p {
- continue
- }
-
- // anything else ain't conforming
- return false
- }
-
- return true
-}
-
-func (p *ParserATNSimulator) getRuleName(index int) string {
- if p.parser != nil && index >= 0 {
- return p.parser.GetRuleNames()[index]
- }
- var sb strings.Builder
- sb.Grow(32)
-
- sb.WriteString("')
- return sb.String()
-}
-
-func (p *ParserATNSimulator) getEpsilonTarget(config *ATNConfig, t Transition, collectPredicates, inContext, fullCtx, treatEOFAsEpsilon bool) *ATNConfig {
-
- switch t.getSerializationType() {
- case TransitionRULE:
- return p.ruleTransition(config, t.(*RuleTransition))
- case TransitionPRECEDENCE:
- return p.precedenceTransition(config, t.(*PrecedencePredicateTransition), collectPredicates, inContext, fullCtx)
- case TransitionPREDICATE:
- return p.predTransition(config, t.(*PredicateTransition), collectPredicates, inContext, fullCtx)
- case TransitionACTION:
- return p.actionTransition(config, t.(*ActionTransition))
- case TransitionEPSILON:
- return NewATNConfig4(config, t.getTarget())
- case TransitionATOM, TransitionRANGE, TransitionSET:
- // EOF transitions act like epsilon transitions after the first EOF
- // transition is traversed
- if treatEOFAsEpsilon {
- if t.Matches(TokenEOF, 0, 1) {
- return NewATNConfig4(config, t.getTarget())
- }
- }
- return nil
- default:
- return nil
- }
-}
-
-//goland:noinspection GoBoolExpressions
-func (p *ParserATNSimulator) actionTransition(config *ATNConfig, t *ActionTransition) *ATNConfig {
- if runtimeConfig.parserATNSimulatorDebug {
- fmt.Println("ACTION edge " + strconv.Itoa(t.ruleIndex) + ":" + strconv.Itoa(t.actionIndex))
- }
- return NewATNConfig4(config, t.getTarget())
-}
-
-//goland:noinspection GoBoolExpressions
-func (p *ParserATNSimulator) precedenceTransition(config *ATNConfig,
- pt *PrecedencePredicateTransition, collectPredicates, inContext, fullCtx bool) *ATNConfig {
-
- if runtimeConfig.parserATNSimulatorDebug {
- fmt.Println("PRED (collectPredicates=" + fmt.Sprint(collectPredicates) + ") " +
- strconv.Itoa(pt.precedence) + ">=_p, ctx dependent=true")
- if p.parser != nil {
- fmt.Println("context surrounding pred is " + fmt.Sprint(p.parser.GetRuleInvocationStack(nil)))
- }
- }
- var c *ATNConfig
- if collectPredicates && inContext {
- if fullCtx {
- // In full context mode, we can evaluate predicates on-the-fly
- // during closure, which dramatically reduces the size of
- // the runtimeConfig sets. It also obviates the need to test predicates
- // later during conflict resolution.
- currentPosition := p.input.Index()
- p.input.Seek(p.startIndex)
- predSucceeds := pt.getPredicate().evaluate(p.parser, p.outerContext)
- p.input.Seek(currentPosition)
- if predSucceeds {
- c = NewATNConfig4(config, pt.getTarget()) // no pred context
- }
- } else {
- newSemCtx := SemanticContextandContext(config.GetSemanticContext(), pt.getPredicate())
- c = NewATNConfig3(config, pt.getTarget(), newSemCtx)
- }
- } else {
- c = NewATNConfig4(config, pt.getTarget())
- }
- if runtimeConfig.parserATNSimulatorDebug {
- fmt.Println("runtimeConfig from pred transition=" + c.String())
- }
- return c
-}
-
-//goland:noinspection GoBoolExpressions
-func (p *ParserATNSimulator) predTransition(config *ATNConfig, pt *PredicateTransition, collectPredicates, inContext, fullCtx bool) *ATNConfig {
-
- if runtimeConfig.parserATNSimulatorDebug {
- fmt.Println("PRED (collectPredicates=" + fmt.Sprint(collectPredicates) + ") " + strconv.Itoa(pt.ruleIndex) +
- ":" + strconv.Itoa(pt.predIndex) + ", ctx dependent=" + fmt.Sprint(pt.isCtxDependent))
- if p.parser != nil {
- fmt.Println("context surrounding pred is " + fmt.Sprint(p.parser.GetRuleInvocationStack(nil)))
- }
- }
- var c *ATNConfig
- if collectPredicates && (!pt.isCtxDependent || inContext) {
- if fullCtx {
- // In full context mode, we can evaluate predicates on-the-fly
- // during closure, which dramatically reduces the size of
- // the config sets. It also obviates the need to test predicates
- // later during conflict resolution.
- currentPosition := p.input.Index()
- p.input.Seek(p.startIndex)
- predSucceeds := pt.getPredicate().evaluate(p.parser, p.outerContext)
- p.input.Seek(currentPosition)
- if predSucceeds {
- c = NewATNConfig4(config, pt.getTarget()) // no pred context
- }
- } else {
- newSemCtx := SemanticContextandContext(config.GetSemanticContext(), pt.getPredicate())
- c = NewATNConfig3(config, pt.getTarget(), newSemCtx)
- }
- } else {
- c = NewATNConfig4(config, pt.getTarget())
- }
- if runtimeConfig.parserATNSimulatorDebug {
- fmt.Println("config from pred transition=" + c.String())
- }
- return c
-}
-
-//goland:noinspection GoBoolExpressions
-func (p *ParserATNSimulator) ruleTransition(config *ATNConfig, t *RuleTransition) *ATNConfig {
- if runtimeConfig.parserATNSimulatorDebug {
- fmt.Println("CALL rule " + p.getRuleName(t.getTarget().GetRuleIndex()) + ", ctx=" + config.GetContext().String())
- }
- returnState := t.followState
- newContext := SingletonBasePredictionContextCreate(config.GetContext(), returnState.GetStateNumber())
- return NewATNConfig1(config, t.getTarget(), newContext)
-}
-
-func (p *ParserATNSimulator) getConflictingAlts(configs *ATNConfigSet) *BitSet {
- altsets := PredictionModegetConflictingAltSubsets(configs)
- return PredictionModeGetAlts(altsets)
-}
-
-// getConflictingAltsOrUniqueAlt Sam pointed out a problem with the previous definition, v3, of
-// ambiguous states. If we have another state associated with conflicting
-// alternatives, we should keep going. For example, the following grammar
-//
-// s : (ID | ID ID?) ;
-//
-// When the [ATN] simulation reaches the state before ;, it has a [DFA]
-// state that looks like:
-//
-// [12|1|[], 6|2|[], 12|2|[]].
-//
-// Naturally
-//
-// 12|1|[] and 12|2|[]
-//
-// conflict, but we cannot stop processing this node
-// because alternative to has another way to continue, via
-//
-// [6|2|[]].
-//
-// The key is that we have a single state that has config's only associated
-// with a single alternative, 2, and crucially the state transitions
-// among the configurations are all non-epsilon transitions. That means
-// we don't consider any conflicts that include alternative 2. So, we
-// ignore the conflict between alts 1 and 2. We ignore a set of
-// conflicting alts when there is an intersection with an alternative
-// associated with a single alt state in the state config-list map.
-//
-// It's also the case that we might have two conflicting configurations but
-// also a 3rd non-conflicting configuration for a different alternative:
-//
-// [1|1|[], 1|2|[], 8|3|[]].
-//
-// This can come about from grammar:
-//
-// a : A | A | A B
-//
-// After Matching input A, we reach the stop state for rule A, state 1.
-// State 8 is the state right before B. Clearly alternatives 1 and 2
-// conflict and no amount of further lookahead will separate the two.
-// However, alternative 3 will be able to continue, so we do not
-// stop working on this state.
-//
-// In the previous example, we're concerned
-// with states associated with the conflicting alternatives. Here alt
-// 3 is not associated with the conflicting configs, but since we can continue
-// looking for input reasonably, I don't declare the state done. We
-// ignore a set of conflicting alts when we have an alternative
-// that we still need to pursue.
-func (p *ParserATNSimulator) getConflictingAltsOrUniqueAlt(configs *ATNConfigSet) *BitSet {
- var conflictingAlts *BitSet
- if configs.uniqueAlt != ATNInvalidAltNumber {
- conflictingAlts = NewBitSet()
- conflictingAlts.add(configs.uniqueAlt)
- } else {
- conflictingAlts = configs.conflictingAlts
- }
- return conflictingAlts
-}
-
-func (p *ParserATNSimulator) GetTokenName(t int) string {
- if t == TokenEOF {
- return "EOF"
- }
-
- if p.parser != nil && p.parser.GetLiteralNames() != nil && t < len(p.parser.GetLiteralNames()) {
- return p.parser.GetLiteralNames()[t] + "<" + strconv.Itoa(t) + ">"
- }
-
- if p.parser != nil && p.parser.GetLiteralNames() != nil && t < len(p.parser.GetSymbolicNames()) {
- return p.parser.GetSymbolicNames()[t] + "<" + strconv.Itoa(t) + ">"
- }
-
- return strconv.Itoa(t)
-}
-
-func (p *ParserATNSimulator) getLookaheadName(input TokenStream) string {
- return p.GetTokenName(input.LA(1))
-}
-
-// Used for debugging in [AdaptivePredict] around [execATN], but I cut
-// it out for clarity now that alg. works well. We can leave this
-// "dead" code for a bit.
-func (p *ParserATNSimulator) dumpDeadEndConfigs(_ *NoViableAltException) {
-
- panic("Not implemented")
-
- // fmt.Println("dead end configs: ")
- // var decs = nvae.deadEndConfigs
- //
- // for i:=0; i0) {
- // var t = c.state.GetTransitions()[0]
- // if t2, ok := t.(*AtomTransition); ok {
- // trans = "Atom "+ p.GetTokenName(t2.label)
- // } else if t3, ok := t.(SetTransition); ok {
- // _, ok := t.(*NotSetTransition)
- //
- // var s string
- // if (ok){
- // s = "~"
- // }
- //
- // trans = s + "Set " + t3.set
- // }
- // }
- // fmt.Errorf(c.String(p.parser, true) + ":" + trans)
- // }
-}
-
-func (p *ParserATNSimulator) noViableAlt(input TokenStream, outerContext ParserRuleContext, configs *ATNConfigSet, startIndex int) *NoViableAltException {
- return NewNoViableAltException(p.parser, input, input.Get(startIndex), input.LT(1), configs, outerContext)
-}
-
-func (p *ParserATNSimulator) getUniqueAlt(configs *ATNConfigSet) int {
- alt := ATNInvalidAltNumber
- for _, c := range configs.configs {
- if alt == ATNInvalidAltNumber {
- alt = c.GetAlt() // found first alt
- } else if c.GetAlt() != alt {
- return ATNInvalidAltNumber
- }
- }
- return alt
-}
-
-// Add an edge to the DFA, if possible. This method calls
-// {@link //addDFAState} to ensure the {@code to} state is present in the
-// DFA. If {@code from} is {@code nil}, or if {@code t} is outside the
-// range of edges that can be represented in the DFA tables, p method
-// returns without adding the edge to the DFA.
-//
-// If {@code to} is {@code nil}, p method returns {@code nil}.
-// Otherwise, p method returns the {@link DFAState} returned by calling
-// {@link //addDFAState} for the {@code to} state.
-//
-// @param dfa The DFA
-// @param from The source state for the edge
-// @param t The input symbol
-// @param to The target state for the edge
-//
-// @return If {@code to} is {@code nil}, p method returns {@code nil}
-// otherwise p method returns the result of calling {@link //addDFAState}
-// on {@code to}
-//
-//goland:noinspection GoBoolExpressions
-func (p *ParserATNSimulator) addDFAEdge(dfa *DFA, from *DFAState, t int, to *DFAState) *DFAState {
- if runtimeConfig.parserATNSimulatorDebug {
- fmt.Println("EDGE " + from.String() + " -> " + to.String() + " upon " + p.GetTokenName(t))
- }
- if to == nil {
- return nil
- }
- p.atn.stateMu.Lock()
- to = p.addDFAState(dfa, to) // used existing if possible not incoming
- p.atn.stateMu.Unlock()
- if from == nil || t < -1 || t > p.atn.maxTokenType {
- return to
- }
- p.atn.edgeMu.Lock()
- if from.getEdges() == nil {
- from.setEdges(make([]*DFAState, p.atn.maxTokenType+1+1))
- }
- from.setIthEdge(t+1, to) // connect
- p.atn.edgeMu.Unlock()
-
- if runtimeConfig.parserATNSimulatorDebug {
- var names []string
- if p.parser != nil {
- names = p.parser.GetLiteralNames()
- }
-
- fmt.Println("DFA=\n" + dfa.String(names, nil))
- }
- return to
-}
-
-// addDFAState adds state D to the [DFA] if it is not already present, and returns
-// the actual instance stored in the [DFA]. If a state equivalent to D
-// is already in the [DFA], the existing state is returned. Otherwise, this
-// method returns D after adding it to the [DFA].
-//
-// If D is [ATNSimulatorError], this method returns [ATNSimulatorError] and
-// does not change the DFA.
-//
-//goland:noinspection GoBoolExpressions
-func (p *ParserATNSimulator) addDFAState(dfa *DFA, d *DFAState) *DFAState {
- if d == ATNSimulatorError {
- return d
- }
-
- existing, present := dfa.Get(d)
- if present {
- if runtimeConfig.parserATNSimulatorTraceATNSim {
- fmt.Print("addDFAState " + d.String() + " exists")
- }
- return existing
- }
-
- // The state will be added if not already there or we will be given back the existing state struct
- // if it is present.
- //
- d.stateNumber = dfa.Len()
- if !d.configs.readOnly {
- d.configs.OptimizeConfigs(&p.BaseATNSimulator)
- d.configs.readOnly = true
- d.configs.configLookup = nil
- }
- dfa.Put(d)
-
- if runtimeConfig.parserATNSimulatorTraceATNSim {
- fmt.Println("addDFAState new " + d.String())
- }
-
- return d
-}
-
-//goland:noinspection GoBoolExpressions
-func (p *ParserATNSimulator) ReportAttemptingFullContext(dfa *DFA, conflictingAlts *BitSet, configs *ATNConfigSet, startIndex, stopIndex int) {
- if runtimeConfig.parserATNSimulatorDebug || runtimeConfig.parserATNSimulatorRetryDebug {
- interval := NewInterval(startIndex, stopIndex+1)
- fmt.Println("ReportAttemptingFullContext decision=" + strconv.Itoa(dfa.decision) + ":" + configs.String() +
- ", input=" + p.parser.GetTokenStream().GetTextFromInterval(interval))
- }
- if p.parser != nil {
- p.parser.GetErrorListenerDispatch().ReportAttemptingFullContext(p.parser, dfa, startIndex, stopIndex, conflictingAlts, configs)
- }
-}
-
-//goland:noinspection GoBoolExpressions
-func (p *ParserATNSimulator) ReportContextSensitivity(dfa *DFA, prediction int, configs *ATNConfigSet, startIndex, stopIndex int) {
- if runtimeConfig.parserATNSimulatorDebug || runtimeConfig.parserATNSimulatorRetryDebug {
- interval := NewInterval(startIndex, stopIndex+1)
- fmt.Println("ReportContextSensitivity decision=" + strconv.Itoa(dfa.decision) + ":" + configs.String() +
- ", input=" + p.parser.GetTokenStream().GetTextFromInterval(interval))
- }
- if p.parser != nil {
- p.parser.GetErrorListenerDispatch().ReportContextSensitivity(p.parser, dfa, startIndex, stopIndex, prediction, configs)
- }
-}
-
-// ReportAmbiguity reports and ambiguity in the parse, which shows that the parser will explore a different route.
-//
-// If context-sensitive parsing, we know it's an ambiguity not a conflict or error, but we can report it to the developer
-// so that they can see that this is happening and can take action if they want to.
-//
-//goland:noinspection GoBoolExpressions
-func (p *ParserATNSimulator) ReportAmbiguity(dfa *DFA, _ *DFAState, startIndex, stopIndex int,
- exact bool, ambigAlts *BitSet, configs *ATNConfigSet) {
- if runtimeConfig.parserATNSimulatorDebug || runtimeConfig.parserATNSimulatorRetryDebug {
- interval := NewInterval(startIndex, stopIndex+1)
- fmt.Println("ReportAmbiguity " + ambigAlts.String() + ":" + configs.String() +
- ", input=" + p.parser.GetTokenStream().GetTextFromInterval(interval))
- }
- if p.parser != nil {
- p.parser.GetErrorListenerDispatch().ReportAmbiguity(p.parser, dfa, startIndex, stopIndex, exact, ambigAlts, configs)
- }
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/parser_rule_context.go b/vendor/github.com/antlr4-go/antlr/v4/parser_rule_context.go
deleted file mode 100644
index c249bc138..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/parser_rule_context.go
+++ /dev/null
@@ -1,421 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "reflect"
- "strconv"
-)
-
-type ParserRuleContext interface {
- RuleContext
-
- SetException(RecognitionException)
-
- AddTokenNode(token Token) *TerminalNodeImpl
- AddErrorNode(badToken Token) *ErrorNodeImpl
-
- EnterRule(listener ParseTreeListener)
- ExitRule(listener ParseTreeListener)
-
- SetStart(Token)
- GetStart() Token
-
- SetStop(Token)
- GetStop() Token
-
- AddChild(child RuleContext) RuleContext
- RemoveLastChild()
-}
-
-type BaseParserRuleContext struct {
- parentCtx RuleContext
- invokingState int
- RuleIndex int
-
- start, stop Token
- exception RecognitionException
- children []Tree
-}
-
-func NewBaseParserRuleContext(parent ParserRuleContext, invokingStateNumber int) *BaseParserRuleContext {
- prc := new(BaseParserRuleContext)
- InitBaseParserRuleContext(prc, parent, invokingStateNumber)
- return prc
-}
-
-func InitBaseParserRuleContext(prc *BaseParserRuleContext, parent ParserRuleContext, invokingStateNumber int) {
- // What context invoked b rule?
- prc.parentCtx = parent
-
- // What state invoked the rule associated with b context?
- // The "return address" is the followState of invokingState
- // If parent is nil, b should be -1.
- if parent == nil {
- prc.invokingState = -1
- } else {
- prc.invokingState = invokingStateNumber
- }
-
- prc.RuleIndex = -1
- // * If we are debugging or building a parse tree for a Visitor,
- // we need to track all of the tokens and rule invocations associated
- // with prc rule's context. This is empty for parsing w/o tree constr.
- // operation because we don't the need to track the details about
- // how we parse prc rule.
- // /
- prc.children = nil
- prc.start = nil
- prc.stop = nil
- // The exception that forced prc rule to return. If the rule successfully
- // completed, prc is {@code nil}.
- prc.exception = nil
-}
-
-func (prc *BaseParserRuleContext) SetException(e RecognitionException) {
- prc.exception = e
-}
-
-func (prc *BaseParserRuleContext) GetChildren() []Tree {
- return prc.children
-}
-
-func (prc *BaseParserRuleContext) CopyFrom(ctx *BaseParserRuleContext) {
- // from RuleContext
- prc.parentCtx = ctx.parentCtx
- prc.invokingState = ctx.invokingState
- prc.children = nil
- prc.start = ctx.start
- prc.stop = ctx.stop
-}
-
-func (prc *BaseParserRuleContext) GetText() string {
- if prc.GetChildCount() == 0 {
- return ""
- }
-
- var s string
- for _, child := range prc.children {
- s += child.(ParseTree).GetText()
- }
-
- return s
-}
-
-// EnterRule is called when any rule is entered.
-func (prc *BaseParserRuleContext) EnterRule(_ ParseTreeListener) {
-}
-
-// ExitRule is called when any rule is exited.
-func (prc *BaseParserRuleContext) ExitRule(_ ParseTreeListener) {
-}
-
-// * Does not set parent link other add methods do that
-func (prc *BaseParserRuleContext) addTerminalNodeChild(child TerminalNode) TerminalNode {
- if prc.children == nil {
- prc.children = make([]Tree, 0)
- }
- if child == nil {
- panic("Child may not be null")
- }
- prc.children = append(prc.children, child)
- return child
-}
-
-func (prc *BaseParserRuleContext) AddChild(child RuleContext) RuleContext {
- if prc.children == nil {
- prc.children = make([]Tree, 0)
- }
- if child == nil {
- panic("Child may not be null")
- }
- prc.children = append(prc.children, child)
- return child
-}
-
-// RemoveLastChild is used by [EnterOuterAlt] to toss out a [RuleContext] previously added as
-// we entered a rule. If we have a label, we will need to remove
-// the generic ruleContext object.
-func (prc *BaseParserRuleContext) RemoveLastChild() {
- if prc.children != nil && len(prc.children) > 0 {
- prc.children = prc.children[0 : len(prc.children)-1]
- }
-}
-
-func (prc *BaseParserRuleContext) AddTokenNode(token Token) *TerminalNodeImpl {
-
- node := NewTerminalNodeImpl(token)
- prc.addTerminalNodeChild(node)
- node.parentCtx = prc
- return node
-
-}
-
-func (prc *BaseParserRuleContext) AddErrorNode(badToken Token) *ErrorNodeImpl {
- node := NewErrorNodeImpl(badToken)
- prc.addTerminalNodeChild(node)
- node.parentCtx = prc
- return node
-}
-
-func (prc *BaseParserRuleContext) GetChild(i int) Tree {
- if prc.children != nil && len(prc.children) >= i {
- return prc.children[i]
- }
-
- return nil
-}
-
-func (prc *BaseParserRuleContext) GetChildOfType(i int, childType reflect.Type) RuleContext {
- if childType == nil {
- return prc.GetChild(i).(RuleContext)
- }
-
- for j := 0; j < len(prc.children); j++ {
- child := prc.children[j]
- if reflect.TypeOf(child) == childType {
- if i == 0 {
- return child.(RuleContext)
- }
-
- i--
- }
- }
-
- return nil
-}
-
-func (prc *BaseParserRuleContext) ToStringTree(ruleNames []string, recog Recognizer) string {
- return TreesStringTree(prc, ruleNames, recog)
-}
-
-func (prc *BaseParserRuleContext) GetRuleContext() RuleContext {
- return prc
-}
-
-func (prc *BaseParserRuleContext) Accept(visitor ParseTreeVisitor) interface{} {
- return visitor.VisitChildren(prc)
-}
-
-func (prc *BaseParserRuleContext) SetStart(t Token) {
- prc.start = t
-}
-
-func (prc *BaseParserRuleContext) GetStart() Token {
- return prc.start
-}
-
-func (prc *BaseParserRuleContext) SetStop(t Token) {
- prc.stop = t
-}
-
-func (prc *BaseParserRuleContext) GetStop() Token {
- return prc.stop
-}
-
-func (prc *BaseParserRuleContext) GetToken(ttype int, i int) TerminalNode {
-
- for j := 0; j < len(prc.children); j++ {
- child := prc.children[j]
- if c2, ok := child.(TerminalNode); ok {
- if c2.GetSymbol().GetTokenType() == ttype {
- if i == 0 {
- return c2
- }
-
- i--
- }
- }
- }
- return nil
-}
-
-func (prc *BaseParserRuleContext) GetTokens(ttype int) []TerminalNode {
- if prc.children == nil {
- return make([]TerminalNode, 0)
- }
-
- tokens := make([]TerminalNode, 0)
-
- for j := 0; j < len(prc.children); j++ {
- child := prc.children[j]
- if tchild, ok := child.(TerminalNode); ok {
- if tchild.GetSymbol().GetTokenType() == ttype {
- tokens = append(tokens, tchild)
- }
- }
- }
-
- return tokens
-}
-
-func (prc *BaseParserRuleContext) GetPayload() interface{} {
- return prc
-}
-
-func (prc *BaseParserRuleContext) getChild(ctxType reflect.Type, i int) RuleContext {
- if prc.children == nil || i < 0 || i >= len(prc.children) {
- return nil
- }
-
- j := -1 // what element have we found with ctxType?
- for _, o := range prc.children {
-
- childType := reflect.TypeOf(o)
-
- if childType.Implements(ctxType) {
- j++
- if j == i {
- return o.(RuleContext)
- }
- }
- }
- return nil
-}
-
-// Go lacks generics, so it's not possible for us to return the child with the correct type, but we do
-// check for convertibility
-
-func (prc *BaseParserRuleContext) GetTypedRuleContext(ctxType reflect.Type, i int) RuleContext {
- return prc.getChild(ctxType, i)
-}
-
-func (prc *BaseParserRuleContext) GetTypedRuleContexts(ctxType reflect.Type) []RuleContext {
- if prc.children == nil {
- return make([]RuleContext, 0)
- }
-
- contexts := make([]RuleContext, 0)
-
- for _, child := range prc.children {
- childType := reflect.TypeOf(child)
-
- if childType.ConvertibleTo(ctxType) {
- contexts = append(contexts, child.(RuleContext))
- }
- }
- return contexts
-}
-
-func (prc *BaseParserRuleContext) GetChildCount() int {
- if prc.children == nil {
- return 0
- }
-
- return len(prc.children)
-}
-
-func (prc *BaseParserRuleContext) GetSourceInterval() Interval {
- if prc.start == nil || prc.stop == nil {
- return TreeInvalidInterval
- }
-
- return NewInterval(prc.start.GetTokenIndex(), prc.stop.GetTokenIndex())
-}
-
-//need to manage circular dependencies, so export now
-
-// Print out a whole tree, not just a node, in LISP format
-// (root child1 .. childN). Print just a node if b is a leaf.
-//
-
-func (prc *BaseParserRuleContext) String(ruleNames []string, stop RuleContext) string {
-
- var p ParserRuleContext = prc
- s := "["
- for p != nil && p != stop {
- if ruleNames == nil {
- if !p.IsEmpty() {
- s += strconv.Itoa(p.GetInvokingState())
- }
- } else {
- ri := p.GetRuleIndex()
- var ruleName string
- if ri >= 0 && ri < len(ruleNames) {
- ruleName = ruleNames[ri]
- } else {
- ruleName = strconv.Itoa(ri)
- }
- s += ruleName
- }
- if p.GetParent() != nil && (ruleNames != nil || !p.GetParent().(ParserRuleContext).IsEmpty()) {
- s += " "
- }
- pi := p.GetParent()
- if pi != nil {
- p = pi.(ParserRuleContext)
- } else {
- p = nil
- }
- }
- s += "]"
- return s
-}
-
-func (prc *BaseParserRuleContext) SetParent(v Tree) {
- if v == nil {
- prc.parentCtx = nil
- } else {
- prc.parentCtx = v.(RuleContext)
- }
-}
-
-func (prc *BaseParserRuleContext) GetInvokingState() int {
- return prc.invokingState
-}
-
-func (prc *BaseParserRuleContext) SetInvokingState(t int) {
- prc.invokingState = t
-}
-
-func (prc *BaseParserRuleContext) GetRuleIndex() int {
- return prc.RuleIndex
-}
-
-func (prc *BaseParserRuleContext) GetAltNumber() int {
- return ATNInvalidAltNumber
-}
-
-func (prc *BaseParserRuleContext) SetAltNumber(_ int) {}
-
-// IsEmpty returns true if the context of b is empty.
-//
-// A context is empty if there is no invoking state, meaning nobody calls
-// current context.
-func (prc *BaseParserRuleContext) IsEmpty() bool {
- return prc.invokingState == -1
-}
-
-// GetParent returns the combined text of all child nodes. This method only considers
-// tokens which have been added to the parse tree.
-//
-// Since tokens on hidden channels (e.g. whitespace or comments) are not
-// added to the parse trees, they will not appear in the output of this
-// method.
-func (prc *BaseParserRuleContext) GetParent() Tree {
- return prc.parentCtx
-}
-
-var ParserRuleContextEmpty = NewBaseParserRuleContext(nil, -1)
-
-type InterpreterRuleContext interface {
- ParserRuleContext
-}
-
-type BaseInterpreterRuleContext struct {
- *BaseParserRuleContext
-}
-
-//goland:noinspection GoUnusedExportedFunction
-func NewBaseInterpreterRuleContext(parent BaseInterpreterRuleContext, invokingStateNumber, ruleIndex int) *BaseInterpreterRuleContext {
-
- prc := new(BaseInterpreterRuleContext)
-
- prc.BaseParserRuleContext = NewBaseParserRuleContext(parent, invokingStateNumber)
-
- prc.RuleIndex = ruleIndex
-
- return prc
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/prediction_context.go b/vendor/github.com/antlr4-go/antlr/v4/prediction_context.go
deleted file mode 100644
index c1b80cc1f..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/prediction_context.go
+++ /dev/null
@@ -1,727 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "fmt"
- "golang.org/x/exp/slices"
- "strconv"
-)
-
-var _emptyPredictionContextHash int
-
-func init() {
- _emptyPredictionContextHash = murmurInit(1)
- _emptyPredictionContextHash = murmurFinish(_emptyPredictionContextHash, 0)
-}
-
-func calculateEmptyHash() int {
- return _emptyPredictionContextHash
-}
-
-const (
- // BasePredictionContextEmptyReturnState represents {@code $} in an array in full context mode, $
- // doesn't mean wildcard:
- //
- // $ + x = [$,x]
- //
- // Here,
- //
- // $ = EmptyReturnState
- BasePredictionContextEmptyReturnState = 0x7FFFFFFF
-)
-
-// TODO: JI These are meant to be atomics - this does not seem to match the Java runtime here
-//
-//goland:noinspection GoUnusedGlobalVariable
-var (
- BasePredictionContextglobalNodeCount = 1
- BasePredictionContextid = BasePredictionContextglobalNodeCount
-)
-
-const (
- PredictionContextEmpty = iota
- PredictionContextSingleton
- PredictionContextArray
-)
-
-// PredictionContext is a go idiomatic implementation of PredictionContext that does not rty to
-// emulate inheritance from Java, and can be used without an interface definition. An interface
-// is not required because no user code will ever need to implement this interface.
-type PredictionContext struct {
- cachedHash int
- pcType int
- parentCtx *PredictionContext
- returnState int
- parents []*PredictionContext
- returnStates []int
-}
-
-func NewEmptyPredictionContext() *PredictionContext {
- nep := &PredictionContext{}
- nep.cachedHash = calculateEmptyHash()
- nep.pcType = PredictionContextEmpty
- nep.returnState = BasePredictionContextEmptyReturnState
- return nep
-}
-
-func NewBaseSingletonPredictionContext(parent *PredictionContext, returnState int) *PredictionContext {
- pc := &PredictionContext{}
- pc.pcType = PredictionContextSingleton
- pc.returnState = returnState
- pc.parentCtx = parent
- if parent != nil {
- pc.cachedHash = calculateHash(parent, returnState)
- } else {
- pc.cachedHash = calculateEmptyHash()
- }
- return pc
-}
-
-func SingletonBasePredictionContextCreate(parent *PredictionContext, returnState int) *PredictionContext {
- if returnState == BasePredictionContextEmptyReturnState && parent == nil {
- // someone can pass in the bits of an array ctx that mean $
- return BasePredictionContextEMPTY
- }
- return NewBaseSingletonPredictionContext(parent, returnState)
-}
-
-func NewArrayPredictionContext(parents []*PredictionContext, returnStates []int) *PredictionContext {
- // Parent can be nil only if full ctx mode and we make an array
- // from {@link //EMPTY} and non-empty. We merge {@link //EMPTY} by using
- // nil parent and
- // returnState == {@link //EmptyReturnState}.
- hash := murmurInit(1)
- for _, parent := range parents {
- hash = murmurUpdate(hash, parent.Hash())
- }
- for _, returnState := range returnStates {
- hash = murmurUpdate(hash, returnState)
- }
- hash = murmurFinish(hash, len(parents)<<1)
-
- nec := &PredictionContext{}
- nec.cachedHash = hash
- nec.pcType = PredictionContextArray
- nec.parents = parents
- nec.returnStates = returnStates
- return nec
-}
-
-func (p *PredictionContext) Hash() int {
- return p.cachedHash
-}
-
-func (p *PredictionContext) Equals(other Collectable[*PredictionContext]) bool {
- switch p.pcType {
- case PredictionContextEmpty:
- otherP := other.(*PredictionContext)
- return other == nil || otherP == nil || otherP.isEmpty()
- case PredictionContextSingleton:
- return p.SingletonEquals(other)
- case PredictionContextArray:
- return p.ArrayEquals(other)
- }
- return false
-}
-
-func (p *PredictionContext) ArrayEquals(o Collectable[*PredictionContext]) bool {
- if o == nil {
- return false
- }
- other := o.(*PredictionContext)
- if other == nil || other.pcType != PredictionContextArray {
- return false
- }
- if p.cachedHash != other.Hash() {
- return false // can't be same if hash is different
- }
-
- // Must compare the actual array elements and not just the array address
- //
- return slices.Equal(p.returnStates, other.returnStates) &&
- slices.EqualFunc(p.parents, other.parents, func(x, y *PredictionContext) bool {
- return x.Equals(y)
- })
-}
-
-func (p *PredictionContext) SingletonEquals(other Collectable[*PredictionContext]) bool {
- if other == nil {
- return false
- }
- otherP := other.(*PredictionContext)
- if otherP == nil {
- return false
- }
-
- if p.cachedHash != otherP.Hash() {
- return false // Can't be same if hash is different
- }
-
- if p.returnState != otherP.getReturnState(0) {
- return false
- }
-
- // Both parents must be nil if one is
- if p.parentCtx == nil {
- return otherP.parentCtx == nil
- }
-
- return p.parentCtx.Equals(otherP.parentCtx)
-}
-
-func (p *PredictionContext) GetParent(i int) *PredictionContext {
- switch p.pcType {
- case PredictionContextEmpty:
- return nil
- case PredictionContextSingleton:
- return p.parentCtx
- case PredictionContextArray:
- return p.parents[i]
- }
- return nil
-}
-
-func (p *PredictionContext) getReturnState(i int) int {
- switch p.pcType {
- case PredictionContextArray:
- return p.returnStates[i]
- default:
- return p.returnState
- }
-}
-
-func (p *PredictionContext) GetReturnStates() []int {
- switch p.pcType {
- case PredictionContextArray:
- return p.returnStates
- default:
- return []int{p.returnState}
- }
-}
-
-func (p *PredictionContext) length() int {
- switch p.pcType {
- case PredictionContextArray:
- return len(p.returnStates)
- default:
- return 1
- }
-}
-
-func (p *PredictionContext) hasEmptyPath() bool {
- switch p.pcType {
- case PredictionContextSingleton:
- return p.returnState == BasePredictionContextEmptyReturnState
- }
- return p.getReturnState(p.length()-1) == BasePredictionContextEmptyReturnState
-}
-
-func (p *PredictionContext) String() string {
- switch p.pcType {
- case PredictionContextEmpty:
- return "$"
- case PredictionContextSingleton:
- var up string
-
- if p.parentCtx == nil {
- up = ""
- } else {
- up = p.parentCtx.String()
- }
-
- if len(up) == 0 {
- if p.returnState == BasePredictionContextEmptyReturnState {
- return "$"
- }
-
- return strconv.Itoa(p.returnState)
- }
-
- return strconv.Itoa(p.returnState) + " " + up
- case PredictionContextArray:
- if p.isEmpty() {
- return "[]"
- }
-
- s := "["
- for i := 0; i < len(p.returnStates); i++ {
- if i > 0 {
- s = s + ", "
- }
- if p.returnStates[i] == BasePredictionContextEmptyReturnState {
- s = s + "$"
- continue
- }
- s = s + strconv.Itoa(p.returnStates[i])
- if !p.parents[i].isEmpty() {
- s = s + " " + p.parents[i].String()
- } else {
- s = s + "nil"
- }
- }
- return s + "]"
-
- default:
- return "unknown"
- }
-}
-
-func (p *PredictionContext) isEmpty() bool {
- switch p.pcType {
- case PredictionContextEmpty:
- return true
- case PredictionContextArray:
- // since EmptyReturnState can only appear in the last position, we
- // don't need to verify that size==1
- return p.returnStates[0] == BasePredictionContextEmptyReturnState
- default:
- return false
- }
-}
-
-func (p *PredictionContext) Type() int {
- return p.pcType
-}
-
-func calculateHash(parent *PredictionContext, returnState int) int {
- h := murmurInit(1)
- h = murmurUpdate(h, parent.Hash())
- h = murmurUpdate(h, returnState)
- return murmurFinish(h, 2)
-}
-
-// Convert a {@link RuleContext} tree to a {@link BasePredictionContext} graph.
-// Return {@link //EMPTY} if {@code outerContext} is empty or nil.
-// /
-func predictionContextFromRuleContext(a *ATN, outerContext RuleContext) *PredictionContext {
- if outerContext == nil {
- outerContext = ParserRuleContextEmpty
- }
- // if we are in RuleContext of start rule, s, then BasePredictionContext
- // is EMPTY. Nobody called us. (if we are empty, return empty)
- if outerContext.GetParent() == nil || outerContext == ParserRuleContextEmpty {
- return BasePredictionContextEMPTY
- }
- // If we have a parent, convert it to a BasePredictionContext graph
- parent := predictionContextFromRuleContext(a, outerContext.GetParent().(RuleContext))
- state := a.states[outerContext.GetInvokingState()]
- transition := state.GetTransitions()[0]
-
- return SingletonBasePredictionContextCreate(parent, transition.(*RuleTransition).followState.GetStateNumber())
-}
-
-func merge(a, b *PredictionContext, rootIsWildcard bool, mergeCache *JPCMap) *PredictionContext {
-
- // Share same graph if both same
- //
- if a == b || a.Equals(b) {
- return a
- }
-
- if a.pcType == PredictionContextSingleton && b.pcType == PredictionContextSingleton {
- return mergeSingletons(a, b, rootIsWildcard, mergeCache)
- }
- // At least one of a or b is array
- // If one is $ and rootIsWildcard, return $ as wildcard
- if rootIsWildcard {
- if a.isEmpty() {
- return a
- }
- if b.isEmpty() {
- return b
- }
- }
-
- // Convert either Singleton or Empty to arrays, so that we can merge them
- //
- ara := convertToArray(a)
- arb := convertToArray(b)
- return mergeArrays(ara, arb, rootIsWildcard, mergeCache)
-}
-
-func convertToArray(pc *PredictionContext) *PredictionContext {
- switch pc.Type() {
- case PredictionContextEmpty:
- return NewArrayPredictionContext([]*PredictionContext{}, []int{})
- case PredictionContextSingleton:
- return NewArrayPredictionContext([]*PredictionContext{pc.GetParent(0)}, []int{pc.getReturnState(0)})
- default:
- // Already an array
- }
- return pc
-}
-
-// mergeSingletons merges two Singleton [PredictionContext] instances.
-//
-// Stack tops equal, parents merge is same return left graph.
-//
-//
-// Same stack top, parents differ merge parents giving array node, then
-// remainders of those graphs. A new root node is created to point to the
-// merged parents.
-//
-//
-// Different stack tops pointing to same parent. Make array node for the
-// root where both element in the root point to the same (original)
-// parent.
-//
-//
-// Different stack tops pointing to different parents. Make array node for
-// the root where each element points to the corresponding original
-// parent.
-//
-//
-// @param a the first {@link SingletonBasePredictionContext}
-// @param b the second {@link SingletonBasePredictionContext}
-// @param rootIsWildcard {@code true} if this is a local-context merge,
-// otherwise false to indicate a full-context merge
-// @param mergeCache
-// /
-func mergeSingletons(a, b *PredictionContext, rootIsWildcard bool, mergeCache *JPCMap) *PredictionContext {
- if mergeCache != nil {
- previous, present := mergeCache.Get(a, b)
- if present {
- return previous
- }
- previous, present = mergeCache.Get(b, a)
- if present {
- return previous
- }
- }
-
- rootMerge := mergeRoot(a, b, rootIsWildcard)
- if rootMerge != nil {
- if mergeCache != nil {
- mergeCache.Put(a, b, rootMerge)
- }
- return rootMerge
- }
- if a.returnState == b.returnState {
- parent := merge(a.parentCtx, b.parentCtx, rootIsWildcard, mergeCache)
- // if parent is same as existing a or b parent or reduced to a parent,
- // return it
- if parent.Equals(a.parentCtx) {
- return a // ax + bx = ax, if a=b
- }
- if parent.Equals(b.parentCtx) {
- return b // ax + bx = bx, if a=b
- }
- // else: ax + ay = a'[x,y]
- // merge parents x and y, giving array node with x,y then remainders
- // of those graphs. dup a, a' points at merged array.
- // New joined parent so create a new singleton pointing to it, a'
- spc := SingletonBasePredictionContextCreate(parent, a.returnState)
- if mergeCache != nil {
- mergeCache.Put(a, b, spc)
- }
- return spc
- }
- // a != b payloads differ
- // see if we can collapse parents due to $+x parents if local ctx
- var singleParent *PredictionContext
- if a.Equals(b) || (a.parentCtx != nil && a.parentCtx.Equals(b.parentCtx)) { // ax +
- // bx =
- // [a,b]x
- singleParent = a.parentCtx
- }
- if singleParent != nil { // parents are same
- // sort payloads and use same parent
- payloads := []int{a.returnState, b.returnState}
- if a.returnState > b.returnState {
- payloads[0] = b.returnState
- payloads[1] = a.returnState
- }
- parents := []*PredictionContext{singleParent, singleParent}
- apc := NewArrayPredictionContext(parents, payloads)
- if mergeCache != nil {
- mergeCache.Put(a, b, apc)
- }
- return apc
- }
- // parents differ and can't merge them. Just pack together
- // into array can't merge.
- // ax + by = [ax,by]
- payloads := []int{a.returnState, b.returnState}
- parents := []*PredictionContext{a.parentCtx, b.parentCtx}
- if a.returnState > b.returnState { // sort by payload
- payloads[0] = b.returnState
- payloads[1] = a.returnState
- parents = []*PredictionContext{b.parentCtx, a.parentCtx}
- }
- apc := NewArrayPredictionContext(parents, payloads)
- if mergeCache != nil {
- mergeCache.Put(a, b, apc)
- }
- return apc
-}
-
-// Handle case where at least one of {@code a} or {@code b} is
-// {@link //EMPTY}. In the following diagrams, the symbol {@code $} is used
-// to represent {@link //EMPTY}.
-//
-// Local-Context Merges
-//
-// These local-context merge operations are used when {@code rootIsWildcard}
-// is true.
-//
-// {@link //EMPTY} is superset of any graph return {@link //EMPTY}.
-//
-//
-// {@link //EMPTY} and anything is {@code //EMPTY}, so merged parent is
-// {@code //EMPTY} return left graph.
-//
-//
-// Special case of last merge if local context.
-//
-//
-// Full-Context Merges
-//
-// These full-context merge operations are used when {@code rootIsWildcard}
-// is false.
-//
-//
-//
-// Must keep all contexts {@link //EMPTY} in array is a special value (and
-// nil parent).
-//
-//
-//
-//
-// @param a the first {@link SingletonBasePredictionContext}
-// @param b the second {@link SingletonBasePredictionContext}
-// @param rootIsWildcard {@code true} if this is a local-context merge,
-// otherwise false to indicate a full-context merge
-// /
-func mergeRoot(a, b *PredictionContext, rootIsWildcard bool) *PredictionContext {
- if rootIsWildcard {
- if a.pcType == PredictionContextEmpty {
- return BasePredictionContextEMPTY // // + b =//
- }
- if b.pcType == PredictionContextEmpty {
- return BasePredictionContextEMPTY // a +// =//
- }
- } else {
- if a.isEmpty() && b.isEmpty() {
- return BasePredictionContextEMPTY // $ + $ = $
- } else if a.isEmpty() { // $ + x = [$,x]
- payloads := []int{b.getReturnState(-1), BasePredictionContextEmptyReturnState}
- parents := []*PredictionContext{b.GetParent(-1), nil}
- return NewArrayPredictionContext(parents, payloads)
- } else if b.isEmpty() { // x + $ = [$,x] ($ is always first if present)
- payloads := []int{a.getReturnState(-1), BasePredictionContextEmptyReturnState}
- parents := []*PredictionContext{a.GetParent(-1), nil}
- return NewArrayPredictionContext(parents, payloads)
- }
- }
- return nil
-}
-
-// Merge two {@link ArrayBasePredictionContext} instances.
-//
-// Different tops, different parents.
-//
-//
-// Shared top, same parents.
-//
-//
-// Shared top, different parents.
-//
-//
-// Shared top, all shared parents.
-//
-//
-// Equal tops, merge parents and reduce top to
-// {@link SingletonBasePredictionContext}.
-//
-//
-//goland:noinspection GoBoolExpressions
-func mergeArrays(a, b *PredictionContext, rootIsWildcard bool, mergeCache *JPCMap) *PredictionContext {
- if mergeCache != nil {
- previous, present := mergeCache.Get(a, b)
- if present {
- if runtimeConfig.parserATNSimulatorTraceATNSim {
- fmt.Println("mergeArrays a=" + a.String() + ",b=" + b.String() + " -> previous")
- }
- return previous
- }
- previous, present = mergeCache.Get(b, a)
- if present {
- if runtimeConfig.parserATNSimulatorTraceATNSim {
- fmt.Println("mergeArrays a=" + a.String() + ",b=" + b.String() + " -> previous")
- }
- return previous
- }
- }
- // merge sorted payloads a + b => M
- i := 0 // walks a
- j := 0 // walks b
- k := 0 // walks target M array
-
- mergedReturnStates := make([]int, len(a.returnStates)+len(b.returnStates))
- mergedParents := make([]*PredictionContext, len(a.returnStates)+len(b.returnStates))
- // walk and merge to yield mergedParents, mergedReturnStates
- for i < len(a.returnStates) && j < len(b.returnStates) {
- aParent := a.parents[i]
- bParent := b.parents[j]
- if a.returnStates[i] == b.returnStates[j] {
- // same payload (stack tops are equal), must yield merged singleton
- payload := a.returnStates[i]
- // $+$ = $
- bothDollars := payload == BasePredictionContextEmptyReturnState && aParent == nil && bParent == nil
- axAX := aParent != nil && bParent != nil && aParent.Equals(bParent) // ax+ax
- // ->
- // ax
- if bothDollars || axAX {
- mergedParents[k] = aParent // choose left
- mergedReturnStates[k] = payload
- } else { // ax+ay -> a'[x,y]
- mergedParent := merge(aParent, bParent, rootIsWildcard, mergeCache)
- mergedParents[k] = mergedParent
- mergedReturnStates[k] = payload
- }
- i++ // hop over left one as usual
- j++ // but also Skip one in right side since we merge
- } else if a.returnStates[i] < b.returnStates[j] { // copy a[i] to M
- mergedParents[k] = aParent
- mergedReturnStates[k] = a.returnStates[i]
- i++
- } else { // b > a, copy b[j] to M
- mergedParents[k] = bParent
- mergedReturnStates[k] = b.returnStates[j]
- j++
- }
- k++
- }
- // copy over any payloads remaining in either array
- if i < len(a.returnStates) {
- for p := i; p < len(a.returnStates); p++ {
- mergedParents[k] = a.parents[p]
- mergedReturnStates[k] = a.returnStates[p]
- k++
- }
- } else {
- for p := j; p < len(b.returnStates); p++ {
- mergedParents[k] = b.parents[p]
- mergedReturnStates[k] = b.returnStates[p]
- k++
- }
- }
- // trim merged if we combined a few that had same stack tops
- if k < len(mergedParents) { // write index < last position trim
- if k == 1 { // for just one merged element, return singleton top
- pc := SingletonBasePredictionContextCreate(mergedParents[0], mergedReturnStates[0])
- if mergeCache != nil {
- mergeCache.Put(a, b, pc)
- }
- return pc
- }
- mergedParents = mergedParents[0:k]
- mergedReturnStates = mergedReturnStates[0:k]
- }
-
- M := NewArrayPredictionContext(mergedParents, mergedReturnStates)
-
- // if we created same array as a or b, return that instead
- // TODO: JI track whether this is possible above during merge sort for speed and possibly avoid an allocation
- if M.Equals(a) {
- if mergeCache != nil {
- mergeCache.Put(a, b, a)
- }
- if runtimeConfig.parserATNSimulatorTraceATNSim {
- fmt.Println("mergeArrays a=" + a.String() + ",b=" + b.String() + " -> a")
- }
- return a
- }
- if M.Equals(b) {
- if mergeCache != nil {
- mergeCache.Put(a, b, b)
- }
- if runtimeConfig.parserATNSimulatorTraceATNSim {
- fmt.Println("mergeArrays a=" + a.String() + ",b=" + b.String() + " -> b")
- }
- return b
- }
- combineCommonParents(&mergedParents)
-
- if mergeCache != nil {
- mergeCache.Put(a, b, M)
- }
- if runtimeConfig.parserATNSimulatorTraceATNSim {
- fmt.Println("mergeArrays a=" + a.String() + ",b=" + b.String() + " -> " + M.String())
- }
- return M
-}
-
-// Make pass over all M parents and merge any Equals() ones.
-// Note that we pass a pointer to the slice as we want to modify it in place.
-//
-//goland:noinspection GoUnusedFunction
-func combineCommonParents(parents *[]*PredictionContext) {
- uniqueParents := NewJStore[*PredictionContext, Comparator[*PredictionContext]](pContextEqInst, PredictionContextCollection, "combineCommonParents for PredictionContext")
-
- for p := 0; p < len(*parents); p++ {
- parent := (*parents)[p]
- _, _ = uniqueParents.Put(parent)
- }
- for q := 0; q < len(*parents); q++ {
- pc, _ := uniqueParents.Get((*parents)[q])
- (*parents)[q] = pc
- }
-}
-
-func getCachedBasePredictionContext(context *PredictionContext, contextCache *PredictionContextCache, visited *VisitRecord) *PredictionContext {
- if context.isEmpty() {
- return context
- }
- existing, present := visited.Get(context)
- if present {
- return existing
- }
-
- existing, present = contextCache.Get(context)
- if present {
- visited.Put(context, existing)
- return existing
- }
- changed := false
- parents := make([]*PredictionContext, context.length())
- for i := 0; i < len(parents); i++ {
- parent := getCachedBasePredictionContext(context.GetParent(i), contextCache, visited)
- if changed || !parent.Equals(context.GetParent(i)) {
- if !changed {
- parents = make([]*PredictionContext, context.length())
- for j := 0; j < context.length(); j++ {
- parents[j] = context.GetParent(j)
- }
- changed = true
- }
- parents[i] = parent
- }
- }
- if !changed {
- contextCache.add(context)
- visited.Put(context, context)
- return context
- }
- var updated *PredictionContext
- if len(parents) == 0 {
- updated = BasePredictionContextEMPTY
- } else if len(parents) == 1 {
- updated = SingletonBasePredictionContextCreate(parents[0], context.getReturnState(0))
- } else {
- updated = NewArrayPredictionContext(parents, context.GetReturnStates())
- }
- contextCache.add(updated)
- visited.Put(updated, updated)
- visited.Put(context, updated)
-
- return updated
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/prediction_context_cache.go b/vendor/github.com/antlr4-go/antlr/v4/prediction_context_cache.go
deleted file mode 100644
index 25dfb11e8..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/prediction_context_cache.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package antlr
-
-var BasePredictionContextEMPTY = &PredictionContext{
- cachedHash: calculateEmptyHash(),
- pcType: PredictionContextEmpty,
- returnState: BasePredictionContextEmptyReturnState,
-}
-
-// PredictionContextCache is Used to cache [PredictionContext] objects. It is used for the shared
-// context cash associated with contexts in DFA states. This cache
-// can be used for both lexers and parsers.
-type PredictionContextCache struct {
- cache *JMap[*PredictionContext, *PredictionContext, Comparator[*PredictionContext]]
-}
-
-func NewPredictionContextCache() *PredictionContextCache {
- return &PredictionContextCache{
- cache: NewJMap[*PredictionContext, *PredictionContext, Comparator[*PredictionContext]](pContextEqInst, PredictionContextCacheCollection, "NewPredictionContextCache()"),
- }
-}
-
-// Add a context to the cache and return it. If the context already exists,
-// return that one instead and do not add a new context to the cache.
-// Protect shared cache from unsafe thread access.
-func (p *PredictionContextCache) add(ctx *PredictionContext) *PredictionContext {
- if ctx.isEmpty() {
- return BasePredictionContextEMPTY
- }
-
- // Put will return the existing entry if it is present (note this is done via Equals, not whether it is
- // the same pointer), otherwise it will add the new entry and return that.
- //
- existing, present := p.cache.Get(ctx)
- if present {
- return existing
- }
- p.cache.Put(ctx, ctx)
- return ctx
-}
-
-func (p *PredictionContextCache) Get(ctx *PredictionContext) (*PredictionContext, bool) {
- pc, exists := p.cache.Get(ctx)
- return pc, exists
-}
-
-func (p *PredictionContextCache) length() int {
- return p.cache.Len()
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/prediction_mode.go b/vendor/github.com/antlr4-go/antlr/v4/prediction_mode.go
deleted file mode 100644
index 3f85a6a52..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/prediction_mode.go
+++ /dev/null
@@ -1,536 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-// This enumeration defines the prediction modes available in ANTLR 4 along with
-// utility methods for analyzing configuration sets for conflicts and/or
-// ambiguities.
-
-const (
- // PredictionModeSLL represents the SLL(*) prediction mode.
- // This prediction mode ignores the current
- // parser context when making predictions. This is the fastest prediction
- // mode, and provides correct results for many grammars. This prediction
- // mode is more powerful than the prediction mode provided by ANTLR 3, but
- // may result in syntax errors for grammar and input combinations which are
- // not SLL.
- //
- // When using this prediction mode, the parser will either return a correct
- // parse tree (i.e. the same parse tree that would be returned with the
- // [PredictionModeLL] prediction mode), or it will Report a syntax error. If a
- // syntax error is encountered when using the SLL prediction mode,
- // it may be due to either an actual syntax error in the input or indicate
- // that the particular combination of grammar and input requires the more
- // powerful LL prediction abilities to complete successfully.
- //
- // This prediction mode does not provide any guarantees for prediction
- // behavior for syntactically-incorrect inputs.
- //
- PredictionModeSLL = 0
-
- // PredictionModeLL represents the LL(*) prediction mode.
- // This prediction mode allows the current parser
- // context to be used for resolving SLL conflicts that occur during
- // prediction. This is the fastest prediction mode that guarantees correct
- // parse results for all combinations of grammars with syntactically correct
- // inputs.
- //
- // When using this prediction mode, the parser will make correct decisions
- // for all syntactically-correct grammar and input combinations. However, in
- // cases where the grammar is truly ambiguous this prediction mode might not
- // report a precise answer for exactly which alternatives are
- // ambiguous.
- //
- // This prediction mode does not provide any guarantees for prediction
- // behavior for syntactically-incorrect inputs.
- //
- PredictionModeLL = 1
-
- // PredictionModeLLExactAmbigDetection represents the LL(*) prediction mode
- // with exact ambiguity detection.
- //
- // In addition to the correctness guarantees provided by the [PredictionModeLL] prediction mode,
- // this prediction mode instructs the prediction algorithm to determine the
- // complete and exact set of ambiguous alternatives for every ambiguous
- // decision encountered while parsing.
- //
- // This prediction mode may be used for diagnosing ambiguities during
- // grammar development. Due to the performance overhead of calculating sets
- // of ambiguous alternatives, this prediction mode should be avoided when
- // the exact results are not necessary.
- //
- // This prediction mode does not provide any guarantees for prediction
- // behavior for syntactically-incorrect inputs.
- //
- PredictionModeLLExactAmbigDetection = 2
-)
-
-// PredictionModehasSLLConflictTerminatingPrediction computes the SLL prediction termination condition.
-//
-// This method computes the SLL prediction termination condition for both of
-// the following cases:
-//
-// - The usual SLL+LL fallback upon SLL conflict
-// - Pure SLL without LL fallback
-//
-// # Combined SLL+LL Parsing
-//
-// When LL-fallback is enabled upon SLL conflict, correct predictions are
-// ensured regardless of how the termination condition is computed by this
-// method. Due to the substantially higher cost of LL prediction, the
-// prediction should only fall back to LL when the additional lookahead
-// cannot lead to a unique SLL prediction.
-//
-// Assuming combined SLL+LL parsing, an SLL configuration set with only
-// conflicting subsets should fall back to full LL, even if the
-// configuration sets don't resolve to the same alternative, e.g.
-//
-// {1,2} and {3,4}
-//
-// If there is at least one non-conflicting
-// configuration, SLL could continue with the hopes that more lookahead will
-// resolve via one of those non-conflicting configurations.
-//
-// Here's the prediction termination rule them: SLL (for SLL+LL parsing)
-// stops when it sees only conflicting configuration subsets. In contrast,
-// full LL keeps going when there is uncertainty.
-//
-// # Heuristic
-//
-// As a heuristic, we stop prediction when we see any conflicting subset
-// unless we see a state that only has one alternative associated with it.
-// The single-alt-state thing lets prediction continue upon rules like
-// (otherwise, it would admit defeat too soon):
-//
-// [12|1|[], 6|2|[], 12|2|[]]. s : (ID | ID ID?) ;
-//
-// When the [ATN] simulation reaches the state before ';', it has a
-// [DFA] state that looks like:
-//
-// [12|1|[], 6|2|[], 12|2|[]]
-//
-// Naturally
-//
-// 12|1|[] and 12|2|[]
-//
-// conflict, but we cannot stop processing this node because alternative to has another way to continue,
-// via
-//
-// [6|2|[]]
-//
-// It also let's us continue for this rule:
-//
-// [1|1|[], 1|2|[], 8|3|[]] a : A | A | A B ;
-//
-// After Matching input A, we reach the stop state for rule A, state 1.
-// State 8 is the state immediately before B. Clearly alternatives 1 and 2
-// conflict and no amount of further lookahead will separate the two.
-// However, alternative 3 will be able to continue, and so we do not stop
-// working on this state. In the previous example, we're concerned with
-// states associated with the conflicting alternatives. Here alt 3 is not
-// associated with the conflicting configs, but since we can continue
-// looking for input reasonably, don't declare the state done.
-//
-// # Pure SLL Parsing
-//
-// To handle pure SLL parsing, all we have to do is make sure that we
-// combine stack contexts for configurations that differ only by semantic
-// predicate. From there, we can do the usual SLL termination heuristic.
-//
-// # Predicates in SLL+LL Parsing
-//
-// SLL decisions don't evaluate predicates until after they reach [DFA] stop
-// states because they need to create the [DFA] cache that works in all
-// semantic situations. In contrast, full LL evaluates predicates collected
-// during start state computation, so it can ignore predicates thereafter.
-// This means that SLL termination detection can totally ignore semantic
-// predicates.
-//
-// Implementation-wise, [ATNConfigSet] combines stack contexts but not
-// semantic predicate contexts, so we might see two configurations like the
-// following:
-//
-// (s, 1, x, {}), (s, 1, x', {p})
-//
-// Before testing these configurations against others, we have to merge
-// x and x' (without modifying the existing configurations).
-// For example, we test (x+x')==x” when looking for conflicts in
-// the following configurations:
-//
-// (s, 1, x, {}), (s, 1, x', {p}), (s, 2, x”, {})
-//
-// If the configuration set has predicates (as indicated by
-// [ATNConfigSet.hasSemanticContext]), this algorithm makes a copy of
-// the configurations to strip out all the predicates so that a standard
-// [ATNConfigSet] will merge everything ignoring predicates.
-func PredictionModehasSLLConflictTerminatingPrediction(mode int, configs *ATNConfigSet) bool {
-
- // Configs in rule stop states indicate reaching the end of the decision
- // rule (local context) or end of start rule (full context). If all
- // configs meet this condition, then none of the configurations is able
- // to Match additional input, so we terminate prediction.
- //
- if PredictionModeallConfigsInRuleStopStates(configs) {
- return true
- }
-
- // pure SLL mode parsing
- if mode == PredictionModeSLL {
- // Don't bother with combining configs from different semantic
- // contexts if we can fail over to full LL costs more time
- // since we'll often fail over anyway.
- if configs.hasSemanticContext {
- // dup configs, tossing out semantic predicates
- dup := NewATNConfigSet(false)
- for _, c := range configs.configs {
-
- // NewATNConfig({semanticContext:}, c)
- c = NewATNConfig2(c, SemanticContextNone)
- dup.Add(c, nil)
- }
- configs = dup
- }
- // now we have combined contexts for configs with dissimilar predicates
- }
- // pure SLL or combined SLL+LL mode parsing
- altsets := PredictionModegetConflictingAltSubsets(configs)
- return PredictionModehasConflictingAltSet(altsets) && !PredictionModehasStateAssociatedWithOneAlt(configs)
-}
-
-// PredictionModehasConfigInRuleStopState checks if any configuration in the given configs is in a
-// [RuleStopState]. Configurations meeting this condition have reached
-// the end of the decision rule (local context) or end of start rule (full
-// context).
-//
-// The func returns true if any configuration in the supplied configs is in a [RuleStopState]
-func PredictionModehasConfigInRuleStopState(configs *ATNConfigSet) bool {
- for _, c := range configs.configs {
- if _, ok := c.GetState().(*RuleStopState); ok {
- return true
- }
- }
- return false
-}
-
-// PredictionModeallConfigsInRuleStopStates checks if all configurations in configs are in a
-// [RuleStopState]. Configurations meeting this condition have reached
-// the end of the decision rule (local context) or end of start rule (full
-// context).
-//
-// the func returns true if all configurations in configs are in a
-// [RuleStopState]
-func PredictionModeallConfigsInRuleStopStates(configs *ATNConfigSet) bool {
-
- for _, c := range configs.configs {
- if _, ok := c.GetState().(*RuleStopState); !ok {
- return false
- }
- }
- return true
-}
-
-// PredictionModeresolvesToJustOneViableAlt checks full LL prediction termination.
-//
-// Can we stop looking ahead during [ATN] simulation or is there some
-// uncertainty as to which alternative we will ultimately pick, after
-// consuming more input? Even if there are partial conflicts, we might know
-// that everything is going to resolve to the same minimum alternative. That
-// means we can stop since no more lookahead will change that fact. On the
-// other hand, there might be multiple conflicts that resolve to different
-// minimums. That means we need more look ahead to decide which of those
-// alternatives we should predict.
-//
-// The basic idea is to split the set of configurations 'C', into
-// conflicting subsets (s, _, ctx, _) and singleton subsets with
-// non-conflicting configurations. Two configurations conflict if they have
-// identical [ATNConfig].state and [ATNConfig].context values
-// but a different [ATNConfig].alt value, e.g.
-//
-// (s, i, ctx, _)
-//
-// and
-//
-// (s, j, ctx, _) ; for i != j
-//
-// Reduce these configuration subsets to the set of possible alternatives.
-// You can compute the alternative subsets in one pass as follows:
-//
-// A_s,ctx = {i | (s, i, ctx, _)}
-//
-// for each configuration in C holding s and ctx fixed.
-//
-// Or in pseudo-code:
-//
-// for each configuration c in C:
-// map[c] U = c.ATNConfig.alt alt // map hash/equals uses s and x, not alt and not pred
-//
-// The values in map are the set of
-//
-// A_s,ctx
-//
-// sets.
-//
-// If
-//
-// |A_s,ctx| = 1
-//
-// then there is no conflict associated with s and ctx.
-//
-// Reduce the subsets to singletons by choosing a minimum of each subset. If
-// the union of these alternative subsets is a singleton, then no amount of
-// further lookahead will help us. We will always pick that alternative. If,
-// however, there is more than one alternative, then we are uncertain which
-// alternative to predict and must continue looking for resolution. We may
-// or may not discover an ambiguity in the future, even if there are no
-// conflicting subsets this round.
-//
-// The biggest sin is to terminate early because it means we've made a
-// decision but were uncertain as to the eventual outcome. We haven't used
-// enough lookahead. On the other hand, announcing a conflict too late is no
-// big deal; you will still have the conflict. It's just inefficient. It
-// might even look until the end of file.
-//
-// No special consideration for semantic predicates is required because
-// predicates are evaluated on-the-fly for full LL prediction, ensuring that
-// no configuration contains a semantic context during the termination
-// check.
-//
-// # Conflicting Configs
-//
-// Two configurations:
-//
-// (s, i, x) and (s, j, x')
-//
-// conflict when i != j but x = x'. Because we merge all
-// (s, i, _) configurations together, that means that there are at
-// most n configurations associated with state s for
-// n possible alternatives in the decision. The merged stacks
-// complicate the comparison of configuration contexts x and x'.
-//
-// Sam checks to see if one is a subset of the other by calling
-// merge and checking to see if the merged result is either x or x'.
-// If the x associated with lowest alternative i
-// is the superset, then i is the only possible prediction since the
-// others resolve to min(i) as well. However, if x is
-// associated with j > i then at least one stack configuration for
-// j is not in conflict with alternative i. The algorithm
-// should keep going, looking for more lookahead due to the uncertainty.
-//
-// For simplicity, I'm doing an equality check between x and
-// x', which lets the algorithm continue to consume lookahead longer
-// than necessary. The reason I like the equality is of course the
-// simplicity but also because that is the test you need to detect the
-// alternatives that are actually in conflict.
-//
-// # Continue/Stop Rule
-//
-// Continue if the union of resolved alternative sets from non-conflicting and
-// conflicting alternative subsets has more than one alternative. We are
-// uncertain about which alternative to predict.
-//
-// The complete set of alternatives,
-//
-// [i for (_, i, _)]
-//
-// tells us which alternatives are still in the running for the amount of input we've
-// consumed at this point. The conflicting sets let us to strip away
-// configurations that won't lead to more states because we resolve
-// conflicts to the configuration with a minimum alternate for the
-// conflicting set.
-//
-// Cases
-//
-// - no conflicts and more than 1 alternative in set => continue
-// - (s, 1, x), (s, 2, x), (s, 3, z), (s', 1, y), (s', 2, y) yields non-conflicting set
-// {3} ∪ conflicting sets min({1,2}) ∪ min({1,2}) = {1,3} => continue
-// - (s, 1, x), (s, 2, x), (s', 1, y), (s', 2, y), (s”, 1, z) yields non-conflicting set
-// {1} ∪ conflicting sets min({1,2}) ∪ min({1,2}) = {1} => stop and predict 1
-// - (s, 1, x), (s, 2, x), (s', 1, y), (s', 2, y) yields conflicting, reduced sets
-// {1} ∪ {1} = {1} => stop and predict 1, can announce ambiguity {1,2}
-// - (s, 1, x), (s, 2, x), (s', 2, y), (s', 3, y) yields conflicting, reduced sets
-// {1} ∪ {2} = {1,2} => continue
-// - (s, 1, x), (s, 2, x), (s', 2, y), (s', 3, y) yields conflicting, reduced sets
-// {1} ∪ {2} = {1,2} => continue
-// - (s, 1, x), (s, 2, x), (s', 3, y), (s', 4, y) yields conflicting, reduced sets
-// {1} ∪ {3} = {1,3} => continue
-//
-// # Exact Ambiguity Detection
-//
-// If all states report the same conflicting set of alternatives, then we
-// know we have the exact ambiguity set:
-//
-// |A_i| > 1
-//
-// and
-//
-// A_i = A_j ; for all i, j
-//
-// In other words, we continue examining lookahead until all A_i
-// have more than one alternative and all A_i are the same. If
-//
-// A={{1,2}, {1,3}}
-//
-// then regular LL prediction would terminate because the resolved set is {1}.
-// To determine what the real ambiguity is, we have to know whether the ambiguity is between one and
-// two or one and three so we keep going. We can only stop prediction when
-// we need exact ambiguity detection when the sets look like:
-//
-// A={{1,2}}
-//
-// or
-//
-// {{1,2},{1,2}}, etc...
-func PredictionModeresolvesToJustOneViableAlt(altsets []*BitSet) int {
- return PredictionModegetSingleViableAlt(altsets)
-}
-
-// PredictionModeallSubsetsConflict determines if every alternative subset in altsets contains more
-// than one alternative.
-//
-// The func returns true if every [BitSet] in altsets has
-// [BitSet].cardinality cardinality > 1
-func PredictionModeallSubsetsConflict(altsets []*BitSet) bool {
- return !PredictionModehasNonConflictingAltSet(altsets)
-}
-
-// PredictionModehasNonConflictingAltSet determines if any single alternative subset in altsets contains
-// exactly one alternative.
-//
-// The func returns true if altsets contains at least one [BitSet] with
-// [BitSet].cardinality cardinality 1
-func PredictionModehasNonConflictingAltSet(altsets []*BitSet) bool {
- for i := 0; i < len(altsets); i++ {
- alts := altsets[i]
- if alts.length() == 1 {
- return true
- }
- }
- return false
-}
-
-// PredictionModehasConflictingAltSet determines if any single alternative subset in altsets contains
-// more than one alternative.
-//
-// The func returns true if altsets contains a [BitSet] with
-// [BitSet].cardinality cardinality > 1, otherwise false
-func PredictionModehasConflictingAltSet(altsets []*BitSet) bool {
- for i := 0; i < len(altsets); i++ {
- alts := altsets[i]
- if alts.length() > 1 {
- return true
- }
- }
- return false
-}
-
-// PredictionModeallSubsetsEqual determines if every alternative subset in altsets is equivalent.
-//
-// The func returns true if every member of altsets is equal to the others.
-func PredictionModeallSubsetsEqual(altsets []*BitSet) bool {
- var first *BitSet
-
- for i := 0; i < len(altsets); i++ {
- alts := altsets[i]
- if first == nil {
- first = alts
- } else if alts != first {
- return false
- }
- }
-
- return true
-}
-
-// PredictionModegetUniqueAlt returns the unique alternative predicted by all alternative subsets in
-// altsets. If no such alternative exists, this method returns
-// [ATNInvalidAltNumber].
-//
-// @param altsets a collection of alternative subsets
-func PredictionModegetUniqueAlt(altsets []*BitSet) int {
- all := PredictionModeGetAlts(altsets)
- if all.length() == 1 {
- return all.minValue()
- }
-
- return ATNInvalidAltNumber
-}
-
-// PredictionModeGetAlts returns the complete set of represented alternatives for a collection of
-// alternative subsets. This method returns the union of each [BitSet]
-// in altsets, being the set of represented alternatives in altsets.
-func PredictionModeGetAlts(altsets []*BitSet) *BitSet {
- all := NewBitSet()
- for _, alts := range altsets {
- all.or(alts)
- }
- return all
-}
-
-// PredictionModegetConflictingAltSubsets gets the conflicting alt subsets from a configuration set.
-//
-// for each configuration c in configs:
-// map[c] U= c.ATNConfig.alt // map hash/equals uses s and x, not alt and not pred
-func PredictionModegetConflictingAltSubsets(configs *ATNConfigSet) []*BitSet {
- configToAlts := NewJMap[*ATNConfig, *BitSet, *ATNAltConfigComparator[*ATNConfig]](atnAltCfgEqInst, AltSetCollection, "PredictionModegetConflictingAltSubsets()")
-
- for _, c := range configs.configs {
-
- alts, ok := configToAlts.Get(c)
- if !ok {
- alts = NewBitSet()
- configToAlts.Put(c, alts)
- }
- alts.add(c.GetAlt())
- }
-
- return configToAlts.Values()
-}
-
-// PredictionModeGetStateToAltMap gets a map from state to alt subset from a configuration set.
-//
-// for each configuration c in configs:
-// map[c.ATNConfig.state] U= c.ATNConfig.alt}
-func PredictionModeGetStateToAltMap(configs *ATNConfigSet) *AltDict {
- m := NewAltDict()
-
- for _, c := range configs.configs {
- alts := m.Get(c.GetState().String())
- if alts == nil {
- alts = NewBitSet()
- m.put(c.GetState().String(), alts)
- }
- alts.(*BitSet).add(c.GetAlt())
- }
- return m
-}
-
-func PredictionModehasStateAssociatedWithOneAlt(configs *ATNConfigSet) bool {
- values := PredictionModeGetStateToAltMap(configs).values()
- for i := 0; i < len(values); i++ {
- if values[i].(*BitSet).length() == 1 {
- return true
- }
- }
- return false
-}
-
-// PredictionModegetSingleViableAlt gets the single alternative predicted by all alternative subsets in altsets
-// if there is one.
-//
-// TODO: JI - Review this code - it does not seem to do the same thing as the Java code - maybe because [BitSet] is not like the Java utils BitSet
-func PredictionModegetSingleViableAlt(altsets []*BitSet) int {
- result := ATNInvalidAltNumber
-
- for i := 0; i < len(altsets); i++ {
- alts := altsets[i]
- minAlt := alts.minValue()
- if result == ATNInvalidAltNumber {
- result = minAlt
- } else if result != minAlt { // more than 1 viable alt
- return ATNInvalidAltNumber
- }
- }
- return result
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/recognizer.go b/vendor/github.com/antlr4-go/antlr/v4/recognizer.go
deleted file mode 100644
index 2e0b504fb..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/recognizer.go
+++ /dev/null
@@ -1,241 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "fmt"
- "strings"
-
- "strconv"
-)
-
-type Recognizer interface {
- GetLiteralNames() []string
- GetSymbolicNames() []string
- GetRuleNames() []string
-
- Sempred(RuleContext, int, int) bool
- Precpred(RuleContext, int) bool
-
- GetState() int
- SetState(int)
- Action(RuleContext, int, int)
- AddErrorListener(ErrorListener)
- RemoveErrorListeners()
- GetATN() *ATN
- GetErrorListenerDispatch() ErrorListener
- HasError() bool
- GetError() RecognitionException
- SetError(RecognitionException)
-}
-
-type BaseRecognizer struct {
- listeners []ErrorListener
- state int
-
- RuleNames []string
- LiteralNames []string
- SymbolicNames []string
- GrammarFileName string
- SynErr RecognitionException
-}
-
-func NewBaseRecognizer() *BaseRecognizer {
- rec := new(BaseRecognizer)
- rec.listeners = []ErrorListener{ConsoleErrorListenerINSTANCE}
- rec.state = -1
- return rec
-}
-
-//goland:noinspection GoUnusedGlobalVariable
-var tokenTypeMapCache = make(map[string]int)
-
-//goland:noinspection GoUnusedGlobalVariable
-var ruleIndexMapCache = make(map[string]int)
-
-func (b *BaseRecognizer) checkVersion(toolVersion string) {
- runtimeVersion := "4.12.0"
- if runtimeVersion != toolVersion {
- fmt.Println("ANTLR runtime and generated code versions disagree: " + runtimeVersion + "!=" + toolVersion)
- }
-}
-
-func (b *BaseRecognizer) SetError(err RecognitionException) {
- b.SynErr = err
-}
-
-func (b *BaseRecognizer) HasError() bool {
- return b.SynErr != nil
-}
-
-func (b *BaseRecognizer) GetError() RecognitionException {
- return b.SynErr
-}
-
-func (b *BaseRecognizer) Action(_ RuleContext, _, _ int) {
- panic("action not implemented on Recognizer!")
-}
-
-func (b *BaseRecognizer) AddErrorListener(listener ErrorListener) {
- b.listeners = append(b.listeners, listener)
-}
-
-func (b *BaseRecognizer) RemoveErrorListeners() {
- b.listeners = make([]ErrorListener, 0)
-}
-
-func (b *BaseRecognizer) GetRuleNames() []string {
- return b.RuleNames
-}
-
-func (b *BaseRecognizer) GetTokenNames() []string {
- return b.LiteralNames
-}
-
-func (b *BaseRecognizer) GetSymbolicNames() []string {
- return b.SymbolicNames
-}
-
-func (b *BaseRecognizer) GetLiteralNames() []string {
- return b.LiteralNames
-}
-
-func (b *BaseRecognizer) GetState() int {
- return b.state
-}
-
-func (b *BaseRecognizer) SetState(v int) {
- b.state = v
-}
-
-//func (b *Recognizer) GetTokenTypeMap() {
-// var tokenNames = b.GetTokenNames()
-// if (tokenNames==nil) {
-// panic("The current recognizer does not provide a list of token names.")
-// }
-// var result = tokenTypeMapCache[tokenNames]
-// if(result==nil) {
-// result = tokenNames.reduce(function(o, k, i) { o[k] = i })
-// result.EOF = TokenEOF
-// tokenTypeMapCache[tokenNames] = result
-// }
-// return result
-//}
-
-// GetRuleIndexMap Get a map from rule names to rule indexes.
-//
-// Used for XPath and tree pattern compilation.
-//
-// TODO: JI This is not yet implemented in the Go runtime. Maybe not needed.
-func (b *BaseRecognizer) GetRuleIndexMap() map[string]int {
-
- panic("Method not defined!")
- // var ruleNames = b.GetRuleNames()
- // if (ruleNames==nil) {
- // panic("The current recognizer does not provide a list of rule names.")
- // }
- //
- // var result = ruleIndexMapCache[ruleNames]
- // if(result==nil) {
- // result = ruleNames.reduce(function(o, k, i) { o[k] = i })
- // ruleIndexMapCache[ruleNames] = result
- // }
- // return result
-}
-
-// GetTokenType get the token type based upon its name
-func (b *BaseRecognizer) GetTokenType(_ string) int {
- panic("Method not defined!")
- // var ttype = b.GetTokenTypeMap()[tokenName]
- // if (ttype !=nil) {
- // return ttype
- // } else {
- // return TokenInvalidType
- // }
-}
-
-//func (b *Recognizer) GetTokenTypeMap() map[string]int {
-// Vocabulary vocabulary = getVocabulary()
-//
-// Synchronized (tokenTypeMapCache) {
-// Map result = tokenTypeMapCache.Get(vocabulary)
-// if (result == null) {
-// result = new HashMap()
-// for (int i = 0; i < GetATN().maxTokenType; i++) {
-// String literalName = vocabulary.getLiteralName(i)
-// if (literalName != null) {
-// result.put(literalName, i)
-// }
-//
-// String symbolicName = vocabulary.GetSymbolicName(i)
-// if (symbolicName != null) {
-// result.put(symbolicName, i)
-// }
-// }
-//
-// result.put("EOF", Token.EOF)
-// result = Collections.unmodifiableMap(result)
-// tokenTypeMapCache.put(vocabulary, result)
-// }
-//
-// return result
-// }
-//}
-
-// GetErrorHeader returns the error header, normally line/character position information.
-//
-// Can be overridden in sub structs embedding BaseRecognizer.
-func (b *BaseRecognizer) GetErrorHeader(e RecognitionException) string {
- line := e.GetOffendingToken().GetLine()
- column := e.GetOffendingToken().GetColumn()
- return "line " + strconv.Itoa(line) + ":" + strconv.Itoa(column)
-}
-
-// GetTokenErrorDisplay shows how a token should be displayed in an error message.
-//
-// The default is to display just the text, but during development you might
-// want to have a lot of information spit out. Override in that case
-// to use t.String() (which, for CommonToken, dumps everything about
-// the token). This is better than forcing you to override a method in
-// your token objects because you don't have to go modify your lexer
-// so that it creates a NewJava type.
-//
-// Deprecated: This method is not called by the ANTLR 4 Runtime. Specific
-// implementations of [ANTLRErrorStrategy] may provide a similar
-// feature when necessary. For example, see [DefaultErrorStrategy].GetTokenErrorDisplay()
-func (b *BaseRecognizer) GetTokenErrorDisplay(t Token) string {
- if t == nil {
- return ""
- }
- s := t.GetText()
- if s == "" {
- if t.GetTokenType() == TokenEOF {
- s = ""
- } else {
- s = "<" + strconv.Itoa(t.GetTokenType()) + ">"
- }
- }
- s = strings.Replace(s, "\t", "\\t", -1)
- s = strings.Replace(s, "\n", "\\n", -1)
- s = strings.Replace(s, "\r", "\\r", -1)
-
- return "'" + s + "'"
-}
-
-func (b *BaseRecognizer) GetErrorListenerDispatch() ErrorListener {
- return NewProxyErrorListener(b.listeners)
-}
-
-// Sempred embedding structs need to override this if there are sempreds or actions
-// that the ATN interpreter needs to execute
-func (b *BaseRecognizer) Sempred(_ RuleContext, _ int, _ int) bool {
- return true
-}
-
-// Precpred embedding structs need to override this if there are preceding predicates
-// that the ATN interpreter needs to execute
-func (b *BaseRecognizer) Precpred(_ RuleContext, _ int) bool {
- return true
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/rule_context.go b/vendor/github.com/antlr4-go/antlr/v4/rule_context.go
deleted file mode 100644
index f2ad04793..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/rule_context.go
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-// RuleContext is a record of a single rule invocation. It knows
-// which context invoked it, if any. If there is no parent context, then
-// naturally the invoking state is not valid. The parent link
-// provides a chain upwards from the current rule invocation to the root
-// of the invocation tree, forming a stack.
-//
-// We actually carry no information about the rule associated with this context (except
-// when parsing). We keep only the state number of the invoking state from
-// the [ATN] submachine that invoked this. Contrast this with the s
-// pointer inside [ParserRuleContext] that tracks the current state
-// being "executed" for the current rule.
-//
-// The parent contexts are useful for computing lookahead sets and
-// getting error information.
-//
-// These objects are used during parsing and prediction.
-// For the special case of parsers, we use the struct
-// [ParserRuleContext], which embeds a RuleContext.
-//
-// @see ParserRuleContext
-type RuleContext interface {
- RuleNode
-
- GetInvokingState() int
- SetInvokingState(int)
-
- GetRuleIndex() int
- IsEmpty() bool
-
- GetAltNumber() int
- SetAltNumber(altNumber int)
-
- String([]string, RuleContext) string
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/semantic_context.go b/vendor/github.com/antlr4-go/antlr/v4/semantic_context.go
deleted file mode 100644
index 68cb9061e..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/semantic_context.go
+++ /dev/null
@@ -1,464 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "fmt"
- "strconv"
-)
-
-// SemanticContext is a tree structure used to record the semantic context in which
-//
-// an ATN configuration is valid. It's either a single predicate,
-// a conjunction p1 && p2, or a sum of products p1 || p2.
-//
-// I have scoped the AND, OR, and Predicate subclasses of
-// [SemanticContext] within the scope of this outer ``class''
-type SemanticContext interface {
- Equals(other Collectable[SemanticContext]) bool
- Hash() int
-
- evaluate(parser Recognizer, outerContext RuleContext) bool
- evalPrecedence(parser Recognizer, outerContext RuleContext) SemanticContext
-
- String() string
-}
-
-func SemanticContextandContext(a, b SemanticContext) SemanticContext {
- if a == nil || a == SemanticContextNone {
- return b
- }
- if b == nil || b == SemanticContextNone {
- return a
- }
- result := NewAND(a, b)
- if len(result.opnds) == 1 {
- return result.opnds[0]
- }
-
- return result
-}
-
-func SemanticContextorContext(a, b SemanticContext) SemanticContext {
- if a == nil {
- return b
- }
- if b == nil {
- return a
- }
- if a == SemanticContextNone || b == SemanticContextNone {
- return SemanticContextNone
- }
- result := NewOR(a, b)
- if len(result.opnds) == 1 {
- return result.opnds[0]
- }
-
- return result
-}
-
-type Predicate struct {
- ruleIndex int
- predIndex int
- isCtxDependent bool
-}
-
-func NewPredicate(ruleIndex, predIndex int, isCtxDependent bool) *Predicate {
- p := new(Predicate)
-
- p.ruleIndex = ruleIndex
- p.predIndex = predIndex
- p.isCtxDependent = isCtxDependent // e.g., $i ref in pred
- return p
-}
-
-//The default {@link SemanticContext}, which is semantically equivalent to
-//a predicate of the form {@code {true}?}.
-
-var SemanticContextNone = NewPredicate(-1, -1, false)
-
-func (p *Predicate) evalPrecedence(_ Recognizer, _ RuleContext) SemanticContext {
- return p
-}
-
-func (p *Predicate) evaluate(parser Recognizer, outerContext RuleContext) bool {
-
- var localctx RuleContext
-
- if p.isCtxDependent {
- localctx = outerContext
- }
-
- return parser.Sempred(localctx, p.ruleIndex, p.predIndex)
-}
-
-func (p *Predicate) Equals(other Collectable[SemanticContext]) bool {
- if p == other {
- return true
- } else if _, ok := other.(*Predicate); !ok {
- return false
- } else {
- return p.ruleIndex == other.(*Predicate).ruleIndex &&
- p.predIndex == other.(*Predicate).predIndex &&
- p.isCtxDependent == other.(*Predicate).isCtxDependent
- }
-}
-
-func (p *Predicate) Hash() int {
- h := murmurInit(0)
- h = murmurUpdate(h, p.ruleIndex)
- h = murmurUpdate(h, p.predIndex)
- if p.isCtxDependent {
- h = murmurUpdate(h, 1)
- } else {
- h = murmurUpdate(h, 0)
- }
- return murmurFinish(h, 3)
-}
-
-func (p *Predicate) String() string {
- return "{" + strconv.Itoa(p.ruleIndex) + ":" + strconv.Itoa(p.predIndex) + "}?"
-}
-
-type PrecedencePredicate struct {
- precedence int
-}
-
-func NewPrecedencePredicate(precedence int) *PrecedencePredicate {
-
- p := new(PrecedencePredicate)
- p.precedence = precedence
-
- return p
-}
-
-func (p *PrecedencePredicate) evaluate(parser Recognizer, outerContext RuleContext) bool {
- return parser.Precpred(outerContext, p.precedence)
-}
-
-func (p *PrecedencePredicate) evalPrecedence(parser Recognizer, outerContext RuleContext) SemanticContext {
- if parser.Precpred(outerContext, p.precedence) {
- return SemanticContextNone
- }
-
- return nil
-}
-
-func (p *PrecedencePredicate) compareTo(other *PrecedencePredicate) int {
- return p.precedence - other.precedence
-}
-
-func (p *PrecedencePredicate) Equals(other Collectable[SemanticContext]) bool {
-
- var op *PrecedencePredicate
- var ok bool
- if op, ok = other.(*PrecedencePredicate); !ok {
- return false
- }
-
- if p == op {
- return true
- }
-
- return p.precedence == other.(*PrecedencePredicate).precedence
-}
-
-func (p *PrecedencePredicate) Hash() int {
- h := uint32(1)
- h = 31*h + uint32(p.precedence)
- return int(h)
-}
-
-func (p *PrecedencePredicate) String() string {
- return "{" + strconv.Itoa(p.precedence) + ">=prec}?"
-}
-
-func PrecedencePredicatefilterPrecedencePredicates(set *JStore[SemanticContext, Comparator[SemanticContext]]) []*PrecedencePredicate {
- result := make([]*PrecedencePredicate, 0)
-
- set.Each(func(v SemanticContext) bool {
- if c2, ok := v.(*PrecedencePredicate); ok {
- result = append(result, c2)
- }
- return true
- })
-
- return result
-}
-
-// A semantic context which is true whenever none of the contained contexts
-// is false.`
-
-type AND struct {
- opnds []SemanticContext
-}
-
-func NewAND(a, b SemanticContext) *AND {
-
- operands := NewJStore[SemanticContext, Comparator[SemanticContext]](semctxEqInst, SemanticContextCollection, "NewAND() operands")
- if aa, ok := a.(*AND); ok {
- for _, o := range aa.opnds {
- operands.Put(o)
- }
- } else {
- operands.Put(a)
- }
-
- if ba, ok := b.(*AND); ok {
- for _, o := range ba.opnds {
- operands.Put(o)
- }
- } else {
- operands.Put(b)
- }
- precedencePredicates := PrecedencePredicatefilterPrecedencePredicates(operands)
- if len(precedencePredicates) > 0 {
- // interested in the transition with the lowest precedence
- var reduced *PrecedencePredicate
-
- for _, p := range precedencePredicates {
- if reduced == nil || p.precedence < reduced.precedence {
- reduced = p
- }
- }
-
- operands.Put(reduced)
- }
-
- vs := operands.Values()
- opnds := make([]SemanticContext, len(vs))
- copy(opnds, vs)
-
- and := new(AND)
- and.opnds = opnds
-
- return and
-}
-
-func (a *AND) Equals(other Collectable[SemanticContext]) bool {
- if a == other {
- return true
- }
- if _, ok := other.(*AND); !ok {
- return false
- } else {
- for i, v := range other.(*AND).opnds {
- if !a.opnds[i].Equals(v) {
- return false
- }
- }
- return true
- }
-}
-
-// {@inheritDoc}
-//
-//
-// The evaluation of predicates by a context is short-circuiting, but
-// unordered.
-func (a *AND) evaluate(parser Recognizer, outerContext RuleContext) bool {
- for i := 0; i < len(a.opnds); i++ {
- if !a.opnds[i].evaluate(parser, outerContext) {
- return false
- }
- }
- return true
-}
-
-func (a *AND) evalPrecedence(parser Recognizer, outerContext RuleContext) SemanticContext {
- differs := false
- operands := make([]SemanticContext, 0)
-
- for i := 0; i < len(a.opnds); i++ {
- context := a.opnds[i]
- evaluated := context.evalPrecedence(parser, outerContext)
- differs = differs || (evaluated != context)
- if evaluated == nil {
- // The AND context is false if any element is false
- return nil
- } else if evaluated != SemanticContextNone {
- // Reduce the result by Skipping true elements
- operands = append(operands, evaluated)
- }
- }
- if !differs {
- return a
- }
-
- if len(operands) == 0 {
- // all elements were true, so the AND context is true
- return SemanticContextNone
- }
-
- var result SemanticContext
-
- for _, o := range operands {
- if result == nil {
- result = o
- } else {
- result = SemanticContextandContext(result, o)
- }
- }
-
- return result
-}
-
-func (a *AND) Hash() int {
- h := murmurInit(37) // Init with a value different from OR
- for _, op := range a.opnds {
- h = murmurUpdate(h, op.Hash())
- }
- return murmurFinish(h, len(a.opnds))
-}
-
-func (o *OR) Hash() int {
- h := murmurInit(41) // Init with o value different from AND
- for _, op := range o.opnds {
- h = murmurUpdate(h, op.Hash())
- }
- return murmurFinish(h, len(o.opnds))
-}
-
-func (a *AND) String() string {
- s := ""
-
- for _, o := range a.opnds {
- s += "&& " + fmt.Sprint(o)
- }
-
- if len(s) > 3 {
- return s[0:3]
- }
-
- return s
-}
-
-//
-// A semantic context which is true whenever at least one of the contained
-// contexts is true.
-//
-
-type OR struct {
- opnds []SemanticContext
-}
-
-func NewOR(a, b SemanticContext) *OR {
-
- operands := NewJStore[SemanticContext, Comparator[SemanticContext]](semctxEqInst, SemanticContextCollection, "NewOR() operands")
- if aa, ok := a.(*OR); ok {
- for _, o := range aa.opnds {
- operands.Put(o)
- }
- } else {
- operands.Put(a)
- }
-
- if ba, ok := b.(*OR); ok {
- for _, o := range ba.opnds {
- operands.Put(o)
- }
- } else {
- operands.Put(b)
- }
- precedencePredicates := PrecedencePredicatefilterPrecedencePredicates(operands)
- if len(precedencePredicates) > 0 {
- // interested in the transition with the lowest precedence
- var reduced *PrecedencePredicate
-
- for _, p := range precedencePredicates {
- if reduced == nil || p.precedence > reduced.precedence {
- reduced = p
- }
- }
-
- operands.Put(reduced)
- }
-
- vs := operands.Values()
-
- opnds := make([]SemanticContext, len(vs))
- copy(opnds, vs)
-
- o := new(OR)
- o.opnds = opnds
-
- return o
-}
-
-func (o *OR) Equals(other Collectable[SemanticContext]) bool {
- if o == other {
- return true
- } else if _, ok := other.(*OR); !ok {
- return false
- } else {
- for i, v := range other.(*OR).opnds {
- if !o.opnds[i].Equals(v) {
- return false
- }
- }
- return true
- }
-}
-
-//
-// The evaluation of predicates by o context is short-circuiting, but
-// unordered.
-func (o *OR) evaluate(parser Recognizer, outerContext RuleContext) bool {
- for i := 0; i < len(o.opnds); i++ {
- if o.opnds[i].evaluate(parser, outerContext) {
- return true
- }
- }
- return false
-}
-
-func (o *OR) evalPrecedence(parser Recognizer, outerContext RuleContext) SemanticContext {
- differs := false
- operands := make([]SemanticContext, 0)
- for i := 0; i < len(o.opnds); i++ {
- context := o.opnds[i]
- evaluated := context.evalPrecedence(parser, outerContext)
- differs = differs || (evaluated != context)
- if evaluated == SemanticContextNone {
- // The OR context is true if any element is true
- return SemanticContextNone
- } else if evaluated != nil {
- // Reduce the result by Skipping false elements
- operands = append(operands, evaluated)
- }
- }
- if !differs {
- return o
- }
- if len(operands) == 0 {
- // all elements were false, so the OR context is false
- return nil
- }
- var result SemanticContext
-
- for _, o := range operands {
- if result == nil {
- result = o
- } else {
- result = SemanticContextorContext(result, o)
- }
- }
-
- return result
-}
-
-func (o *OR) String() string {
- s := ""
-
- for _, o := range o.opnds {
- s += "|| " + fmt.Sprint(o)
- }
-
- if len(s) > 3 {
- return s[0:3]
- }
-
- return s
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/statistics.go b/vendor/github.com/antlr4-go/antlr/v4/statistics.go
deleted file mode 100644
index 70c0673a0..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/statistics.go
+++ /dev/null
@@ -1,281 +0,0 @@
-//go:build antlr.stats
-
-package antlr
-
-import (
- "fmt"
- "log"
- "os"
- "path/filepath"
- "sort"
- "strconv"
- "sync"
-)
-
-// This file allows the user to collect statistics about the runtime of the ANTLR runtime. It is not enabled by default
-// and so incurs no time penalty. To enable it, you must build the runtime with the antlr.stats build tag.
-//
-
-// Tells various components to collect statistics - because it is only true when this file is included, it will
-// allow the compiler to completely eliminate all the code that is only used when collecting statistics.
-const collectStats = true
-
-// goRunStats is a collection of all the various data the ANTLR runtime has collected about a particular run.
-// It is exported so that it can be used by others to look for things that are not already looked for in the
-// runtime statistics.
-type goRunStats struct {
-
- // jStats is a slice of all the [JStatRec] records that have been created, which is one for EVERY collection created
- // during a run. It is exported so that it can be used by others to look for things that are not already looked for
- // within this package.
- //
- jStats []*JStatRec
- jStatsLock sync.RWMutex
- topN int
- topNByMax []*JStatRec
- topNByUsed []*JStatRec
- unusedCollections map[CollectionSource]int
- counts map[CollectionSource]int
-}
-
-const (
- collectionsFile = "collections"
-)
-
-var (
- Statistics = &goRunStats{
- topN: 10,
- }
-)
-
-type statsOption func(*goRunStats) error
-
-// Configure allows the statistics system to be configured as the user wants and override the defaults
-func (s *goRunStats) Configure(options ...statsOption) error {
- for _, option := range options {
- err := option(s)
- if err != nil {
- return err
- }
- }
- return nil
-}
-
-// WithTopN sets the number of things to list in the report when we are concerned with the top N things.
-//
-// For example, if you want to see the top 20 collections by size, you can do:
-//
-// antlr.Statistics.Configure(antlr.WithTopN(20))
-func WithTopN(topN int) statsOption {
- return func(s *goRunStats) error {
- s.topN = topN
- return nil
- }
-}
-
-// Analyze looks through all the statistical records and computes all the outputs that might be useful to the user.
-//
-// The function gathers and analyzes a number of statistics about any particular run of
-// an ANTLR generated recognizer. In the vast majority of cases, the statistics are only
-// useful to maintainers of ANTLR itself, but they can be useful to users as well. They may be
-// especially useful in tracking down bugs or performance problems when an ANTLR user could
-// supply the output from this package, but cannot supply the grammar file(s) they are using, even
-// privately to the maintainers.
-//
-// The statistics are gathered by the runtime itself, and are not gathered by the parser or lexer, but the user
-// must call this function their selves to analyze the statistics. This is because none of the infrastructure is
-// extant unless the calling program is built with the antlr.stats tag like so:
-//
-// go build -tags antlr.stats .
-//
-// When a program is built with the antlr.stats tag, the Statistics object is created and available outside
-// the package. The user can then call the [Statistics.Analyze] function to analyze the statistics and then call the
-// [Statistics.Report] function to report the statistics.
-//
-// Please forward any questions about this package to the ANTLR discussion groups on GitHub or send to them to
-// me [Jim Idle] directly at jimi@idle.ws
-//
-// [Jim Idle]: https:://github.com/jim-idle
-func (s *goRunStats) Analyze() {
-
- // Look for anything that looks strange and record it in our local maps etc for the report to present it
- //
- s.CollectionAnomalies()
- s.TopNCollections()
-}
-
-// TopNCollections looks through all the statistical records and gathers the top ten collections by size.
-func (s *goRunStats) TopNCollections() {
-
- // Let's sort the stat records by MaxSize
- //
- sort.Slice(s.jStats, func(i, j int) bool {
- return s.jStats[i].MaxSize > s.jStats[j].MaxSize
- })
-
- for i := 0; i < len(s.jStats) && i < s.topN; i++ {
- s.topNByMax = append(s.topNByMax, s.jStats[i])
- }
-
- // Sort by the number of times used
- //
- sort.Slice(s.jStats, func(i, j int) bool {
- return s.jStats[i].Gets+s.jStats[i].Puts > s.jStats[j].Gets+s.jStats[j].Puts
- })
- for i := 0; i < len(s.jStats) && i < s.topN; i++ {
- s.topNByUsed = append(s.topNByUsed, s.jStats[i])
- }
-}
-
-// Report dumps a markdown formatted report of all the statistics collected during a run to the given dir output
-// path, which should represent a directory. Generated files will be prefixed with the given prefix and will be
-// given a type name such as `anomalies` and a time stamp such as `2021-09-01T12:34:56` and a .md suffix.
-func (s *goRunStats) Report(dir string, prefix string) error {
-
- isDir, err := isDirectory(dir)
- switch {
- case err != nil:
- return err
- case !isDir:
- return fmt.Errorf("output directory `%s` is not a directory", dir)
- }
- s.reportCollections(dir, prefix)
-
- // Clean out any old data in case the user forgets
- //
- s.Reset()
- return nil
-}
-
-func (s *goRunStats) Reset() {
- s.jStats = nil
- s.topNByUsed = nil
- s.topNByMax = nil
-}
-
-func (s *goRunStats) reportCollections(dir, prefix string) {
- cname := filepath.Join(dir, ".asciidoctor")
- // If the file doesn't exist, create it, or append to the file
- f, err := os.OpenFile(cname, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
- if err != nil {
- log.Fatal(err)
- }
- _, _ = f.WriteString(`// .asciidoctorconfig
-++++
-
-++++`)
- _ = f.Close()
-
- fname := filepath.Join(dir, prefix+"_"+"_"+collectionsFile+"_"+".adoc")
- // If the file doesn't exist, create it, or append to the file
- f, err = os.OpenFile(fname, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
- if err != nil {
- log.Fatal(err)
- }
- defer func(f *os.File) {
- err := f.Close()
- if err != nil {
- log.Fatal(err)
- }
- }(f)
- _, _ = f.WriteString("= Collections for " + prefix + "\n\n")
-
- _, _ = f.WriteString("== Summary\n")
-
- if s.unusedCollections != nil {
- _, _ = f.WriteString("=== Unused Collections\n")
- _, _ = f.WriteString("Unused collections incur a penalty for allocation that makes them a candidate for either\n")
- _, _ = f.WriteString(" removal or optimization. If you are using a collection that is not used, you should\n")
- _, _ = f.WriteString(" consider removing it. If you are using a collection that is used, but not very often,\n")
- _, _ = f.WriteString(" you should consider using lazy initialization to defer the allocation until it is\n")
- _, _ = f.WriteString(" actually needed.\n\n")
-
- _, _ = f.WriteString("\n.Unused collections\n")
- _, _ = f.WriteString(`[cols="<3,>1"]` + "\n\n")
- _, _ = f.WriteString("|===\n")
- _, _ = f.WriteString("| Type | Count\n")
-
- for k, v := range s.unusedCollections {
- _, _ = f.WriteString("| " + CollectionDescriptors[k].SybolicName + " | " + strconv.Itoa(v) + "\n")
- }
- f.WriteString("|===\n\n")
- }
-
- _, _ = f.WriteString("\n.Summary of Collections\n")
- _, _ = f.WriteString(`[cols="<3,>1"]` + "\n\n")
- _, _ = f.WriteString("|===\n")
- _, _ = f.WriteString("| Type | Count\n")
- for k, v := range s.counts {
- _, _ = f.WriteString("| " + CollectionDescriptors[k].SybolicName + " | " + strconv.Itoa(v) + "\n")
- }
- _, _ = f.WriteString("| Total | " + strconv.Itoa(len(s.jStats)) + "\n")
- _, _ = f.WriteString("|===\n\n")
-
- _, _ = f.WriteString("\n.Summary of Top " + strconv.Itoa(s.topN) + " Collections by MaxSize\n")
- _, _ = f.WriteString(`[cols="<1,<3,>1,>1,>1,>1"]` + "\n\n")
- _, _ = f.WriteString("|===\n")
- _, _ = f.WriteString("| Source | Description | MaxSize | EndSize | Puts | Gets\n")
- for _, c := range s.topNByMax {
- _, _ = f.WriteString("| " + CollectionDescriptors[c.Source].SybolicName + "\n")
- _, _ = f.WriteString("| " + c.Description + "\n")
- _, _ = f.WriteString("| " + strconv.Itoa(c.MaxSize) + "\n")
- _, _ = f.WriteString("| " + strconv.Itoa(c.CurSize) + "\n")
- _, _ = f.WriteString("| " + strconv.Itoa(c.Puts) + "\n")
- _, _ = f.WriteString("| " + strconv.Itoa(c.Gets) + "\n")
- _, _ = f.WriteString("\n")
- }
- _, _ = f.WriteString("|===\n\n")
-
- _, _ = f.WriteString("\n.Summary of Top " + strconv.Itoa(s.topN) + " Collections by Access\n")
- _, _ = f.WriteString(`[cols="<1,<3,>1,>1,>1,>1,>1"]` + "\n\n")
- _, _ = f.WriteString("|===\n")
- _, _ = f.WriteString("| Source | Description | MaxSize | EndSize | Puts | Gets | P+G\n")
- for _, c := range s.topNByUsed {
- _, _ = f.WriteString("| " + CollectionDescriptors[c.Source].SybolicName + "\n")
- _, _ = f.WriteString("| " + c.Description + "\n")
- _, _ = f.WriteString("| " + strconv.Itoa(c.MaxSize) + "\n")
- _, _ = f.WriteString("| " + strconv.Itoa(c.CurSize) + "\n")
- _, _ = f.WriteString("| " + strconv.Itoa(c.Puts) + "\n")
- _, _ = f.WriteString("| " + strconv.Itoa(c.Gets) + "\n")
- _, _ = f.WriteString("| " + strconv.Itoa(c.Gets+c.Puts) + "\n")
- _, _ = f.WriteString("\n")
- }
- _, _ = f.WriteString("|===\n\n")
-}
-
-// AddJStatRec adds a [JStatRec] record to the [goRunStats] collection when build runtimeConfig antlr.stats is enabled.
-func (s *goRunStats) AddJStatRec(rec *JStatRec) {
- s.jStatsLock.Lock()
- defer s.jStatsLock.Unlock()
- s.jStats = append(s.jStats, rec)
-}
-
-// CollectionAnomalies looks through all the statistical records and gathers any anomalies that have been found.
-func (s *goRunStats) CollectionAnomalies() {
- s.jStatsLock.RLock()
- defer s.jStatsLock.RUnlock()
- s.counts = make(map[CollectionSource]int, len(s.jStats))
- for _, c := range s.jStats {
-
- // Accumlate raw counts
- //
- s.counts[c.Source]++
-
- // Look for allocated but unused collections and count them
- if c.MaxSize == 0 && c.Puts == 0 {
- if s.unusedCollections == nil {
- s.unusedCollections = make(map[CollectionSource]int)
- }
- s.unusedCollections[c.Source]++
- }
- if c.MaxSize > 6000 {
- fmt.Println("Collection ", c.Description, "accumulated a max size of ", c.MaxSize, " - this is probably too large and indicates a poorly formed grammar")
- }
- }
-
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/stats_data.go b/vendor/github.com/antlr4-go/antlr/v4/stats_data.go
deleted file mode 100644
index 4d9eb94e5..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/stats_data.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package antlr
-
-// A JStatRec is a record of a particular use of a [JStore], [JMap] or JPCMap] collection. Typically, it will be
-// used to look for unused collections that wre allocated anyway, problems with hash bucket clashes, and anomalies
-// such as huge numbers of Gets with no entries found GetNoEnt. You can refer to the CollectionAnomalies() function
-// for ideas on what can be gleaned from these statistics about collections.
-type JStatRec struct {
- Source CollectionSource
- MaxSize int
- CurSize int
- Gets int
- GetHits int
- GetMisses int
- GetHashConflicts int
- GetNoEnt int
- Puts int
- PutHits int
- PutMisses int
- PutHashConflicts int
- MaxSlotSize int
- Description string
- CreateStack []byte
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/token.go b/vendor/github.com/antlr4-go/antlr/v4/token.go
deleted file mode 100644
index 9670efb82..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/token.go
+++ /dev/null
@@ -1,213 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "strconv"
- "strings"
-)
-
-type TokenSourceCharStreamPair struct {
- tokenSource TokenSource
- charStream CharStream
-}
-
-// A token has properties: text, type, line, character position in the line
-// (so we can ignore tabs), token channel, index, and source from which
-// we obtained this token.
-
-type Token interface {
- GetSource() *TokenSourceCharStreamPair
- GetTokenType() int
- GetChannel() int
- GetStart() int
- GetStop() int
- GetLine() int
- GetColumn() int
-
- GetText() string
- SetText(s string)
-
- GetTokenIndex() int
- SetTokenIndex(v int)
-
- GetTokenSource() TokenSource
- GetInputStream() CharStream
-
- String() string
-}
-
-type BaseToken struct {
- source *TokenSourceCharStreamPair
- tokenType int // token type of the token
- channel int // The parser ignores everything not on DEFAULT_CHANNEL
- start int // optional return -1 if not implemented.
- stop int // optional return -1 if not implemented.
- tokenIndex int // from 0..n-1 of the token object in the input stream
- line int // line=1..n of the 1st character
- column int // beginning of the line at which it occurs, 0..n-1
- text string // text of the token.
- readOnly bool
-}
-
-const (
- TokenInvalidType = 0
-
- // TokenEpsilon - during lookahead operations, this "token" signifies we hit the rule end [ATN] state
- // and did not follow it despite needing to.
- TokenEpsilon = -2
-
- TokenMinUserTokenType = 1
-
- TokenEOF = -1
-
- // TokenDefaultChannel is the default channel upon which tokens are sent to the parser.
- //
- // All tokens go to the parser (unless [Skip] is called in the lexer rule)
- // on a particular "channel". The parser tunes to a particular channel
- // so that whitespace etc... can go to the parser on a "hidden" channel.
- TokenDefaultChannel = 0
-
- // TokenHiddenChannel defines the normal hidden channel - the parser wil not see tokens that are not on [TokenDefaultChannel].
- //
- // Anything on a different channel than TokenDefaultChannel is not parsed by parser.
- TokenHiddenChannel = 1
-)
-
-func (b *BaseToken) GetChannel() int {
- return b.channel
-}
-
-func (b *BaseToken) GetStart() int {
- return b.start
-}
-
-func (b *BaseToken) GetStop() int {
- return b.stop
-}
-
-func (b *BaseToken) GetLine() int {
- return b.line
-}
-
-func (b *BaseToken) GetColumn() int {
- return b.column
-}
-
-func (b *BaseToken) GetTokenType() int {
- return b.tokenType
-}
-
-func (b *BaseToken) GetSource() *TokenSourceCharStreamPair {
- return b.source
-}
-
-func (b *BaseToken) GetTokenIndex() int {
- return b.tokenIndex
-}
-
-func (b *BaseToken) SetTokenIndex(v int) {
- b.tokenIndex = v
-}
-
-func (b *BaseToken) GetTokenSource() TokenSource {
- return b.source.tokenSource
-}
-
-func (b *BaseToken) GetInputStream() CharStream {
- return b.source.charStream
-}
-
-type CommonToken struct {
- BaseToken
-}
-
-func NewCommonToken(source *TokenSourceCharStreamPair, tokenType, channel, start, stop int) *CommonToken {
-
- t := &CommonToken{
- BaseToken: BaseToken{
- source: source,
- tokenType: tokenType,
- channel: channel,
- start: start,
- stop: stop,
- tokenIndex: -1,
- },
- }
-
- if t.source.tokenSource != nil {
- t.line = source.tokenSource.GetLine()
- t.column = source.tokenSource.GetCharPositionInLine()
- } else {
- t.column = -1
- }
- return t
-}
-
-// An empty {@link Pair} which is used as the default value of
-// {@link //source} for tokens that do not have a source.
-
-//CommonToken.EMPTY_SOURCE = [ nil, nil ]
-
-// Constructs a New{@link CommonToken} as a copy of another {@link Token}.
-//
-//
-// If {@code oldToken} is also a {@link CommonToken} instance, the newly
-// constructed token will share a reference to the {@link //text} field and
-// the {@link Pair} stored in {@link //source}. Otherwise, {@link //text} will
-// be assigned the result of calling {@link //GetText}, and {@link //source}
-// will be constructed from the result of {@link Token//GetTokenSource} and
-// {@link Token//GetInputStream}.
-//
-// @param oldToken The token to copy.
-func (c *CommonToken) clone() *CommonToken {
- t := NewCommonToken(c.source, c.tokenType, c.channel, c.start, c.stop)
- t.tokenIndex = c.GetTokenIndex()
- t.line = c.GetLine()
- t.column = c.GetColumn()
- t.text = c.GetText()
- return t
-}
-
-func (c *CommonToken) GetText() string {
- if c.text != "" {
- return c.text
- }
- input := c.GetInputStream()
- if input == nil {
- return ""
- }
- n := input.Size()
- if c.start < n && c.stop < n {
- return input.GetTextFromInterval(NewInterval(c.start, c.stop))
- }
- return ""
-}
-
-func (c *CommonToken) SetText(text string) {
- c.text = text
-}
-
-func (c *CommonToken) String() string {
- txt := c.GetText()
- if txt != "" {
- txt = strings.Replace(txt, "\n", "\\n", -1)
- txt = strings.Replace(txt, "\r", "\\r", -1)
- txt = strings.Replace(txt, "\t", "\\t", -1)
- } else {
- txt = ""
- }
-
- var ch string
- if c.channel > 0 {
- ch = ",channel=" + strconv.Itoa(c.channel)
- } else {
- ch = ""
- }
-
- return "[@" + strconv.Itoa(c.tokenIndex) + "," + strconv.Itoa(c.start) + ":" + strconv.Itoa(c.stop) + "='" +
- txt + "',<" + strconv.Itoa(c.tokenType) + ">" +
- ch + "," + strconv.Itoa(c.line) + ":" + strconv.Itoa(c.column) + "]"
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/token_source.go b/vendor/github.com/antlr4-go/antlr/v4/token_source.go
deleted file mode 100644
index a3f36eaa6..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/token_source.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-type TokenSource interface {
- NextToken() Token
- Skip()
- More()
- GetLine() int
- GetCharPositionInLine() int
- GetInputStream() CharStream
- GetSourceName() string
- setTokenFactory(factory TokenFactory)
- GetTokenFactory() TokenFactory
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/token_stream.go b/vendor/github.com/antlr4-go/antlr/v4/token_stream.go
deleted file mode 100644
index bf4ff6633..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/token_stream.go
+++ /dev/null
@@ -1,21 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-type TokenStream interface {
- IntStream
-
- LT(k int) Token
- Reset()
-
- Get(index int) Token
- GetTokenSource() TokenSource
- SetTokenSource(TokenSource)
-
- GetAllText() string
- GetTextFromInterval(Interval) string
- GetTextFromRuleContext(RuleContext) string
- GetTextFromTokens(Token, Token) string
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/tokenstream_rewriter.go b/vendor/github.com/antlr4-go/antlr/v4/tokenstream_rewriter.go
deleted file mode 100644
index ccf59b465..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/tokenstream_rewriter.go
+++ /dev/null
@@ -1,662 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "bytes"
- "fmt"
-)
-
-//
-// Useful for rewriting out a buffered input token stream after doing some
-// augmentation or other manipulations on it.
-
-//
-// You can insert stuff, replace, and delete chunks. Note that the operations
-// are done lazily--only if you convert the buffer to a {@link String} with
-// {@link TokenStream#getText()}. This is very efficient because you are not
-// moving data around all the time. As the buffer of tokens is converted to
-// strings, the {@link #getText()} method(s) scan the input token stream and
-// check to see if there is an operation at the current index. If so, the
-// operation is done and then normal {@link String} rendering continues on the
-// buffer. This is like having multiple Turing machine instruction streams
-// (programs) operating on a single input tape. :)
-//
-
-// This rewriter makes no modifications to the token stream. It does not ask the
-// stream to fill itself up nor does it advance the input cursor. The token
-// stream {@link TokenStream#index()} will return the same value before and
-// after any {@link #getText()} call.
-
-//
-// The rewriter only works on tokens that you have in the buffer and ignores the
-// current input cursor. If you are buffering tokens on-demand, calling
-// {@link #getText()} halfway through the input will only do rewrites for those
-// tokens in the first half of the file.
-
-//
-// Since the operations are done lazily at {@link #getText}-time, operations do
-// not screw up the token index values. That is, an insert operation at token
-// index {@code i} does not change the index values for tokens
-// {@code i}+1..n-1.
-
-//
-// Because operations never actually alter the buffer, you may always get the
-// original token stream back without undoing anything. Since the instructions
-// are queued up, you can easily simulate transactions and roll back any changes
-// if there is an error just by removing instructions. For example,
-
-//
-// CharStream input = new ANTLRFileStream("input");
-// TLexer lex = new TLexer(input);
-// CommonTokenStream tokens = new CommonTokenStream(lex);
-// T parser = new T(tokens);
-// TokenStreamRewriter rewriter = new TokenStreamRewriter(tokens);
-// parser.startRule();
-//
-
-//
-// Then in the rules, you can execute (assuming rewriter is visible):
-
-//
-// Token t,u;
-// ...
-// rewriter.insertAfter(t, "text to put after t");}
-// rewriter.insertAfter(u, "text after u");}
-// System.out.println(rewriter.getText());
-//
-
-//
-// You can also have multiple "instruction streams" and get multiple rewrites
-// from a single pass over the input. Just name the instruction streams and use
-// that name again when printing the buffer. This could be useful for generating
-// a C file and also its header file--all from the same buffer:
-
-//
-// rewriter.insertAfter("pass1", t, "text to put after t");}
-// rewriter.insertAfter("pass2", u, "text after u");}
-// System.out.println(rewriter.getText("pass1"));
-// System.out.println(rewriter.getText("pass2"));
-//
-
-//
-// If you don't use named rewrite streams, a "default" stream is used as the
-// first example shows.
-
-const (
- DefaultProgramName = "default"
- ProgramInitSize = 100
- MinTokenIndex = 0
-)
-
-// Define the rewrite operation hierarchy
-
-type RewriteOperation interface {
-
- // Execute the rewrite operation by possibly adding to the buffer.
- // Return the index of the next token to operate on.
- Execute(buffer *bytes.Buffer) int
- String() string
- GetInstructionIndex() int
- GetIndex() int
- GetText() string
- GetOpName() string
- GetTokens() TokenStream
- SetInstructionIndex(val int)
- SetIndex(int)
- SetText(string)
- SetOpName(string)
- SetTokens(TokenStream)
-}
-
-type BaseRewriteOperation struct {
- //Current index of rewrites list
- instructionIndex int
- //Token buffer index
- index int
- //Substitution text
- text string
- //Actual operation name
- opName string
- //Pointer to token steam
- tokens TokenStream
-}
-
-func (op *BaseRewriteOperation) GetInstructionIndex() int {
- return op.instructionIndex
-}
-
-func (op *BaseRewriteOperation) GetIndex() int {
- return op.index
-}
-
-func (op *BaseRewriteOperation) GetText() string {
- return op.text
-}
-
-func (op *BaseRewriteOperation) GetOpName() string {
- return op.opName
-}
-
-func (op *BaseRewriteOperation) GetTokens() TokenStream {
- return op.tokens
-}
-
-func (op *BaseRewriteOperation) SetInstructionIndex(val int) {
- op.instructionIndex = val
-}
-
-func (op *BaseRewriteOperation) SetIndex(val int) {
- op.index = val
-}
-
-func (op *BaseRewriteOperation) SetText(val string) {
- op.text = val
-}
-
-func (op *BaseRewriteOperation) SetOpName(val string) {
- op.opName = val
-}
-
-func (op *BaseRewriteOperation) SetTokens(val TokenStream) {
- op.tokens = val
-}
-
-func (op *BaseRewriteOperation) Execute(_ *bytes.Buffer) int {
- return op.index
-}
-
-func (op *BaseRewriteOperation) String() string {
- return fmt.Sprintf("<%s@%d:\"%s\">",
- op.opName,
- op.tokens.Get(op.GetIndex()),
- op.text,
- )
-
-}
-
-type InsertBeforeOp struct {
- BaseRewriteOperation
-}
-
-func NewInsertBeforeOp(index int, text string, stream TokenStream) *InsertBeforeOp {
- return &InsertBeforeOp{BaseRewriteOperation: BaseRewriteOperation{
- index: index,
- text: text,
- opName: "InsertBeforeOp",
- tokens: stream,
- }}
-}
-
-func (op *InsertBeforeOp) Execute(buffer *bytes.Buffer) int {
- buffer.WriteString(op.text)
- if op.tokens.Get(op.index).GetTokenType() != TokenEOF {
- buffer.WriteString(op.tokens.Get(op.index).GetText())
- }
- return op.index + 1
-}
-
-func (op *InsertBeforeOp) String() string {
- return op.BaseRewriteOperation.String()
-}
-
-// InsertAfterOp distinguishes between insert after/before to do the "insert after" instructions
-// first and then the "insert before" instructions at same index. Implementation
-// of "insert after" is "insert before index+1".
-type InsertAfterOp struct {
- BaseRewriteOperation
-}
-
-func NewInsertAfterOp(index int, text string, stream TokenStream) *InsertAfterOp {
- return &InsertAfterOp{
- BaseRewriteOperation: BaseRewriteOperation{
- index: index + 1,
- text: text,
- tokens: stream,
- },
- }
-}
-
-func (op *InsertAfterOp) Execute(buffer *bytes.Buffer) int {
- buffer.WriteString(op.text)
- if op.tokens.Get(op.index).GetTokenType() != TokenEOF {
- buffer.WriteString(op.tokens.Get(op.index).GetText())
- }
- return op.index + 1
-}
-
-func (op *InsertAfterOp) String() string {
- return op.BaseRewriteOperation.String()
-}
-
-// ReplaceOp tries to replace range from x..y with (y-x)+1 ReplaceOp
-// instructions.
-type ReplaceOp struct {
- BaseRewriteOperation
- LastIndex int
-}
-
-func NewReplaceOp(from, to int, text string, stream TokenStream) *ReplaceOp {
- return &ReplaceOp{
- BaseRewriteOperation: BaseRewriteOperation{
- index: from,
- text: text,
- opName: "ReplaceOp",
- tokens: stream,
- },
- LastIndex: to,
- }
-}
-
-func (op *ReplaceOp) Execute(buffer *bytes.Buffer) int {
- if op.text != "" {
- buffer.WriteString(op.text)
- }
- return op.LastIndex + 1
-}
-
-func (op *ReplaceOp) String() string {
- if op.text == "" {
- return fmt.Sprintf("",
- op.tokens.Get(op.index), op.tokens.Get(op.LastIndex))
- }
- return fmt.Sprintf("",
- op.tokens.Get(op.index), op.tokens.Get(op.LastIndex), op.text)
-}
-
-type TokenStreamRewriter struct {
- //Our source stream
- tokens TokenStream
- // You may have multiple, named streams of rewrite operations.
- // I'm calling these things "programs."
- // Maps String (name) → rewrite (List)
- programs map[string][]RewriteOperation
- lastRewriteTokenIndexes map[string]int
-}
-
-func NewTokenStreamRewriter(tokens TokenStream) *TokenStreamRewriter {
- return &TokenStreamRewriter{
- tokens: tokens,
- programs: map[string][]RewriteOperation{
- DefaultProgramName: make([]RewriteOperation, 0, ProgramInitSize),
- },
- lastRewriteTokenIndexes: map[string]int{},
- }
-}
-
-func (tsr *TokenStreamRewriter) GetTokenStream() TokenStream {
- return tsr.tokens
-}
-
-// Rollback the instruction stream for a program so that
-// the indicated instruction (via instructionIndex) is no
-// longer in the stream. UNTESTED!
-func (tsr *TokenStreamRewriter) Rollback(programName string, instructionIndex int) {
- is, ok := tsr.programs[programName]
- if ok {
- tsr.programs[programName] = is[MinTokenIndex:instructionIndex]
- }
-}
-
-func (tsr *TokenStreamRewriter) RollbackDefault(instructionIndex int) {
- tsr.Rollback(DefaultProgramName, instructionIndex)
-}
-
-// DeleteProgram Reset the program so that no instructions exist
-func (tsr *TokenStreamRewriter) DeleteProgram(programName string) {
- tsr.Rollback(programName, MinTokenIndex) //TODO: double test on that cause lower bound is not included
-}
-
-func (tsr *TokenStreamRewriter) DeleteProgramDefault() {
- tsr.DeleteProgram(DefaultProgramName)
-}
-
-func (tsr *TokenStreamRewriter) InsertAfter(programName string, index int, text string) {
- // to insert after, just insert before next index (even if past end)
- var op RewriteOperation = NewInsertAfterOp(index, text, tsr.tokens)
- rewrites := tsr.GetProgram(programName)
- op.SetInstructionIndex(len(rewrites))
- tsr.AddToProgram(programName, op)
-}
-
-func (tsr *TokenStreamRewriter) InsertAfterDefault(index int, text string) {
- tsr.InsertAfter(DefaultProgramName, index, text)
-}
-
-func (tsr *TokenStreamRewriter) InsertAfterToken(programName string, token Token, text string) {
- tsr.InsertAfter(programName, token.GetTokenIndex(), text)
-}
-
-func (tsr *TokenStreamRewriter) InsertBefore(programName string, index int, text string) {
- var op RewriteOperation = NewInsertBeforeOp(index, text, tsr.tokens)
- rewrites := tsr.GetProgram(programName)
- op.SetInstructionIndex(len(rewrites))
- tsr.AddToProgram(programName, op)
-}
-
-func (tsr *TokenStreamRewriter) InsertBeforeDefault(index int, text string) {
- tsr.InsertBefore(DefaultProgramName, index, text)
-}
-
-func (tsr *TokenStreamRewriter) InsertBeforeToken(programName string, token Token, text string) {
- tsr.InsertBefore(programName, token.GetTokenIndex(), text)
-}
-
-func (tsr *TokenStreamRewriter) Replace(programName string, from, to int, text string) {
- if from > to || from < 0 || to < 0 || to >= tsr.tokens.Size() {
- panic(fmt.Sprintf("replace: range invalid: %d..%d(size=%d)",
- from, to, tsr.tokens.Size()))
- }
- var op RewriteOperation = NewReplaceOp(from, to, text, tsr.tokens)
- rewrites := tsr.GetProgram(programName)
- op.SetInstructionIndex(len(rewrites))
- tsr.AddToProgram(programName, op)
-}
-
-func (tsr *TokenStreamRewriter) ReplaceDefault(from, to int, text string) {
- tsr.Replace(DefaultProgramName, from, to, text)
-}
-
-func (tsr *TokenStreamRewriter) ReplaceDefaultPos(index int, text string) {
- tsr.ReplaceDefault(index, index, text)
-}
-
-func (tsr *TokenStreamRewriter) ReplaceToken(programName string, from, to Token, text string) {
- tsr.Replace(programName, from.GetTokenIndex(), to.GetTokenIndex(), text)
-}
-
-func (tsr *TokenStreamRewriter) ReplaceTokenDefault(from, to Token, text string) {
- tsr.ReplaceToken(DefaultProgramName, from, to, text)
-}
-
-func (tsr *TokenStreamRewriter) ReplaceTokenDefaultPos(index Token, text string) {
- tsr.ReplaceTokenDefault(index, index, text)
-}
-
-func (tsr *TokenStreamRewriter) Delete(programName string, from, to int) {
- tsr.Replace(programName, from, to, "")
-}
-
-func (tsr *TokenStreamRewriter) DeleteDefault(from, to int) {
- tsr.Delete(DefaultProgramName, from, to)
-}
-
-func (tsr *TokenStreamRewriter) DeleteDefaultPos(index int) {
- tsr.DeleteDefault(index, index)
-}
-
-func (tsr *TokenStreamRewriter) DeleteToken(programName string, from, to Token) {
- tsr.ReplaceToken(programName, from, to, "")
-}
-
-func (tsr *TokenStreamRewriter) DeleteTokenDefault(from, to Token) {
- tsr.DeleteToken(DefaultProgramName, from, to)
-}
-
-func (tsr *TokenStreamRewriter) GetLastRewriteTokenIndex(programName string) int {
- i, ok := tsr.lastRewriteTokenIndexes[programName]
- if !ok {
- return -1
- }
- return i
-}
-
-func (tsr *TokenStreamRewriter) GetLastRewriteTokenIndexDefault() int {
- return tsr.GetLastRewriteTokenIndex(DefaultProgramName)
-}
-
-func (tsr *TokenStreamRewriter) SetLastRewriteTokenIndex(programName string, i int) {
- tsr.lastRewriteTokenIndexes[programName] = i
-}
-
-func (tsr *TokenStreamRewriter) InitializeProgram(name string) []RewriteOperation {
- is := make([]RewriteOperation, 0, ProgramInitSize)
- tsr.programs[name] = is
- return is
-}
-
-func (tsr *TokenStreamRewriter) AddToProgram(name string, op RewriteOperation) {
- is := tsr.GetProgram(name)
- is = append(is, op)
- tsr.programs[name] = is
-}
-
-func (tsr *TokenStreamRewriter) GetProgram(name string) []RewriteOperation {
- is, ok := tsr.programs[name]
- if !ok {
- is = tsr.InitializeProgram(name)
- }
- return is
-}
-
-// GetTextDefault returns the text from the original tokens altered per the
-// instructions given to this rewriter.
-func (tsr *TokenStreamRewriter) GetTextDefault() string {
- return tsr.GetText(
- DefaultProgramName,
- NewInterval(0, tsr.tokens.Size()-1))
-}
-
-// GetText returns the text from the original tokens altered per the
-// instructions given to this rewriter.
-func (tsr *TokenStreamRewriter) GetText(programName string, interval Interval) string {
- rewrites := tsr.programs[programName]
- start := interval.Start
- stop := interval.Stop
- // ensure start/end are in range
- stop = min(stop, tsr.tokens.Size()-1)
- start = max(start, 0)
- if len(rewrites) == 0 {
- return tsr.tokens.GetTextFromInterval(interval) // no instructions to execute
- }
- buf := bytes.Buffer{}
- // First, optimize instruction stream
- indexToOp := reduceToSingleOperationPerIndex(rewrites)
- // Walk buffer, executing instructions and emitting tokens
- for i := start; i <= stop && i < tsr.tokens.Size(); {
- op := indexToOp[i]
- delete(indexToOp, i) // remove so any left have index size-1
- t := tsr.tokens.Get(i)
- if op == nil {
- // no operation at that index, just dump token
- if t.GetTokenType() != TokenEOF {
- buf.WriteString(t.GetText())
- }
- i++ // move to next token
- } else {
- i = op.Execute(&buf) // execute operation and skip
- }
- }
- // include stuff after end if it's last index in buffer
- // So, if they did an insertAfter(lastValidIndex, "foo"), include
- // foo if end==lastValidIndex.
- if stop == tsr.tokens.Size()-1 {
- // Scan any remaining operations after last token
- // should be included (they will be inserts).
- for _, op := range indexToOp {
- if op.GetIndex() >= tsr.tokens.Size()-1 {
- buf.WriteString(op.GetText())
- }
- }
- }
- return buf.String()
-}
-
-// reduceToSingleOperationPerIndex combines operations and report invalid operations (like
-// overlapping replaces that are not completed nested). Inserts to
-// same index need to be combined etc...
-//
-// Here are the cases:
-//
-// I.i.u I.j.v leave alone, non-overlapping
-// I.i.u I.i.v combine: Iivu
-//
-// R.i-j.u R.x-y.v | i-j in x-y delete first R
-// R.i-j.u R.i-j.v delete first R
-// R.i-j.u R.x-y.v | x-y in i-j ERROR
-// R.i-j.u R.x-y.v | boundaries overlap ERROR
-//
-// Delete special case of replace (text==null):
-// D.i-j.u D.x-y.v | boundaries overlap combine to max(min)..max(right)
-//
-// I.i.u R.x-y.v | i in (x+1)-y delete I (since insert before
-// we're not deleting i)
-// I.i.u R.x-y.v | i not in (x+1)-y leave alone, non-overlapping
-// R.x-y.v I.i.u | i in x-y ERROR
-// R.x-y.v I.x.u R.x-y.uv (combine, delete I)
-// R.x-y.v I.i.u | i not in x-y leave alone, non-overlapping
-//
-// I.i.u = insert u before op @ index i
-// R.x-y.u = replace x-y indexed tokens with u
-//
-// First we need to examine replaces. For any replace op:
-//
-// 1. wipe out any insertions before op within that range.
-// 2. Drop any replace op before that is contained completely within
-// that range.
-// 3. Throw exception upon boundary overlap with any previous replace.
-//
-// Then we can deal with inserts:
-//
-// 1. for any inserts to same index, combine even if not adjacent.
-// 2. for any prior replace with same left boundary, combine this
-// insert with replace and delete this 'replace'.
-// 3. throw exception if index in same range as previous replace
-//
-// Don't actually delete; make op null in list. Easier to walk list.
-// Later we can throw as we add to index → op map.
-//
-// Note that I.2 R.2-2 will wipe out I.2 even though, technically, the
-// inserted stuff would be before the 'replace' range. But, if you
-// add tokens in front of a method body '{' and then delete the method
-// body, I think the stuff before the '{' you added should disappear too.
-//
-// The func returns a map from token index to operation.
-func reduceToSingleOperationPerIndex(rewrites []RewriteOperation) map[int]RewriteOperation {
- // WALK REPLACES
- for i := 0; i < len(rewrites); i++ {
- op := rewrites[i]
- if op == nil {
- continue
- }
- rop, ok := op.(*ReplaceOp)
- if !ok {
- continue
- }
- // Wipe prior inserts within range
- for j := 0; j < i && j < len(rewrites); j++ {
- if iop, ok := rewrites[j].(*InsertBeforeOp); ok {
- if iop.index == rop.index {
- // E.g., insert before 2, delete 2..2; update replace
- // text to include insert before, kill insert
- rewrites[iop.instructionIndex] = nil
- if rop.text != "" {
- rop.text = iop.text + rop.text
- } else {
- rop.text = iop.text
- }
- } else if iop.index > rop.index && iop.index <= rop.LastIndex {
- // delete insert as it's a no-op.
- rewrites[iop.instructionIndex] = nil
- }
- }
- }
- // Drop any prior replaces contained within
- for j := 0; j < i && j < len(rewrites); j++ {
- if prevop, ok := rewrites[j].(*ReplaceOp); ok {
- if prevop.index >= rop.index && prevop.LastIndex <= rop.LastIndex {
- // delete replace as it's a no-op.
- rewrites[prevop.instructionIndex] = nil
- continue
- }
- // throw exception unless disjoint or identical
- disjoint := prevop.LastIndex < rop.index || prevop.index > rop.LastIndex
- // Delete special case of replace (text==null):
- // D.i-j.u D.x-y.v | boundaries overlap combine to max(min)..max(right)
- if prevop.text == "" && rop.text == "" && !disjoint {
- rewrites[prevop.instructionIndex] = nil
- rop.index = min(prevop.index, rop.index)
- rop.LastIndex = max(prevop.LastIndex, rop.LastIndex)
- } else if !disjoint {
- panic("replace op boundaries of " + rop.String() + " overlap with previous " + prevop.String())
- }
- }
- }
- }
- // WALK INSERTS
- for i := 0; i < len(rewrites); i++ {
- op := rewrites[i]
- if op == nil {
- continue
- }
- //hack to replicate inheritance in composition
- _, iok := rewrites[i].(*InsertBeforeOp)
- _, aok := rewrites[i].(*InsertAfterOp)
- if !iok && !aok {
- continue
- }
- iop := rewrites[i]
- // combine current insert with prior if any at same index
- // deviating a bit from TokenStreamRewriter.java - hard to incorporate inheritance logic
- for j := 0; j < i && j < len(rewrites); j++ {
- if nextIop, ok := rewrites[j].(*InsertAfterOp); ok {
- if nextIop.index == iop.GetIndex() {
- iop.SetText(nextIop.text + iop.GetText())
- rewrites[j] = nil
- }
- }
- if prevIop, ok := rewrites[j].(*InsertBeforeOp); ok {
- if prevIop.index == iop.GetIndex() {
- iop.SetText(iop.GetText() + prevIop.text)
- rewrites[prevIop.instructionIndex] = nil
- }
- }
- }
- // look for replaces where iop.index is in range; error
- for j := 0; j < i && j < len(rewrites); j++ {
- if rop, ok := rewrites[j].(*ReplaceOp); ok {
- if iop.GetIndex() == rop.index {
- rop.text = iop.GetText() + rop.text
- rewrites[i] = nil
- continue
- }
- if iop.GetIndex() >= rop.index && iop.GetIndex() <= rop.LastIndex {
- panic("insert op " + iop.String() + " within boundaries of previous " + rop.String())
- }
- }
- }
- }
- m := map[int]RewriteOperation{}
- for i := 0; i < len(rewrites); i++ {
- op := rewrites[i]
- if op == nil {
- continue
- }
- if _, ok := m[op.GetIndex()]; ok {
- panic("should only be one op per index")
- }
- m[op.GetIndex()] = op
- }
- return m
-}
-
-/*
- Quick fixing Go lack of overloads
-*/
-
-func max(a, b int) int {
- if a > b {
- return a
- } else {
- return b
- }
-}
-func min(a, b int) int {
- if a < b {
- return a
- } else {
- return b
- }
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/trace_listener.go b/vendor/github.com/antlr4-go/antlr/v4/trace_listener.go
deleted file mode 100644
index 7b663bf84..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/trace_listener.go
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import "fmt"
-
-type TraceListener struct {
- parser *BaseParser
-}
-
-func NewTraceListener(parser *BaseParser) *TraceListener {
- tl := new(TraceListener)
- tl.parser = parser
- return tl
-}
-
-func (t *TraceListener) VisitErrorNode(_ ErrorNode) {
-}
-
-func (t *TraceListener) EnterEveryRule(ctx ParserRuleContext) {
- fmt.Println("enter " + t.parser.GetRuleNames()[ctx.GetRuleIndex()] + ", LT(1)=" + t.parser.input.LT(1).GetText())
-}
-
-func (t *TraceListener) VisitTerminal(node TerminalNode) {
- fmt.Println("consume " + fmt.Sprint(node.GetSymbol()) + " rule " + t.parser.GetRuleNames()[t.parser.ctx.GetRuleIndex()])
-}
-
-func (t *TraceListener) ExitEveryRule(ctx ParserRuleContext) {
- fmt.Println("exit " + t.parser.GetRuleNames()[ctx.GetRuleIndex()] + ", LT(1)=" + t.parser.input.LT(1).GetText())
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/transition.go b/vendor/github.com/antlr4-go/antlr/v4/transition.go
deleted file mode 100644
index 313b0fc12..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/transition.go
+++ /dev/null
@@ -1,439 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "fmt"
- "strconv"
- "strings"
-)
-
-// atom, set, epsilon, action, predicate, rule transitions.
-//
-// This is a one way link. It emanates from a state (usually via a list of
-// transitions) and has a target state.
-//
-// Since we never have to change the ATN transitions once we construct it,
-// the states. We'll use the term Edge for the DFA to distinguish them from
-// ATN transitions.
-
-type Transition interface {
- getTarget() ATNState
- setTarget(ATNState)
- getIsEpsilon() bool
- getLabel() *IntervalSet
- getSerializationType() int
- Matches(int, int, int) bool
-}
-
-type BaseTransition struct {
- target ATNState
- isEpsilon bool
- label int
- intervalSet *IntervalSet
- serializationType int
-}
-
-func NewBaseTransition(target ATNState) *BaseTransition {
-
- if target == nil {
- panic("target cannot be nil.")
- }
-
- t := new(BaseTransition)
-
- t.target = target
- // Are we epsilon, action, sempred?
- t.isEpsilon = false
- t.intervalSet = nil
-
- return t
-}
-
-func (t *BaseTransition) getTarget() ATNState {
- return t.target
-}
-
-func (t *BaseTransition) setTarget(s ATNState) {
- t.target = s
-}
-
-func (t *BaseTransition) getIsEpsilon() bool {
- return t.isEpsilon
-}
-
-func (t *BaseTransition) getLabel() *IntervalSet {
- return t.intervalSet
-}
-
-func (t *BaseTransition) getSerializationType() int {
- return t.serializationType
-}
-
-func (t *BaseTransition) Matches(_, _, _ int) bool {
- panic("Not implemented")
-}
-
-const (
- TransitionEPSILON = 1
- TransitionRANGE = 2
- TransitionRULE = 3
- TransitionPREDICATE = 4 // e.g., {isType(input.LT(1))}?
- TransitionATOM = 5
- TransitionACTION = 6
- TransitionSET = 7 // ~(A|B) or ~atom, wildcard, which convert to next 2
- TransitionNOTSET = 8
- TransitionWILDCARD = 9
- TransitionPRECEDENCE = 10
-)
-
-//goland:noinspection GoUnusedGlobalVariable
-var TransitionserializationNames = []string{
- "INVALID",
- "EPSILON",
- "RANGE",
- "RULE",
- "PREDICATE",
- "ATOM",
- "ACTION",
- "SET",
- "NOT_SET",
- "WILDCARD",
- "PRECEDENCE",
-}
-
-//var TransitionserializationTypes struct {
-// EpsilonTransition int
-// RangeTransition int
-// RuleTransition int
-// PredicateTransition int
-// AtomTransition int
-// ActionTransition int
-// SetTransition int
-// NotSetTransition int
-// WildcardTransition int
-// PrecedencePredicateTransition int
-//}{
-// TransitionEPSILON,
-// TransitionRANGE,
-// TransitionRULE,
-// TransitionPREDICATE,
-// TransitionATOM,
-// TransitionACTION,
-// TransitionSET,
-// TransitionNOTSET,
-// TransitionWILDCARD,
-// TransitionPRECEDENCE
-//}
-
-// AtomTransition
-// TODO: make all transitions sets? no, should remove set edges
-type AtomTransition struct {
- BaseTransition
-}
-
-func NewAtomTransition(target ATNState, intervalSet int) *AtomTransition {
- t := &AtomTransition{
- BaseTransition: BaseTransition{
- target: target,
- serializationType: TransitionATOM,
- label: intervalSet,
- isEpsilon: false,
- },
- }
- t.intervalSet = t.makeLabel()
-
- return t
-}
-
-func (t *AtomTransition) makeLabel() *IntervalSet {
- s := NewIntervalSet()
- s.addOne(t.label)
- return s
-}
-
-func (t *AtomTransition) Matches(symbol, _, _ int) bool {
- return t.label == symbol
-}
-
-func (t *AtomTransition) String() string {
- return strconv.Itoa(t.label)
-}
-
-type RuleTransition struct {
- BaseTransition
- followState ATNState
- ruleIndex, precedence int
-}
-
-func NewRuleTransition(ruleStart ATNState, ruleIndex, precedence int, followState ATNState) *RuleTransition {
- return &RuleTransition{
- BaseTransition: BaseTransition{
- target: ruleStart,
- isEpsilon: true,
- serializationType: TransitionRULE,
- },
- ruleIndex: ruleIndex,
- precedence: precedence,
- followState: followState,
- }
-}
-
-func (t *RuleTransition) Matches(_, _, _ int) bool {
- return false
-}
-
-type EpsilonTransition struct {
- BaseTransition
- outermostPrecedenceReturn int
-}
-
-func NewEpsilonTransition(target ATNState, outermostPrecedenceReturn int) *EpsilonTransition {
- return &EpsilonTransition{
- BaseTransition: BaseTransition{
- target: target,
- serializationType: TransitionEPSILON,
- isEpsilon: true,
- },
- outermostPrecedenceReturn: outermostPrecedenceReturn,
- }
-}
-
-func (t *EpsilonTransition) Matches(_, _, _ int) bool {
- return false
-}
-
-func (t *EpsilonTransition) String() string {
- return "epsilon"
-}
-
-type RangeTransition struct {
- BaseTransition
- start, stop int
-}
-
-func NewRangeTransition(target ATNState, start, stop int) *RangeTransition {
- t := &RangeTransition{
- BaseTransition: BaseTransition{
- target: target,
- serializationType: TransitionRANGE,
- isEpsilon: false,
- },
- start: start,
- stop: stop,
- }
- t.intervalSet = t.makeLabel()
- return t
-}
-
-func (t *RangeTransition) makeLabel() *IntervalSet {
- s := NewIntervalSet()
- s.addRange(t.start, t.stop)
- return s
-}
-
-func (t *RangeTransition) Matches(symbol, _, _ int) bool {
- return symbol >= t.start && symbol <= t.stop
-}
-
-func (t *RangeTransition) String() string {
- var sb strings.Builder
- sb.WriteByte('\'')
- sb.WriteRune(rune(t.start))
- sb.WriteString("'..'")
- sb.WriteRune(rune(t.stop))
- sb.WriteByte('\'')
- return sb.String()
-}
-
-type AbstractPredicateTransition interface {
- Transition
- IAbstractPredicateTransitionFoo()
-}
-
-type BaseAbstractPredicateTransition struct {
- BaseTransition
-}
-
-func NewBasePredicateTransition(target ATNState) *BaseAbstractPredicateTransition {
- return &BaseAbstractPredicateTransition{
- BaseTransition: BaseTransition{
- target: target,
- },
- }
-}
-
-func (a *BaseAbstractPredicateTransition) IAbstractPredicateTransitionFoo() {}
-
-type PredicateTransition struct {
- BaseAbstractPredicateTransition
- isCtxDependent bool
- ruleIndex, predIndex int
-}
-
-func NewPredicateTransition(target ATNState, ruleIndex, predIndex int, isCtxDependent bool) *PredicateTransition {
- return &PredicateTransition{
- BaseAbstractPredicateTransition: BaseAbstractPredicateTransition{
- BaseTransition: BaseTransition{
- target: target,
- serializationType: TransitionPREDICATE,
- isEpsilon: true,
- },
- },
- isCtxDependent: isCtxDependent,
- ruleIndex: ruleIndex,
- predIndex: predIndex,
- }
-}
-
-func (t *PredicateTransition) Matches(_, _, _ int) bool {
- return false
-}
-
-func (t *PredicateTransition) getPredicate() *Predicate {
- return NewPredicate(t.ruleIndex, t.predIndex, t.isCtxDependent)
-}
-
-func (t *PredicateTransition) String() string {
- return "pred_" + strconv.Itoa(t.ruleIndex) + ":" + strconv.Itoa(t.predIndex)
-}
-
-type ActionTransition struct {
- BaseTransition
- isCtxDependent bool
- ruleIndex, actionIndex, predIndex int
-}
-
-func NewActionTransition(target ATNState, ruleIndex, actionIndex int, isCtxDependent bool) *ActionTransition {
- return &ActionTransition{
- BaseTransition: BaseTransition{
- target: target,
- serializationType: TransitionACTION,
- isEpsilon: true,
- },
- isCtxDependent: isCtxDependent,
- ruleIndex: ruleIndex,
- actionIndex: actionIndex,
- }
-}
-
-func (t *ActionTransition) Matches(_, _, _ int) bool {
- return false
-}
-
-func (t *ActionTransition) String() string {
- return "action_" + strconv.Itoa(t.ruleIndex) + ":" + strconv.Itoa(t.actionIndex)
-}
-
-type SetTransition struct {
- BaseTransition
-}
-
-func NewSetTransition(target ATNState, set *IntervalSet) *SetTransition {
- t := &SetTransition{
- BaseTransition: BaseTransition{
- target: target,
- serializationType: TransitionSET,
- },
- }
-
- if set != nil {
- t.intervalSet = set
- } else {
- t.intervalSet = NewIntervalSet()
- t.intervalSet.addOne(TokenInvalidType)
- }
- return t
-}
-
-func (t *SetTransition) Matches(symbol, _, _ int) bool {
- return t.intervalSet.contains(symbol)
-}
-
-func (t *SetTransition) String() string {
- return t.intervalSet.String()
-}
-
-type NotSetTransition struct {
- SetTransition
-}
-
-func NewNotSetTransition(target ATNState, set *IntervalSet) *NotSetTransition {
- t := &NotSetTransition{
- SetTransition: SetTransition{
- BaseTransition: BaseTransition{
- target: target,
- serializationType: TransitionNOTSET,
- },
- },
- }
- if set != nil {
- t.intervalSet = set
- } else {
- t.intervalSet = NewIntervalSet()
- t.intervalSet.addOne(TokenInvalidType)
- }
-
- return t
-}
-
-func (t *NotSetTransition) Matches(symbol, minVocabSymbol, maxVocabSymbol int) bool {
- return symbol >= minVocabSymbol && symbol <= maxVocabSymbol && !t.intervalSet.contains(symbol)
-}
-
-func (t *NotSetTransition) String() string {
- return "~" + t.intervalSet.String()
-}
-
-type WildcardTransition struct {
- BaseTransition
-}
-
-func NewWildcardTransition(target ATNState) *WildcardTransition {
- return &WildcardTransition{
- BaseTransition: BaseTransition{
- target: target,
- serializationType: TransitionWILDCARD,
- },
- }
-}
-
-func (t *WildcardTransition) Matches(symbol, minVocabSymbol, maxVocabSymbol int) bool {
- return symbol >= minVocabSymbol && symbol <= maxVocabSymbol
-}
-
-func (t *WildcardTransition) String() string {
- return "."
-}
-
-type PrecedencePredicateTransition struct {
- BaseAbstractPredicateTransition
- precedence int
-}
-
-func NewPrecedencePredicateTransition(target ATNState, precedence int) *PrecedencePredicateTransition {
- return &PrecedencePredicateTransition{
- BaseAbstractPredicateTransition: BaseAbstractPredicateTransition{
- BaseTransition: BaseTransition{
- target: target,
- serializationType: TransitionPRECEDENCE,
- isEpsilon: true,
- },
- },
- precedence: precedence,
- }
-}
-
-func (t *PrecedencePredicateTransition) Matches(_, _, _ int) bool {
- return false
-}
-
-func (t *PrecedencePredicateTransition) getPredicate() *PrecedencePredicate {
- return NewPrecedencePredicate(t.precedence)
-}
-
-func (t *PrecedencePredicateTransition) String() string {
- return fmt.Sprint(t.precedence) + " >= _p"
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/tree.go b/vendor/github.com/antlr4-go/antlr/v4/tree.go
deleted file mode 100644
index c288420fb..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/tree.go
+++ /dev/null
@@ -1,304 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-// The basic notion of a tree has a parent, a payload, and a list of children.
-// It is the most abstract interface for all the trees used by ANTLR.
-///
-
-var TreeInvalidInterval = NewInterval(-1, -2)
-
-type Tree interface {
- GetParent() Tree
- SetParent(Tree)
- GetPayload() interface{}
- GetChild(i int) Tree
- GetChildCount() int
- GetChildren() []Tree
-}
-
-type SyntaxTree interface {
- Tree
- GetSourceInterval() Interval
-}
-
-type ParseTree interface {
- SyntaxTree
- Accept(Visitor ParseTreeVisitor) interface{}
- GetText() string
- ToStringTree([]string, Recognizer) string
-}
-
-type RuleNode interface {
- ParseTree
- GetRuleContext() RuleContext
-}
-
-type TerminalNode interface {
- ParseTree
- GetSymbol() Token
-}
-
-type ErrorNode interface {
- TerminalNode
-
- errorNode()
-}
-
-type ParseTreeVisitor interface {
- Visit(tree ParseTree) interface{}
- VisitChildren(node RuleNode) interface{}
- VisitTerminal(node TerminalNode) interface{}
- VisitErrorNode(node ErrorNode) interface{}
-}
-
-type BaseParseTreeVisitor struct{}
-
-var _ ParseTreeVisitor = &BaseParseTreeVisitor{}
-
-func (v *BaseParseTreeVisitor) Visit(tree ParseTree) interface{} { return tree.Accept(v) }
-func (v *BaseParseTreeVisitor) VisitChildren(_ RuleNode) interface{} { return nil }
-func (v *BaseParseTreeVisitor) VisitTerminal(_ TerminalNode) interface{} { return nil }
-func (v *BaseParseTreeVisitor) VisitErrorNode(_ ErrorNode) interface{} { return nil }
-
-// TODO: Implement this?
-//func (this ParseTreeVisitor) Visit(ctx) {
-// if (Utils.isArray(ctx)) {
-// self := this
-// return ctx.map(function(child) { return VisitAtom(self, child)})
-// } else {
-// return VisitAtom(this, ctx)
-// }
-//}
-//
-//func VisitAtom(Visitor, ctx) {
-// if (ctx.parser == nil) { //is terminal
-// return
-// }
-//
-// name := ctx.parser.ruleNames[ctx.ruleIndex]
-// funcName := "Visit" + Utils.titleCase(name)
-//
-// return Visitor[funcName](ctx)
-//}
-
-type ParseTreeListener interface {
- VisitTerminal(node TerminalNode)
- VisitErrorNode(node ErrorNode)
- EnterEveryRule(ctx ParserRuleContext)
- ExitEveryRule(ctx ParserRuleContext)
-}
-
-type BaseParseTreeListener struct{}
-
-var _ ParseTreeListener = &BaseParseTreeListener{}
-
-func (l *BaseParseTreeListener) VisitTerminal(_ TerminalNode) {}
-func (l *BaseParseTreeListener) VisitErrorNode(_ ErrorNode) {}
-func (l *BaseParseTreeListener) EnterEveryRule(_ ParserRuleContext) {}
-func (l *BaseParseTreeListener) ExitEveryRule(_ ParserRuleContext) {}
-
-type TerminalNodeImpl struct {
- parentCtx RuleContext
- symbol Token
-}
-
-var _ TerminalNode = &TerminalNodeImpl{}
-
-func NewTerminalNodeImpl(symbol Token) *TerminalNodeImpl {
- tn := new(TerminalNodeImpl)
-
- tn.parentCtx = nil
- tn.symbol = symbol
-
- return tn
-}
-
-func (t *TerminalNodeImpl) GetChild(_ int) Tree {
- return nil
-}
-
-func (t *TerminalNodeImpl) GetChildren() []Tree {
- return nil
-}
-
-func (t *TerminalNodeImpl) SetChildren(_ []Tree) {
- panic("Cannot set children on terminal node")
-}
-
-func (t *TerminalNodeImpl) GetSymbol() Token {
- return t.symbol
-}
-
-func (t *TerminalNodeImpl) GetParent() Tree {
- return t.parentCtx
-}
-
-func (t *TerminalNodeImpl) SetParent(tree Tree) {
- t.parentCtx = tree.(RuleContext)
-}
-
-func (t *TerminalNodeImpl) GetPayload() interface{} {
- return t.symbol
-}
-
-func (t *TerminalNodeImpl) GetSourceInterval() Interval {
- if t.symbol == nil {
- return TreeInvalidInterval
- }
- tokenIndex := t.symbol.GetTokenIndex()
- return NewInterval(tokenIndex, tokenIndex)
-}
-
-func (t *TerminalNodeImpl) GetChildCount() int {
- return 0
-}
-
-func (t *TerminalNodeImpl) Accept(v ParseTreeVisitor) interface{} {
- return v.VisitTerminal(t)
-}
-
-func (t *TerminalNodeImpl) GetText() string {
- return t.symbol.GetText()
-}
-
-func (t *TerminalNodeImpl) String() string {
- if t.symbol.GetTokenType() == TokenEOF {
- return ""
- }
-
- return t.symbol.GetText()
-}
-
-func (t *TerminalNodeImpl) ToStringTree(_ []string, _ Recognizer) string {
- return t.String()
-}
-
-// Represents a token that was consumed during reSynchronization
-// rather than during a valid Match operation. For example,
-// we will create this kind of a node during single token insertion
-// and deletion as well as during "consume until error recovery set"
-// upon no viable alternative exceptions.
-
-type ErrorNodeImpl struct {
- *TerminalNodeImpl
-}
-
-var _ ErrorNode = &ErrorNodeImpl{}
-
-func NewErrorNodeImpl(token Token) *ErrorNodeImpl {
- en := new(ErrorNodeImpl)
- en.TerminalNodeImpl = NewTerminalNodeImpl(token)
- return en
-}
-
-func (e *ErrorNodeImpl) errorNode() {}
-
-func (e *ErrorNodeImpl) Accept(v ParseTreeVisitor) interface{} {
- return v.VisitErrorNode(e)
-}
-
-type ParseTreeWalker struct {
-}
-
-func NewParseTreeWalker() *ParseTreeWalker {
- return new(ParseTreeWalker)
-}
-
-// Walk performs a walk on the given parse tree starting at the root and going down recursively
-// with depth-first search. On each node, [EnterRule] is called before
-// recursively walking down into child nodes, then [ExitRule] is called after the recursive call to wind up.
-func (p *ParseTreeWalker) Walk(listener ParseTreeListener, t Tree) {
- switch tt := t.(type) {
- case ErrorNode:
- listener.VisitErrorNode(tt)
- case TerminalNode:
- listener.VisitTerminal(tt)
- default:
- p.EnterRule(listener, t.(RuleNode))
- for i := 0; i < t.GetChildCount(); i++ {
- child := t.GetChild(i)
- p.Walk(listener, child)
- }
- p.ExitRule(listener, t.(RuleNode))
- }
-}
-
-// EnterRule enters a grammar rule by first triggering the generic event [ParseTreeListener].[EnterEveryRule]
-// then by triggering the event specific to the given parse tree node
-func (p *ParseTreeWalker) EnterRule(listener ParseTreeListener, r RuleNode) {
- ctx := r.GetRuleContext().(ParserRuleContext)
- listener.EnterEveryRule(ctx)
- ctx.EnterRule(listener)
-}
-
-// ExitRule exits a grammar rule by first triggering the event specific to the given parse tree node
-// then by triggering the generic event [ParseTreeListener].ExitEveryRule
-func (p *ParseTreeWalker) ExitRule(listener ParseTreeListener, r RuleNode) {
- ctx := r.GetRuleContext().(ParserRuleContext)
- ctx.ExitRule(listener)
- listener.ExitEveryRule(ctx)
-}
-
-//goland:noinspection GoUnusedGlobalVariable
-var ParseTreeWalkerDefault = NewParseTreeWalker()
-
-type IterativeParseTreeWalker struct {
- *ParseTreeWalker
-}
-
-//goland:noinspection GoUnusedExportedFunction
-func NewIterativeParseTreeWalker() *IterativeParseTreeWalker {
- return new(IterativeParseTreeWalker)
-}
-
-func (i *IterativeParseTreeWalker) Walk(listener ParseTreeListener, t Tree) {
- var stack []Tree
- var indexStack []int
- currentNode := t
- currentIndex := 0
-
- for currentNode != nil {
- // pre-order visit
- switch tt := currentNode.(type) {
- case ErrorNode:
- listener.VisitErrorNode(tt)
- case TerminalNode:
- listener.VisitTerminal(tt)
- default:
- i.EnterRule(listener, currentNode.(RuleNode))
- }
- // Move down to first child, if exists
- if currentNode.GetChildCount() > 0 {
- stack = append(stack, currentNode)
- indexStack = append(indexStack, currentIndex)
- currentIndex = 0
- currentNode = currentNode.GetChild(0)
- continue
- }
-
- for {
- // post-order visit
- if ruleNode, ok := currentNode.(RuleNode); ok {
- i.ExitRule(listener, ruleNode)
- }
- // No parent, so no siblings
- if len(stack) == 0 {
- currentNode = nil
- currentIndex = 0
- break
- }
- // Move to next sibling if possible
- currentIndex++
- if stack[len(stack)-1].GetChildCount() > currentIndex {
- currentNode = stack[len(stack)-1].GetChild(currentIndex)
- break
- }
- // No next, sibling, so move up
- currentNode, stack = stack[len(stack)-1], stack[:len(stack)-1]
- currentIndex, indexStack = indexStack[len(indexStack)-1], indexStack[:len(indexStack)-1]
- }
- }
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/trees.go b/vendor/github.com/antlr4-go/antlr/v4/trees.go
deleted file mode 100644
index f44c05d81..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/trees.go
+++ /dev/null
@@ -1,142 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import "fmt"
-
-/** A set of utility routines useful for all kinds of ANTLR trees. */
-
-// TreesStringTree prints out a whole tree in LISP form. [getNodeText] is used on the
-// node payloads to get the text for the nodes. Detects parse trees and extracts data appropriately.
-func TreesStringTree(tree Tree, ruleNames []string, recog Recognizer) string {
-
- if recog != nil {
- ruleNames = recog.GetRuleNames()
- }
-
- s := TreesGetNodeText(tree, ruleNames, nil)
-
- s = EscapeWhitespace(s, false)
- c := tree.GetChildCount()
- if c == 0 {
- return s
- }
- res := "(" + s + " "
- if c > 0 {
- s = TreesStringTree(tree.GetChild(0), ruleNames, nil)
- res += s
- }
- for i := 1; i < c; i++ {
- s = TreesStringTree(tree.GetChild(i), ruleNames, nil)
- res += " " + s
- }
- res += ")"
- return res
-}
-
-func TreesGetNodeText(t Tree, ruleNames []string, recog Parser) string {
- if recog != nil {
- ruleNames = recog.GetRuleNames()
- }
-
- if ruleNames != nil {
- switch t2 := t.(type) {
- case RuleNode:
- t3 := t2.GetRuleContext()
- altNumber := t3.GetAltNumber()
-
- if altNumber != ATNInvalidAltNumber {
- return fmt.Sprintf("%s:%d", ruleNames[t3.GetRuleIndex()], altNumber)
- }
- return ruleNames[t3.GetRuleIndex()]
- case ErrorNode:
- return fmt.Sprint(t2)
- case TerminalNode:
- if t2.GetSymbol() != nil {
- return t2.GetSymbol().GetText()
- }
- }
- }
-
- // no recognition for rule names
- payload := t.GetPayload()
- if p2, ok := payload.(Token); ok {
- return p2.GetText()
- }
-
- return fmt.Sprint(t.GetPayload())
-}
-
-// TreesGetChildren returns am ordered list of all children of this node
-//
-//goland:noinspection GoUnusedExportedFunction
-func TreesGetChildren(t Tree) []Tree {
- list := make([]Tree, 0)
- for i := 0; i < t.GetChildCount(); i++ {
- list = append(list, t.GetChild(i))
- }
- return list
-}
-
-// TreesgetAncestors returns a list of all ancestors of this node. The first node of list is the root
-// and the last node is the parent of this node.
-//
-//goland:noinspection GoUnusedExportedFunction
-func TreesgetAncestors(t Tree) []Tree {
- ancestors := make([]Tree, 0)
- t = t.GetParent()
- for t != nil {
- f := []Tree{t}
- ancestors = append(f, ancestors...)
- t = t.GetParent()
- }
- return ancestors
-}
-
-//goland:noinspection GoUnusedExportedFunction
-func TreesFindAllTokenNodes(t ParseTree, ttype int) []ParseTree {
- return TreesfindAllNodes(t, ttype, true)
-}
-
-//goland:noinspection GoUnusedExportedFunction
-func TreesfindAllRuleNodes(t ParseTree, ruleIndex int) []ParseTree {
- return TreesfindAllNodes(t, ruleIndex, false)
-}
-
-func TreesfindAllNodes(t ParseTree, index int, findTokens bool) []ParseTree {
- nodes := make([]ParseTree, 0)
- treesFindAllNodes(t, index, findTokens, &nodes)
- return nodes
-}
-
-func treesFindAllNodes(t ParseTree, index int, findTokens bool, nodes *[]ParseTree) {
- // check this node (the root) first
-
- t2, ok := t.(TerminalNode)
- t3, ok2 := t.(ParserRuleContext)
-
- if findTokens && ok {
- if t2.GetSymbol().GetTokenType() == index {
- *nodes = append(*nodes, t2)
- }
- } else if !findTokens && ok2 {
- if t3.GetRuleIndex() == index {
- *nodes = append(*nodes, t3)
- }
- }
- // check children
- for i := 0; i < t.GetChildCount(); i++ {
- treesFindAllNodes(t.GetChild(i).(ParseTree), index, findTokens, nodes)
- }
-}
-
-//goland:noinspection GoUnusedExportedFunction
-func TreesDescendants(t ParseTree) []ParseTree {
- nodes := []ParseTree{t}
- for i := 0; i < t.GetChildCount(); i++ {
- nodes = append(nodes, TreesDescendants(t.GetChild(i).(ParseTree))...)
- }
- return nodes
-}
diff --git a/vendor/github.com/antlr4-go/antlr/v4/utils.go b/vendor/github.com/antlr4-go/antlr/v4/utils.go
deleted file mode 100644
index 733d7df9d..000000000
--- a/vendor/github.com/antlr4-go/antlr/v4/utils.go
+++ /dev/null
@@ -1,328 +0,0 @@
-// Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.
-// Use of this file is governed by the BSD 3-clause license that
-// can be found in the LICENSE.txt file in the project root.
-
-package antlr
-
-import (
- "bytes"
- "errors"
- "fmt"
- "math/bits"
- "os"
- "strconv"
- "strings"
- "syscall"
-)
-
-func intMin(a, b int) int {
- if a < b {
- return a
- }
- return b
-}
-
-func intMax(a, b int) int {
- if a > b {
- return a
- }
- return b
-}
-
-// A simple integer stack
-
-type IntStack []int
-
-var ErrEmptyStack = errors.New("stack is empty")
-
-func (s *IntStack) Pop() (int, error) {
- l := len(*s) - 1
- if l < 0 {
- return 0, ErrEmptyStack
- }
- v := (*s)[l]
- *s = (*s)[0:l]
- return v, nil
-}
-
-func (s *IntStack) Push(e int) {
- *s = append(*s, e)
-}
-
-const bitsPerWord = 64
-
-func indexForBit(bit int) int {
- return bit / bitsPerWord
-}
-
-//goland:noinspection GoUnusedExportedFunction,GoUnusedFunction
-func wordForBit(data []uint64, bit int) uint64 {
- idx := indexForBit(bit)
- if idx >= len(data) {
- return 0
- }
- return data[idx]
-}
-
-func maskForBit(bit int) uint64 {
- return uint64(1) << (bit % bitsPerWord)
-}
-
-func wordsNeeded(bit int) int {
- return indexForBit(bit) + 1
-}
-
-type BitSet struct {
- data []uint64
-}
-
-// NewBitSet creates a new bitwise set
-// TODO: See if we can replace with the standard library's BitSet
-func NewBitSet() *BitSet {
- return &BitSet{}
-}
-
-func (b *BitSet) add(value int) {
- idx := indexForBit(value)
- if idx >= len(b.data) {
- size := wordsNeeded(value)
- data := make([]uint64, size)
- copy(data, b.data)
- b.data = data
- }
- b.data[idx] |= maskForBit(value)
-}
-
-func (b *BitSet) clear(index int) {
- idx := indexForBit(index)
- if idx >= len(b.data) {
- return
- }
- b.data[idx] &= ^maskForBit(index)
-}
-
-func (b *BitSet) or(set *BitSet) {
- // Get min size necessary to represent the bits in both sets.
- bLen := b.minLen()
- setLen := set.minLen()
- maxLen := intMax(bLen, setLen)
- if maxLen > len(b.data) {
- // Increase the size of len(b.data) to represent the bits in both sets.
- data := make([]uint64, maxLen)
- copy(data, b.data)
- b.data = data
- }
- // len(b.data) is at least setLen.
- for i := 0; i < setLen; i++ {
- b.data[i] |= set.data[i]
- }
-}
-
-func (b *BitSet) remove(value int) {
- b.clear(value)
-}
-
-func (b *BitSet) contains(value int) bool {
- idx := indexForBit(value)
- if idx >= len(b.data) {
- return false
- }
- return (b.data[idx] & maskForBit(value)) != 0
-}
-
-func (b *BitSet) minValue() int {
- for i, v := range b.data {
- if v == 0 {
- continue
- }
- return i*bitsPerWord + bits.TrailingZeros64(v)
- }
- return 2147483647
-}
-
-func (b *BitSet) equals(other interface{}) bool {
- otherBitSet, ok := other.(*BitSet)
- if !ok {
- return false
- }
-
- if b == otherBitSet {
- return true
- }
-
- // We only compare set bits, so we cannot rely on the two slices having the same size. Its
- // possible for two BitSets to have different slice lengths but the same set bits. So we only
- // compare the relevant words and ignore the trailing zeros.
- bLen := b.minLen()
- otherLen := otherBitSet.minLen()
-
- if bLen != otherLen {
- return false
- }
-
- for i := 0; i < bLen; i++ {
- if b.data[i] != otherBitSet.data[i] {
- return false
- }
- }
-
- return true
-}
-
-func (b *BitSet) minLen() int {
- for i := len(b.data); i > 0; i-- {
- if b.data[i-1] != 0 {
- return i
- }
- }
- return 0
-}
-
-func (b *BitSet) length() int {
- cnt := 0
- for _, val := range b.data {
- cnt += bits.OnesCount64(val)
- }
- return cnt
-}
-
-func (b *BitSet) String() string {
- vals := make([]string, 0, b.length())
-
- for i, v := range b.data {
- for v != 0 {
- n := bits.TrailingZeros64(v)
- vals = append(vals, strconv.Itoa(i*bitsPerWord+n))
- v &= ^(uint64(1) << n)
- }
- }
-
- return "{" + strings.Join(vals, ", ") + "}"
-}
-
-type AltDict struct {
- data map[string]interface{}
-}
-
-func NewAltDict() *AltDict {
- d := new(AltDict)
- d.data = make(map[string]interface{})
- return d
-}
-
-func (a *AltDict) Get(key string) interface{} {
- key = "k-" + key
- return a.data[key]
-}
-
-func (a *AltDict) put(key string, value interface{}) {
- key = "k-" + key
- a.data[key] = value
-}
-
-func (a *AltDict) values() []interface{} {
- vs := make([]interface{}, len(a.data))
- i := 0
- for _, v := range a.data {
- vs[i] = v
- i++
- }
- return vs
-}
-
-func EscapeWhitespace(s string, escapeSpaces bool) string {
-
- s = strings.Replace(s, "\t", "\\t", -1)
- s = strings.Replace(s, "\n", "\\n", -1)
- s = strings.Replace(s, "\r", "\\r", -1)
- if escapeSpaces {
- s = strings.Replace(s, " ", "\u00B7", -1)
- }
- return s
-}
-
-//goland:noinspection GoUnusedExportedFunction
-func TerminalNodeToStringArray(sa []TerminalNode) []string {
- st := make([]string, len(sa))
-
- for i, s := range sa {
- st[i] = fmt.Sprintf("%v", s)
- }
-
- return st
-}
-
-//goland:noinspection GoUnusedExportedFunction
-func PrintArrayJavaStyle(sa []string) string {
- var buffer bytes.Buffer
-
- buffer.WriteString("[")
-
- for i, s := range sa {
- buffer.WriteString(s)
- if i != len(sa)-1 {
- buffer.WriteString(", ")
- }
- }
-
- buffer.WriteString("]")
-
- return buffer.String()
-}
-
-// murmur hash
-func murmurInit(seed int) int {
- return seed
-}
-
-func murmurUpdate(h int, value int) int {
- const c1 uint32 = 0xCC9E2D51
- const c2 uint32 = 0x1B873593
- const r1 uint32 = 15
- const r2 uint32 = 13
- const m uint32 = 5
- const n uint32 = 0xE6546B64
-
- k := uint32(value)
- k *= c1
- k = (k << r1) | (k >> (32 - r1))
- k *= c2
-
- hash := uint32(h) ^ k
- hash = (hash << r2) | (hash >> (32 - r2))
- hash = hash*m + n
- return int(hash)
-}
-
-func murmurFinish(h int, numberOfWords int) int {
- var hash = uint32(h)
- hash ^= uint32(numberOfWords) << 2
- hash ^= hash >> 16
- hash *= 0x85ebca6b
- hash ^= hash >> 13
- hash *= 0xc2b2ae35
- hash ^= hash >> 16
-
- return int(hash)
-}
-
-func isDirectory(dir string) (bool, error) {
- fileInfo, err := os.Stat(dir)
- if err != nil {
- switch {
- case errors.Is(err, syscall.ENOENT):
- // The given directory does not exist, so we will try to create it
- //
- err = os.MkdirAll(dir, 0755)
- if err != nil {
- return false, err
- }
-
- return true, nil
- case err != nil:
- return false, err
- default:
- }
- }
- return fileInfo.IsDir(), err
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/LICENSE.txt b/vendor/github.com/aws/aws-sdk-go-v2/LICENSE.txt
deleted file mode 100644
index d64569567..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/NOTICE.txt b/vendor/github.com/aws/aws-sdk-go-v2/NOTICE.txt
deleted file mode 100644
index 899129ecc..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/NOTICE.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-AWS SDK for Go
-Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
-Copyright 2014-2015 Stripe, Inc.
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/accountid_endpoint_mode.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/accountid_endpoint_mode.go
deleted file mode 100644
index 6504a2186..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/accountid_endpoint_mode.go
+++ /dev/null
@@ -1,18 +0,0 @@
-package aws
-
-// AccountIDEndpointMode controls how a resolved AWS account ID is handled for endpoint routing.
-type AccountIDEndpointMode string
-
-const (
- // AccountIDEndpointModeUnset indicates the AWS account ID will not be used for endpoint routing
- AccountIDEndpointModeUnset AccountIDEndpointMode = ""
-
- // AccountIDEndpointModePreferred indicates the AWS account ID will be used for endpoint routing if present
- AccountIDEndpointModePreferred = "preferred"
-
- // AccountIDEndpointModeRequired indicates an error will be returned if the AWS account ID is not resolved from identity
- AccountIDEndpointModeRequired = "required"
-
- // AccountIDEndpointModeDisabled indicates the AWS account ID will be ignored during endpoint routing
- AccountIDEndpointModeDisabled = "disabled"
-)
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/checksum.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/checksum.go
deleted file mode 100644
index 4152caade..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/checksum.go
+++ /dev/null
@@ -1,33 +0,0 @@
-package aws
-
-// RequestChecksumCalculation controls request checksum calculation workflow
-type RequestChecksumCalculation int
-
-const (
- // RequestChecksumCalculationUnset is the unset value for RequestChecksumCalculation
- RequestChecksumCalculationUnset RequestChecksumCalculation = iota
-
- // RequestChecksumCalculationWhenSupported indicates request checksum will be calculated
- // if the operation supports input checksums
- RequestChecksumCalculationWhenSupported
-
- // RequestChecksumCalculationWhenRequired indicates request checksum will be calculated
- // if required by the operation or if user elects to set a checksum algorithm in request
- RequestChecksumCalculationWhenRequired
-)
-
-// ResponseChecksumValidation controls response checksum validation workflow
-type ResponseChecksumValidation int
-
-const (
- // ResponseChecksumValidationUnset is the unset value for ResponseChecksumValidation
- ResponseChecksumValidationUnset ResponseChecksumValidation = iota
-
- // ResponseChecksumValidationWhenSupported indicates response checksum will be validated
- // if the operation supports output checksums
- ResponseChecksumValidationWhenSupported
-
- // ResponseChecksumValidationWhenRequired indicates response checksum will only
- // be validated if the operation requires output checksum validation
- ResponseChecksumValidationWhenRequired
-)
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/config.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/config.go
deleted file mode 100644
index 3219517da..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/config.go
+++ /dev/null
@@ -1,250 +0,0 @@
-package aws
-
-import (
- "net/http"
-
- smithybearer "github.com/aws/smithy-go/auth/bearer"
- "github.com/aws/smithy-go/logging"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// HTTPClient provides the interface to provide custom HTTPClients. Generally
-// *http.Client is sufficient for most use cases. The HTTPClient should not
-// follow 301 or 302 redirects.
-type HTTPClient interface {
- Do(*http.Request) (*http.Response, error)
-}
-
-// A Config provides service configuration for service clients.
-type Config struct {
- // The region to send requests to. This parameter is required and must
- // be configured globally or on a per-client basis unless otherwise
- // noted. A full list of regions is found in the "Regions and Endpoints"
- // document.
- //
- // See http://docs.aws.amazon.com/general/latest/gr/rande.html for
- // information on AWS regions.
- Region string
-
- // The credentials object to use when signing requests.
- // Use the LoadDefaultConfig to load configuration from all the SDK's supported
- // sources, and resolve credentials using the SDK's default credential chain.
- Credentials CredentialsProvider
-
- // The Bearer Authentication token provider to use for authenticating API
- // operation calls with a Bearer Authentication token. The API clients and
- // operation must support Bearer Authentication scheme in order for the
- // token provider to be used. API clients created with NewFromConfig will
- // automatically be configured with this option, if the API client support
- // Bearer Authentication.
- //
- // The SDK's config.LoadDefaultConfig can automatically populate this
- // option for external configuration options such as SSO session.
- // https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html
- BearerAuthTokenProvider smithybearer.TokenProvider
-
- // The HTTP Client the SDK's API clients will use to invoke HTTP requests.
- // The SDK defaults to a BuildableClient allowing API clients to create
- // copies of the HTTP Client for service specific customizations.
- //
- // Use a (*http.Client) for custom behavior. Using a custom http.Client
- // will prevent the SDK from modifying the HTTP client.
- HTTPClient HTTPClient
-
- // An endpoint resolver that can be used to provide or override an endpoint
- // for the given service and region.
- //
- // See the `aws.EndpointResolver` documentation for additional usage
- // information.
- //
- // Deprecated: See Config.EndpointResolverWithOptions
- EndpointResolver EndpointResolver
-
- // An endpoint resolver that can be used to provide or override an endpoint
- // for the given service and region.
- //
- // When EndpointResolverWithOptions is specified, it will be used by a
- // service client rather than using EndpointResolver if also specified.
- //
- // See the `aws.EndpointResolverWithOptions` documentation for additional
- // usage information.
- //
- // Deprecated: with the release of endpoint resolution v2 in API clients,
- // EndpointResolver and EndpointResolverWithOptions are deprecated.
- // Providing a value for this field will likely prevent you from using
- // newer endpoint-related service features. See API client options
- // EndpointResolverV2 and BaseEndpoint.
- EndpointResolverWithOptions EndpointResolverWithOptions
-
- // RetryMaxAttempts specifies the maximum number attempts an API client
- // will call an operation that fails with a retryable error.
- //
- // API Clients will only use this value to construct a retryer if the
- // Config.Retryer member is not nil. This value will be ignored if
- // Retryer is not nil.
- RetryMaxAttempts int
-
- // RetryMode specifies the retry model the API client will be created with.
- //
- // API Clients will only use this value to construct a retryer if the
- // Config.Retryer member is not nil. This value will be ignored if
- // Retryer is not nil.
- RetryMode RetryMode
-
- // Retryer is a function that provides a Retryer implementation. A Retryer
- // guides how HTTP requests should be retried in case of recoverable
- // failures. When nil the API client will use a default retryer.
- //
- // In general, the provider function should return a new instance of a
- // Retryer if you are attempting to provide a consistent Retryer
- // configuration across all clients. This will ensure that each client will
- // be provided a new instance of the Retryer implementation, and will avoid
- // issues such as sharing the same retry token bucket across services.
- //
- // If not nil, RetryMaxAttempts, and RetryMode will be ignored by API
- // clients.
- Retryer func() Retryer
-
- // ConfigSources are the sources that were used to construct the Config.
- // Allows for additional configuration to be loaded by clients.
- ConfigSources []interface{}
-
- // APIOptions provides the set of middleware mutations modify how the API
- // client requests will be handled. This is useful for adding additional
- // tracing data to a request, or changing behavior of the SDK's client.
- APIOptions []func(*middleware.Stack) error
-
- // The logger writer interface to write logging messages to. Defaults to
- // standard error.
- Logger logging.Logger
-
- // Configures the events that will be sent to the configured logger. This
- // can be used to configure the logging of signing, retries, request, and
- // responses of the SDK clients.
- //
- // See the ClientLogMode type documentation for the complete set of logging
- // modes and available configuration.
- ClientLogMode ClientLogMode
-
- // The configured DefaultsMode. If not specified, service clients will
- // default to legacy.
- //
- // Supported modes are: auto, cross-region, in-region, legacy, mobile,
- // standard
- DefaultsMode DefaultsMode
-
- // The RuntimeEnvironment configuration, only populated if the DefaultsMode
- // is set to DefaultsModeAuto and is initialized by
- // `config.LoadDefaultConfig`. You should not populate this structure
- // programmatically, or rely on the values here within your applications.
- RuntimeEnvironment RuntimeEnvironment
-
- // AppId is an optional application specific identifier that can be set.
- // When set it will be appended to the User-Agent header of every request
- // in the form of App/{AppId}. This variable is sourced from environment
- // variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id.
- // See https://docs.aws.amazon.com/sdkref/latest/guide/settings-reference.html for
- // more information on environment variables and shared config settings.
- AppID string
-
- // BaseEndpoint is an intermediary transfer location to a service specific
- // BaseEndpoint on a service's Options.
- BaseEndpoint *string
-
- // DisableRequestCompression toggles if an operation request could be
- // compressed or not. Will be set to false by default. This variable is sourced from
- // environment variable AWS_DISABLE_REQUEST_COMPRESSION or the shared config profile attribute
- // disable_request_compression
- DisableRequestCompression bool
-
- // RequestMinCompressSizeBytes sets the inclusive min bytes of a request body that could be
- // compressed. Will be set to 10240 by default and must be within 0 and 10485760 bytes inclusively.
- // This variable is sourced from environment variable AWS_REQUEST_MIN_COMPRESSION_SIZE_BYTES or
- // the shared config profile attribute request_min_compression_size_bytes
- RequestMinCompressSizeBytes int64
-
- // Controls how a resolved AWS account ID is handled for endpoint routing.
- AccountIDEndpointMode AccountIDEndpointMode
-
- // RequestChecksumCalculation determines when request checksum calculation is performed.
- //
- // There are two possible values for this setting:
- //
- // 1. RequestChecksumCalculationWhenSupported (default): The checksum is always calculated
- // if the operation supports it, regardless of whether the user sets an algorithm in the request.
- //
- // 2. RequestChecksumCalculationWhenRequired: The checksum is only calculated if the user
- // explicitly sets a checksum algorithm in the request.
- //
- // This setting is sourced from the environment variable AWS_REQUEST_CHECKSUM_CALCULATION
- // or the shared config profile attribute "request_checksum_calculation".
- RequestChecksumCalculation RequestChecksumCalculation
-
- // ResponseChecksumValidation determines when response checksum validation is performed
- //
- // There are two possible values for this setting:
- //
- // 1. ResponseChecksumValidationWhenSupported (default): The checksum is always validated
- // if the operation supports it, regardless of whether the user sets the validation mode to ENABLED in request.
- //
- // 2. ResponseChecksumValidationWhenRequired: The checksum is only validated if the user
- // explicitly sets the validation mode to ENABLED in the request
- // This variable is sourced from environment variable AWS_RESPONSE_CHECKSUM_VALIDATION or
- // the shared config profile attribute "response_checksum_validation".
- ResponseChecksumValidation ResponseChecksumValidation
-
- // Registry of HTTP interceptors.
- Interceptors smithyhttp.InterceptorRegistry
-
- // Priority list of preferred auth scheme IDs.
- AuthSchemePreference []string
-
- // ServiceOptions provides service specific configuration options that will be applied
- // when constructing clients for specific services. Each callback function receives the service ID
- // and the service's Options struct, allowing for dynamic configuration based on the service.
- ServiceOptions []func(string, any)
-}
-
-// NewConfig returns a new Config pointer that can be chained with builder
-// methods to set multiple configuration values inline without using pointers.
-func NewConfig() *Config {
- return &Config{}
-}
-
-// Copy will return a shallow copy of the Config object.
-func (c Config) Copy() Config {
- cp := c
- return cp
-}
-
-// EndpointDiscoveryEnableState indicates if endpoint discovery is
-// enabled, disabled, auto or unset state.
-//
-// Default behavior (Auto or Unset) indicates operations that require endpoint
-// discovery will use Endpoint Discovery by default. Operations that
-// optionally use Endpoint Discovery will not use Endpoint Discovery
-// unless EndpointDiscovery is explicitly enabled.
-type EndpointDiscoveryEnableState uint
-
-// Enumeration values for EndpointDiscoveryEnableState
-const (
- // EndpointDiscoveryUnset represents EndpointDiscoveryEnableState is unset.
- // Users do not need to use this value explicitly. The behavior for unset
- // is the same as for EndpointDiscoveryAuto.
- EndpointDiscoveryUnset EndpointDiscoveryEnableState = iota
-
- // EndpointDiscoveryAuto represents an AUTO state that allows endpoint
- // discovery only when required by the api. This is the default
- // configuration resolved by the client if endpoint discovery is neither
- // enabled or disabled.
- EndpointDiscoveryAuto // default state
-
- // EndpointDiscoveryDisabled indicates client MUST not perform endpoint
- // discovery even when required.
- EndpointDiscoveryDisabled
-
- // EndpointDiscoveryEnabled indicates client MUST always perform endpoint
- // discovery if supported for the operation.
- EndpointDiscoveryEnabled
-)
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/context.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/context.go
deleted file mode 100644
index 4d8e26ef3..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/context.go
+++ /dev/null
@@ -1,22 +0,0 @@
-package aws
-
-import (
- "context"
- "time"
-)
-
-type suppressedContext struct {
- context.Context
-}
-
-func (s *suppressedContext) Deadline() (deadline time.Time, ok bool) {
- return time.Time{}, false
-}
-
-func (s *suppressedContext) Done() <-chan struct{} {
- return nil
-}
-
-func (s *suppressedContext) Err() error {
- return nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/credential_cache.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/credential_cache.go
deleted file mode 100644
index 623890e8d..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/credential_cache.go
+++ /dev/null
@@ -1,235 +0,0 @@
-package aws
-
-import (
- "context"
- "fmt"
- "sync/atomic"
- "time"
-
- sdkrand "github.com/aws/aws-sdk-go-v2/internal/rand"
- "github.com/aws/aws-sdk-go-v2/internal/sync/singleflight"
-)
-
-// CredentialsCacheOptions are the options
-type CredentialsCacheOptions struct {
-
- // ExpiryWindow will allow the credentials to trigger refreshing prior to
- // the credentials actually expiring. This is beneficial so race conditions
- // with expiring credentials do not cause request to fail unexpectedly
- // due to ExpiredTokenException exceptions.
- //
- // An ExpiryWindow of 10s would cause calls to IsExpired() to return true
- // 10 seconds before the credentials are actually expired. This can cause an
- // increased number of requests to refresh the credentials to occur.
- //
- // If ExpiryWindow is 0 or less it will be ignored.
- ExpiryWindow time.Duration
-
- // ExpiryWindowJitterFrac provides a mechanism for randomizing the
- // expiration of credentials within the configured ExpiryWindow by a random
- // percentage. Valid values are between 0.0 and 1.0.
- //
- // As an example if ExpiryWindow is 60 seconds and ExpiryWindowJitterFrac
- // is 0.5 then credentials will be set to expire between 30 to 60 seconds
- // prior to their actual expiration time.
- //
- // If ExpiryWindow is 0 or less then ExpiryWindowJitterFrac is ignored.
- // If ExpiryWindowJitterFrac is 0 then no randomization will be applied to the window.
- // If ExpiryWindowJitterFrac < 0 the value will be treated as 0.
- // If ExpiryWindowJitterFrac > 1 the value will be treated as 1.
- ExpiryWindowJitterFrac float64
-}
-
-// CredentialsCache provides caching and concurrency safe credentials retrieval
-// via the provider's retrieve method.
-//
-// CredentialsCache will look for optional interfaces on the Provider to adjust
-// how the credential cache handles credentials caching.
-//
-// - HandleFailRefreshCredentialsCacheStrategy - Allows provider to handle
-// credential refresh failures. This could return an updated Credentials
-// value, or attempt another means of retrieving credentials.
-//
-// - AdjustExpiresByCredentialsCacheStrategy - Allows provider to adjust how
-// credentials Expires is modified. This could modify how the Credentials
-// Expires is adjusted based on the CredentialsCache ExpiryWindow option.
-// Such as providing a floor not to reduce the Expires below.
-type CredentialsCache struct {
- provider CredentialsProvider
-
- options CredentialsCacheOptions
- creds atomic.Value
- sf singleflight.Group
-}
-
-// NewCredentialsCache returns a CredentialsCache that wraps provider. Provider
-// is expected to not be nil. A variadic list of one or more functions can be
-// provided to modify the CredentialsCache configuration. This allows for
-// configuration of credential expiry window and jitter.
-func NewCredentialsCache(provider CredentialsProvider, optFns ...func(options *CredentialsCacheOptions)) *CredentialsCache {
- options := CredentialsCacheOptions{}
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.ExpiryWindow < 0 {
- options.ExpiryWindow = 0
- }
-
- if options.ExpiryWindowJitterFrac < 0 {
- options.ExpiryWindowJitterFrac = 0
- } else if options.ExpiryWindowJitterFrac > 1 {
- options.ExpiryWindowJitterFrac = 1
- }
-
- return &CredentialsCache{
- provider: provider,
- options: options,
- }
-}
-
-// Retrieve returns the credentials. If the credentials have already been
-// retrieved, and not expired the cached credentials will be returned. If the
-// credentials have not been retrieved yet, or expired the provider's Retrieve
-// method will be called.
-//
-// Returns and error if the provider's retrieve method returns an error.
-func (p *CredentialsCache) Retrieve(ctx context.Context) (Credentials, error) {
- if creds, ok := p.getCreds(); ok && !creds.Expired() {
- return creds, nil
- }
-
- resCh := p.sf.DoChan("", func() (interface{}, error) {
- return p.singleRetrieve(&suppressedContext{ctx})
- })
- select {
- case res := <-resCh:
- return res.Val.(Credentials), res.Err
- case <-ctx.Done():
- return Credentials{}, &RequestCanceledError{Err: ctx.Err()}
- }
-}
-
-func (p *CredentialsCache) singleRetrieve(ctx context.Context) (interface{}, error) {
- currCreds, ok := p.getCreds()
- if ok && !currCreds.Expired() {
- return currCreds, nil
- }
-
- newCreds, err := p.provider.Retrieve(ctx)
- if err != nil {
- handleFailToRefresh := defaultHandleFailToRefresh
- if cs, ok := p.provider.(HandleFailRefreshCredentialsCacheStrategy); ok {
- handleFailToRefresh = cs.HandleFailToRefresh
- }
- newCreds, err = handleFailToRefresh(ctx, currCreds, err)
- if err != nil {
- return Credentials{}, fmt.Errorf("failed to refresh cached credentials, %w", err)
- }
- }
-
- if newCreds.CanExpire && p.options.ExpiryWindow > 0 {
- adjustExpiresBy := defaultAdjustExpiresBy
- if cs, ok := p.provider.(AdjustExpiresByCredentialsCacheStrategy); ok {
- adjustExpiresBy = cs.AdjustExpiresBy
- }
-
- randFloat64, err := sdkrand.CryptoRandFloat64()
- if err != nil {
- return Credentials{}, fmt.Errorf("failed to get random provider, %w", err)
- }
-
- var jitter time.Duration
- if p.options.ExpiryWindowJitterFrac > 0 {
- jitter = time.Duration(randFloat64 *
- p.options.ExpiryWindowJitterFrac * float64(p.options.ExpiryWindow))
- }
-
- newCreds, err = adjustExpiresBy(newCreds, -(p.options.ExpiryWindow - jitter))
- if err != nil {
- return Credentials{}, fmt.Errorf("failed to adjust credentials expires, %w", err)
- }
- }
-
- p.creds.Store(&newCreds)
- return newCreds, nil
-}
-
-// getCreds returns the currently stored credentials and true. Returning false
-// if no credentials were stored.
-func (p *CredentialsCache) getCreds() (Credentials, bool) {
- v := p.creds.Load()
- if v == nil {
- return Credentials{}, false
- }
-
- c := v.(*Credentials)
- if c == nil || !c.HasKeys() {
- return Credentials{}, false
- }
-
- return *c, true
-}
-
-// ProviderSources returns a list of where the underlying credential provider
-// has been sourced, if available. Returns empty if the provider doesn't implement
-// the interface
-func (p *CredentialsCache) ProviderSources() []CredentialSource {
- asSource, ok := p.provider.(CredentialProviderSource)
- if !ok {
- return []CredentialSource{}
- }
- return asSource.ProviderSources()
-}
-
-// Invalidate will invalidate the cached credentials. The next call to Retrieve
-// will cause the provider's Retrieve method to be called.
-func (p *CredentialsCache) Invalidate() {
- p.creds.Store((*Credentials)(nil))
-}
-
-// IsCredentialsProvider returns whether credential provider wrapped by CredentialsCache
-// matches the target provider type.
-func (p *CredentialsCache) IsCredentialsProvider(target CredentialsProvider) bool {
- return IsCredentialsProvider(p.provider, target)
-}
-
-// HandleFailRefreshCredentialsCacheStrategy is an interface for
-// CredentialsCache to allow CredentialsProvider how failed to refresh
-// credentials is handled.
-type HandleFailRefreshCredentialsCacheStrategy interface {
- // Given the previously cached Credentials, if any, and refresh error, may
- // returns new or modified set of Credentials, or error.
- //
- // Credential caches may use default implementation if nil.
- HandleFailToRefresh(context.Context, Credentials, error) (Credentials, error)
-}
-
-// defaultHandleFailToRefresh returns the passed in error.
-func defaultHandleFailToRefresh(ctx context.Context, _ Credentials, err error) (Credentials, error) {
- return Credentials{}, err
-}
-
-// AdjustExpiresByCredentialsCacheStrategy is an interface for CredentialCache
-// to allow CredentialsProvider to intercept adjustments to Credentials expiry
-// based on expectations and use cases of CredentialsProvider.
-//
-// Credential caches may use default implementation if nil.
-type AdjustExpiresByCredentialsCacheStrategy interface {
- // Given a Credentials as input, applying any mutations and
- // returning the potentially updated Credentials, or error.
- AdjustExpiresBy(Credentials, time.Duration) (Credentials, error)
-}
-
-// defaultAdjustExpiresBy adds the duration to the passed in credentials Expires,
-// and returns the updated credentials value. If Credentials value's CanExpire
-// is false, the passed in credentials are returned unchanged.
-func defaultAdjustExpiresBy(creds Credentials, dur time.Duration) (Credentials, error) {
- if !creds.CanExpire {
- return creds, nil
- }
-
- creds.Expires = creds.Expires.Add(dur)
- return creds, nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/credentials.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/credentials.go
deleted file mode 100644
index 4ad2ee440..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/credentials.go
+++ /dev/null
@@ -1,230 +0,0 @@
-package aws
-
-import (
- "context"
- "fmt"
- "reflect"
- "time"
-
- "github.com/aws/aws-sdk-go-v2/internal/sdk"
-)
-
-// AnonymousCredentials provides a sentinel CredentialsProvider that should be
-// used to instruct the SDK's signing middleware to not sign the request.
-//
-// Using `nil` credentials when configuring an API client will achieve the same
-// result. The AnonymousCredentials type allows you to configure the SDK's
-// external config loading to not attempt to source credentials from the shared
-// config or environment.
-//
-// For example you can use this CredentialsProvider with an API client's
-// Options to instruct the client not to sign a request for accessing public
-// S3 bucket objects.
-//
-// The following example demonstrates using the AnonymousCredentials to prevent
-// SDK's external config loading attempt to resolve credentials.
-//
-// cfg, err := config.LoadDefaultConfig(context.TODO(),
-// config.WithCredentialsProvider(aws.AnonymousCredentials{}),
-// )
-// if err != nil {
-// log.Fatalf("failed to load config, %v", err)
-// }
-//
-// client := s3.NewFromConfig(cfg)
-//
-// Alternatively you can leave the API client Option's `Credential` member to
-// nil. If using the `NewFromConfig` constructor you'll need to explicitly set
-// the `Credentials` member to nil, if the external config resolved a
-// credential provider.
-//
-// client := s3.New(s3.Options{
-// // Credentials defaults to a nil value.
-// })
-//
-// This can also be configured for specific operations calls too.
-//
-// cfg, err := config.LoadDefaultConfig(context.TODO())
-// if err != nil {
-// log.Fatalf("failed to load config, %v", err)
-// }
-//
-// client := s3.NewFromConfig(config)
-//
-// result, err := client.GetObject(context.TODO(), s3.GetObject{
-// Bucket: aws.String("example-bucket"),
-// Key: aws.String("example-key"),
-// }, func(o *s3.Options) {
-// o.Credentials = nil
-// // Or
-// o.Credentials = aws.AnonymousCredentials{}
-// })
-type AnonymousCredentials struct{}
-
-// Retrieve implements the CredentialsProvider interface, but will always
-// return error, and cannot be used to sign a request. The AnonymousCredentials
-// type is used as a sentinel type instructing the AWS request signing
-// middleware to not sign a request.
-func (AnonymousCredentials) Retrieve(context.Context) (Credentials, error) {
- return Credentials{Source: "AnonymousCredentials"},
- fmt.Errorf("the AnonymousCredentials is not a valid credential provider, and cannot be used to sign AWS requests with")
-}
-
-// CredentialSource is the source of the credential provider.
-// A provider can have multiple credential sources: For example, a provider that reads a profile, calls ECS to
-// get credentials and then assumes a role using STS will have all these as part of its provider chain.
-type CredentialSource int
-
-const (
- // CredentialSourceUndefined is the sentinel zero value
- CredentialSourceUndefined CredentialSource = iota
- // CredentialSourceCode credentials resolved from code, cli parameters, session object, or client instance
- CredentialSourceCode
- // CredentialSourceEnvVars credentials resolved from environment variables
- CredentialSourceEnvVars
- // CredentialSourceEnvVarsSTSWebIDToken credentials resolved from environment variables for assuming a role with STS using a web identity token
- CredentialSourceEnvVarsSTSWebIDToken
- // CredentialSourceSTSAssumeRole credentials resolved from STS using AssumeRole
- CredentialSourceSTSAssumeRole
- // CredentialSourceSTSAssumeRoleSaml credentials resolved from STS using assume role with SAML
- CredentialSourceSTSAssumeRoleSaml
- // CredentialSourceSTSAssumeRoleWebID credentials resolved from STS using assume role with web identity
- CredentialSourceSTSAssumeRoleWebID
- // CredentialSourceSTSFederationToken credentials resolved from STS using a federation token
- CredentialSourceSTSFederationToken
- // CredentialSourceSTSSessionToken credentials resolved from STS using a session token S
- CredentialSourceSTSSessionToken
- // CredentialSourceProfile credentials resolved from a config file(s) profile with static credentials
- CredentialSourceProfile
- // CredentialSourceProfileSourceProfile credentials resolved from a source profile in a config file(s) profile
- CredentialSourceProfileSourceProfile
- // CredentialSourceProfileNamedProvider credentials resolved from a named provider in a config file(s) profile (like EcsContainer)
- CredentialSourceProfileNamedProvider
- // CredentialSourceProfileSTSWebIDToken credentials resolved from configuration for assuming a role with STS using web identity token in a config file(s) profile
- CredentialSourceProfileSTSWebIDToken
- // CredentialSourceProfileSSO credentials resolved from an SSO session in a config file(s) profile
- CredentialSourceProfileSSO
- // CredentialSourceSSO credentials resolved from an SSO session
- CredentialSourceSSO
- // CredentialSourceProfileSSOLegacy credentials resolved from an SSO session in a config file(s) profile using legacy format
- CredentialSourceProfileSSOLegacy
- // CredentialSourceSSOLegacy credentials resolved from an SSO session using legacy format
- CredentialSourceSSOLegacy
- // CredentialSourceProfileProcess credentials resolved from a process in a config file(s) profile
- CredentialSourceProfileProcess
- // CredentialSourceProcess credentials resolved from a process
- CredentialSourceProcess
- // CredentialSourceHTTP credentials resolved from an HTTP endpoint
- CredentialSourceHTTP
- // CredentialSourceIMDS credentials resolved from the instance metadata service (IMDS)
- CredentialSourceIMDS
-)
-
-// A Credentials is the AWS credentials value for individual credential fields.
-type Credentials struct {
- // AWS Access key ID
- AccessKeyID string
-
- // AWS Secret Access Key
- SecretAccessKey string
-
- // AWS Session Token
- SessionToken string
-
- // Source of the credentials
- Source string
-
- // States if the credentials can expire or not.
- CanExpire bool
-
- // The time the credentials will expire at. Should be ignored if CanExpire
- // is false.
- Expires time.Time
-
- // The ID of the account for the credentials.
- AccountID string
-}
-
-// Expired returns if the credentials have expired.
-func (v Credentials) Expired() bool {
- if v.CanExpire {
- // Calling Round(0) on the current time will truncate the monotonic
- // reading only. Ensures credential expiry time is always based on
- // reported wall-clock time.
- return !v.Expires.After(sdk.NowTime().Round(0))
- }
-
- return false
-}
-
-// HasKeys returns if the credentials keys are set.
-func (v Credentials) HasKeys() bool {
- return len(v.AccessKeyID) > 0 && len(v.SecretAccessKey) > 0
-}
-
-// A CredentialsProvider is the interface for any component which will provide
-// credentials Credentials. A CredentialsProvider is required to manage its own
-// Expired state, and what to be expired means.
-//
-// A credentials provider implementation can be wrapped with a CredentialCache
-// to cache the credential value retrieved. Without the cache the SDK will
-// attempt to retrieve the credentials for every request.
-type CredentialsProvider interface {
- // Retrieve returns nil if it successfully retrieved the value.
- // Error is returned if the value were not obtainable, or empty.
- Retrieve(ctx context.Context) (Credentials, error)
-}
-
-// CredentialProviderSource allows any credential provider to track
-// all providers where a credential provider were sourced. For example, if the credentials came from a
-// call to a role specified in the profile, this method will give the whole breadcrumb trail
-type CredentialProviderSource interface {
- ProviderSources() []CredentialSource
-}
-
-// CredentialsProviderFunc provides a helper wrapping a function value to
-// satisfy the CredentialsProvider interface.
-type CredentialsProviderFunc func(context.Context) (Credentials, error)
-
-// Retrieve delegates to the function value the CredentialsProviderFunc wraps.
-func (fn CredentialsProviderFunc) Retrieve(ctx context.Context) (Credentials, error) {
- return fn(ctx)
-}
-
-type isCredentialsProvider interface {
- IsCredentialsProvider(CredentialsProvider) bool
-}
-
-// IsCredentialsProvider returns whether the target CredentialProvider is the same type as provider when comparing the
-// implementation type.
-//
-// If provider has a method IsCredentialsProvider(CredentialsProvider) bool it will be responsible for validating
-// whether target matches the credential provider type.
-//
-// When comparing the CredentialProvider implementations provider and target for equality, the following rules are used:
-//
-// If provider is of type T and target is of type V, true if type *T is the same as type *V, otherwise false
-// If provider is of type *T and target is of type V, true if type *T is the same as type *V, otherwise false
-// If provider is of type T and target is of type *V, true if type *T is the same as type *V, otherwise false
-// If provider is of type *T and target is of type *V,true if type *T is the same as type *V, otherwise false
-func IsCredentialsProvider(provider, target CredentialsProvider) bool {
- if target == nil || provider == nil {
- return provider == target
- }
-
- if x, ok := provider.(isCredentialsProvider); ok {
- return x.IsCredentialsProvider(target)
- }
-
- targetType := reflect.TypeOf(target)
- if targetType.Kind() != reflect.Ptr {
- targetType = reflect.PtrTo(targetType)
- }
-
- providerType := reflect.TypeOf(provider)
- if providerType.Kind() != reflect.Ptr {
- providerType = reflect.PtrTo(providerType)
- }
-
- return targetType.AssignableTo(providerType)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/defaults/auto.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/defaults/auto.go
deleted file mode 100644
index fd408e518..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/defaults/auto.go
+++ /dev/null
@@ -1,38 +0,0 @@
-package defaults
-
-import (
- "github.com/aws/aws-sdk-go-v2/aws"
- "runtime"
- "strings"
-)
-
-var getGOOS = func() string {
- return runtime.GOOS
-}
-
-// ResolveDefaultsModeAuto is used to determine the effective aws.DefaultsMode when the mode
-// is set to aws.DefaultsModeAuto.
-func ResolveDefaultsModeAuto(region string, environment aws.RuntimeEnvironment) aws.DefaultsMode {
- goos := getGOOS()
- if goos == "android" || goos == "ios" {
- return aws.DefaultsModeMobile
- }
-
- var currentRegion string
- if len(environment.EnvironmentIdentifier) > 0 {
- currentRegion = environment.Region
- }
-
- if len(currentRegion) == 0 && len(environment.EC2InstanceMetadataRegion) > 0 {
- currentRegion = environment.EC2InstanceMetadataRegion
- }
-
- if len(region) > 0 && len(currentRegion) > 0 {
- if strings.EqualFold(region, currentRegion) {
- return aws.DefaultsModeInRegion
- }
- return aws.DefaultsModeCrossRegion
- }
-
- return aws.DefaultsModeStandard
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/defaults/configuration.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/defaults/configuration.go
deleted file mode 100644
index 8b7e01fa2..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/defaults/configuration.go
+++ /dev/null
@@ -1,43 +0,0 @@
-package defaults
-
-import (
- "time"
-
- "github.com/aws/aws-sdk-go-v2/aws"
-)
-
-// Configuration is the set of SDK configuration options that are determined based
-// on the configured DefaultsMode.
-type Configuration struct {
- // RetryMode is the configuration's default retry mode API clients should
- // use for constructing a Retryer.
- RetryMode aws.RetryMode
-
- // ConnectTimeout is the maximum amount of time a dial will wait for
- // a connect to complete.
- //
- // See https://pkg.go.dev/net#Dialer.Timeout
- ConnectTimeout *time.Duration
-
- // TLSNegotiationTimeout specifies the maximum amount of time waiting to
- // wait for a TLS handshake.
- //
- // See https://pkg.go.dev/net/http#Transport.TLSHandshakeTimeout
- TLSNegotiationTimeout *time.Duration
-}
-
-// GetConnectTimeout returns the ConnectTimeout value, returns false if the value is not set.
-func (c *Configuration) GetConnectTimeout() (time.Duration, bool) {
- if c.ConnectTimeout == nil {
- return 0, false
- }
- return *c.ConnectTimeout, true
-}
-
-// GetTLSNegotiationTimeout returns the TLSNegotiationTimeout value, returns false if the value is not set.
-func (c *Configuration) GetTLSNegotiationTimeout() (time.Duration, bool) {
- if c.TLSNegotiationTimeout == nil {
- return 0, false
- }
- return *c.TLSNegotiationTimeout, true
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/defaults/defaults.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/defaults/defaults.go
deleted file mode 100644
index dbaa873dc..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/defaults/defaults.go
+++ /dev/null
@@ -1,50 +0,0 @@
-// Code generated by github.com/aws/aws-sdk-go-v2/internal/codegen/cmd/defaultsconfig. DO NOT EDIT.
-
-package defaults
-
-import (
- "fmt"
- "github.com/aws/aws-sdk-go-v2/aws"
- "time"
-)
-
-// GetModeConfiguration returns the default Configuration descriptor for the given mode.
-//
-// Supports the following modes: cross-region, in-region, mobile, standard
-func GetModeConfiguration(mode aws.DefaultsMode) (Configuration, error) {
- var mv aws.DefaultsMode
- mv.SetFromString(string(mode))
-
- switch mv {
- case aws.DefaultsModeCrossRegion:
- settings := Configuration{
- ConnectTimeout: aws.Duration(3100 * time.Millisecond),
- RetryMode: aws.RetryMode("standard"),
- TLSNegotiationTimeout: aws.Duration(3100 * time.Millisecond),
- }
- return settings, nil
- case aws.DefaultsModeInRegion:
- settings := Configuration{
- ConnectTimeout: aws.Duration(1100 * time.Millisecond),
- RetryMode: aws.RetryMode("standard"),
- TLSNegotiationTimeout: aws.Duration(1100 * time.Millisecond),
- }
- return settings, nil
- case aws.DefaultsModeMobile:
- settings := Configuration{
- ConnectTimeout: aws.Duration(30000 * time.Millisecond),
- RetryMode: aws.RetryMode("standard"),
- TLSNegotiationTimeout: aws.Duration(30000 * time.Millisecond),
- }
- return settings, nil
- case aws.DefaultsModeStandard:
- settings := Configuration{
- ConnectTimeout: aws.Duration(3100 * time.Millisecond),
- RetryMode: aws.RetryMode("standard"),
- TLSNegotiationTimeout: aws.Duration(3100 * time.Millisecond),
- }
- return settings, nil
- default:
- return Configuration{}, fmt.Errorf("unsupported defaults mode: %v", mode)
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/defaults/doc.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/defaults/doc.go
deleted file mode 100644
index 2d90011b4..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/defaults/doc.go
+++ /dev/null
@@ -1,2 +0,0 @@
-// Package defaults provides recommended configuration values for AWS SDKs and CLIs.
-package defaults
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/defaultsmode.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/defaultsmode.go
deleted file mode 100644
index fcf9387c2..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/defaultsmode.go
+++ /dev/null
@@ -1,95 +0,0 @@
-// Code generated by github.com/aws/aws-sdk-go-v2/internal/codegen/cmd/defaultsmode. DO NOT EDIT.
-
-package aws
-
-import (
- "strings"
-)
-
-// DefaultsMode is the SDK defaults mode setting.
-type DefaultsMode string
-
-// The DefaultsMode constants.
-const (
- // DefaultsModeAuto is an experimental mode that builds on the standard mode.
- // The SDK will attempt to discover the execution environment to determine the
- // appropriate settings automatically.
- //
- // Note that the auto detection is heuristics-based and does not guarantee 100%
- // accuracy. STANDARD mode will be used if the execution environment cannot
- // be determined. The auto detection might query EC2 Instance Metadata service
- // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html),
- // which might introduce latency. Therefore we recommend choosing an explicit
- // defaults_mode instead if startup latency is critical to your application
- DefaultsModeAuto DefaultsMode = "auto"
-
- // DefaultsModeCrossRegion builds on the standard mode and includes optimization
- // tailored for applications which call AWS services in a different region
- //
- // Note that the default values vended from this mode might change as best practices
- // may evolve. As a result, it is encouraged to perform tests when upgrading
- // the SDK
- DefaultsModeCrossRegion DefaultsMode = "cross-region"
-
- // DefaultsModeInRegion builds on the standard mode and includes optimization
- // tailored for applications which call AWS services from within the same AWS
- // region
- //
- // Note that the default values vended from this mode might change as best practices
- // may evolve. As a result, it is encouraged to perform tests when upgrading
- // the SDK
- DefaultsModeInRegion DefaultsMode = "in-region"
-
- // DefaultsModeLegacy provides default settings that vary per SDK and were used
- // prior to establishment of defaults_mode
- DefaultsModeLegacy DefaultsMode = "legacy"
-
- // DefaultsModeMobile builds on the standard mode and includes optimization
- // tailored for mobile applications
- //
- // Note that the default values vended from this mode might change as best practices
- // may evolve. As a result, it is encouraged to perform tests when upgrading
- // the SDK
- DefaultsModeMobile DefaultsMode = "mobile"
-
- // DefaultsModeStandard provides the latest recommended default values that
- // should be safe to run in most scenarios
- //
- // Note that the default values vended from this mode might change as best practices
- // may evolve. As a result, it is encouraged to perform tests when upgrading
- // the SDK
- DefaultsModeStandard DefaultsMode = "standard"
-)
-
-// SetFromString sets the DefaultsMode value to one of the pre-defined constants that matches
-// the provided string when compared using EqualFold. If the value does not match a known
-// constant it will be set to as-is and the function will return false. As a special case, if the
-// provided value is a zero-length string, the mode will be set to LegacyDefaultsMode.
-func (d *DefaultsMode) SetFromString(v string) (ok bool) {
- switch {
- case strings.EqualFold(v, string(DefaultsModeAuto)):
- *d = DefaultsModeAuto
- ok = true
- case strings.EqualFold(v, string(DefaultsModeCrossRegion)):
- *d = DefaultsModeCrossRegion
- ok = true
- case strings.EqualFold(v, string(DefaultsModeInRegion)):
- *d = DefaultsModeInRegion
- ok = true
- case strings.EqualFold(v, string(DefaultsModeLegacy)):
- *d = DefaultsModeLegacy
- ok = true
- case strings.EqualFold(v, string(DefaultsModeMobile)):
- *d = DefaultsModeMobile
- ok = true
- case strings.EqualFold(v, string(DefaultsModeStandard)):
- *d = DefaultsModeStandard
- ok = true
- case len(v) == 0:
- *d = DefaultsModeLegacy
- ok = true
- default:
- *d = DefaultsMode(v)
- }
- return ok
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/doc.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/doc.go
deleted file mode 100644
index d8b6e09e5..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/doc.go
+++ /dev/null
@@ -1,62 +0,0 @@
-// Package aws provides the core SDK's utilities and shared types. Use this package's
-// utilities to simplify setting and reading API operations parameters.
-//
-// # Value and Pointer Conversion Utilities
-//
-// This package includes a helper conversion utility for each scalar type the SDK's
-// API use. These utilities make getting a pointer of the scalar, and dereferencing
-// a pointer easier.
-//
-// Each conversion utility comes in two forms. Value to Pointer and Pointer to Value.
-// The Pointer to value will safely dereference the pointer and return its value.
-// If the pointer was nil, the scalar's zero value will be returned.
-//
-// The value to pointer functions will be named after the scalar type. So get a
-// *string from a string value use the "String" function. This makes it easy to
-// to get pointer of a literal string value, because getting the address of a
-// literal requires assigning the value to a variable first.
-//
-// var strPtr *string
-//
-// // Without the SDK's conversion functions
-// str := "my string"
-// strPtr = &str
-//
-// // With the SDK's conversion functions
-// strPtr = aws.String("my string")
-//
-// // Convert *string to string value
-// str = aws.ToString(strPtr)
-//
-// In addition to scalars the aws package also includes conversion utilities for
-// map and slice for commonly types used in API parameters. The map and slice
-// conversion functions use similar naming pattern as the scalar conversion
-// functions.
-//
-// var strPtrs []*string
-// var strs []string = []string{"Go", "Gophers", "Go"}
-//
-// // Convert []string to []*string
-// strPtrs = aws.StringSlice(strs)
-//
-// // Convert []*string to []string
-// strs = aws.ToStringSlice(strPtrs)
-//
-// # SDK Default HTTP Client
-//
-// The SDK will use the http.DefaultClient if a HTTP client is not provided to
-// the SDK's Session, or service client constructor. This means that if the
-// http.DefaultClient is modified by other components of your application the
-// modifications will be picked up by the SDK as well.
-//
-// In some cases this might be intended, but it is a better practice to create
-// a custom HTTP Client to share explicitly through your application. You can
-// configure the SDK to use the custom HTTP Client by setting the HTTPClient
-// value of the SDK's Config type when creating a Session or service client.
-package aws
-
-// generate.go uses a build tag of "ignore", go run doesn't need to specify
-// this because go run ignores all build flags when running a go file directly.
-//go:generate go run -tags codegen generate.go
-//go:generate go run -tags codegen logging_generate.go
-//go:generate gofmt -w -s .
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/endpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/endpoints.go
deleted file mode 100644
index 99edbf3ee..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/endpoints.go
+++ /dev/null
@@ -1,247 +0,0 @@
-package aws
-
-import (
- "fmt"
-)
-
-// DualStackEndpointState is a constant to describe the dual-stack endpoint resolution behavior.
-type DualStackEndpointState uint
-
-const (
- // DualStackEndpointStateUnset is the default value behavior for dual-stack endpoint resolution.
- DualStackEndpointStateUnset DualStackEndpointState = iota
-
- // DualStackEndpointStateEnabled enables dual-stack endpoint resolution for service endpoints.
- DualStackEndpointStateEnabled
-
- // DualStackEndpointStateDisabled disables dual-stack endpoint resolution for endpoints.
- DualStackEndpointStateDisabled
-)
-
-// GetUseDualStackEndpoint takes a service's EndpointResolverOptions and returns the UseDualStackEndpoint value.
-// Returns boolean false if the provided options does not have a method to retrieve the DualStackEndpointState.
-func GetUseDualStackEndpoint(options ...interface{}) (value DualStackEndpointState, found bool) {
- type iface interface {
- GetUseDualStackEndpoint() DualStackEndpointState
- }
- for _, option := range options {
- if i, ok := option.(iface); ok {
- value = i.GetUseDualStackEndpoint()
- found = true
- break
- }
- }
- return value, found
-}
-
-// FIPSEndpointState is a constant to describe the FIPS endpoint resolution behavior.
-type FIPSEndpointState uint
-
-const (
- // FIPSEndpointStateUnset is the default value behavior for FIPS endpoint resolution.
- FIPSEndpointStateUnset FIPSEndpointState = iota
-
- // FIPSEndpointStateEnabled enables FIPS endpoint resolution for service endpoints.
- FIPSEndpointStateEnabled
-
- // FIPSEndpointStateDisabled disables FIPS endpoint resolution for endpoints.
- FIPSEndpointStateDisabled
-)
-
-// GetUseFIPSEndpoint takes a service's EndpointResolverOptions and returns the UseDualStackEndpoint value.
-// Returns boolean false if the provided options does not have a method to retrieve the DualStackEndpointState.
-func GetUseFIPSEndpoint(options ...interface{}) (value FIPSEndpointState, found bool) {
- type iface interface {
- GetUseFIPSEndpoint() FIPSEndpointState
- }
- for _, option := range options {
- if i, ok := option.(iface); ok {
- value = i.GetUseFIPSEndpoint()
- found = true
- break
- }
- }
- return value, found
-}
-
-// Endpoint represents the endpoint a service client should make API operation
-// calls to.
-//
-// The SDK will automatically resolve these endpoints per API client using an
-// internal endpoint resolvers. If you'd like to provide custom endpoint
-// resolving behavior you can implement the EndpointResolver interface.
-//
-// Deprecated: This structure was used with the global [EndpointResolver]
-// interface, which has been deprecated in favor of service-specific endpoint
-// resolution. See the deprecation docs on that interface for more information.
-type Endpoint struct {
- // The base URL endpoint the SDK API clients will use to make API calls to.
- // The SDK will suffix URI path and query elements to this endpoint.
- URL string
-
- // Specifies if the endpoint's hostname can be modified by the SDK's API
- // client.
- //
- // If the hostname is mutable the SDK API clients may modify any part of
- // the hostname based on the requirements of the API, (e.g. adding, or
- // removing content in the hostname). Such as, Amazon S3 API client
- // prefixing "bucketname" to the hostname, or changing the
- // hostname service name component from "s3." to "s3-accesspoint.dualstack."
- // for the dualstack endpoint of an S3 Accesspoint resource.
- //
- // Care should be taken when providing a custom endpoint for an API. If the
- // endpoint hostname is mutable, and the client cannot modify the endpoint
- // correctly, the operation call will most likely fail, or have undefined
- // behavior.
- //
- // If hostname is immutable, the SDK API clients will not modify the
- // hostname of the URL. This may cause the API client not to function
- // correctly if the API requires the operation specific hostname values
- // to be used by the client.
- //
- // This flag does not modify the API client's behavior if this endpoint
- // will be used instead of Endpoint Discovery, or if the endpoint will be
- // used to perform Endpoint Discovery. That behavior is configured via the
- // API Client's Options.
- HostnameImmutable bool
-
- // The AWS partition the endpoint belongs to.
- PartitionID string
-
- // The service name that should be used for signing the requests to the
- // endpoint.
- SigningName string
-
- // The region that should be used for signing the request to the endpoint.
- SigningRegion string
-
- // The signing method that should be used for signing the requests to the
- // endpoint.
- SigningMethod string
-
- // The source of the Endpoint. By default, this will be EndpointSourceServiceMetadata.
- // When providing a custom endpoint, you should set the source as EndpointSourceCustom.
- // If source is not provided when providing a custom endpoint, the SDK may not
- // perform required host mutations correctly. Source should be used along with
- // HostnameImmutable property as per the usage requirement.
- Source EndpointSource
-}
-
-// EndpointSource is the endpoint source type.
-//
-// Deprecated: The global [Endpoint] structure is deprecated.
-type EndpointSource int
-
-const (
- // EndpointSourceServiceMetadata denotes service modeled endpoint metadata is used as Endpoint Source.
- EndpointSourceServiceMetadata EndpointSource = iota
-
- // EndpointSourceCustom denotes endpoint is a custom endpoint. This source should be used when
- // user provides a custom endpoint to be used by the SDK.
- EndpointSourceCustom
-)
-
-// EndpointNotFoundError is a sentinel error to indicate that the
-// EndpointResolver implementation was unable to resolve an endpoint for the
-// given service and region. Resolvers should use this to indicate that an API
-// client should fallback and attempt to use it's internal default resolver to
-// resolve the endpoint.
-type EndpointNotFoundError struct {
- Err error
-}
-
-// Error is the error message.
-func (e *EndpointNotFoundError) Error() string {
- return fmt.Sprintf("endpoint not found, %v", e.Err)
-}
-
-// Unwrap returns the underlying error.
-func (e *EndpointNotFoundError) Unwrap() error {
- return e.Err
-}
-
-// EndpointResolver is an endpoint resolver that can be used to provide or
-// override an endpoint for the given service and region. API clients will
-// attempt to use the EndpointResolver first to resolve an endpoint if
-// available. If the EndpointResolver returns an EndpointNotFoundError error,
-// API clients will fallback to attempting to resolve the endpoint using its
-// internal default endpoint resolver.
-//
-// Deprecated: The global endpoint resolution interface is deprecated. The API
-// for endpoint resolution is now unique to each service and is set via the
-// EndpointResolverV2 field on service client options. Setting a value for
-// EndpointResolver on aws.Config or service client options will prevent you
-// from using any endpoint-related service features released after the
-// introduction of EndpointResolverV2. You may also encounter broken or
-// unexpected behavior when using the old global interface with services that
-// use many endpoint-related customizations such as S3.
-type EndpointResolver interface {
- ResolveEndpoint(service, region string) (Endpoint, error)
-}
-
-// EndpointResolverFunc wraps a function to satisfy the EndpointResolver interface.
-//
-// Deprecated: The global endpoint resolution interface is deprecated. See
-// deprecation docs on [EndpointResolver].
-type EndpointResolverFunc func(service, region string) (Endpoint, error)
-
-// ResolveEndpoint calls the wrapped function and returns the results.
-func (e EndpointResolverFunc) ResolveEndpoint(service, region string) (Endpoint, error) {
- return e(service, region)
-}
-
-// EndpointResolverWithOptions is an endpoint resolver that can be used to provide or
-// override an endpoint for the given service, region, and the service client's EndpointOptions. API clients will
-// attempt to use the EndpointResolverWithOptions first to resolve an endpoint if
-// available. If the EndpointResolverWithOptions returns an EndpointNotFoundError error,
-// API clients will fallback to attempting to resolve the endpoint using its
-// internal default endpoint resolver.
-//
-// Deprecated: The global endpoint resolution interface is deprecated. See
-// deprecation docs on [EndpointResolver].
-type EndpointResolverWithOptions interface {
- ResolveEndpoint(service, region string, options ...interface{}) (Endpoint, error)
-}
-
-// EndpointResolverWithOptionsFunc wraps a function to satisfy the EndpointResolverWithOptions interface.
-//
-// Deprecated: The global endpoint resolution interface is deprecated. See
-// deprecation docs on [EndpointResolver].
-type EndpointResolverWithOptionsFunc func(service, region string, options ...interface{}) (Endpoint, error)
-
-// ResolveEndpoint calls the wrapped function and returns the results.
-func (e EndpointResolverWithOptionsFunc) ResolveEndpoint(service, region string, options ...interface{}) (Endpoint, error) {
- return e(service, region, options...)
-}
-
-// GetDisableHTTPS takes a service's EndpointResolverOptions and returns the DisableHTTPS value.
-// Returns boolean false if the provided options does not have a method to retrieve the DisableHTTPS.
-func GetDisableHTTPS(options ...interface{}) (value bool, found bool) {
- type iface interface {
- GetDisableHTTPS() bool
- }
- for _, option := range options {
- if i, ok := option.(iface); ok {
- value = i.GetDisableHTTPS()
- found = true
- break
- }
- }
- return value, found
-}
-
-// GetResolvedRegion takes a service's EndpointResolverOptions and returns the ResolvedRegion value.
-// Returns boolean false if the provided options does not have a method to retrieve the ResolvedRegion.
-func GetResolvedRegion(options ...interface{}) (value string, found bool) {
- type iface interface {
- GetResolvedRegion() string
- }
- for _, option := range options {
- if i, ok := option.(iface); ok {
- value = i.GetResolvedRegion()
- found = true
- break
- }
- }
- return value, found
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/errors.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/errors.go
deleted file mode 100644
index f390a08f9..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/errors.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package aws
-
-// MissingRegionError is an error that is returned if region configuration
-// value was not found.
-type MissingRegionError struct{}
-
-func (*MissingRegionError) Error() string {
- return "an AWS region is required, but was not found"
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/from_ptr.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/from_ptr.go
deleted file mode 100644
index 2394418e9..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/from_ptr.go
+++ /dev/null
@@ -1,365 +0,0 @@
-// Code generated by aws/generate.go DO NOT EDIT.
-
-package aws
-
-import (
- "github.com/aws/smithy-go/ptr"
- "time"
-)
-
-// ToBool returns bool value dereferenced if the passed
-// in pointer was not nil. Returns a bool zero value if the
-// pointer was nil.
-func ToBool(p *bool) (v bool) {
- return ptr.ToBool(p)
-}
-
-// ToBoolSlice returns a slice of bool values, that are
-// dereferenced if the passed in pointer was not nil. Returns a bool
-// zero value if the pointer was nil.
-func ToBoolSlice(vs []*bool) []bool {
- return ptr.ToBoolSlice(vs)
-}
-
-// ToBoolMap returns a map of bool values, that are
-// dereferenced if the passed in pointer was not nil. The bool
-// zero value is used if the pointer was nil.
-func ToBoolMap(vs map[string]*bool) map[string]bool {
- return ptr.ToBoolMap(vs)
-}
-
-// ToByte returns byte value dereferenced if the passed
-// in pointer was not nil. Returns a byte zero value if the
-// pointer was nil.
-func ToByte(p *byte) (v byte) {
- return ptr.ToByte(p)
-}
-
-// ToByteSlice returns a slice of byte values, that are
-// dereferenced if the passed in pointer was not nil. Returns a byte
-// zero value if the pointer was nil.
-func ToByteSlice(vs []*byte) []byte {
- return ptr.ToByteSlice(vs)
-}
-
-// ToByteMap returns a map of byte values, that are
-// dereferenced if the passed in pointer was not nil. The byte
-// zero value is used if the pointer was nil.
-func ToByteMap(vs map[string]*byte) map[string]byte {
- return ptr.ToByteMap(vs)
-}
-
-// ToString returns string value dereferenced if the passed
-// in pointer was not nil. Returns a string zero value if the
-// pointer was nil.
-func ToString(p *string) (v string) {
- return ptr.ToString(p)
-}
-
-// ToStringSlice returns a slice of string values, that are
-// dereferenced if the passed in pointer was not nil. Returns a string
-// zero value if the pointer was nil.
-func ToStringSlice(vs []*string) []string {
- return ptr.ToStringSlice(vs)
-}
-
-// ToStringMap returns a map of string values, that are
-// dereferenced if the passed in pointer was not nil. The string
-// zero value is used if the pointer was nil.
-func ToStringMap(vs map[string]*string) map[string]string {
- return ptr.ToStringMap(vs)
-}
-
-// ToInt returns int value dereferenced if the passed
-// in pointer was not nil. Returns a int zero value if the
-// pointer was nil.
-func ToInt(p *int) (v int) {
- return ptr.ToInt(p)
-}
-
-// ToIntSlice returns a slice of int values, that are
-// dereferenced if the passed in pointer was not nil. Returns a int
-// zero value if the pointer was nil.
-func ToIntSlice(vs []*int) []int {
- return ptr.ToIntSlice(vs)
-}
-
-// ToIntMap returns a map of int values, that are
-// dereferenced if the passed in pointer was not nil. The int
-// zero value is used if the pointer was nil.
-func ToIntMap(vs map[string]*int) map[string]int {
- return ptr.ToIntMap(vs)
-}
-
-// ToInt8 returns int8 value dereferenced if the passed
-// in pointer was not nil. Returns a int8 zero value if the
-// pointer was nil.
-func ToInt8(p *int8) (v int8) {
- return ptr.ToInt8(p)
-}
-
-// ToInt8Slice returns a slice of int8 values, that are
-// dereferenced if the passed in pointer was not nil. Returns a int8
-// zero value if the pointer was nil.
-func ToInt8Slice(vs []*int8) []int8 {
- return ptr.ToInt8Slice(vs)
-}
-
-// ToInt8Map returns a map of int8 values, that are
-// dereferenced if the passed in pointer was not nil. The int8
-// zero value is used if the pointer was nil.
-func ToInt8Map(vs map[string]*int8) map[string]int8 {
- return ptr.ToInt8Map(vs)
-}
-
-// ToInt16 returns int16 value dereferenced if the passed
-// in pointer was not nil. Returns a int16 zero value if the
-// pointer was nil.
-func ToInt16(p *int16) (v int16) {
- return ptr.ToInt16(p)
-}
-
-// ToInt16Slice returns a slice of int16 values, that are
-// dereferenced if the passed in pointer was not nil. Returns a int16
-// zero value if the pointer was nil.
-func ToInt16Slice(vs []*int16) []int16 {
- return ptr.ToInt16Slice(vs)
-}
-
-// ToInt16Map returns a map of int16 values, that are
-// dereferenced if the passed in pointer was not nil. The int16
-// zero value is used if the pointer was nil.
-func ToInt16Map(vs map[string]*int16) map[string]int16 {
- return ptr.ToInt16Map(vs)
-}
-
-// ToInt32 returns int32 value dereferenced if the passed
-// in pointer was not nil. Returns a int32 zero value if the
-// pointer was nil.
-func ToInt32(p *int32) (v int32) {
- return ptr.ToInt32(p)
-}
-
-// ToInt32Slice returns a slice of int32 values, that are
-// dereferenced if the passed in pointer was not nil. Returns a int32
-// zero value if the pointer was nil.
-func ToInt32Slice(vs []*int32) []int32 {
- return ptr.ToInt32Slice(vs)
-}
-
-// ToInt32Map returns a map of int32 values, that are
-// dereferenced if the passed in pointer was not nil. The int32
-// zero value is used if the pointer was nil.
-func ToInt32Map(vs map[string]*int32) map[string]int32 {
- return ptr.ToInt32Map(vs)
-}
-
-// ToInt64 returns int64 value dereferenced if the passed
-// in pointer was not nil. Returns a int64 zero value if the
-// pointer was nil.
-func ToInt64(p *int64) (v int64) {
- return ptr.ToInt64(p)
-}
-
-// ToInt64Slice returns a slice of int64 values, that are
-// dereferenced if the passed in pointer was not nil. Returns a int64
-// zero value if the pointer was nil.
-func ToInt64Slice(vs []*int64) []int64 {
- return ptr.ToInt64Slice(vs)
-}
-
-// ToInt64Map returns a map of int64 values, that are
-// dereferenced if the passed in pointer was not nil. The int64
-// zero value is used if the pointer was nil.
-func ToInt64Map(vs map[string]*int64) map[string]int64 {
- return ptr.ToInt64Map(vs)
-}
-
-// ToUint returns uint value dereferenced if the passed
-// in pointer was not nil. Returns a uint zero value if the
-// pointer was nil.
-func ToUint(p *uint) (v uint) {
- return ptr.ToUint(p)
-}
-
-// ToUintSlice returns a slice of uint values, that are
-// dereferenced if the passed in pointer was not nil. Returns a uint
-// zero value if the pointer was nil.
-func ToUintSlice(vs []*uint) []uint {
- return ptr.ToUintSlice(vs)
-}
-
-// ToUintMap returns a map of uint values, that are
-// dereferenced if the passed in pointer was not nil. The uint
-// zero value is used if the pointer was nil.
-func ToUintMap(vs map[string]*uint) map[string]uint {
- return ptr.ToUintMap(vs)
-}
-
-// ToUint8 returns uint8 value dereferenced if the passed
-// in pointer was not nil. Returns a uint8 zero value if the
-// pointer was nil.
-func ToUint8(p *uint8) (v uint8) {
- return ptr.ToUint8(p)
-}
-
-// ToUint8Slice returns a slice of uint8 values, that are
-// dereferenced if the passed in pointer was not nil. Returns a uint8
-// zero value if the pointer was nil.
-func ToUint8Slice(vs []*uint8) []uint8 {
- return ptr.ToUint8Slice(vs)
-}
-
-// ToUint8Map returns a map of uint8 values, that are
-// dereferenced if the passed in pointer was not nil. The uint8
-// zero value is used if the pointer was nil.
-func ToUint8Map(vs map[string]*uint8) map[string]uint8 {
- return ptr.ToUint8Map(vs)
-}
-
-// ToUint16 returns uint16 value dereferenced if the passed
-// in pointer was not nil. Returns a uint16 zero value if the
-// pointer was nil.
-func ToUint16(p *uint16) (v uint16) {
- return ptr.ToUint16(p)
-}
-
-// ToUint16Slice returns a slice of uint16 values, that are
-// dereferenced if the passed in pointer was not nil. Returns a uint16
-// zero value if the pointer was nil.
-func ToUint16Slice(vs []*uint16) []uint16 {
- return ptr.ToUint16Slice(vs)
-}
-
-// ToUint16Map returns a map of uint16 values, that are
-// dereferenced if the passed in pointer was not nil. The uint16
-// zero value is used if the pointer was nil.
-func ToUint16Map(vs map[string]*uint16) map[string]uint16 {
- return ptr.ToUint16Map(vs)
-}
-
-// ToUint32 returns uint32 value dereferenced if the passed
-// in pointer was not nil. Returns a uint32 zero value if the
-// pointer was nil.
-func ToUint32(p *uint32) (v uint32) {
- return ptr.ToUint32(p)
-}
-
-// ToUint32Slice returns a slice of uint32 values, that are
-// dereferenced if the passed in pointer was not nil. Returns a uint32
-// zero value if the pointer was nil.
-func ToUint32Slice(vs []*uint32) []uint32 {
- return ptr.ToUint32Slice(vs)
-}
-
-// ToUint32Map returns a map of uint32 values, that are
-// dereferenced if the passed in pointer was not nil. The uint32
-// zero value is used if the pointer was nil.
-func ToUint32Map(vs map[string]*uint32) map[string]uint32 {
- return ptr.ToUint32Map(vs)
-}
-
-// ToUint64 returns uint64 value dereferenced if the passed
-// in pointer was not nil. Returns a uint64 zero value if the
-// pointer was nil.
-func ToUint64(p *uint64) (v uint64) {
- return ptr.ToUint64(p)
-}
-
-// ToUint64Slice returns a slice of uint64 values, that are
-// dereferenced if the passed in pointer was not nil. Returns a uint64
-// zero value if the pointer was nil.
-func ToUint64Slice(vs []*uint64) []uint64 {
- return ptr.ToUint64Slice(vs)
-}
-
-// ToUint64Map returns a map of uint64 values, that are
-// dereferenced if the passed in pointer was not nil. The uint64
-// zero value is used if the pointer was nil.
-func ToUint64Map(vs map[string]*uint64) map[string]uint64 {
- return ptr.ToUint64Map(vs)
-}
-
-// ToFloat32 returns float32 value dereferenced if the passed
-// in pointer was not nil. Returns a float32 zero value if the
-// pointer was nil.
-func ToFloat32(p *float32) (v float32) {
- return ptr.ToFloat32(p)
-}
-
-// ToFloat32Slice returns a slice of float32 values, that are
-// dereferenced if the passed in pointer was not nil. Returns a float32
-// zero value if the pointer was nil.
-func ToFloat32Slice(vs []*float32) []float32 {
- return ptr.ToFloat32Slice(vs)
-}
-
-// ToFloat32Map returns a map of float32 values, that are
-// dereferenced if the passed in pointer was not nil. The float32
-// zero value is used if the pointer was nil.
-func ToFloat32Map(vs map[string]*float32) map[string]float32 {
- return ptr.ToFloat32Map(vs)
-}
-
-// ToFloat64 returns float64 value dereferenced if the passed
-// in pointer was not nil. Returns a float64 zero value if the
-// pointer was nil.
-func ToFloat64(p *float64) (v float64) {
- return ptr.ToFloat64(p)
-}
-
-// ToFloat64Slice returns a slice of float64 values, that are
-// dereferenced if the passed in pointer was not nil. Returns a float64
-// zero value if the pointer was nil.
-func ToFloat64Slice(vs []*float64) []float64 {
- return ptr.ToFloat64Slice(vs)
-}
-
-// ToFloat64Map returns a map of float64 values, that are
-// dereferenced if the passed in pointer was not nil. The float64
-// zero value is used if the pointer was nil.
-func ToFloat64Map(vs map[string]*float64) map[string]float64 {
- return ptr.ToFloat64Map(vs)
-}
-
-// ToTime returns time.Time value dereferenced if the passed
-// in pointer was not nil. Returns a time.Time zero value if the
-// pointer was nil.
-func ToTime(p *time.Time) (v time.Time) {
- return ptr.ToTime(p)
-}
-
-// ToTimeSlice returns a slice of time.Time values, that are
-// dereferenced if the passed in pointer was not nil. Returns a time.Time
-// zero value if the pointer was nil.
-func ToTimeSlice(vs []*time.Time) []time.Time {
- return ptr.ToTimeSlice(vs)
-}
-
-// ToTimeMap returns a map of time.Time values, that are
-// dereferenced if the passed in pointer was not nil. The time.Time
-// zero value is used if the pointer was nil.
-func ToTimeMap(vs map[string]*time.Time) map[string]time.Time {
- return ptr.ToTimeMap(vs)
-}
-
-// ToDuration returns time.Duration value dereferenced if the passed
-// in pointer was not nil. Returns a time.Duration zero value if the
-// pointer was nil.
-func ToDuration(p *time.Duration) (v time.Duration) {
- return ptr.ToDuration(p)
-}
-
-// ToDurationSlice returns a slice of time.Duration values, that are
-// dereferenced if the passed in pointer was not nil. Returns a time.Duration
-// zero value if the pointer was nil.
-func ToDurationSlice(vs []*time.Duration) []time.Duration {
- return ptr.ToDurationSlice(vs)
-}
-
-// ToDurationMap returns a map of time.Duration values, that are
-// dereferenced if the passed in pointer was not nil. The time.Duration
-// zero value is used if the pointer was nil.
-func ToDurationMap(vs map[string]*time.Duration) map[string]time.Duration {
- return ptr.ToDurationMap(vs)
-}
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
deleted file mode 100644
index 1820ff0fb..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/go_module_metadata.go
+++ /dev/null
@@ -1,6 +0,0 @@
-// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
-
-package aws
-
-// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.39.2"
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/logging.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/logging.go
deleted file mode 100644
index 91c94d987..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/logging.go
+++ /dev/null
@@ -1,119 +0,0 @@
-// Code generated by aws/logging_generate.go DO NOT EDIT.
-
-package aws
-
-// ClientLogMode represents the logging mode of SDK clients. The client logging mode is a bit-field where
-// each bit is a flag that describes the logging behavior for one or more client components.
-// The entire 64-bit group is reserved for later expansion by the SDK.
-//
-// Example: Setting ClientLogMode to enable logging of retries and requests
-//
-// clientLogMode := aws.LogRetries | aws.LogRequest
-//
-// Example: Adding an additional log mode to an existing ClientLogMode value
-//
-// clientLogMode |= aws.LogResponse
-type ClientLogMode uint64
-
-// Supported ClientLogMode bits that can be configured to toggle logging of specific SDK events.
-const (
- LogSigning ClientLogMode = 1 << (64 - 1 - iota)
- LogRetries
- LogRequest
- LogRequestWithBody
- LogResponse
- LogResponseWithBody
- LogDeprecatedUsage
- LogRequestEventMessage
- LogResponseEventMessage
-)
-
-// IsSigning returns whether the Signing logging mode bit is set
-func (m ClientLogMode) IsSigning() bool {
- return m&LogSigning != 0
-}
-
-// IsRetries returns whether the Retries logging mode bit is set
-func (m ClientLogMode) IsRetries() bool {
- return m&LogRetries != 0
-}
-
-// IsRequest returns whether the Request logging mode bit is set
-func (m ClientLogMode) IsRequest() bool {
- return m&LogRequest != 0
-}
-
-// IsRequestWithBody returns whether the RequestWithBody logging mode bit is set
-func (m ClientLogMode) IsRequestWithBody() bool {
- return m&LogRequestWithBody != 0
-}
-
-// IsResponse returns whether the Response logging mode bit is set
-func (m ClientLogMode) IsResponse() bool {
- return m&LogResponse != 0
-}
-
-// IsResponseWithBody returns whether the ResponseWithBody logging mode bit is set
-func (m ClientLogMode) IsResponseWithBody() bool {
- return m&LogResponseWithBody != 0
-}
-
-// IsDeprecatedUsage returns whether the DeprecatedUsage logging mode bit is set
-func (m ClientLogMode) IsDeprecatedUsage() bool {
- return m&LogDeprecatedUsage != 0
-}
-
-// IsRequestEventMessage returns whether the RequestEventMessage logging mode bit is set
-func (m ClientLogMode) IsRequestEventMessage() bool {
- return m&LogRequestEventMessage != 0
-}
-
-// IsResponseEventMessage returns whether the ResponseEventMessage logging mode bit is set
-func (m ClientLogMode) IsResponseEventMessage() bool {
- return m&LogResponseEventMessage != 0
-}
-
-// ClearSigning clears the Signing logging mode bit
-func (m *ClientLogMode) ClearSigning() {
- *m &^= LogSigning
-}
-
-// ClearRetries clears the Retries logging mode bit
-func (m *ClientLogMode) ClearRetries() {
- *m &^= LogRetries
-}
-
-// ClearRequest clears the Request logging mode bit
-func (m *ClientLogMode) ClearRequest() {
- *m &^= LogRequest
-}
-
-// ClearRequestWithBody clears the RequestWithBody logging mode bit
-func (m *ClientLogMode) ClearRequestWithBody() {
- *m &^= LogRequestWithBody
-}
-
-// ClearResponse clears the Response logging mode bit
-func (m *ClientLogMode) ClearResponse() {
- *m &^= LogResponse
-}
-
-// ClearResponseWithBody clears the ResponseWithBody logging mode bit
-func (m *ClientLogMode) ClearResponseWithBody() {
- *m &^= LogResponseWithBody
-}
-
-// ClearDeprecatedUsage clears the DeprecatedUsage logging mode bit
-func (m *ClientLogMode) ClearDeprecatedUsage() {
- *m &^= LogDeprecatedUsage
-}
-
-// ClearRequestEventMessage clears the RequestEventMessage logging mode bit
-func (m *ClientLogMode) ClearRequestEventMessage() {
- *m &^= LogRequestEventMessage
-}
-
-// ClearResponseEventMessage clears the ResponseEventMessage logging mode bit
-func (m *ClientLogMode) ClearResponseEventMessage() {
- *m &^= LogResponseEventMessage
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/logging_generate.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/logging_generate.go
deleted file mode 100644
index 6ecc2231a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/logging_generate.go
+++ /dev/null
@@ -1,95 +0,0 @@
-//go:build clientlogmode
-// +build clientlogmode
-
-package main
-
-import (
- "fmt"
- "log"
- "os"
- "strings"
- "text/template"
-)
-
-var config = struct {
- ModeBits []string
-}{
- // Items should be appended only to keep bit-flag positions stable
- ModeBits: []string{
- "Signing",
- "Retries",
- "Request",
- "RequestWithBody",
- "Response",
- "ResponseWithBody",
- "DeprecatedUsage",
- "RequestEventMessage",
- "ResponseEventMessage",
- },
-}
-
-func bitName(name string) string {
- return strings.ToUpper(name[:1]) + name[1:]
-}
-
-var tmpl = template.Must(template.New("ClientLogMode").Funcs(map[string]interface{}{
- "symbolName": func(name string) string {
- return "Log" + bitName(name)
- },
- "bitName": bitName,
-}).Parse(`// Code generated by aws/logging_generate.go DO NOT EDIT.
-
-package aws
-
-// ClientLogMode represents the logging mode of SDK clients. The client logging mode is a bit-field where
-// each bit is a flag that describes the logging behavior for one or more client components.
-// The entire 64-bit group is reserved for later expansion by the SDK.
-//
-// Example: Setting ClientLogMode to enable logging of retries and requests
-// clientLogMode := aws.LogRetries | aws.LogRequest
-//
-// Example: Adding an additional log mode to an existing ClientLogMode value
-// clientLogMode |= aws.LogResponse
-type ClientLogMode uint64
-
-// Supported ClientLogMode bits that can be configured to toggle logging of specific SDK events.
-const (
-{{- range $index, $field := .ModeBits }}
- {{ (symbolName $field) }}{{- if (eq 0 $index) }} ClientLogMode = 1 << (64 - 1 - iota){{- end }}
-{{- end }}
-)
-{{ range $_, $field := .ModeBits }}
-// Is{{- bitName $field }} returns whether the {{ bitName $field }} logging mode bit is set
-func (m ClientLogMode) Is{{- bitName $field }}() bool {
- return m&{{- (symbolName $field) }} != 0
-}
-{{ end }}
-{{- range $_, $field := .ModeBits }}
-// Clear{{- bitName $field }} clears the {{ bitName $field }} logging mode bit
-func (m *ClientLogMode) Clear{{- bitName $field }}() {
- *m &^= {{ (symbolName $field) }}
-}
-{{ end -}}
-`))
-
-func main() {
- uniqueBitFields := make(map[string]struct{})
-
- for _, bitName := range config.ModeBits {
- if _, ok := uniqueBitFields[strings.ToLower(bitName)]; ok {
- panic(fmt.Sprintf("duplicate bit field: %s", bitName))
- }
- uniqueBitFields[bitName] = struct{}{}
- }
-
- file, err := os.Create("logging.go")
- if err != nil {
- log.Fatal(err)
- }
- defer file.Close()
-
- err = tmpl.Execute(file, config)
- if err != nil {
- log.Fatal(err)
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/metadata.go
deleted file mode 100644
index d66f0960a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/metadata.go
+++ /dev/null
@@ -1,213 +0,0 @@
-package middleware
-
-import (
- "context"
-
- "github.com/aws/aws-sdk-go-v2/aws"
-
- "github.com/aws/smithy-go/middleware"
-)
-
-// RegisterServiceMetadata registers metadata about the service and operation into the middleware context
-// so that it is available at runtime for other middleware to introspect.
-type RegisterServiceMetadata struct {
- ServiceID string
- SigningName string
- Region string
- OperationName string
-}
-
-// ID returns the middleware identifier.
-func (s *RegisterServiceMetadata) ID() string {
- return "RegisterServiceMetadata"
-}
-
-// HandleInitialize registers service metadata information into the middleware context, allowing for introspection.
-func (s RegisterServiceMetadata) HandleInitialize(
- ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler,
-) (out middleware.InitializeOutput, metadata middleware.Metadata, err error) {
- if len(s.ServiceID) > 0 {
- ctx = SetServiceID(ctx, s.ServiceID)
- }
- if len(s.SigningName) > 0 {
- ctx = SetSigningName(ctx, s.SigningName)
- }
- if len(s.Region) > 0 {
- ctx = setRegion(ctx, s.Region)
- }
- if len(s.OperationName) > 0 {
- ctx = setOperationName(ctx, s.OperationName)
- }
- return next.HandleInitialize(ctx, in)
-}
-
-// service metadata keys for storing and lookup of runtime stack information.
-type (
- serviceIDKey struct{}
- signingNameKey struct{}
- signingRegionKey struct{}
- regionKey struct{}
- operationNameKey struct{}
- partitionIDKey struct{}
- requiresLegacyEndpointsKey struct{}
-)
-
-// GetServiceID retrieves the service id from the context.
-//
-// Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues
-// to clear all stack values.
-func GetServiceID(ctx context.Context) (v string) {
- v, _ = middleware.GetStackValue(ctx, serviceIDKey{}).(string)
- return v
-}
-
-// GetSigningName retrieves the service signing name from the context.
-//
-// Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues
-// to clear all stack values.
-//
-// Deprecated: This value is unstable. The resolved signing name is available
-// in the signer properties object passed to the signer.
-func GetSigningName(ctx context.Context) (v string) {
- v, _ = middleware.GetStackValue(ctx, signingNameKey{}).(string)
- return v
-}
-
-// GetSigningRegion retrieves the region from the context.
-//
-// Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues
-// to clear all stack values.
-//
-// Deprecated: This value is unstable. The resolved signing region is available
-// in the signer properties object passed to the signer.
-func GetSigningRegion(ctx context.Context) (v string) {
- v, _ = middleware.GetStackValue(ctx, signingRegionKey{}).(string)
- return v
-}
-
-// GetRegion retrieves the endpoint region from the context.
-//
-// Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues
-// to clear all stack values.
-func GetRegion(ctx context.Context) (v string) {
- v, _ = middleware.GetStackValue(ctx, regionKey{}).(string)
- return v
-}
-
-// GetOperationName retrieves the service operation metadata from the context.
-//
-// Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues
-// to clear all stack values.
-func GetOperationName(ctx context.Context) (v string) {
- v, _ = middleware.GetStackValue(ctx, operationNameKey{}).(string)
- return v
-}
-
-// GetPartitionID retrieves the endpoint partition id from the context.
-//
-// Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues
-// to clear all stack values.
-func GetPartitionID(ctx context.Context) string {
- v, _ := middleware.GetStackValue(ctx, partitionIDKey{}).(string)
- return v
-}
-
-// GetRequiresLegacyEndpoints the flag used to indicate if legacy endpoint
-// customizations need to be executed.
-//
-// Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues
-// to clear all stack values.
-func GetRequiresLegacyEndpoints(ctx context.Context) bool {
- v, _ := middleware.GetStackValue(ctx, requiresLegacyEndpointsKey{}).(bool)
- return v
-}
-
-// SetRequiresLegacyEndpoints set or modifies the flag indicated that
-// legacy endpoint customizations are needed.
-//
-// Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues
-// to clear all stack values.
-func SetRequiresLegacyEndpoints(ctx context.Context, value bool) context.Context {
- return middleware.WithStackValue(ctx, requiresLegacyEndpointsKey{}, value)
-}
-
-// SetSigningName set or modifies the sigv4 or sigv4a signing name on the context.
-//
-// Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues
-// to clear all stack values.
-//
-// Deprecated: This value is unstable. Use WithSigV4SigningName client option
-// funcs instead.
-func SetSigningName(ctx context.Context, value string) context.Context {
- return middleware.WithStackValue(ctx, signingNameKey{}, value)
-}
-
-// SetSigningRegion sets or modifies the region on the context.
-//
-// Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues
-// to clear all stack values.
-//
-// Deprecated: This value is unstable. Use WithSigV4SigningRegion client option
-// funcs instead.
-func SetSigningRegion(ctx context.Context, value string) context.Context {
- return middleware.WithStackValue(ctx, signingRegionKey{}, value)
-}
-
-// SetServiceID sets the service id on the context.
-//
-// Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues
-// to clear all stack values.
-func SetServiceID(ctx context.Context, value string) context.Context {
- return middleware.WithStackValue(ctx, serviceIDKey{}, value)
-}
-
-// setRegion sets the endpoint region on the context.
-//
-// Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues
-// to clear all stack values.
-func setRegion(ctx context.Context, value string) context.Context {
- return middleware.WithStackValue(ctx, regionKey{}, value)
-}
-
-// setOperationName sets the service operation on the context.
-//
-// Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues
-// to clear all stack values.
-func setOperationName(ctx context.Context, value string) context.Context {
- return middleware.WithStackValue(ctx, operationNameKey{}, value)
-}
-
-// SetPartitionID sets the partition id of a resolved region on the context
-//
-// Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues
-// to clear all stack values.
-func SetPartitionID(ctx context.Context, value string) context.Context {
- return middleware.WithStackValue(ctx, partitionIDKey{}, value)
-}
-
-// EndpointSource key
-type endpointSourceKey struct{}
-
-// GetEndpointSource returns an endpoint source if set on context
-func GetEndpointSource(ctx context.Context) (v aws.EndpointSource) {
- v, _ = middleware.GetStackValue(ctx, endpointSourceKey{}).(aws.EndpointSource)
- return v
-}
-
-// SetEndpointSource sets endpoint source on context
-func SetEndpointSource(ctx context.Context, value aws.EndpointSource) context.Context {
- return middleware.WithStackValue(ctx, endpointSourceKey{}, value)
-}
-
-type signingCredentialsKey struct{}
-
-// GetSigningCredentials returns the credentials that were used for signing if set on context.
-func GetSigningCredentials(ctx context.Context) (v aws.Credentials) {
- v, _ = middleware.GetStackValue(ctx, signingCredentialsKey{}).(aws.Credentials)
- return v
-}
-
-// SetSigningCredentials sets the credentails used for signing on the context.
-func SetSigningCredentials(ctx context.Context, value aws.Credentials) context.Context {
- return middleware.WithStackValue(ctx, signingCredentialsKey{}, value)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/middleware.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/middleware.go
deleted file mode 100644
index 6d5f0079c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/middleware.go
+++ /dev/null
@@ -1,168 +0,0 @@
-package middleware
-
-import (
- "context"
- "fmt"
- "time"
-
- "github.com/aws/aws-sdk-go-v2/internal/rand"
- "github.com/aws/aws-sdk-go-v2/internal/sdk"
- "github.com/aws/smithy-go/logging"
- "github.com/aws/smithy-go/middleware"
- smithyrand "github.com/aws/smithy-go/rand"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// ClientRequestID is a Smithy BuildMiddleware that will generate a unique ID for logical API operation
-// invocation.
-type ClientRequestID struct{}
-
-// ID the identifier for the ClientRequestID
-func (r *ClientRequestID) ID() string {
- return "ClientRequestID"
-}
-
-// HandleBuild attaches a unique operation invocation id for the operation to the request
-func (r ClientRequestID) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) (
- out middleware.BuildOutput, metadata middleware.Metadata, err error,
-) {
- req, ok := in.Request.(*smithyhttp.Request)
- if !ok {
- return out, metadata, fmt.Errorf("unknown transport type %T", req)
- }
-
- invocationID, err := smithyrand.NewUUID(rand.Reader).GetUUID()
- if err != nil {
- return out, metadata, err
- }
-
- const invocationIDHeader = "Amz-Sdk-Invocation-Id"
- req.Header[invocationIDHeader] = append(req.Header[invocationIDHeader][:0], invocationID)
-
- return next.HandleBuild(ctx, in)
-}
-
-// RecordResponseTiming records the response timing for the SDK client requests.
-type RecordResponseTiming struct{}
-
-// ID is the middleware identifier
-func (a *RecordResponseTiming) ID() string {
- return "RecordResponseTiming"
-}
-
-// HandleDeserialize calculates response metadata and clock skew
-func (a RecordResponseTiming) 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)
- responseAt := sdk.NowTime()
- setResponseAt(&metadata, responseAt)
-
- var serverTime time.Time
-
- switch resp := out.RawResponse.(type) {
- case *smithyhttp.Response:
- respDateHeader := resp.Header.Get("Date")
- if len(respDateHeader) == 0 {
- break
- }
- var parseErr error
- serverTime, parseErr = smithyhttp.ParseTime(respDateHeader)
- if parseErr != nil {
- logger := middleware.GetLogger(ctx)
- logger.Logf(logging.Warn, "failed to parse response Date header value, got %v",
- parseErr.Error())
- break
- }
- setServerTime(&metadata, serverTime)
- }
-
- if !serverTime.IsZero() {
- attemptSkew := serverTime.Sub(responseAt)
- setAttemptSkew(&metadata, attemptSkew)
- }
-
- return out, metadata, err
-}
-
-type responseAtKey struct{}
-
-// GetResponseAt returns the time response was received at.
-func GetResponseAt(metadata middleware.Metadata) (v time.Time, ok bool) {
- v, ok = metadata.Get(responseAtKey{}).(time.Time)
- return v, ok
-}
-
-// setResponseAt sets the response time on the metadata.
-func setResponseAt(metadata *middleware.Metadata, v time.Time) {
- metadata.Set(responseAtKey{}, v)
-}
-
-type serverTimeKey struct{}
-
-// GetServerTime returns the server time for response.
-func GetServerTime(metadata middleware.Metadata) (v time.Time, ok bool) {
- v, ok = metadata.Get(serverTimeKey{}).(time.Time)
- return v, ok
-}
-
-// setServerTime sets the server time on the metadata.
-func setServerTime(metadata *middleware.Metadata, v time.Time) {
- metadata.Set(serverTimeKey{}, v)
-}
-
-type attemptSkewKey struct{}
-
-// GetAttemptSkew returns Attempt clock skew for response from metadata.
-func GetAttemptSkew(metadata middleware.Metadata) (v time.Duration, ok bool) {
- v, ok = metadata.Get(attemptSkewKey{}).(time.Duration)
- return v, ok
-}
-
-// setAttemptSkew sets the attempt clock skew on the metadata.
-func setAttemptSkew(metadata *middleware.Metadata, v time.Duration) {
- metadata.Set(attemptSkewKey{}, v)
-}
-
-// AddClientRequestIDMiddleware adds ClientRequestID to the middleware stack
-func AddClientRequestIDMiddleware(stack *middleware.Stack) error {
- return stack.Build.Add(&ClientRequestID{}, middleware.After)
-}
-
-// AddRecordResponseTiming adds RecordResponseTiming middleware to the
-// middleware stack.
-func AddRecordResponseTiming(stack *middleware.Stack) error {
- return stack.Deserialize.Add(&RecordResponseTiming{}, middleware.After)
-}
-
-// rawResponseKey is the accessor key used to store and access the
-// raw response within the response metadata.
-type rawResponseKey struct{}
-
-// AddRawResponse middleware adds raw response on to the metadata
-type AddRawResponse struct{}
-
-// ID the identifier for the ClientRequestID
-func (m *AddRawResponse) ID() string {
- return "AddRawResponseToMetadata"
-}
-
-// HandleDeserialize adds raw response on the middleware metadata
-func (m AddRawResponse) 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)
- metadata.Set(rawResponseKey{}, out.RawResponse)
- return out, metadata, err
-}
-
-// AddRawResponseToMetadata adds middleware to the middleware stack that
-// store raw response on to the metadata.
-func AddRawResponseToMetadata(stack *middleware.Stack) error {
- return stack.Deserialize.Add(&AddRawResponse{}, middleware.Before)
-}
-
-// GetRawResponse returns raw response set on metadata
-func GetRawResponse(metadata middleware.Metadata) interface{} {
- return metadata.Get(rawResponseKey{})
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/osname.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/osname.go
deleted file mode 100644
index ba262dadc..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/osname.go
+++ /dev/null
@@ -1,24 +0,0 @@
-//go:build go1.16
-// +build go1.16
-
-package middleware
-
-import "runtime"
-
-func getNormalizedOSName() (os string) {
- switch runtime.GOOS {
- case "android":
- os = "android"
- case "linux":
- os = "linux"
- case "windows":
- os = "windows"
- case "darwin":
- os = "macos"
- case "ios":
- os = "ios"
- default:
- os = "other"
- }
- return os
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/osname_go115.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/osname_go115.go
deleted file mode 100644
index e14a1e4ec..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/osname_go115.go
+++ /dev/null
@@ -1,24 +0,0 @@
-//go:build !go1.16
-// +build !go1.16
-
-package middleware
-
-import "runtime"
-
-func getNormalizedOSName() (os string) {
- switch runtime.GOOS {
- case "android":
- os = "android"
- case "linux":
- os = "linux"
- case "windows":
- os = "windows"
- case "darwin":
- // Due to Apple M1 we can't distinguish between macOS and iOS when GOOS/GOARCH is darwin/amd64
- // For now declare this as "other" until we have a better detection mechanism.
- fallthrough
- default:
- os = "other"
- }
- return os
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/recursion_detection.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/recursion_detection.go
deleted file mode 100644
index 3f6aaf231..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/recursion_detection.go
+++ /dev/null
@@ -1,94 +0,0 @@
-package middleware
-
-import (
- "context"
- "fmt"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "os"
-)
-
-const envAwsLambdaFunctionName = "AWS_LAMBDA_FUNCTION_NAME"
-const envAmznTraceID = "_X_AMZN_TRACE_ID"
-const amznTraceIDHeader = "X-Amzn-Trace-Id"
-
-// AddRecursionDetection adds recursionDetection to the middleware stack
-func AddRecursionDetection(stack *middleware.Stack) error {
- return stack.Build.Add(&RecursionDetection{}, middleware.After)
-}
-
-// RecursionDetection detects Lambda environment and sets its X-Ray trace ID to request header if absent
-// to avoid recursion invocation in Lambda
-type RecursionDetection struct{}
-
-// ID returns the middleware identifier
-func (m *RecursionDetection) ID() string {
- return "RecursionDetection"
-}
-
-// HandleBuild detects Lambda environment and adds its trace ID to request header if absent
-func (m *RecursionDetection) HandleBuild(
- ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler,
-) (
- out middleware.BuildOutput, metadata middleware.Metadata, err error,
-) {
- req, ok := in.Request.(*smithyhttp.Request)
- if !ok {
- return out, metadata, fmt.Errorf("unknown request type %T", req)
- }
-
- _, hasLambdaEnv := os.LookupEnv(envAwsLambdaFunctionName)
- xAmznTraceID, hasTraceID := os.LookupEnv(envAmznTraceID)
- value := req.Header.Get(amznTraceIDHeader)
- // only set the X-Amzn-Trace-Id header when it is not set initially, the
- // current environment is Lambda and the _X_AMZN_TRACE_ID env variable exists
- if value != "" || !hasLambdaEnv || !hasTraceID {
- return next.HandleBuild(ctx, in)
- }
-
- req.Header.Set(amznTraceIDHeader, percentEncode(xAmznTraceID))
- return next.HandleBuild(ctx, in)
-}
-
-func percentEncode(s string) string {
- upperhex := "0123456789ABCDEF"
- hexCount := 0
- for i := 0; i < len(s); i++ {
- c := s[i]
- if shouldEncode(c) {
- hexCount++
- }
- }
-
- if hexCount == 0 {
- return s
- }
-
- required := len(s) + 2*hexCount
- t := make([]byte, required)
- j := 0
- for i := 0; i < len(s); i++ {
- if c := s[i]; shouldEncode(c) {
- t[j] = '%'
- t[j+1] = upperhex[c>>4]
- t[j+2] = upperhex[c&15]
- j += 3
- } else {
- t[j] = c
- j++
- }
- }
- return string(t)
-}
-
-func shouldEncode(c byte) bool {
- if 'a' <= c && c <= 'z' || 'A' <= c && c <= 'Z' || '0' <= c && c <= '9' {
- return false
- }
- switch c {
- case '-', '=', ';', ':', '+', '&', '[', ']', '{', '}', '"', '\'', ',':
- return false
- default:
- return true
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/request_id.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/request_id.go
deleted file mode 100644
index dd3391fe4..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/request_id.go
+++ /dev/null
@@ -1,27 +0,0 @@
-package middleware
-
-import (
- "github.com/aws/smithy-go/middleware"
-)
-
-// requestIDKey is used to retrieve request id from response metadata
-type requestIDKey struct{}
-
-// SetRequestIDMetadata sets the provided request id over middleware metadata
-func SetRequestIDMetadata(metadata *middleware.Metadata, id string) {
- metadata.Set(requestIDKey{}, id)
-}
-
-// GetRequestIDMetadata retrieves the request id from middleware metadata
-// returns string and bool indicating value of request id, whether request id was set.
-func GetRequestIDMetadata(metadata middleware.Metadata) (string, bool) {
- if !metadata.Has(requestIDKey{}) {
- return "", false
- }
-
- v, ok := metadata.Get(requestIDKey{}).(string)
- if !ok {
- return "", true
- }
- return v, true
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/request_id_retriever.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/request_id_retriever.go
deleted file mode 100644
index 128b60a73..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/request_id_retriever.go
+++ /dev/null
@@ -1,57 +0,0 @@
-package middleware
-
-import (
- "context"
-
- "github.com/aws/smithy-go/middleware"
- "github.com/aws/smithy-go/tracing"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// AddRequestIDRetrieverMiddleware adds request id retriever middleware
-func AddRequestIDRetrieverMiddleware(stack *middleware.Stack) error {
- // add error wrapper middleware before operation deserializers so that it can wrap the error response
- // returned by operation deserializers
- return stack.Deserialize.Insert(&RequestIDRetriever{}, "OperationDeserializer", middleware.Before)
-}
-
-// RequestIDRetriever middleware captures the AWS service request ID from the
-// raw response.
-type RequestIDRetriever struct {
-}
-
-// ID returns the middleware identifier
-func (m *RequestIDRetriever) ID() string {
- return "RequestIDRetriever"
-}
-
-// HandleDeserialize pulls the AWS request ID from the response, storing it in
-// operation metadata.
-func (m *RequestIDRetriever) 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)
-
- resp, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- // No raw response to wrap with.
- return out, metadata, err
- }
-
- // Different header which can map to request id
- requestIDHeaderList := []string{"X-Amzn-Requestid", "X-Amz-RequestId"}
-
- for _, h := range requestIDHeaderList {
- // check for headers known to contain Request id
- if v := resp.Header.Get(h); len(v) != 0 {
- // set reqID on metadata for successful responses.
- SetRequestIDMetadata(&metadata, v)
-
- span, _ := tracing.GetSpan(ctx)
- span.SetProperty("aws.request_id", v)
- break
- }
- }
-
- return out, metadata, err
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/user_agent.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/user_agent.go
deleted file mode 100644
index 3314230fd..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/user_agent.go
+++ /dev/null
@@ -1,393 +0,0 @@
-package middleware
-
-import (
- "context"
- "fmt"
- "os"
- "runtime"
- "sort"
- "strings"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-var languageVersion = strings.TrimPrefix(runtime.Version(), "go")
-
-// SDKAgentKeyType is the metadata type to add to the SDK agent string
-type SDKAgentKeyType int
-
-// The set of valid SDKAgentKeyType constants. If an unknown value is assigned for SDKAgentKeyType it will
-// be mapped to AdditionalMetadata.
-const (
- _ SDKAgentKeyType = iota
- APIMetadata
- OperatingSystemMetadata
- LanguageMetadata
- EnvironmentMetadata
- FeatureMetadata
- ConfigMetadata
- FrameworkMetadata
- AdditionalMetadata
- ApplicationIdentifier
- FeatureMetadata2
-)
-
-// Hardcoded value to specify which version of the user agent we're using
-const uaMetadata = "ua/2.1"
-
-func (k SDKAgentKeyType) string() string {
- switch k {
- case APIMetadata:
- return "api"
- case OperatingSystemMetadata:
- return "os"
- case LanguageMetadata:
- return "lang"
- case EnvironmentMetadata:
- return "exec-env"
- case FeatureMetadata:
- return "ft"
- case ConfigMetadata:
- return "cfg"
- case FrameworkMetadata:
- return "lib"
- case ApplicationIdentifier:
- return "app"
- case FeatureMetadata2:
- return "m"
- case AdditionalMetadata:
- fallthrough
- default:
- return "md"
- }
-}
-
-const execEnvVar = `AWS_EXECUTION_ENV`
-
-var validChars = map[rune]bool{
- '!': true, '#': true, '$': true, '%': true, '&': true, '\'': true, '*': true, '+': true,
- '-': true, '.': true, '^': true, '_': true, '`': true, '|': true, '~': true,
-}
-
-// UserAgentFeature enumerates tracked SDK features.
-type UserAgentFeature string
-
-// Enumerates UserAgentFeature.
-const (
- UserAgentFeatureResourceModel UserAgentFeature = "A" // n/a (we don't generate separate resource types)
-
- UserAgentFeatureWaiter = "B"
- UserAgentFeaturePaginator = "C"
-
- UserAgentFeatureRetryModeLegacy = "D" // n/a (equivalent to standard)
- UserAgentFeatureRetryModeStandard = "E"
- UserAgentFeatureRetryModeAdaptive = "F"
-
- UserAgentFeatureS3Transfer = "G"
- UserAgentFeatureS3CryptoV1N = "H" // n/a (crypto client is external)
- UserAgentFeatureS3CryptoV2 = "I" // n/a
- UserAgentFeatureS3ExpressBucket = "J"
- UserAgentFeatureS3AccessGrants = "K" // not yet implemented
-
- UserAgentFeatureGZIPRequestCompression = "L"
-
- UserAgentFeatureProtocolRPCV2CBOR = "M"
-
- UserAgentFeatureAccountIDEndpoint = "O" // DO NOT IMPLEMENT: rules output is not currently defined. SDKs should not parse endpoints for feature information.
- UserAgentFeatureAccountIDModePreferred = "P"
- UserAgentFeatureAccountIDModeDisabled = "Q"
- UserAgentFeatureAccountIDModeRequired = "R"
-
- UserAgentFeatureRequestChecksumCRC32 = "U"
- UserAgentFeatureRequestChecksumCRC32C = "V"
- UserAgentFeatureRequestChecksumCRC64 = "W"
- UserAgentFeatureRequestChecksumSHA1 = "X"
- UserAgentFeatureRequestChecksumSHA256 = "Y"
- UserAgentFeatureRequestChecksumWhenSupported = "Z"
- UserAgentFeatureRequestChecksumWhenRequired = "a"
- UserAgentFeatureResponseChecksumWhenSupported = "b"
- UserAgentFeatureResponseChecksumWhenRequired = "c"
-
- UserAgentFeatureDynamoDBUserAgent = "d" // not yet implemented
-
- UserAgentFeatureCredentialsCode = "e"
- UserAgentFeatureCredentialsJvmSystemProperties = "f" // n/a (this is not a JVM sdk)
- UserAgentFeatureCredentialsEnvVars = "g"
- UserAgentFeatureCredentialsEnvVarsStsWebIDToken = "h"
- UserAgentFeatureCredentialsStsAssumeRole = "i"
- UserAgentFeatureCredentialsStsAssumeRoleSaml = "j" // not yet implemented
- UserAgentFeatureCredentialsStsAssumeRoleWebID = "k"
- UserAgentFeatureCredentialsStsFederationToken = "l" // not yet implemented
- UserAgentFeatureCredentialsStsSessionToken = "m" // not yet implemented
- UserAgentFeatureCredentialsProfile = "n"
- UserAgentFeatureCredentialsProfileSourceProfile = "o"
- UserAgentFeatureCredentialsProfileNamedProvider = "p"
- UserAgentFeatureCredentialsProfileStsWebIDToken = "q"
- UserAgentFeatureCredentialsProfileSso = "r"
- UserAgentFeatureCredentialsSso = "s"
- UserAgentFeatureCredentialsProfileSsoLegacy = "t"
- UserAgentFeatureCredentialsSsoLegacy = "u"
- UserAgentFeatureCredentialsProfileProcess = "v"
- UserAgentFeatureCredentialsProcess = "w"
- UserAgentFeatureCredentialsBoto2ConfigFile = "x" // n/a (this is not boto/Python)
- UserAgentFeatureCredentialsAwsSdkStore = "y" // n/a (this is used by .NET based sdk)
- UserAgentFeatureCredentialsHTTP = "z"
- UserAgentFeatureCredentialsIMDS = "0"
-
- UserAgentFeatureBearerServiceEnvVars = "3"
-)
-
-var credentialSourceToFeature = map[aws.CredentialSource]UserAgentFeature{
- aws.CredentialSourceCode: UserAgentFeatureCredentialsCode,
- aws.CredentialSourceEnvVars: UserAgentFeatureCredentialsEnvVars,
- aws.CredentialSourceEnvVarsSTSWebIDToken: UserAgentFeatureCredentialsEnvVarsStsWebIDToken,
- aws.CredentialSourceSTSAssumeRole: UserAgentFeatureCredentialsStsAssumeRole,
- aws.CredentialSourceSTSAssumeRoleSaml: UserAgentFeatureCredentialsStsAssumeRoleSaml,
- aws.CredentialSourceSTSAssumeRoleWebID: UserAgentFeatureCredentialsStsAssumeRoleWebID,
- aws.CredentialSourceSTSFederationToken: UserAgentFeatureCredentialsStsFederationToken,
- aws.CredentialSourceSTSSessionToken: UserAgentFeatureCredentialsStsSessionToken,
- aws.CredentialSourceProfile: UserAgentFeatureCredentialsProfile,
- aws.CredentialSourceProfileSourceProfile: UserAgentFeatureCredentialsProfileSourceProfile,
- aws.CredentialSourceProfileNamedProvider: UserAgentFeatureCredentialsProfileNamedProvider,
- aws.CredentialSourceProfileSTSWebIDToken: UserAgentFeatureCredentialsProfileStsWebIDToken,
- aws.CredentialSourceProfileSSO: UserAgentFeatureCredentialsProfileSso,
- aws.CredentialSourceSSO: UserAgentFeatureCredentialsSso,
- aws.CredentialSourceProfileSSOLegacy: UserAgentFeatureCredentialsProfileSsoLegacy,
- aws.CredentialSourceSSOLegacy: UserAgentFeatureCredentialsSsoLegacy,
- aws.CredentialSourceProfileProcess: UserAgentFeatureCredentialsProfileProcess,
- aws.CredentialSourceProcess: UserAgentFeatureCredentialsProcess,
- aws.CredentialSourceHTTP: UserAgentFeatureCredentialsHTTP,
- aws.CredentialSourceIMDS: UserAgentFeatureCredentialsIMDS,
-}
-
-// RequestUserAgent is a build middleware that set the User-Agent for the request.
-type RequestUserAgent struct {
- sdkAgent, userAgent *smithyhttp.UserAgentBuilder
- features map[UserAgentFeature]struct{}
-}
-
-// NewRequestUserAgent returns a new requestUserAgent which will set the User-Agent and X-Amz-User-Agent for the
-// request.
-//
-// User-Agent example:
-//
-// aws-sdk-go-v2/1.2.3
-//
-// X-Amz-User-Agent example:
-//
-// aws-sdk-go-v2/1.2.3 md/GOOS/linux md/GOARCH/amd64 lang/go/1.15
-func NewRequestUserAgent() *RequestUserAgent {
- userAgent, sdkAgent := smithyhttp.NewUserAgentBuilder(), smithyhttp.NewUserAgentBuilder()
- addProductName(userAgent)
- addUserAgentMetadata(userAgent)
- addProductName(sdkAgent)
-
- r := &RequestUserAgent{
- sdkAgent: sdkAgent,
- userAgent: userAgent,
- features: map[UserAgentFeature]struct{}{},
- }
-
- addSDKMetadata(r)
-
- return r
-}
-
-func addSDKMetadata(r *RequestUserAgent) {
- r.AddSDKAgentKey(OperatingSystemMetadata, getNormalizedOSName())
- r.AddSDKAgentKeyValue(LanguageMetadata, "go", languageVersion)
- r.AddSDKAgentKeyValue(AdditionalMetadata, "GOOS", runtime.GOOS)
- r.AddSDKAgentKeyValue(AdditionalMetadata, "GOARCH", runtime.GOARCH)
- if ev := os.Getenv(execEnvVar); len(ev) > 0 {
- r.AddSDKAgentKey(EnvironmentMetadata, ev)
- }
-}
-
-func addProductName(builder *smithyhttp.UserAgentBuilder) {
- builder.AddKeyValue(aws.SDKName, aws.SDKVersion)
-}
-
-func addUserAgentMetadata(builder *smithyhttp.UserAgentBuilder) {
- builder.AddKey(uaMetadata)
-}
-
-// AddUserAgentKey retrieves a requestUserAgent from the provided stack, or initializes one.
-func AddUserAgentKey(key string) func(*middleware.Stack) error {
- return func(stack *middleware.Stack) error {
- requestUserAgent, err := getOrAddRequestUserAgent(stack)
- if err != nil {
- return err
- }
- requestUserAgent.AddUserAgentKey(key)
- return nil
- }
-}
-
-// AddUserAgentKeyValue retrieves a requestUserAgent from the provided stack, or initializes one.
-func AddUserAgentKeyValue(key, value string) func(*middleware.Stack) error {
- return func(stack *middleware.Stack) error {
- requestUserAgent, err := getOrAddRequestUserAgent(stack)
- if err != nil {
- return err
- }
- requestUserAgent.AddUserAgentKeyValue(key, value)
- return nil
- }
-}
-
-// AddSDKAgentKey retrieves a requestUserAgent from the provided stack, or initializes one.
-func AddSDKAgentKey(keyType SDKAgentKeyType, key string) func(*middleware.Stack) error {
- return func(stack *middleware.Stack) error {
- requestUserAgent, err := getOrAddRequestUserAgent(stack)
- if err != nil {
- return err
- }
- requestUserAgent.AddSDKAgentKey(keyType, key)
- return nil
- }
-}
-
-// AddSDKAgentKeyValue retrieves a requestUserAgent from the provided stack, or initializes one.
-func AddSDKAgentKeyValue(keyType SDKAgentKeyType, key, value string) func(*middleware.Stack) error {
- return func(stack *middleware.Stack) error {
- requestUserAgent, err := getOrAddRequestUserAgent(stack)
- if err != nil {
- return err
- }
- requestUserAgent.AddSDKAgentKeyValue(keyType, key, value)
- return nil
- }
-}
-
-// AddRequestUserAgentMiddleware registers a requestUserAgent middleware on the stack if not present.
-func AddRequestUserAgentMiddleware(stack *middleware.Stack) error {
- _, err := getOrAddRequestUserAgent(stack)
- return err
-}
-
-func getOrAddRequestUserAgent(stack *middleware.Stack) (*RequestUserAgent, error) {
- id := (*RequestUserAgent)(nil).ID()
- bm, ok := stack.Build.Get(id)
- if !ok {
- bm = NewRequestUserAgent()
- err := stack.Build.Add(bm, middleware.After)
- if err != nil {
- return nil, err
- }
- }
-
- requestUserAgent, ok := bm.(*RequestUserAgent)
- if !ok {
- return nil, fmt.Errorf("%T for %s middleware did not match expected type", bm, id)
- }
-
- return requestUserAgent, nil
-}
-
-// AddUserAgentKey adds the component identified by name to the User-Agent string.
-func (u *RequestUserAgent) AddUserAgentKey(key string) {
- u.userAgent.AddKey(strings.Map(rules, key))
-}
-
-// AddUserAgentKeyValue adds the key identified by the given name and value to the User-Agent string.
-func (u *RequestUserAgent) AddUserAgentKeyValue(key, value string) {
- u.userAgent.AddKeyValue(strings.Map(rules, key), strings.Map(rules, value))
-}
-
-// AddUserAgentFeature adds the feature ID to the tracking list to be emitted
-// in the final User-Agent string.
-func (u *RequestUserAgent) AddUserAgentFeature(feature UserAgentFeature) {
- u.features[feature] = struct{}{}
-}
-
-// AddSDKAgentKey adds the component identified by name to the User-Agent string.
-func (u *RequestUserAgent) AddSDKAgentKey(keyType SDKAgentKeyType, key string) {
- // TODO: should target sdkAgent
- u.userAgent.AddKey(keyType.string() + "/" + strings.Map(rules, key))
-}
-
-// AddSDKAgentKeyValue adds the key identified by the given name and value to the User-Agent string.
-func (u *RequestUserAgent) AddSDKAgentKeyValue(keyType SDKAgentKeyType, key, value string) {
- // TODO: should target sdkAgent
- u.userAgent.AddKeyValue(keyType.string(), strings.Map(rules, key)+"#"+strings.Map(rules, value))
-}
-
-// AddCredentialsSource adds the credential source as a feature on the User-Agent string
-func (u *RequestUserAgent) AddCredentialsSource(source aws.CredentialSource) {
- x, ok := credentialSourceToFeature[source]
- if ok {
- u.AddUserAgentFeature(x)
- }
-}
-
-// ID the name of the middleware.
-func (u *RequestUserAgent) ID() string {
- return "UserAgent"
-}
-
-// HandleBuild adds or appends the constructed user agent to the request.
-func (u *RequestUserAgent) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) (
- out middleware.BuildOutput, metadata middleware.Metadata, err error,
-) {
- switch req := in.Request.(type) {
- case *smithyhttp.Request:
- u.addHTTPUserAgent(req)
- // TODO: To be re-enabled
- // u.addHTTPSDKAgent(req)
- default:
- return out, metadata, fmt.Errorf("unknown transport type %T", in)
- }
-
- return next.HandleBuild(ctx, in)
-}
-
-func (u *RequestUserAgent) addHTTPUserAgent(request *smithyhttp.Request) {
- const userAgent = "User-Agent"
- if len(u.features) > 0 {
- updateHTTPHeader(request, userAgent, buildFeatureMetrics(u.features))
- }
- updateHTTPHeader(request, userAgent, u.userAgent.Build())
-}
-
-func (u *RequestUserAgent) addHTTPSDKAgent(request *smithyhttp.Request) {
- const sdkAgent = "X-Amz-User-Agent"
- updateHTTPHeader(request, sdkAgent, u.sdkAgent.Build())
-}
-
-func updateHTTPHeader(request *smithyhttp.Request, header string, value string) {
- var current string
- if v := request.Header[header]; len(v) > 0 {
- current = v[0]
- }
- if len(current) > 0 {
- current = value + " " + current
- } else {
- current = value
- }
- request.Header[header] = append(request.Header[header][:0], current)
-}
-
-func rules(r rune) rune {
- switch {
- case r >= '0' && r <= '9':
- return r
- case r >= 'A' && r <= 'Z' || r >= 'a' && r <= 'z':
- return r
- case validChars[r]:
- return r
- default:
- return '-'
- }
-}
-
-func buildFeatureMetrics(features map[UserAgentFeature]struct{}) string {
- fs := make([]string, 0, len(features))
- for f := range features {
- fs = append(fs, string(f))
- }
-
- sort.Strings(fs)
- return fmt.Sprintf("%s/%s", FeatureMetadata2.string(), strings.Join(fs, ","))
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/ec2query/error_utils.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/ec2query/error_utils.go
deleted file mode 100644
index 12a2c77a9..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/ec2query/error_utils.go
+++ /dev/null
@@ -1,24 +0,0 @@
-package ec2query
-
-import (
- "encoding/xml"
- "fmt"
- "io"
-)
-
-// ErrorComponents represents the error response fields
-// that will be deserialized from a ec2query error response body
-type ErrorComponents struct {
- Code string `xml:"Errors>Error>Code"`
- Message string `xml:"Errors>Error>Message"`
- RequestID string `xml:"RequestID"`
-}
-
-// GetErrorResponseComponents returns the error components from a ec2query error response body
-func GetErrorResponseComponents(r io.Reader) (ErrorComponents, error) {
- var er ErrorComponents
- if err := xml.NewDecoder(r).Decode(&er); err != nil && err != io.EOF {
- return ErrorComponents{}, fmt.Errorf("error while fetching xml error response code: %w", err)
- }
- return er, nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/array.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/array.go
deleted file mode 100644
index 6669a3ddf..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/array.go
+++ /dev/null
@@ -1,61 +0,0 @@
-package query
-
-import (
- "net/url"
- "strconv"
-)
-
-// Array represents the encoding of Query lists and sets. A Query array is a
-// representation of a list of values of a fixed type. A serialized array might
-// look like the following:
-//
-// ListName.member.1=foo
-// &ListName.member.2=bar
-// &Listname.member.3=baz
-type Array struct {
- // The query values to add the array to.
- values url.Values
- // The array's prefix, which includes the names of all parent structures
- // and ends with the name of the list. For example, the prefix might be
- // "ParentStructure.ListName". This prefix will be used to form the full
- // keys for each element in the list. For example, an entry might have the
- // key "ParentStructure.ListName.member.MemberName.1".
- //
- // When the array is not flat the prefix will contain the memberName otherwise the memberName is ignored
- prefix string
- // Elements are stored in values, so we keep track of the list size here.
- size int32
- // Empty lists are encoded as "=", if we add a value later we will
- // remove this encoding
- emptyValue Value
-}
-
-func newArray(values url.Values, prefix string, flat bool, memberName string) *Array {
- emptyValue := newValue(values, prefix, flat)
- emptyValue.String("")
-
- if !flat {
- // This uses string concatenation in place of fmt.Sprintf as fmt.Sprintf has a much higher resource overhead
- prefix = prefix + keySeparator + memberName
- }
-
- return &Array{
- values: values,
- prefix: prefix,
- emptyValue: emptyValue,
- }
-}
-
-// Value adds a new element to the Query Array. Returns a Value type used to
-// encode the array element.
-func (a *Array) Value() Value {
- if a.size == 0 {
- delete(a.values, a.emptyValue.key)
- }
-
- // Query lists start a 1, so adjust the size first
- a.size++
- // Lists can't have flat members
- // This uses string concatenation in place of fmt.Sprintf as fmt.Sprintf has a much higher resource overhead
- return newValue(a.values, a.prefix+keySeparator+strconv.FormatInt(int64(a.size), 10), false)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/encoder.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/encoder.go
deleted file mode 100644
index 2ecf9241c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/encoder.go
+++ /dev/null
@@ -1,80 +0,0 @@
-package query
-
-import (
- "io"
- "net/url"
- "sort"
-)
-
-// Encoder is a Query encoder that supports construction of Query body
-// values using methods.
-type Encoder struct {
- // The query values that will be built up to manage encoding.
- values url.Values
- // The writer that the encoded body will be written to.
- writer io.Writer
- Value
-}
-
-// NewEncoder returns a new Query body encoder
-func NewEncoder(writer io.Writer) *Encoder {
- values := url.Values{}
- return &Encoder{
- values: values,
- writer: writer,
- Value: newBaseValue(values),
- }
-}
-
-// Encode returns the []byte slice representing the current
-// state of the Query encoder.
-func (e Encoder) Encode() error {
- ws, ok := e.writer.(interface{ WriteString(string) (int, error) })
- if !ok {
- // Fall back to less optimal byte slice casting if WriteString isn't available.
- ws = &wrapWriteString{writer: e.writer}
- }
-
- // Get the keys and sort them to have a stable output
- keys := make([]string, 0, len(e.values))
- for k := range e.values {
- keys = append(keys, k)
- }
- sort.Strings(keys)
- isFirstEntry := true
- for _, key := range keys {
- queryValues := e.values[key]
- escapedKey := url.QueryEscape(key)
- for _, value := range queryValues {
- if !isFirstEntry {
- if _, err := ws.WriteString(`&`); err != nil {
- return err
- }
- } else {
- isFirstEntry = false
- }
- if _, err := ws.WriteString(escapedKey); err != nil {
- return err
- }
- if _, err := ws.WriteString(`=`); err != nil {
- return err
- }
- if _, err := ws.WriteString(url.QueryEscape(value)); err != nil {
- return err
- }
- }
- }
- return nil
-}
-
-// wrapWriteString wraps an io.Writer to provide a WriteString method
-// where one is not available.
-type wrapWriteString struct {
- writer io.Writer
-}
-
-// WriteString writes a string to the wrapped writer by casting it to
-// a byte array first.
-func (w wrapWriteString) WriteString(v string) (int, error) {
- return w.writer.Write([]byte(v))
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/map.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/map.go
deleted file mode 100644
index dea242b8b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/map.go
+++ /dev/null
@@ -1,78 +0,0 @@
-package query
-
-import (
- "fmt"
- "net/url"
-)
-
-// Map represents the encoding of Query maps. A Query map is a representation
-// of a mapping of arbitrary string keys to arbitrary values of a fixed type.
-// A Map differs from an Object in that the set of keys is not fixed, in that
-// the values must all be of the same type, and that map entries are ordered.
-// A serialized map might look like the following:
-//
-// MapName.entry.1.key=Foo
-// &MapName.entry.1.value=spam
-// &MapName.entry.2.key=Bar
-// &MapName.entry.2.value=eggs
-type Map struct {
- // The query values to add the map to.
- values url.Values
- // The map's prefix, which includes the names of all parent structures
- // and ends with the name of the object. For example, the prefix might be
- // "ParentStructure.MapName". This prefix will be used to form the full
- // keys for each key-value pair of the map. For example, a value might have
- // the key "ParentStructure.MapName.1.value".
- //
- // While this is currently represented as a string that gets added to, it
- // could also be represented as a stack that only gets condensed into a
- // string when a finalized key is created. This could potentially reduce
- // allocations.
- prefix string
- // Whether the map is flat or not. A map that is not flat will produce the
- // following entries to the url.Values for a given key-value pair:
- // MapName.entry.1.KeyLocationName=mykey
- // MapName.entry.1.ValueLocationName=myvalue
- // A map that is flat will produce the following:
- // MapName.1.KeyLocationName=mykey
- // MapName.1.ValueLocationName=myvalue
- flat bool
- // The location name of the key. In most cases this should be "key".
- keyLocationName string
- // The location name of the value. In most cases this should be "value".
- valueLocationName string
- // Elements are stored in values, so we keep track of the list size here.
- size int32
-}
-
-func newMap(values url.Values, prefix string, flat bool, keyLocationName string, valueLocationName string) *Map {
- return &Map{
- values: values,
- prefix: prefix,
- flat: flat,
- keyLocationName: keyLocationName,
- valueLocationName: valueLocationName,
- }
-}
-
-// Key adds the given named key to the Query map.
-// Returns a Value encoder that should be used to encode a Query value type.
-func (m *Map) Key(name string) Value {
- // Query lists start a 1, so adjust the size first
- m.size++
- var key string
- var value string
- if m.flat {
- key = fmt.Sprintf("%s.%d.%s", m.prefix, m.size, m.keyLocationName)
- value = fmt.Sprintf("%s.%d.%s", m.prefix, m.size, m.valueLocationName)
- } else {
- key = fmt.Sprintf("%s.entry.%d.%s", m.prefix, m.size, m.keyLocationName)
- value = fmt.Sprintf("%s.entry.%d.%s", m.prefix, m.size, m.valueLocationName)
- }
-
- // The key can only be a string, so we just go ahead and set it here
- newValue(m.values, key, false).String(name)
-
- // Maps can't have flat members
- return newValue(m.values, value, false)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/middleware.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/middleware.go
deleted file mode 100644
index 360344791..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/middleware.go
+++ /dev/null
@@ -1,62 +0,0 @@
-package query
-
-import (
- "context"
- "fmt"
- "io/ioutil"
-
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// AddAsGetRequestMiddleware adds a middleware to the Serialize stack after the
-// operation serializer that will convert the query request body to a GET
-// operation with the query message in the HTTP request querystring.
-func AddAsGetRequestMiddleware(stack *middleware.Stack) error {
- return stack.Serialize.Insert(&asGetRequest{}, "OperationSerializer", middleware.After)
-}
-
-type asGetRequest struct{}
-
-func (*asGetRequest) ID() string { return "Query:AsGetRequest" }
-
-func (m *asGetRequest) HandleSerialize(
- ctx context.Context, input middleware.SerializeInput, next middleware.SerializeHandler,
-) (
- out middleware.SerializeOutput, metadata middleware.Metadata, err error,
-) {
- req, ok := input.Request.(*smithyhttp.Request)
- if !ok {
- return out, metadata, fmt.Errorf("expect smithy HTTP Request, got %T", input.Request)
- }
-
- req.Method = "GET"
-
- // If the stream is not set, nothing else to do.
- stream := req.GetStream()
- if stream == nil {
- return next.HandleSerialize(ctx, input)
- }
-
- // Clear the stream since there will not be any body.
- req.Header.Del("Content-Type")
- req, err = req.SetStream(nil)
- if err != nil {
- return out, metadata, fmt.Errorf("unable update request body %w", err)
- }
- input.Request = req
-
- // Update request query with the body's query string value.
- delim := ""
- if len(req.URL.RawQuery) != 0 {
- delim = "&"
- }
-
- b, err := ioutil.ReadAll(stream)
- if err != nil {
- return out, metadata, fmt.Errorf("unable to get request body %w", err)
- }
- req.URL.RawQuery += delim + string(b)
-
- return next.HandleSerialize(ctx, input)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/object.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/object.go
deleted file mode 100644
index 305a8ace3..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/object.go
+++ /dev/null
@@ -1,68 +0,0 @@
-package query
-
-import "net/url"
-
-// Object represents the encoding of Query structures and unions. A Query
-// object is a representation of a mapping of string keys to arbitrary
-// values where there is a fixed set of keys whose values each have their
-// own known type. A serialized object might look like the following:
-//
-// ObjectName.Foo=value
-// &ObjectName.Bar=5
-type Object struct {
- // The query values to add the object to.
- values url.Values
- // The object's prefix, which includes the names of all parent structures
- // and ends with the name of the object. For example, the prefix might be
- // "ParentStructure.ObjectName". This prefix will be used to form the full
- // keys for each member of the object. For example, a member might have the
- // key "ParentStructure.ObjectName.MemberName".
- //
- // While this is currently represented as a string that gets added to, it
- // could also be represented as a stack that only gets condensed into a
- // string when a finalized key is created. This could potentially reduce
- // allocations.
- prefix string
-}
-
-func newObject(values url.Values, prefix string) *Object {
- return &Object{
- values: values,
- prefix: prefix,
- }
-}
-
-// Key adds the given named key to the Query object.
-// Returns a Value encoder that should be used to encode a Query value type.
-func (o *Object) Key(name string) Value {
- return o.key(name, false)
-}
-
-// KeyWithValues adds the given named key to the Query object.
-// Returns a Value encoder that should be used to encode a Query list of values.
-func (o *Object) KeyWithValues(name string) Value {
- return o.keyWithValues(name, false)
-}
-
-// FlatKey adds the given named key to the Query object.
-// Returns a Value encoder that should be used to encode a Query value type. The
-// value will be flattened if it is a map or array.
-func (o *Object) FlatKey(name string) Value {
- return o.key(name, true)
-}
-
-func (o *Object) key(name string, flatValue bool) Value {
- if o.prefix != "" {
- // This uses string concatenation in place of fmt.Sprintf as fmt.Sprintf has a much higher resource overhead
- return newValue(o.values, o.prefix+keySeparator+name, flatValue)
- }
- return newValue(o.values, name, flatValue)
-}
-
-func (o *Object) keyWithValues(name string, flatValue bool) Value {
- if o.prefix != "" {
- // This uses string concatenation in place of fmt.Sprintf as fmt.Sprintf has a much higher resource overhead
- return newAppendValue(o.values, o.prefix+keySeparator+name, flatValue)
- }
- return newAppendValue(o.values, name, flatValue)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/value.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/value.go
deleted file mode 100644
index 8063c592d..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/query/value.go
+++ /dev/null
@@ -1,117 +0,0 @@
-package query
-
-import (
- "math/big"
- "net/url"
-
- "github.com/aws/smithy-go/encoding/httpbinding"
-)
-
-const keySeparator = "."
-
-// Value represents a Query Value type.
-type Value struct {
- // The query values to add the value to.
- values url.Values
- // The value's key, which will form the prefix for complex types.
- key string
- // Whether the value should be flattened or not if it's a flattenable type.
- flat bool
- queryValue httpbinding.QueryValue
-}
-
-func newValue(values url.Values, key string, flat bool) Value {
- return Value{
- values: values,
- key: key,
- flat: flat,
- queryValue: httpbinding.NewQueryValue(values, key, false),
- }
-}
-
-func newAppendValue(values url.Values, key string, flat bool) Value {
- return Value{
- values: values,
- key: key,
- flat: flat,
- queryValue: httpbinding.NewQueryValue(values, key, true),
- }
-}
-
-func newBaseValue(values url.Values) Value {
- return Value{
- values: values,
- queryValue: httpbinding.NewQueryValue(nil, "", false),
- }
-}
-
-// Array returns a new Array encoder.
-func (qv Value) Array(locationName string) *Array {
- return newArray(qv.values, qv.key, qv.flat, locationName)
-}
-
-// Object returns a new Object encoder.
-func (qv Value) Object() *Object {
- return newObject(qv.values, qv.key)
-}
-
-// Map returns a new Map encoder.
-func (qv Value) Map(keyLocationName string, valueLocationName string) *Map {
- return newMap(qv.values, qv.key, qv.flat, keyLocationName, valueLocationName)
-}
-
-// Base64EncodeBytes encodes v as a base64 query string value.
-// This is intended to enable compatibility with the JSON encoder.
-func (qv Value) Base64EncodeBytes(v []byte) {
- qv.queryValue.Blob(v)
-}
-
-// Boolean encodes v as a query string value
-func (qv Value) Boolean(v bool) {
- qv.queryValue.Boolean(v)
-}
-
-// String encodes v as a query string value
-func (qv Value) String(v string) {
- qv.queryValue.String(v)
-}
-
-// Byte encodes v as a query string value
-func (qv Value) Byte(v int8) {
- qv.queryValue.Byte(v)
-}
-
-// Short encodes v as a query string value
-func (qv Value) Short(v int16) {
- qv.queryValue.Short(v)
-}
-
-// Integer encodes v as a query string value
-func (qv Value) Integer(v int32) {
- qv.queryValue.Integer(v)
-}
-
-// Long encodes v as a query string value
-func (qv Value) Long(v int64) {
- qv.queryValue.Long(v)
-}
-
-// Float encodes v as a query string value
-func (qv Value) Float(v float32) {
- qv.queryValue.Float(v)
-}
-
-// Double encodes v as a query string value
-func (qv Value) Double(v float64) {
- qv.queryValue.Double(v)
-}
-
-// BigInteger encodes v as a query string value
-func (qv Value) BigInteger(v *big.Int) {
- qv.queryValue.BigInteger(v)
-}
-
-// BigDecimal encodes v as a query string value
-func (qv Value) BigDecimal(v *big.Float) {
- qv.queryValue.BigDecimal(v)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/restjson/decoder_util.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/restjson/decoder_util.go
deleted file mode 100644
index 1bce78a4d..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/restjson/decoder_util.go
+++ /dev/null
@@ -1,85 +0,0 @@
-package restjson
-
-import (
- "encoding/json"
- "io"
- "strings"
-
- "github.com/aws/smithy-go"
-)
-
-// GetErrorInfo util looks for code, __type, and message members in the
-// json body. These members are optionally available, and the function
-// returns the value of member if it is available. This function is useful to
-// identify the error code, msg in a REST JSON error response.
-func GetErrorInfo(decoder *json.Decoder) (errorType string, message string, err error) {
- var errInfo struct {
- Code string
- Type string `json:"__type"`
- Message string
- }
-
- err = decoder.Decode(&errInfo)
- if err != nil {
- if err == io.EOF {
- return errorType, message, nil
- }
- return errorType, message, err
- }
-
- // assign error type
- if len(errInfo.Code) != 0 {
- errorType = errInfo.Code
- } else if len(errInfo.Type) != 0 {
- errorType = errInfo.Type
- }
-
- // assign error message
- if len(errInfo.Message) != 0 {
- message = errInfo.Message
- }
-
- // sanitize error
- if len(errorType) != 0 {
- errorType = SanitizeErrorCode(errorType)
- }
-
- return errorType, message, nil
-}
-
-// SanitizeErrorCode sanitizes the errorCode string .
-// The rule for sanitizing is if a `:` character is present, then take only the
-// contents before the first : character in the value.
-// If a # character is present, then take only the contents after the
-// first # character in the value.
-func SanitizeErrorCode(errorCode string) string {
- if strings.ContainsAny(errorCode, ":") {
- errorCode = strings.SplitN(errorCode, ":", 2)[0]
- }
-
- if strings.ContainsAny(errorCode, "#") {
- errorCode = strings.SplitN(errorCode, "#", 2)[1]
- }
-
- return errorCode
-}
-
-// GetSmithyGenericAPIError returns smithy generic api error and an error interface.
-// Takes in json decoder, and error Code string as args. The function retrieves error message
-// and error code from the decoder body. If errorCode of length greater than 0 is passed in as
-// an argument, it is used instead.
-func GetSmithyGenericAPIError(decoder *json.Decoder, errorCode string) (*smithy.GenericAPIError, error) {
- errorType, message, err := GetErrorInfo(decoder)
- if err != nil {
- return nil, err
- }
-
- if len(errorCode) == 0 {
- errorCode = errorType
- }
-
- return &smithy.GenericAPIError{
- Code: errorCode,
- Message: message,
- }, nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/xml/error_utils.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/xml/error_utils.go
deleted file mode 100644
index 6975ce652..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/xml/error_utils.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package xml
-
-import (
- "encoding/xml"
- "fmt"
- "io"
-)
-
-// ErrorComponents represents the error response fields
-// that will be deserialized from an xml error response body
-type ErrorComponents struct {
- Code string
- Message string
- RequestID string
-}
-
-// GetErrorResponseComponents returns the error fields from an xml error response body
-func GetErrorResponseComponents(r io.Reader, noErrorWrapping bool) (ErrorComponents, error) {
- if noErrorWrapping {
- var errResponse noWrappedErrorResponse
- if err := xml.NewDecoder(r).Decode(&errResponse); err != nil && err != io.EOF {
- return ErrorComponents{}, fmt.Errorf("error while deserializing xml error response: %w", err)
- }
- return ErrorComponents(errResponse), nil
- }
-
- var errResponse wrappedErrorResponse
- if err := xml.NewDecoder(r).Decode(&errResponse); err != nil && err != io.EOF {
- return ErrorComponents{}, fmt.Errorf("error while deserializing xml error response: %w", err)
- }
- return ErrorComponents(errResponse), nil
-}
-
-// noWrappedErrorResponse represents the error response body with
-// no internal Error wrapping
-type noWrappedErrorResponse struct {
- Code string `xml:"Code"`
- Message string `xml:"Message"`
- RequestID string `xml:"RequestId"`
-}
-
-// wrappedErrorResponse represents the error response body
-// wrapped within Error
-type wrappedErrorResponse struct {
- Code string `xml:"Error>Code"`
- Message string `xml:"Error>Message"`
- RequestID string `xml:"RequestId"`
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/ratelimit/none.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/ratelimit/none.go
deleted file mode 100644
index 8c7836410..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/ratelimit/none.go
+++ /dev/null
@@ -1,20 +0,0 @@
-package ratelimit
-
-import "context"
-
-// None implements a no-op rate limiter which effectively disables client-side
-// rate limiting (also known as "retry quotas").
-//
-// GetToken does nothing and always returns a nil error. The returned
-// token-release function does nothing, and always returns a nil error.
-//
-// AddTokens does nothing and always returns a nil error.
-var None = &none{}
-
-type none struct{}
-
-func (*none) GetToken(ctx context.Context, cost uint) (func() error, error) {
- return func() error { return nil }, nil
-}
-
-func (*none) AddTokens(v uint) error { return nil }
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/ratelimit/token_bucket.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/ratelimit/token_bucket.go
deleted file mode 100644
index 974ef594f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/ratelimit/token_bucket.go
+++ /dev/null
@@ -1,96 +0,0 @@
-package ratelimit
-
-import (
- "sync"
-)
-
-// TokenBucket provides a concurrency safe utility for adding and removing
-// tokens from the available token bucket.
-type TokenBucket struct {
- remainingTokens uint
- maxCapacity uint
- minCapacity uint
- mu sync.Mutex
-}
-
-// NewTokenBucket returns an initialized TokenBucket with the capacity
-// specified.
-func NewTokenBucket(i uint) *TokenBucket {
- return &TokenBucket{
- remainingTokens: i,
- maxCapacity: i,
- minCapacity: 1,
- }
-}
-
-// Retrieve attempts to reduce the available tokens by the amount requested. If
-// there are tokens available true will be returned along with the number of
-// available tokens remaining. If amount requested is larger than the available
-// capacity, false will be returned along with the available capacity. If the
-// amount is less than the available capacity, the capacity will be reduced by
-// that amount, and the remaining capacity and true will be returned.
-func (t *TokenBucket) Retrieve(amount uint) (available uint, retrieved bool) {
- t.mu.Lock()
- defer t.mu.Unlock()
-
- if amount > t.remainingTokens {
- return t.remainingTokens, false
- }
-
- t.remainingTokens -= amount
- return t.remainingTokens, true
-}
-
-// Refund returns the amount of tokens back to the available token bucket, up
-// to the initial capacity.
-func (t *TokenBucket) Refund(amount uint) {
- t.mu.Lock()
- defer t.mu.Unlock()
-
- // Capacity cannot exceed max capacity.
- t.remainingTokens = uintMin(t.remainingTokens+amount, t.maxCapacity)
-}
-
-// Capacity returns the maximum capacity of tokens that the bucket could
-// contain.
-func (t *TokenBucket) Capacity() uint {
- t.mu.Lock()
- defer t.mu.Unlock()
-
- return t.maxCapacity
-}
-
-// Remaining returns the number of tokens that remaining in the bucket.
-func (t *TokenBucket) Remaining() uint {
- t.mu.Lock()
- defer t.mu.Unlock()
-
- return t.remainingTokens
-}
-
-// Resize adjusts the size of the token bucket. Returns the capacity remaining.
-func (t *TokenBucket) Resize(size uint) uint {
- t.mu.Lock()
- defer t.mu.Unlock()
-
- t.maxCapacity = uintMax(size, t.minCapacity)
-
- // Capacity needs to be capped at max capacity, if max size reduced.
- t.remainingTokens = uintMin(t.remainingTokens, t.maxCapacity)
-
- return t.remainingTokens
-}
-
-func uintMin(a, b uint) uint {
- if a < b {
- return a
- }
- return b
-}
-
-func uintMax(a, b uint) uint {
- if a > b {
- return a
- }
- return b
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/ratelimit/token_rate_limit.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/ratelimit/token_rate_limit.go
deleted file mode 100644
index d89090ad3..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/ratelimit/token_rate_limit.go
+++ /dev/null
@@ -1,83 +0,0 @@
-package ratelimit
-
-import (
- "context"
- "fmt"
-)
-
-type rateToken struct {
- tokenCost uint
- bucket *TokenBucket
-}
-
-func (t rateToken) release() error {
- t.bucket.Refund(t.tokenCost)
- return nil
-}
-
-// TokenRateLimit provides a Token Bucket RateLimiter implementation
-// that limits the overall number of retry attempts that can be made across
-// operation invocations.
-type TokenRateLimit struct {
- bucket *TokenBucket
-}
-
-// NewTokenRateLimit returns an TokenRateLimit with default values.
-// Functional options can configure the retry rate limiter.
-func NewTokenRateLimit(tokens uint) *TokenRateLimit {
- return &TokenRateLimit{
- bucket: NewTokenBucket(tokens),
- }
-}
-
-type canceledError struct {
- Err error
-}
-
-func (c canceledError) CanceledError() bool { return true }
-func (c canceledError) Unwrap() error { return c.Err }
-func (c canceledError) Error() string {
- return fmt.Sprintf("canceled, %v", c.Err)
-}
-
-// GetToken may cause a available pool of retry quota to be
-// decremented. Will return an error if the decremented value can not be
-// reduced from the retry quota.
-func (l *TokenRateLimit) GetToken(ctx context.Context, cost uint) (func() error, error) {
- select {
- case <-ctx.Done():
- return nil, canceledError{Err: ctx.Err()}
- default:
- }
- if avail, ok := l.bucket.Retrieve(cost); !ok {
- return nil, QuotaExceededError{Available: avail, Requested: cost}
- }
-
- return rateToken{
- tokenCost: cost,
- bucket: l.bucket,
- }.release, nil
-}
-
-// AddTokens increments the token bucket by a fixed amount.
-func (l *TokenRateLimit) AddTokens(v uint) error {
- l.bucket.Refund(v)
- return nil
-}
-
-// Remaining returns the number of remaining tokens in the bucket.
-func (l *TokenRateLimit) Remaining() uint {
- return l.bucket.Remaining()
-}
-
-// QuotaExceededError provides the SDK error when the retries for a given
-// token bucket have been exhausted.
-type QuotaExceededError struct {
- Available uint
- Requested uint
-}
-
-func (e QuotaExceededError) Error() string {
- return fmt.Sprintf("retry quota exceeded, %d available, %d requested",
- e.Available, e.Requested)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/request.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/request.go
deleted file mode 100644
index d8d00e615..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/request.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package aws
-
-import (
- "fmt"
-)
-
-// TODO remove replace with smithy.CanceledError
-
-// RequestCanceledError is the error that will be returned by an API request
-// that was canceled. Requests given a Context may return this error when
-// canceled.
-type RequestCanceledError struct {
- Err error
-}
-
-// CanceledError returns true to satisfy interfaces checking for canceled errors.
-func (*RequestCanceledError) CanceledError() bool { return true }
-
-// Unwrap returns the underlying error, if there was one.
-func (e *RequestCanceledError) Unwrap() error {
- return e.Err
-}
-func (e *RequestCanceledError) Error() string {
- return fmt.Sprintf("request canceled, %v", e.Err)
-}
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
deleted file mode 100644
index 4dfde8573..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/adaptive.go
+++ /dev/null
@@ -1,156 +0,0 @@
-package retry
-
-import (
- "context"
- "fmt"
- "time"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- "github.com/aws/aws-sdk-go-v2/internal/sdk"
-)
-
-const (
- // DefaultRequestCost is the cost of a single request from the adaptive
- // rate limited token bucket.
- DefaultRequestCost uint = 1
-)
-
-// DefaultThrottles provides the set of errors considered throttle errors that
-// are checked by default.
-var DefaultThrottles = []IsErrorThrottle{
- ThrottleErrorCode{
- Codes: DefaultThrottleErrorCodes,
- },
-}
-
-// AdaptiveModeOptions provides the functional options for configuring the
-// adaptive retry mode, and delay behavior.
-type AdaptiveModeOptions struct {
- // If the adaptive token bucket is empty, when an attempt will be made
- // AdaptiveMode will sleep until a token is available. This can occur when
- // attempts fail with throttle errors. Use this option to disable the sleep
- // until token is available, and return error immediately.
- FailOnNoAttemptTokens bool
-
- // The cost of an attempt from the AdaptiveMode's adaptive token bucket.
- RequestCost uint
-
- // Set of strategies to determine if the attempt failed due to a throttle
- // error.
- //
- // It is safe to append to this list in NewAdaptiveMode's functional options.
- Throttles []IsErrorThrottle
-
- // Set of options for standard retry mode that AdaptiveMode is built on top
- // of. AdaptiveMode may apply its own defaults to Standard retry mode that
- // are different than the defaults of NewStandard. Use these options to
- // override the default options.
- StandardOptions []func(*StandardOptions)
-}
-
-// AdaptiveMode provides an experimental retry strategy that expands on the
-// Standard retry strategy, adding client attempt rate limits. The attempt rate
-// limit is initially unrestricted, but becomes restricted when the attempt
-// fails with for a throttle error. When restricted AdaptiveMode may need to
-// sleep before an attempt is made, if too many throttles have been received.
-// AdaptiveMode's sleep can be canceled with context cancel. Set
-// AdaptiveModeOptions FailOnNoAttemptTokens to change the behavior from sleep,
-// to fail fast.
-//
-// Eventually unrestricted attempt rate limit will be restored once attempts no
-// longer are failing due to throttle errors.
-type AdaptiveMode struct {
- options AdaptiveModeOptions
- throttles IsErrorThrottles
-
- retryer aws.RetryerV2
- rateLimit *adaptiveRateLimit
-}
-
-// NewAdaptiveMode returns an initialized AdaptiveMode retry strategy.
-func NewAdaptiveMode(optFns ...func(*AdaptiveModeOptions)) *AdaptiveMode {
- o := AdaptiveModeOptions{
- RequestCost: DefaultRequestCost,
- Throttles: append([]IsErrorThrottle{}, DefaultThrottles...),
- }
- for _, fn := range optFns {
- fn(&o)
- }
-
- return &AdaptiveMode{
- options: o,
- throttles: IsErrorThrottles(o.Throttles),
- retryer: NewStandard(o.StandardOptions...),
- rateLimit: newAdaptiveRateLimit(),
- }
-}
-
-// IsErrorRetryable returns if the failed attempt is retryable. This check
-// should determine if the error can be retried, or if the error is
-// terminal.
-func (a *AdaptiveMode) IsErrorRetryable(err error) bool {
- return a.retryer.IsErrorRetryable(err)
-}
-
-// MaxAttempts returns the maximum number of attempts that can be made for
-// an attempt before failing. A value of 0 implies that the attempt should
-// be retried until it succeeds if the errors are retryable.
-func (a *AdaptiveMode) MaxAttempts() int {
- return a.retryer.MaxAttempts()
-}
-
-// RetryDelay returns the delay that should be used before retrying the
-// attempt. Will return error if the if the delay could not be determined.
-func (a *AdaptiveMode) RetryDelay(attempt int, opErr error) (
- time.Duration, error,
-) {
- return a.retryer.RetryDelay(attempt, opErr)
-}
-
-// GetRetryToken attempts to deduct the retry cost from the retry token pool.
-// Returning the token release function, or error.
-func (a *AdaptiveMode) GetRetryToken(ctx context.Context, opErr error) (
- releaseToken func(error) error, err error,
-) {
- return a.retryer.GetRetryToken(ctx, opErr)
-}
-
-// GetInitialToken returns the initial attempt token that can increment the
-// retry token pool if the attempt is successful.
-//
-// Deprecated: This method does not provide a way to block using Context,
-// nor can it return an error. Use RetryerV2, and GetAttemptToken instead. Only
-// present to implement Retryer interface.
-func (a *AdaptiveMode) GetInitialToken() (releaseToken func(error) error) {
- return nopRelease
-}
-
-// GetAttemptToken returns the attempt token that can be used to rate limit
-// attempt calls. Will be used by the SDK's retry package's Attempt
-// middleware to get an attempt token prior to calling the temp and releasing
-// the attempt token after the attempt has been made.
-func (a *AdaptiveMode) GetAttemptToken(ctx context.Context) (func(error) error, error) {
- for {
- acquiredToken, waitTryAgain := a.rateLimit.AcquireToken(a.options.RequestCost)
- if acquiredToken {
- break
- }
- if a.options.FailOnNoAttemptTokens {
- return nil, fmt.Errorf(
- "unable to get attempt token, and FailOnNoAttemptTokens enables")
- }
-
- if err := sdk.SleepWithContext(ctx, waitTryAgain); err != nil {
- return nil, fmt.Errorf("failed to wait for token to be available, %w", err)
- }
- }
-
- return a.handleResponse, nil
-}
-
-func (a *AdaptiveMode) handleResponse(opErr error) error {
- throttled := a.throttles.IsErrorThrottle(opErr).Bool()
-
- a.rateLimit.Update(throttled)
- return nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/adaptive_ratelimit.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/adaptive_ratelimit.go
deleted file mode 100644
index ad96d9b8c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/adaptive_ratelimit.go
+++ /dev/null
@@ -1,158 +0,0 @@
-package retry
-
-import (
- "math"
- "sync"
- "time"
-
- "github.com/aws/aws-sdk-go-v2/internal/sdk"
-)
-
-type adaptiveRateLimit struct {
- tokenBucketEnabled bool
-
- smooth float64
- beta float64
- scaleConstant float64
- minFillRate float64
-
- fillRate float64
- calculatedRate float64
- lastRefilled time.Time
- measuredTxRate float64
- lastTxRateBucket float64
- requestCount int64
- lastMaxRate float64
- lastThrottleTime time.Time
- timeWindow float64
-
- tokenBucket *adaptiveTokenBucket
-
- mu sync.Mutex
-}
-
-func newAdaptiveRateLimit() *adaptiveRateLimit {
- now := sdk.NowTime()
- return &adaptiveRateLimit{
- smooth: 0.8,
- beta: 0.7,
- scaleConstant: 0.4,
-
- minFillRate: 0.5,
-
- lastTxRateBucket: math.Floor(timeFloat64Seconds(now)),
- lastThrottleTime: now,
-
- tokenBucket: newAdaptiveTokenBucket(0),
- }
-}
-
-func (a *adaptiveRateLimit) Enable(v bool) {
- a.mu.Lock()
- defer a.mu.Unlock()
-
- a.tokenBucketEnabled = v
-}
-
-func (a *adaptiveRateLimit) AcquireToken(amount uint) (
- tokenAcquired bool, waitTryAgain time.Duration,
-) {
- a.mu.Lock()
- defer a.mu.Unlock()
-
- if !a.tokenBucketEnabled {
- return true, 0
- }
-
- a.tokenBucketRefill()
-
- available, ok := a.tokenBucket.Retrieve(float64(amount))
- if !ok {
- waitDur := float64Seconds((float64(amount) - available) / a.fillRate)
- return false, waitDur
- }
-
- return true, 0
-}
-
-func (a *adaptiveRateLimit) Update(throttled bool) {
- a.mu.Lock()
- defer a.mu.Unlock()
-
- a.updateMeasuredRate()
-
- if throttled {
- rateToUse := a.measuredTxRate
- if a.tokenBucketEnabled {
- rateToUse = math.Min(a.measuredTxRate, a.fillRate)
- }
-
- a.lastMaxRate = rateToUse
- a.calculateTimeWindow()
- a.lastThrottleTime = sdk.NowTime()
- a.calculatedRate = a.cubicThrottle(rateToUse)
- a.tokenBucketEnabled = true
- } else {
- a.calculateTimeWindow()
- a.calculatedRate = a.cubicSuccess(sdk.NowTime())
- }
-
- newRate := math.Min(a.calculatedRate, 2*a.measuredTxRate)
- a.tokenBucketUpdateRate(newRate)
-}
-
-func (a *adaptiveRateLimit) cubicSuccess(t time.Time) float64 {
- dt := secondsFloat64(t.Sub(a.lastThrottleTime))
- return (a.scaleConstant * math.Pow(dt-a.timeWindow, 3)) + a.lastMaxRate
-}
-
-func (a *adaptiveRateLimit) cubicThrottle(rateToUse float64) float64 {
- return rateToUse * a.beta
-}
-
-func (a *adaptiveRateLimit) calculateTimeWindow() {
- a.timeWindow = math.Pow((a.lastMaxRate*(1.-a.beta))/a.scaleConstant, 1./3.)
-}
-
-func (a *adaptiveRateLimit) tokenBucketUpdateRate(newRPS float64) {
- a.tokenBucketRefill()
- a.fillRate = math.Max(newRPS, a.minFillRate)
- a.tokenBucket.Resize(newRPS)
-}
-
-func (a *adaptiveRateLimit) updateMeasuredRate() {
- now := sdk.NowTime()
- timeBucket := math.Floor(timeFloat64Seconds(now)*2.) / 2.
- a.requestCount++
-
- if timeBucket > a.lastTxRateBucket {
- currentRate := float64(a.requestCount) / (timeBucket - a.lastTxRateBucket)
- a.measuredTxRate = (currentRate * a.smooth) + (a.measuredTxRate * (1. - a.smooth))
- a.requestCount = 0
- a.lastTxRateBucket = timeBucket
- }
-}
-
-func (a *adaptiveRateLimit) tokenBucketRefill() {
- now := sdk.NowTime()
- if a.lastRefilled.IsZero() {
- a.lastRefilled = now
- return
- }
-
- fillAmount := secondsFloat64(now.Sub(a.lastRefilled)) * a.fillRate
- a.tokenBucket.Refund(fillAmount)
- a.lastRefilled = now
-}
-
-func float64Seconds(v float64) time.Duration {
- return time.Duration(v * float64(time.Second))
-}
-
-func secondsFloat64(v time.Duration) float64 {
- return float64(v) / float64(time.Second)
-}
-
-func timeFloat64Seconds(v time.Time) float64 {
- return float64(v.UnixNano()) / float64(time.Second)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/adaptive_token_bucket.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/adaptive_token_bucket.go
deleted file mode 100644
index 052723e8e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/adaptive_token_bucket.go
+++ /dev/null
@@ -1,83 +0,0 @@
-package retry
-
-import (
- "math"
- "sync"
-)
-
-// adaptiveTokenBucket provides a concurrency safe utility for adding and
-// removing tokens from the available token bucket.
-type adaptiveTokenBucket struct {
- remainingTokens float64
- maxCapacity float64
- minCapacity float64
- mu sync.Mutex
-}
-
-// newAdaptiveTokenBucket returns an initialized adaptiveTokenBucket with the
-// capacity specified.
-func newAdaptiveTokenBucket(i float64) *adaptiveTokenBucket {
- return &adaptiveTokenBucket{
- remainingTokens: i,
- maxCapacity: i,
- minCapacity: 1,
- }
-}
-
-// Retrieve attempts to reduce the available tokens by the amount requested. If
-// there are tokens available true will be returned along with the number of
-// available tokens remaining. If amount requested is larger than the available
-// capacity, false will be returned along with the available capacity. If the
-// amount is less than the available capacity, the capacity will be reduced by
-// that amount, and the remaining capacity and true will be returned.
-func (t *adaptiveTokenBucket) Retrieve(amount float64) (available float64, retrieved bool) {
- t.mu.Lock()
- defer t.mu.Unlock()
-
- if amount > t.remainingTokens {
- return t.remainingTokens, false
- }
-
- t.remainingTokens -= amount
- return t.remainingTokens, true
-}
-
-// Refund returns the amount of tokens back to the available token bucket, up
-// to the initial capacity.
-func (t *adaptiveTokenBucket) Refund(amount float64) {
- t.mu.Lock()
- defer t.mu.Unlock()
-
- // Capacity cannot exceed max capacity.
- t.remainingTokens = math.Min(t.remainingTokens+amount, t.maxCapacity)
-}
-
-// Capacity returns the maximum capacity of tokens that the bucket could
-// contain.
-func (t *adaptiveTokenBucket) Capacity() float64 {
- t.mu.Lock()
- defer t.mu.Unlock()
-
- return t.maxCapacity
-}
-
-// Remaining returns the number of tokens that remaining in the bucket.
-func (t *adaptiveTokenBucket) Remaining() float64 {
- t.mu.Lock()
- defer t.mu.Unlock()
-
- return t.remainingTokens
-}
-
-// Resize adjusts the size of the token bucket. Returns the capacity remaining.
-func (t *adaptiveTokenBucket) Resize(size float64) float64 {
- t.mu.Lock()
- defer t.mu.Unlock()
-
- t.maxCapacity = math.Max(size, t.minCapacity)
-
- // Capacity needs to be capped at max capacity, if max size reduced.
- t.remainingTokens = math.Min(t.remainingTokens, t.maxCapacity)
-
- return t.remainingTokens
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/attempt_metrics.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/attempt_metrics.go
deleted file mode 100644
index bfa5bf7d1..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/attempt_metrics.go
+++ /dev/null
@@ -1,51 +0,0 @@
-package retry
-
-import (
- "context"
-
- "github.com/aws/smithy-go/metrics"
- "github.com/aws/smithy-go/middleware"
-)
-
-type attemptMetrics struct {
- Attempts metrics.Int64Counter
- Errors metrics.Int64Counter
-
- AttemptDuration metrics.Float64Histogram
-}
-
-func newAttemptMetrics(meter metrics.Meter) (*attemptMetrics, error) {
- m := &attemptMetrics{}
- var err error
-
- m.Attempts, err = meter.Int64Counter("client.call.attempts", func(o *metrics.InstrumentOptions) {
- o.UnitLabel = "{attempt}"
- o.Description = "The number of attempts for an individual operation"
- })
- if err != nil {
- return nil, err
- }
- m.Errors, err = meter.Int64Counter("client.call.errors", func(o *metrics.InstrumentOptions) {
- o.UnitLabel = "{error}"
- o.Description = "The number of errors for an operation"
- })
- if err != nil {
- return nil, err
- }
- m.AttemptDuration, err = meter.Float64Histogram("client.call.attempt_duration", func(o *metrics.InstrumentOptions) {
- o.UnitLabel = "s"
- o.Description = "The time it takes to connect to the service, send the request, and get back HTTP status code and headers (including time queued waiting to be sent)"
- })
- if err != nil {
- return nil, err
- }
-
- return m, nil
-}
-
-func withOperationMetadata(ctx context.Context) metrics.RecordMetricOption {
- return func(o *metrics.RecordMetricOptions) {
- o.Properties.Set("rpc.service", middleware.GetServiceID(ctx))
- o.Properties.Set("rpc.method", middleware.GetOperationName(ctx))
- }
-}
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
deleted file mode 100644
index 3a08ebe0a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/doc.go
+++ /dev/null
@@ -1,80 +0,0 @@
-// Package retry provides interfaces and implementations for SDK request retry behavior.
-//
-// # Retryer Interface and Implementations
-//
-// This package defines Retryer interface that is used to either implement custom retry behavior
-// or to extend the existing retry implementations provided by the SDK. This package provides a single
-// retry implementation: Standard.
-//
-// # Standard
-//
-// Standard is the default retryer implementation used by service clients. The standard retryer is a rate limited
-// retryer that has a configurable max attempts to limit the number of retry attempts when a retryable error occurs.
-// In addition, the retryer uses a configurable token bucket to rate limit the retry attempts across the client,
-// and uses an additional delay policy to limit the time between a requests subsequent attempts.
-//
-// By default the standard retryer uses the DefaultRetryables slice of IsErrorRetryable types to determine whether
-// a given error is retryable. By default this list of retryables includes the following:
-// - Retrying errors that implement the RetryableError method, and return true.
-// - Connection Errors
-// - 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.
-// - API Error Codes
-// - RequestTimeout, RequestTimeoutException
-// - Throttling, ThrottlingException, ThrottledException, RequestThrottledException, TooManyRequestsException,
-// RequestThrottled, SlowDown, EC2ThrottledException
-// - ProvisionedThroughputExceededException, RequestLimitExceeded, BandwidthLimitExceeded, LimitExceededException
-// - TransactionInProgressException, PriorRequestNotComplete
-//
-// The standard retryer will not retry a request in the event if the context associated with the request
-// has been cancelled. Applications must handle this case explicitly if they wish to retry with a different context
-// value.
-//
-// You can configure the standard retryer implementation to fit your applications by constructing a standard retryer
-// using the NewStandard function, and providing one more functional argument that mutate the StandardOptions
-// structure. StandardOptions provides the ability to modify the token bucket rate limiter, retryable error conditions,
-// and the retry delay policy.
-//
-// For example to modify the default retry attempts for the standard retryer:
-//
-// // configure the custom retryer
-// customRetry := retry.NewStandard(func(o *retry.StandardOptions) {
-// o.MaxAttempts = 5
-// })
-//
-// // create a service client with the retryer
-// s3.NewFromConfig(cfg, func(o *s3.Options) {
-// o.Retryer = customRetry
-// })
-//
-// # Utilities
-//
-// A number of package functions have been provided to easily wrap retryer implementations in an implementation agnostic
-// way. These are:
-//
-// AddWithErrorCodes - Provides the ability to add additional API error codes that should be considered retryable
-// in addition to those considered retryable by the provided retryer.
-//
-// AddWithMaxAttempts - Provides the ability to set the max number of attempts for retrying a request by wrapping
-// a retryer implementation.
-//
-// AddWithMaxBackoffDelay - Provides the ability to set the max back off delay that can occur before retrying a
-// request by wrapping a retryer implementation.
-//
-// The following package functions have been provided to easily satisfy different retry interfaces to further customize
-// a given retryer's behavior:
-//
-// BackoffDelayerFunc - Can be used to wrap a function to satisfy the BackoffDelayer interface. For example,
-// you can use this method to easily create custom back off policies to be used with the
-// standard retryer.
-//
-// IsErrorRetryableFunc - Can be used to wrap a function to satisfy the IsErrorRetryable interface. For example,
-// this can be used to extend the standard retryer to add additional logic to determine if an
-// error should be retried.
-//
-// IsErrorTimeoutFunc - Can be used to wrap a function to satisfy IsErrorTimeout interface. For example,
-// this can be used to extend the standard retryer to add additional logic to determine if an
-// error should be considered a timeout.
-package retry
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/errors.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/errors.go
deleted file mode 100644
index 3e432eefe..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/errors.go
+++ /dev/null
@@ -1,20 +0,0 @@
-package retry
-
-import "fmt"
-
-// MaxAttemptsError provides the error when the maximum number of attempts have
-// been exceeded.
-type MaxAttemptsError struct {
- Attempt int
- Err error
-}
-
-func (e *MaxAttemptsError) Error() string {
- return fmt.Sprintf("exceeded maximum number of attempts, %d, %v", e.Attempt, e.Err)
-}
-
-// Unwrap returns the nested error causing the max attempts error. Provides the
-// implementation for errors.Is and errors.As to unwrap nested errors.
-func (e *MaxAttemptsError) Unwrap() error {
- return e.Err
-}
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
deleted file mode 100644
index c266996de..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/jitter_backoff.go
+++ /dev/null
@@ -1,49 +0,0 @@
-package retry
-
-import (
- "math"
- "time"
-
- "github.com/aws/aws-sdk-go-v2/internal/rand"
- "github.com/aws/aws-sdk-go-v2/internal/timeconv"
-)
-
-// ExponentialJitterBackoff provides backoff delays with jitter based on the
-// number of attempts.
-type ExponentialJitterBackoff struct {
- maxBackoff time.Duration
- // precomputed number of attempts needed to reach max backoff.
- maxBackoffAttempts float64
-
- randFloat64 func() (float64, error)
-}
-
-// NewExponentialJitterBackoff returns an ExponentialJitterBackoff configured
-// for the max backoff.
-func NewExponentialJitterBackoff(maxBackoff time.Duration) *ExponentialJitterBackoff {
- return &ExponentialJitterBackoff{
- maxBackoff: maxBackoff,
- maxBackoffAttempts: math.Log2(
- float64(maxBackoff) / float64(time.Second)),
- randFloat64: rand.CryptoRandFloat64,
- }
-}
-
-// BackoffDelay returns the duration to wait before the next attempt should be
-// made. Returns an error if unable get a duration.
-func (j *ExponentialJitterBackoff) BackoffDelay(attempt int, err error) (time.Duration, error) {
- if attempt > int(j.maxBackoffAttempts) {
- return j.maxBackoff, nil
- }
-
- b, err := j.randFloat64()
- if err != nil {
- return 0, err
- }
-
- // [0.0, 1.0) * 2 ^ attempts
- ri := int64(1 << uint64(attempt))
- delaySeconds := b * float64(ri)
-
- return timeconv.FloatSecondsDur(delaySeconds), nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/metadata.go
deleted file mode 100644
index 7a3f18301..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/metadata.go
+++ /dev/null
@@ -1,52 +0,0 @@
-package retry
-
-import (
- awsmiddle "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
-)
-
-// attemptResultsKey is a metadata accessor key to retrieve metadata
-// for all request attempts.
-type attemptResultsKey struct {
-}
-
-// GetAttemptResults retrieves attempts results from middleware metadata.
-func GetAttemptResults(metadata middleware.Metadata) (AttemptResults, bool) {
- m, ok := metadata.Get(attemptResultsKey{}).(AttemptResults)
- return m, ok
-}
-
-// AttemptResults represents struct containing metadata returned by all request attempts.
-type AttemptResults struct {
-
- // Results is a slice consisting attempt result from all request attempts.
- // Results are stored in order request attempt is made.
- Results []AttemptResult
-}
-
-// AttemptResult represents attempt result returned by a single request attempt.
-type AttemptResult struct {
-
- // Err is the error if received for the request attempt.
- Err error
-
- // Retryable denotes if request may be retried. This states if an
- // error is considered retryable.
- Retryable bool
-
- // Retried indicates if this request was retried.
- Retried bool
-
- // ResponseMetadata is any existing metadata passed via the response middlewares.
- ResponseMetadata middleware.Metadata
-}
-
-// addAttemptResults adds attempt results to middleware metadata
-func addAttemptResults(metadata *middleware.Metadata, v AttemptResults) {
- metadata.Set(attemptResultsKey{}, v)
-}
-
-// GetRawResponse returns raw response recorded for the attempt result
-func (a AttemptResult) GetRawResponse() interface{} {
- return awsmiddle.GetRawResponse(a.ResponseMetadata)
-}
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
deleted file mode 100644
index 5549922ab..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/middleware.go
+++ /dev/null
@@ -1,418 +0,0 @@
-package retry
-
-import (
- "context"
- "errors"
- "fmt"
- "strconv"
- "strings"
- "time"
-
- internalcontext "github.com/aws/aws-sdk-go-v2/internal/context"
- "github.com/aws/smithy-go"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- awsmiddle "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/internal/sdk"
- "github.com/aws/smithy-go/logging"
- "github.com/aws/smithy-go/metrics"
- smithymiddle "github.com/aws/smithy-go/middleware"
- "github.com/aws/smithy-go/tracing"
- "github.com/aws/smithy-go/transport/http"
-)
-
-// RequestCloner is a function that can take an input request type and clone
-// the request for use in a subsequent retry attempt.
-type RequestCloner func(interface{}) interface{}
-
-type retryMetadata struct {
- AttemptNum int
- AttemptTime time.Time
- MaxAttempts int
- AttemptClockSkew time.Duration
-}
-
-// Attempt is a Smithy Finalize middleware that handles retry attempts using
-// the provided Retryer implementation.
-type Attempt struct {
- // Enable the logging of retry attempts performed by the SDK. This will
- // include logging retry attempts, unretryable errors, and when max
- // attempts are reached.
- LogAttempts bool
-
- // A Meter instance for recording retry-related metrics.
- OperationMeter metrics.Meter
-
- retryer aws.RetryerV2
- requestCloner RequestCloner
-}
-
-// define the threshold at which we will consider certain kind of errors to be probably
-// caused by clock skew
-const skewThreshold = 4 * time.Minute
-
-// NewAttemptMiddleware returns a new Attempt retry middleware.
-func NewAttemptMiddleware(retryer aws.Retryer, requestCloner RequestCloner, optFns ...func(*Attempt)) *Attempt {
- m := &Attempt{
- retryer: wrapAsRetryerV2(retryer),
- requestCloner: requestCloner,
- }
- for _, fn := range optFns {
- fn(m)
- }
- if m.OperationMeter == nil {
- m.OperationMeter = metrics.NopMeterProvider{}.Meter("")
- }
-
- return m
-}
-
-// ID returns the middleware identifier
-func (r *Attempt) ID() string { return "Retry" }
-
-func (r Attempt) logf(logger logging.Logger, classification logging.Classification, format string, v ...interface{}) {
- if !r.LogAttempts {
- return
- }
- logger.Logf(classification, format, v...)
-}
-
-// HandleFinalize utilizes the provider Retryer implementation to attempt
-// retries over the next handler
-func (r *Attempt) HandleFinalize(ctx context.Context, in smithymiddle.FinalizeInput, next smithymiddle.FinalizeHandler) (
- out smithymiddle.FinalizeOutput, metadata smithymiddle.Metadata, err error,
-) {
- var attemptNum int
- var attemptClockSkew time.Duration
- var attemptResults AttemptResults
-
- maxAttempts := r.retryer.MaxAttempts()
- releaseRetryToken := nopRelease
-
- retryMetrics, err := newAttemptMetrics(r.OperationMeter)
- if err != nil {
- return out, metadata, err
- }
-
- for {
- attemptNum++
- attemptInput := in
- attemptInput.Request = r.requestCloner(attemptInput.Request)
-
- // Record the metadata for the for attempt being started.
- attemptCtx := setRetryMetadata(ctx, retryMetadata{
- AttemptNum: attemptNum,
- AttemptTime: sdk.NowTime().UTC(),
- MaxAttempts: maxAttempts,
- AttemptClockSkew: attemptClockSkew,
- })
-
- // Setting clock skew to be used on other context (like signing)
- ctx = internalcontext.SetAttemptSkewContext(ctx, attemptClockSkew)
-
- var attemptResult AttemptResult
-
- attemptCtx, span := tracing.StartSpan(attemptCtx, "Attempt", func(o *tracing.SpanOptions) {
- o.Properties.Set("operation.attempt", attemptNum)
- })
- retryMetrics.Attempts.Add(ctx, 1, withOperationMetadata(ctx))
-
- start := sdk.NowTime()
- out, attemptResult, releaseRetryToken, err = r.handleAttempt(attemptCtx, attemptInput, releaseRetryToken, next)
- elapsed := sdk.NowTime().Sub(start)
-
- retryMetrics.AttemptDuration.Record(ctx, float64(elapsed)/1e9, withOperationMetadata(ctx))
- if err != nil {
- retryMetrics.Errors.Add(ctx, 1, withOperationMetadata(ctx), func(o *metrics.RecordMetricOptions) {
- o.Properties.Set("exception.type", errorType(err))
- })
- }
-
- span.End()
-
- attemptClockSkew, _ = awsmiddle.GetAttemptSkew(attemptResult.ResponseMetadata)
-
- // AttemptResult Retried states that the attempt was not successful, and
- // should be retried.
- shouldRetry := attemptResult.Retried
-
- // Add attempt metadata to list of all attempt metadata
- attemptResults.Results = append(attemptResults.Results, attemptResult)
-
- if !shouldRetry {
- // Ensure the last response's metadata is used as the bases for result
- // metadata returned by the stack. The Slice of attempt results
- // will be added to this cloned metadata.
- metadata = attemptResult.ResponseMetadata.Clone()
-
- break
- }
- }
-
- addAttemptResults(&metadata, attemptResults)
- return out, metadata, err
-}
-
-// handleAttempt handles an individual request attempt.
-func (r *Attempt) handleAttempt(
- ctx context.Context, in smithymiddle.FinalizeInput, releaseRetryToken func(error) error, next smithymiddle.FinalizeHandler,
-) (
- out smithymiddle.FinalizeOutput, attemptResult AttemptResult, _ func(error) error, err error,
-) {
- defer func() {
- attemptResult.Err = err
- }()
-
- // Short circuit if this attempt never can succeed because the context is
- // canceled. This reduces the chance of token pools being modified for
- // attempts that will not be made
- select {
- case <-ctx.Done():
- return out, attemptResult, nopRelease, ctx.Err()
- default:
- }
-
- //------------------------------
- // Get Attempt Token
- //------------------------------
- releaseAttemptToken, err := r.retryer.GetAttemptToken(ctx)
- if err != nil {
- return out, attemptResult, nopRelease, fmt.Errorf(
- "failed to get retry Send token, %w", err)
- }
-
- //------------------------------
- // Send Attempt
- //------------------------------
- logger := smithymiddle.GetLogger(ctx)
- service, operation := awsmiddle.GetServiceID(ctx), awsmiddle.GetOperationName(ctx)
- retryMetadata, _ := getRetryMetadata(ctx)
- attemptNum := retryMetadata.AttemptNum
- maxAttempts := retryMetadata.MaxAttempts
-
- // Following attempts must ensure the request payload stream starts in a
- // rewound state.
- if attemptNum > 1 {
- if rewindable, ok := in.Request.(interface{ RewindStream() error }); ok {
- if rewindErr := rewindable.RewindStream(); rewindErr != nil {
- return out, attemptResult, nopRelease, fmt.Errorf(
- "failed to rewind transport stream for retry, %w", rewindErr)
- }
- }
-
- r.logf(logger, logging.Debug, "retrying request %s/%s, attempt %d",
- service, operation, attemptNum)
- }
-
- var metadata smithymiddle.Metadata
- out, metadata, err = next.HandleFinalize(ctx, in)
- attemptResult.ResponseMetadata = metadata
-
- //------------------------------
- // Bookkeeping
- //------------------------------
- // Release the retry token based on the state of the attempt's error (if any).
- if releaseError := releaseRetryToken(err); releaseError != nil && err != nil {
- return out, attemptResult, nopRelease, fmt.Errorf(
- "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 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.
- if err == nil {
- return out, attemptResult, nopRelease, err
- }
-
- err = wrapAsClockSkew(ctx, err)
-
- //------------------------------
- // Is Retryable and Should Retry
- //------------------------------
- // If the attempt failed with an unretryable error, nothing further to do
- // but return, and inform the caller about the terminal failure.
- retryable := r.retryer.IsErrorRetryable(err)
- if !retryable {
- r.logf(logger, logging.Debug, "request failed with unretryable error %v", err)
- return out, attemptResult, nopRelease, err
- }
-
- // set retryable to true
- attemptResult.Retryable = true
-
- // Once the maximum number of attempts have been exhausted there is nothing
- // further to do other than inform the caller about the terminal failure.
- if maxAttempts > 0 && attemptNum >= maxAttempts {
- r.logf(logger, logging.Debug, "max retry attempts exhausted, max %d", maxAttempts)
- err = &MaxAttemptsError{
- Attempt: attemptNum,
- Err: err,
- }
- return out, attemptResult, nopRelease, err
- }
-
- //------------------------------
- // Get Retry (aka Retry Quota) Token
- //------------------------------
- // Get a retry token that will be released after the
- releaseRetryToken, retryTokenErr := r.retryer.GetRetryToken(ctx, err)
- if retryTokenErr != nil {
- return out, attemptResult, nopRelease, errors.Join(err, retryTokenErr)
- }
-
- //------------------------------
- // Retry Delay and Sleep
- //------------------------------
- // 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.
- retryDelay, reqErr := r.retryer.RetryDelay(attemptNum, err)
- if reqErr != nil {
- return out, attemptResult, releaseRetryToken, reqErr
- }
- if reqErr = sdk.SleepWithContext(ctx, retryDelay); reqErr != nil {
- err = &aws.RequestCanceledError{Err: reqErr}
- return out, attemptResult, releaseRetryToken, err
- }
-
- // The request should be re-attempted.
- attemptResult.Retried = true
-
- return out, attemptResult, releaseRetryToken, err
-}
-
-// errors that, if detected when we know there's a clock skew,
-// can be retried and have a high chance of success
-var possibleSkewCodes = map[string]struct{}{
- "InvalidSignatureException": {},
- "SignatureDoesNotMatch": {},
- "AuthFailure": {},
-}
-
-var definiteSkewCodes = map[string]struct{}{
- "RequestExpired": {},
- "RequestInTheFuture": {},
- "RequestTimeTooSkewed": {},
-}
-
-// wrapAsClockSkew checks if this error could be related to a clock skew
-// error and if so, wrap the error.
-func wrapAsClockSkew(ctx context.Context, err error) error {
- var v interface{ ErrorCode() string }
- if !errors.As(err, &v) {
- return err
- }
- if _, ok := definiteSkewCodes[v.ErrorCode()]; ok {
- return &retryableClockSkewError{Err: err}
- }
- _, isPossibleSkewCode := possibleSkewCodes[v.ErrorCode()]
- if skew := internalcontext.GetAttemptSkewContext(ctx); skew > skewThreshold && isPossibleSkewCode {
- return &retryableClockSkewError{Err: err}
- }
- return err
-}
-
-// MetricsHeader attaches SDK request metric header for retries to the transport
-type MetricsHeader struct{}
-
-// ID returns the middleware identifier
-func (r *MetricsHeader) ID() string {
- return "RetryMetricsHeader"
-}
-
-// HandleFinalize attaches the SDK request metric header to the transport layer
-func (r MetricsHeader) HandleFinalize(ctx context.Context, in smithymiddle.FinalizeInput, next smithymiddle.FinalizeHandler) (
- out smithymiddle.FinalizeOutput, metadata smithymiddle.Metadata, err error,
-) {
- retryMetadata, _ := getRetryMetadata(ctx)
-
- const retryMetricHeader = "Amz-Sdk-Request"
- var parts []string
-
- parts = append(parts, "attempt="+strconv.Itoa(retryMetadata.AttemptNum))
- if retryMetadata.MaxAttempts != 0 {
- parts = append(parts, "max="+strconv.Itoa(retryMetadata.MaxAttempts))
- }
-
- var ttl time.Time
- if deadline, ok := ctx.Deadline(); ok {
- ttl = deadline
- }
-
- // Only append the TTL if it can be determined.
- if !ttl.IsZero() && retryMetadata.AttemptClockSkew > 0 {
- const unixTimeFormat = "20060102T150405Z"
- ttl = ttl.Add(retryMetadata.AttemptClockSkew)
- parts = append(parts, "ttl="+ttl.Format(unixTimeFormat))
- }
-
- switch req := in.Request.(type) {
- case *http.Request:
- req.Header[retryMetricHeader] = append(req.Header[retryMetricHeader][:0], strings.Join(parts, "; "))
- default:
- return out, metadata, fmt.Errorf("unknown transport type %T", req)
- }
-
- return next.HandleFinalize(ctx, in)
-}
-
-type retryMetadataKey struct{}
-
-// getRetryMetadata retrieves retryMetadata from the context and a bool
-// indicating if it was set.
-//
-// Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues
-// to clear all stack values.
-func getRetryMetadata(ctx context.Context) (metadata retryMetadata, ok bool) {
- metadata, ok = smithymiddle.GetStackValue(ctx, retryMetadataKey{}).(retryMetadata)
- return metadata, ok
-}
-
-// setRetryMetadata sets the retryMetadata on the context.
-//
-// Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues
-// to clear all stack values.
-func setRetryMetadata(ctx context.Context, metadata retryMetadata) context.Context {
- return smithymiddle.WithStackValue(ctx, retryMetadataKey{}, metadata)
-}
-
-// AddRetryMiddlewaresOptions is the set of options that can be passed to
-// AddRetryMiddlewares for configuring retry associated middleware.
-type AddRetryMiddlewaresOptions struct {
- Retryer aws.Retryer
-
- // Enable the logging of retry attempts performed by the SDK. This will
- // include logging retry attempts, unretryable errors, and when max
- // attempts are reached.
- LogRetryAttempts bool
-}
-
-// AddRetryMiddlewares adds retry middleware to operation middleware stack
-func AddRetryMiddlewares(stack *smithymiddle.Stack, options AddRetryMiddlewaresOptions) error {
- attempt := NewAttemptMiddleware(options.Retryer, http.RequestCloner, func(middleware *Attempt) {
- middleware.LogAttempts = options.LogRetryAttempts
- })
-
- // index retry to before signing, if signing exists
- if err := stack.Finalize.Insert(attempt, "Signing", smithymiddle.Before); err != nil {
- return err
- }
-
- if err := stack.Finalize.Insert(&MetricsHeader{}, attempt.ID(), smithymiddle.After); err != nil {
- return err
- }
- return nil
-}
-
-// Determines the value of exception.type for metrics purposes. We prefer an
-// API-specific error code, otherwise it's just the Go type for the value.
-func errorType(err error) string {
- var terr smithy.APIError
- if errors.As(err, &terr) {
- return terr.ErrorCode()
- }
- return fmt.Sprintf("%T", err)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/retry.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/retry.go
deleted file mode 100644
index af81635b3..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/retry.go
+++ /dev/null
@@ -1,90 +0,0 @@
-package retry
-
-import (
- "context"
- "time"
-
- "github.com/aws/aws-sdk-go-v2/aws"
-)
-
-// AddWithErrorCodes returns a Retryer with additional error codes considered
-// for determining if the error should be retried.
-func AddWithErrorCodes(r aws.Retryer, codes ...string) aws.Retryer {
- retryable := &RetryableErrorCode{
- Codes: map[string]struct{}{},
- }
- for _, c := range codes {
- retryable.Codes[c] = struct{}{}
- }
-
- return &withIsErrorRetryable{
- RetryerV2: wrapAsRetryerV2(r),
- Retryable: retryable,
- }
-}
-
-type withIsErrorRetryable struct {
- aws.RetryerV2
- Retryable IsErrorRetryable
-}
-
-func (r *withIsErrorRetryable) IsErrorRetryable(err error) bool {
- if v := r.Retryable.IsErrorRetryable(err); v != aws.UnknownTernary {
- return v.Bool()
- }
- return r.RetryerV2.IsErrorRetryable(err)
-}
-
-// AddWithMaxAttempts returns a Retryer with MaxAttempts set to the value
-// specified.
-func AddWithMaxAttempts(r aws.Retryer, max int) aws.Retryer {
- return &withMaxAttempts{
- RetryerV2: wrapAsRetryerV2(r),
- Max: max,
- }
-}
-
-type withMaxAttempts struct {
- aws.RetryerV2
- Max int
-}
-
-func (w *withMaxAttempts) MaxAttempts() int {
- return w.Max
-}
-
-// AddWithMaxBackoffDelay returns a retryer wrapping the passed in retryer
-// overriding the RetryDelay behavior for a alternate minimum initial backoff
-// delay.
-func AddWithMaxBackoffDelay(r aws.Retryer, delay time.Duration) aws.Retryer {
- return &withMaxBackoffDelay{
- RetryerV2: wrapAsRetryerV2(r),
- backoff: NewExponentialJitterBackoff(delay),
- }
-}
-
-type withMaxBackoffDelay struct {
- aws.RetryerV2
- backoff *ExponentialJitterBackoff
-}
-
-func (r *withMaxBackoffDelay) RetryDelay(attempt int, err error) (time.Duration, error) {
- return r.backoff.BackoffDelay(attempt, err)
-}
-
-type wrappedAsRetryerV2 struct {
- aws.Retryer
-}
-
-func wrapAsRetryerV2(r aws.Retryer) aws.RetryerV2 {
- v, ok := r.(aws.RetryerV2)
- if !ok {
- v = wrappedAsRetryerV2{Retryer: r}
- }
-
- return v
-}
-
-func (w wrappedAsRetryerV2) GetAttemptToken(context.Context) (func(error) error, error) {
- return w.Retryer.GetInitialToken(), nil
-}
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
deleted file mode 100644
index 1b485f998..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/retryable_error.go
+++ /dev/null
@@ -1,228 +0,0 @@
-package retry
-
-import (
- "errors"
- "fmt"
- "net"
- "net/url"
- "strings"
-
- "github.com/aws/aws-sdk-go-v2/aws"
-)
-
-// IsErrorRetryable provides the interface of an implementation to determine if
-// a error as the result of an operation is retryable.
-type IsErrorRetryable interface {
- IsErrorRetryable(error) aws.Ternary
-}
-
-// IsErrorRetryables is a collection of checks to determine of the error is
-// retryable. Iterates through the checks and returns the state of retryable
-// if any check returns something other than unknown.
-type IsErrorRetryables []IsErrorRetryable
-
-// IsErrorRetryable returns if the error is retryable if any of the checks in
-// the list return a value other than unknown.
-func (r IsErrorRetryables) IsErrorRetryable(err error) aws.Ternary {
- for _, re := range r {
- if v := re.IsErrorRetryable(err); v != aws.UnknownTernary {
- return v
- }
- }
- return aws.UnknownTernary
-}
-
-// IsErrorRetryableFunc wraps a function with the IsErrorRetryable interface.
-type IsErrorRetryableFunc func(error) aws.Ternary
-
-// IsErrorRetryable returns if the error is retryable.
-func (fn IsErrorRetryableFunc) IsErrorRetryable(err error) aws.Ternary {
- return fn(err)
-}
-
-// RetryableError is an IsErrorRetryable implementation which uses the
-// optional interface Retryable on the error value to determine if the error is
-// retryable.
-type RetryableError struct{}
-
-// IsErrorRetryable returns if the error is retryable if it satisfies the
-// Retryable interface, and returns if the attempt should be retried.
-func (RetryableError) IsErrorRetryable(err error) aws.Ternary {
- var v interface{ RetryableError() bool }
-
- if !errors.As(err, &v) {
- return aws.UnknownTernary
- }
-
- return aws.BoolTernary(v.RetryableError())
-}
-
-// NoRetryCanceledError detects if the error was an request canceled error and
-// returns if so.
-type NoRetryCanceledError struct{}
-
-// IsErrorRetryable returns the error is not retryable if the request was
-// canceled.
-func (NoRetryCanceledError) IsErrorRetryable(err error) aws.Ternary {
- var v interface{ CanceledError() bool }
-
- if !errors.As(err, &v) {
- return aws.UnknownTernary
- }
-
- if v.CanceledError() {
- return aws.FalseTernary
- }
- return aws.UnknownTernary
-}
-
-// RetryableConnectionError determines if the underlying error is an HTTP
-// connection and returns if it should be retried.
-//
-// Includes errors such as connection reset, connection refused, net dial,
-// temporary, and timeout errors.
-type RetryableConnectionError struct{}
-
-// IsErrorRetryable returns if the error is caused by and HTTP connection
-// error, and should be retried.
-func (r RetryableConnectionError) IsErrorRetryable(err error) aws.Ternary {
- if err == nil {
- return aws.UnknownTernary
- }
- var retryable bool
-
- var conErr interface{ ConnectionError() bool }
- var tempErr interface{ Temporary() bool }
- var timeoutErr interface{ Timeout() bool }
- var urlErr *url.Error
- var netOpErr *net.OpError
- var dnsError *net.DNSError
-
- if errors.As(err, &dnsError) {
- // NXDOMAIN errors should not be retried
- if dnsError.IsNotFound {
- return aws.BoolTernary(false)
- }
-
- // if !dnsError.Temporary(), error may or may not be temporary,
- // (i.e. !Temporary() =/=> !retryable) so we should fall through to
- // remaining checks
- if dnsError.Temporary() {
- return aws.BoolTernary(true)
- }
- }
-
- switch {
- case errors.As(err, &conErr) && conErr.ConnectionError():
- retryable = true
-
- case strings.Contains(err.Error(), "use of closed network connection"):
- fallthrough
- case strings.Contains(err.Error(), "connection reset"):
- // The errors "connection reset" and "use of closed network connection"
- // are effectively the same. It appears to be the difference between
- // sync and async read of TCP RST in the stdlib's net.Conn read loop.
- // see #2737
- retryable = true
-
- case errors.As(err, &urlErr):
- // Refused connections should be retried as the service may not yet be
- // running on the port. Go TCP dial considers refused connections as
- // not temporary.
- if strings.Contains(urlErr.Error(), "connection refused") {
- retryable = true
- } else {
- return r.IsErrorRetryable(errors.Unwrap(urlErr))
- }
-
- case errors.As(err, &netOpErr):
- // Network dial, or temporary network errors are always retryable.
- if strings.EqualFold(netOpErr.Op, "dial") || netOpErr.Temporary() {
- retryable = true
- } else {
- return r.IsErrorRetryable(errors.Unwrap(netOpErr))
- }
-
- case errors.As(err, &tempErr) && tempErr.Temporary():
- // Fallback to the generic temporary check, with temporary errors
- // retryable.
- retryable = true
-
- case errors.As(err, &timeoutErr) && timeoutErr.Timeout():
- // Fallback to the generic timeout check, with timeout errors
- // retryable.
- retryable = true
-
- default:
- return aws.UnknownTernary
- }
-
- return aws.BoolTernary(retryable)
-
-}
-
-// RetryableHTTPStatusCode provides a IsErrorRetryable based on HTTP status
-// codes.
-type RetryableHTTPStatusCode struct {
- Codes map[int]struct{}
-}
-
-// IsErrorRetryable return if the passed in error is retryable based on the
-// HTTP status code.
-func (r RetryableHTTPStatusCode) IsErrorRetryable(err error) aws.Ternary {
- var v interface{ HTTPStatusCode() int }
-
- if !errors.As(err, &v) {
- return aws.UnknownTernary
- }
-
- _, ok := r.Codes[v.HTTPStatusCode()]
- if !ok {
- return aws.UnknownTernary
- }
-
- return aws.TrueTernary
-}
-
-// RetryableErrorCode determines if an attempt should be retried based on the
-// API error code.
-type RetryableErrorCode struct {
- Codes map[string]struct{}
-}
-
-// IsErrorRetryable return if the error is retryable based on the error codes.
-// Returns unknown if the error doesn't have a code or it is unknown.
-func (r RetryableErrorCode) IsErrorRetryable(err error) aws.Ternary {
- var v interface{ ErrorCode() string }
-
- if !errors.As(err, &v) {
- return aws.UnknownTernary
- }
-
- _, ok := r.Codes[v.ErrorCode()]
- if !ok {
- return aws.UnknownTernary
- }
-
- return aws.TrueTernary
-}
-
-// retryableClockSkewError marks errors that can be caused by clock skew
-// (difference between server time and client time).
-// This is returned when there's certain confidence that adjusting the client time
-// could allow a retry to succeed
-type retryableClockSkewError struct{ Err error }
-
-func (e *retryableClockSkewError) Error() string {
- return fmt.Sprintf("Probable clock skew error: %v", e.Err)
-}
-
-// Unwrap returns the wrapped error.
-func (e *retryableClockSkewError) Unwrap() error {
- return e.Err
-}
-
-// RetryableError allows the retryer to retry this request
-func (e *retryableClockSkewError) RetryableError() bool {
- return true
-}
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
deleted file mode 100644
index d5ea93222..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/standard.go
+++ /dev/null
@@ -1,269 +0,0 @@
-package retry
-
-import (
- "context"
- "fmt"
- "time"
-
- "github.com/aws/aws-sdk-go-v2/aws/ratelimit"
-)
-
-// BackoffDelayer provides the interface for determining the delay to before
-// another request attempt, that previously failed.
-type BackoffDelayer interface {
- BackoffDelay(attempt int, err error) (time.Duration, error)
-}
-
-// BackoffDelayerFunc provides a wrapper around a function to determine the
-// backoff delay of an attempt retry.
-type BackoffDelayerFunc func(int, error) (time.Duration, error)
-
-// BackoffDelay returns the delay before attempt to retry a request.
-func (fn BackoffDelayerFunc) BackoffDelay(attempt int, err error) (time.Duration, error) {
- return fn(attempt, err)
-}
-
-const (
- // DefaultMaxAttempts is the maximum of attempts for an API request
- DefaultMaxAttempts int = 3
-
- // DefaultMaxBackoff is the maximum back off delay between attempts
- DefaultMaxBackoff time.Duration = 20 * time.Second
-)
-
-// Default retry token quota values.
-const (
- DefaultRetryRateTokens uint = 500
- DefaultRetryCost uint = 5
- DefaultRetryTimeoutCost uint = 10
- DefaultNoRetryIncrement uint = 1
-)
-
-// DefaultRetryableHTTPStatusCodes is the default set of HTTP status codes the SDK
-// should consider as retryable errors.
-var DefaultRetryableHTTPStatusCodes = map[int]struct{}{
- 500: {},
- 502: {},
- 503: {},
- 504: {},
-}
-
-// DefaultRetryableErrorCodes provides the set of API error codes that should
-// be retried.
-var DefaultRetryableErrorCodes = map[string]struct{}{
- "RequestTimeout": {},
- "RequestTimeoutException": {},
-}
-
-// DefaultThrottleErrorCodes provides the set of API error codes that are
-// considered throttle errors.
-var DefaultThrottleErrorCodes = map[string]struct{}{
- "Throttling": {},
- "ThrottlingException": {},
- "ThrottledException": {},
- "RequestThrottledException": {},
- "TooManyRequestsException": {},
- "ProvisionedThroughputExceededException": {},
- "TransactionInProgressException": {},
- "RequestLimitExceeded": {},
- "BandwidthLimitExceeded": {},
- "LimitExceededException": {},
- "RequestThrottled": {},
- "SlowDown": {},
- "PriorRequestNotComplete": {},
- "EC2ThrottledException": {},
-}
-
-// DefaultRetryables provides the set of retryable checks that are used by
-// default.
-var DefaultRetryables = []IsErrorRetryable{
- NoRetryCanceledError{},
- RetryableError{},
- RetryableConnectionError{},
- RetryableHTTPStatusCode{
- Codes: DefaultRetryableHTTPStatusCodes,
- },
- RetryableErrorCode{
- Codes: DefaultRetryableErrorCodes,
- },
- RetryableErrorCode{
- Codes: DefaultThrottleErrorCodes,
- },
-}
-
-// DefaultTimeouts provides the set of timeout checks that are used by default.
-var DefaultTimeouts = []IsErrorTimeout{
- TimeouterError{},
-}
-
-// StandardOptions provides the functional options for configuring the standard
-// retryable, and delay behavior.
-type StandardOptions struct {
- // Maximum number of attempts that should be made.
- MaxAttempts int
-
- // MaxBackoff duration between retried attempts.
- MaxBackoff time.Duration
-
- // Provides the backoff strategy the retryer will use to determine the
- // delay between retry attempts.
- Backoff BackoffDelayer
-
- // Set of strategies to determine if the attempt should be retried based on
- // the error response received.
- //
- // It is safe to append to this list in NewStandard's functional options.
- Retryables []IsErrorRetryable
-
- // 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.
- Timeouts []IsErrorTimeout
-
- // Provides the rate limiting strategy for rate limiting attempt retries
- // across all attempts the retryer is being used with.
- //
- // A RateLimiter operates as a token bucket with a set capacity, where
- // attempt failures events consume tokens. A retry attempt that attempts to
- // 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 (DefaultRetryCost)
- // - a retry caused by other errors costs 5 tokens (DefaultRetryTimeoutCost)
- // - 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
-
- // The cost to deduct from the RateLimiter's token bucket per retry.
- RetryCost uint
-
- // The cost to deduct from the RateLimiter's token bucket per retry caused
- // by timeout error.
- RetryTimeoutCost uint
-
- // The cost to payback to the RateLimiter's token bucket for successful
- // attempts.
- NoRetryIncrement uint
-}
-
-// RateLimiter provides the interface for limiting the rate of attempt retries
-// allowed by the retryer.
-type RateLimiter interface {
- GetToken(ctx context.Context, cost uint) (releaseToken func() error, err error)
- AddTokens(uint) error
-}
-
-// Standard is the standard retry pattern for the SDK. It uses a set of
-// retryable checks to determine of the failed attempt should be retried, and
-// what retry delay should be used.
-type Standard struct {
- options StandardOptions
-
- timeout IsErrorTimeout
- retryable IsErrorRetryable
- backoff BackoffDelayer
-}
-
-// NewStandard initializes a standard retry behavior with defaults that can be
-// overridden via functional options.
-func NewStandard(fnOpts ...func(*StandardOptions)) *Standard {
- o := StandardOptions{
- MaxAttempts: DefaultMaxAttempts,
- MaxBackoff: DefaultMaxBackoff,
- Retryables: append([]IsErrorRetryable{}, DefaultRetryables...),
- Timeouts: append([]IsErrorTimeout{}, DefaultTimeouts...),
-
- RateLimiter: ratelimit.NewTokenRateLimit(DefaultRetryRateTokens),
- RetryCost: DefaultRetryCost,
- RetryTimeoutCost: DefaultRetryTimeoutCost,
- NoRetryIncrement: DefaultNoRetryIncrement,
- }
- for _, fn := range fnOpts {
- fn(&o)
- }
- if o.MaxAttempts <= 0 {
- o.MaxAttempts = DefaultMaxAttempts
- }
-
- backoff := o.Backoff
- if backoff == nil {
- backoff = NewExponentialJitterBackoff(o.MaxBackoff)
- }
-
- return &Standard{
- options: o,
- backoff: backoff,
- retryable: IsErrorRetryables(o.Retryables),
- timeout: IsErrorTimeouts(o.Timeouts),
- }
-}
-
-// MaxAttempts returns the maximum number of attempts that can be made for a
-// request before failing.
-func (s *Standard) MaxAttempts() int {
- return s.options.MaxAttempts
-}
-
-// IsErrorRetryable returns if the error is can be retried or not. Should not
-// consider the number of attempts made.
-func (s *Standard) IsErrorRetryable(err error) bool {
- return s.retryable.IsErrorRetryable(err).Bool()
-}
-
-// RetryDelay returns the delay to use before another request attempt is made.
-func (s *Standard) RetryDelay(attempt int, err error) (time.Duration, error) {
- return s.backoff.BackoffDelay(attempt, err)
-}
-
-// 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) {
- return s.GetInitialToken(), nil
-}
-
-// GetInitialToken returns a token for adding the NoRetryIncrement to the
-// RateLimiter token if the attempt completed successfully without error.
-//
-// InitialToken applies to result of the each attempt, including the first.
-// Whereas the RetryToken applies to the result of subsequent attempts.
-//
-// Deprecated: use GetAttemptToken instead.
-func (s *Standard) GetInitialToken() func(error) error {
- return releaseToken(s.noRetryIncrement).release
-}
-
-func (s *Standard) noRetryIncrement() error {
- return s.options.RateLimiter.AddTokens(s.options.NoRetryIncrement)
-}
-
-// GetRetryToken attempts to deduct the retry cost from the retry token pool.
-// 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 s.timeout.IsErrorTimeout(opErr).Bool() {
- cost = s.options.RetryTimeoutCost
- }
-
- fn, err := s.options.RateLimiter.GetToken(ctx, cost)
- if err != nil {
- return nil, fmt.Errorf("failed to get rate limit token, %w", err)
- }
-
- return releaseToken(fn).release, nil
-}
-
-func nopRelease(error) error { return nil }
-
-type releaseToken func() error
-
-func (f releaseToken) release(err error) error {
- if err != nil {
- return nil
- }
-
- return f()
-}
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
deleted file mode 100644
index c4b844d15..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/throttle_error.go
+++ /dev/null
@@ -1,60 +0,0 @@
-package retry
-
-import (
- "errors"
-
- "github.com/aws/aws-sdk-go-v2/aws"
-)
-
-// IsErrorThrottle provides the interface of an implementation to determine if
-// a error response from an operation is a throttling error.
-type IsErrorThrottle interface {
- IsErrorThrottle(error) aws.Ternary
-}
-
-// IsErrorThrottles is a collection of checks to determine of the error a
-// throttle error. Iterates through the checks and returns the state of
-// throttle if any check returns something other than unknown.
-type IsErrorThrottles []IsErrorThrottle
-
-// IsErrorThrottle returns if the error is a throttle error if any of the
-// checks in the list return a value other than unknown.
-func (r IsErrorThrottles) IsErrorThrottle(err error) aws.Ternary {
- for _, re := range r {
- if v := re.IsErrorThrottle(err); v != aws.UnknownTernary {
- return v
- }
- }
- return aws.UnknownTernary
-}
-
-// IsErrorThrottleFunc wraps a function with the IsErrorThrottle interface.
-type IsErrorThrottleFunc func(error) aws.Ternary
-
-// IsErrorThrottle returns if the error is a throttle error.
-func (fn IsErrorThrottleFunc) IsErrorThrottle(err error) aws.Ternary {
- return fn(err)
-}
-
-// ThrottleErrorCode determines if an attempt should be retried based on the
-// API error code.
-type ThrottleErrorCode struct {
- Codes map[string]struct{}
-}
-
-// IsErrorThrottle return if the error is a throttle error based on the error
-// codes. Returns unknown if the error doesn't have a code or it is unknown.
-func (r ThrottleErrorCode) IsErrorThrottle(err error) aws.Ternary {
- var v interface{ ErrorCode() string }
-
- if !errors.As(err, &v) {
- return aws.UnknownTernary
- }
-
- _, ok := r.Codes[v.ErrorCode()]
- if !ok {
- return aws.UnknownTernary
- }
-
- return aws.TrueTernary
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/timeout_error.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/timeout_error.go
deleted file mode 100644
index 3d47870d2..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/timeout_error.go
+++ /dev/null
@@ -1,52 +0,0 @@
-package retry
-
-import (
- "errors"
-
- "github.com/aws/aws-sdk-go-v2/aws"
-)
-
-// IsErrorTimeout provides the interface of an implementation to determine if
-// a error matches.
-type IsErrorTimeout interface {
- IsErrorTimeout(err error) aws.Ternary
-}
-
-// IsErrorTimeouts is a collection of checks to determine of the error is
-// retryable. Iterates through the checks and returns the state of retryable
-// if any check returns something other than unknown.
-type IsErrorTimeouts []IsErrorTimeout
-
-// IsErrorTimeout returns if the error is retryable if any of the checks in
-// the list return a value other than unknown.
-func (ts IsErrorTimeouts) IsErrorTimeout(err error) aws.Ternary {
- for _, t := range ts {
- if v := t.IsErrorTimeout(err); v != aws.UnknownTernary {
- return v
- }
- }
- return aws.UnknownTernary
-}
-
-// IsErrorTimeoutFunc wraps a function with the IsErrorTimeout interface.
-type IsErrorTimeoutFunc func(error) aws.Ternary
-
-// IsErrorTimeout returns if the error is retryable.
-func (fn IsErrorTimeoutFunc) IsErrorTimeout(err error) aws.Ternary {
- return fn(err)
-}
-
-// TimeouterError provides the IsErrorTimeout implementation for determining if
-// an error is a timeout based on type with the Timeout method.
-type TimeouterError struct{}
-
-// IsErrorTimeout returns if the error is a timeout error.
-func (t TimeouterError) IsErrorTimeout(err error) aws.Ternary {
- var v interface{ Timeout() bool }
-
- if !errors.As(err, &v) {
- return aws.UnknownTernary
- }
-
- return aws.BoolTernary(v.Timeout())
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/retryer.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/retryer.go
deleted file mode 100644
index b0ba4cb2f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retryer.go
+++ /dev/null
@@ -1,127 +0,0 @@
-package aws
-
-import (
- "context"
- "fmt"
- "time"
-)
-
-// RetryMode provides the mode the API client will use to create a retryer
-// based on.
-type RetryMode string
-
-const (
- // RetryModeStandard model provides rate limited retry attempts with
- // exponential backoff delay.
- RetryModeStandard RetryMode = "standard"
-
- // RetryModeAdaptive model provides attempt send rate limiting on throttle
- // responses in addition to standard mode's retry rate limiting.
- //
- // Adaptive retry mode is experimental and is subject to change in the
- // future.
- RetryModeAdaptive RetryMode = "adaptive"
-)
-
-// ParseRetryMode attempts to parse a RetryMode from the given string.
-// Returning error if the value is not a known RetryMode.
-func ParseRetryMode(v string) (mode RetryMode, err error) {
- switch v {
- case "standard":
- return RetryModeStandard, nil
- case "adaptive":
- return RetryModeAdaptive, nil
- default:
- return mode, fmt.Errorf("unknown RetryMode, %v", v)
- }
-}
-
-func (m RetryMode) String() string { return string(m) }
-
-// Retryer is an interface to determine if a given error from a
-// attempt should be retried, and if so what backoff delay to apply. The
-// default implementation used by most services is the retry package's Standard
-// type. Which contains basic retry logic using exponential backoff.
-type Retryer interface {
- // IsErrorRetryable returns if the failed attempt is retryable. This check
- // should determine if the error can be retried, or if the error is
- // terminal.
- IsErrorRetryable(error) bool
-
- // MaxAttempts returns the maximum number of attempts that can be made for
- // an attempt before failing. A value of 0 implies that the attempt should
- // be retried until it succeeds if the errors are retryable.
- MaxAttempts() int
-
- // RetryDelay returns the delay that should be used before retrying the
- // attempt. Will return error if the delay could not be determined.
- RetryDelay(attempt int, opErr error) (time.Duration, error)
-
- // GetRetryToken attempts to deduct the retry cost from the retry token pool.
- // Returning the token release function, or error.
- GetRetryToken(ctx context.Context, opErr error) (releaseToken func(error) error, err error)
-
- // GetInitialToken returns the initial attempt token that can increment the
- // retry token pool if the attempt is successful.
- GetInitialToken() (releaseToken func(error) error)
-}
-
-// RetryerV2 is an interface to determine if a given error from an attempt
-// should be retried, and if so what backoff delay to apply. The default
-// implementation used by most services is the retry package's Standard type.
-// Which contains basic retry logic using exponential backoff.
-//
-// RetryerV2 replaces the Retryer interface, deprecating the GetInitialToken
-// method in favor of GetAttemptToken which takes a context, and can return an error.
-//
-// The SDK's retry package's Attempt middleware, and utilities will always
-// wrap a Retryer as a RetryerV2. Delegating to GetInitialToken, only if
-// GetAttemptToken is not implemented.
-type RetryerV2 interface {
- Retryer
-
- // GetInitialToken returns the initial attempt token that can increment the
- // retry token pool if the attempt is successful.
- //
- // Deprecated: This method does not provide a way to block using Context,
- // nor can it return an error. Use RetryerV2, and GetAttemptToken instead.
- GetInitialToken() (releaseToken func(error) error)
-
- // GetAttemptToken returns the send token that can be used to rate limit
- // attempt calls. Will be used by the SDK's retry package's Attempt
- // middleware to get a send token prior to calling the temp and releasing
- // the send token after the attempt has been made.
- GetAttemptToken(context.Context) (func(error) error, error)
-}
-
-// NopRetryer provides a RequestRetryDecider implementation that will flag
-// all attempt errors as not retryable, with a max attempts of 1.
-type NopRetryer struct{}
-
-// IsErrorRetryable returns false for all error values.
-func (NopRetryer) IsErrorRetryable(error) bool { return false }
-
-// MaxAttempts always returns 1 for the original attempt.
-func (NopRetryer) MaxAttempts() int { return 1 }
-
-// RetryDelay is not valid for the NopRetryer. Will always return error.
-func (NopRetryer) RetryDelay(int, error) (time.Duration, error) {
- return 0, fmt.Errorf("not retrying any attempt errors")
-}
-
-// GetRetryToken returns a stub function that does nothing.
-func (NopRetryer) GetRetryToken(context.Context, error) (func(error) error, error) {
- return nopReleaseToken, nil
-}
-
-// GetInitialToken returns a stub function that does nothing.
-func (NopRetryer) GetInitialToken() func(error) error {
- return nopReleaseToken
-}
-
-// GetAttemptToken returns a stub function that does nothing.
-func (NopRetryer) GetAttemptToken(context.Context) (func(error) error, error) {
- return nopReleaseToken, nil
-}
-
-func nopReleaseToken(error) error { return nil }
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/runtime.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/runtime.go
deleted file mode 100644
index 3af9b2b33..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/runtime.go
+++ /dev/null
@@ -1,14 +0,0 @@
-package aws
-
-// ExecutionEnvironmentID is the AWS execution environment runtime identifier.
-type ExecutionEnvironmentID string
-
-// RuntimeEnvironment is a collection of values that are determined at runtime
-// based on the environment that the SDK is executing in. Some of these values
-// may or may not be present based on the executing environment and certain SDK
-// configuration properties that drive whether these values are populated..
-type RuntimeEnvironment struct {
- EnvironmentIdentifier ExecutionEnvironmentID
- Region string
- EC2InstanceMetadataRegion string
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/cache.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/cache.go
deleted file mode 100644
index cbf22f1d0..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/cache.go
+++ /dev/null
@@ -1,115 +0,0 @@
-package v4
-
-import (
- "strings"
- "sync"
- "time"
-
- "github.com/aws/aws-sdk-go-v2/aws"
-)
-
-func lookupKey(service, region string) string {
- var s strings.Builder
- s.Grow(len(region) + len(service) + 3)
- s.WriteString(region)
- s.WriteRune('/')
- s.WriteString(service)
- return s.String()
-}
-
-type derivedKey struct {
- AccessKey string
- Date time.Time
- Credential []byte
-}
-
-type derivedKeyCache struct {
- values map[string]derivedKey
- mutex sync.RWMutex
-}
-
-func newDerivedKeyCache() derivedKeyCache {
- return derivedKeyCache{
- values: make(map[string]derivedKey),
- }
-}
-
-func (s *derivedKeyCache) Get(credentials aws.Credentials, service, region string, signingTime SigningTime) []byte {
- key := lookupKey(service, region)
- s.mutex.RLock()
- if cred, ok := s.get(key, credentials, signingTime.Time); ok {
- s.mutex.RUnlock()
- return cred
- }
- s.mutex.RUnlock()
-
- s.mutex.Lock()
- if cred, ok := s.get(key, credentials, signingTime.Time); ok {
- s.mutex.Unlock()
- return cred
- }
- cred := deriveKey(credentials.SecretAccessKey, service, region, signingTime)
- entry := derivedKey{
- AccessKey: credentials.AccessKeyID,
- Date: signingTime.Time,
- Credential: cred,
- }
- s.values[key] = entry
- s.mutex.Unlock()
-
- return cred
-}
-
-func (s *derivedKeyCache) get(key string, credentials aws.Credentials, signingTime time.Time) ([]byte, bool) {
- cacheEntry, ok := s.retrieveFromCache(key)
- if ok && cacheEntry.AccessKey == credentials.AccessKeyID && isSameDay(signingTime, cacheEntry.Date) {
- return cacheEntry.Credential, true
- }
- return nil, false
-}
-
-func (s *derivedKeyCache) retrieveFromCache(key string) (derivedKey, bool) {
- if v, ok := s.values[key]; ok {
- return v, true
- }
- return derivedKey{}, false
-}
-
-// SigningKeyDeriver derives a signing key from a set of credentials
-type SigningKeyDeriver struct {
- cache derivedKeyCache
-}
-
-// NewSigningKeyDeriver returns a new SigningKeyDeriver
-func NewSigningKeyDeriver() *SigningKeyDeriver {
- return &SigningKeyDeriver{
- cache: newDerivedKeyCache(),
- }
-}
-
-// DeriveKey returns a derived signing key from the given credentials to be used with SigV4 signing.
-func (k *SigningKeyDeriver) DeriveKey(credential aws.Credentials, service, region string, signingTime SigningTime) []byte {
- return k.cache.Get(credential, service, region, signingTime)
-}
-
-func deriveKey(secret, service, region string, t SigningTime) []byte {
- hmacDate := HMACSHA256([]byte("AWS4"+secret), []byte(t.ShortTimeFormat()))
- hmacRegion := HMACSHA256(hmacDate, []byte(region))
- hmacService := HMACSHA256(hmacRegion, []byte(service))
- return HMACSHA256(hmacService, []byte("aws4_request"))
-}
-
-func isSameDay(x, y time.Time) bool {
- xYear, xMonth, xDay := x.Date()
- yYear, yMonth, yDay := y.Date()
-
- if xYear != yYear {
- return false
- }
-
- if xMonth != yMonth {
- return false
- }
-
- return xDay == yDay
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/const.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/const.go
deleted file mode 100644
index a23cb003b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/const.go
+++ /dev/null
@@ -1,40 +0,0 @@
-package v4
-
-// Signature Version 4 (SigV4) Constants
-const (
- // EmptyStringSHA256 is the hex encoded sha256 value of an empty string
- EmptyStringSHA256 = `e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`
-
- // UnsignedPayload indicates that the request payload body is unsigned
- UnsignedPayload = "UNSIGNED-PAYLOAD"
-
- // AmzAlgorithmKey indicates the signing algorithm
- AmzAlgorithmKey = "X-Amz-Algorithm"
-
- // AmzSecurityTokenKey indicates the security token to be used with temporary credentials
- AmzSecurityTokenKey = "X-Amz-Security-Token"
-
- // AmzDateKey is the UTC timestamp for the request in the format YYYYMMDD'T'HHMMSS'Z'
- AmzDateKey = "X-Amz-Date"
-
- // AmzCredentialKey is the access key ID and credential scope
- AmzCredentialKey = "X-Amz-Credential"
-
- // AmzSignedHeadersKey is the set of headers signed for the request
- AmzSignedHeadersKey = "X-Amz-SignedHeaders"
-
- // AmzSignatureKey is the query parameter to store the SigV4 signature
- AmzSignatureKey = "X-Amz-Signature"
-
- // TimeFormat is the time format to be used in the X-Amz-Date header or query parameter
- TimeFormat = "20060102T150405Z"
-
- // ShortTimeFormat is the shorten time format used in the credential scope
- ShortTimeFormat = "20060102"
-
- // ContentSHAKey is the SHA256 of request body
- ContentSHAKey = "X-Amz-Content-Sha256"
-
- // StreamingEventsPayload indicates that the request payload body is a signed event stream.
- StreamingEventsPayload = "STREAMING-AWS4-HMAC-SHA256-EVENTS"
-)
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/header_rules.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/header_rules.go
deleted file mode 100644
index c61955ad5..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/header_rules.go
+++ /dev/null
@@ -1,82 +0,0 @@
-package v4
-
-import (
- sdkstrings "github.com/aws/aws-sdk-go-v2/internal/strings"
-)
-
-// Rules houses a set of Rule needed for validation of a
-// string value
-type Rules []Rule
-
-// Rule interface allows for more flexible rules and just simply
-// checks whether or not a value adheres to that Rule
-type Rule interface {
- IsValid(value string) bool
-}
-
-// IsValid will iterate through all rules and see if any rules
-// apply to the value and supports nested rules
-func (r Rules) IsValid(value string) bool {
- for _, rule := range r {
- if rule.IsValid(value) {
- return true
- }
- }
- return false
-}
-
-// MapRule generic Rule for maps
-type MapRule map[string]struct{}
-
-// IsValid for the map Rule satisfies whether it exists in the map
-func (m MapRule) IsValid(value string) bool {
- _, ok := m[value]
- return ok
-}
-
-// AllowList is a generic Rule for include listing
-type AllowList struct {
- Rule
-}
-
-// IsValid for AllowList checks if the value is within the AllowList
-func (w AllowList) IsValid(value string) bool {
- return w.Rule.IsValid(value)
-}
-
-// ExcludeList is a generic Rule for exclude listing
-type ExcludeList struct {
- Rule
-}
-
-// IsValid for AllowList checks if the value is within the AllowList
-func (b ExcludeList) IsValid(value string) bool {
- return !b.Rule.IsValid(value)
-}
-
-// Patterns is a list of strings to match against
-type Patterns []string
-
-// IsValid for Patterns checks each pattern and returns if a match has
-// been found
-func (p Patterns) IsValid(value string) bool {
- for _, pattern := range p {
- if sdkstrings.HasPrefixFold(value, pattern) {
- return true
- }
- }
- return false
-}
-
-// InclusiveRules rules allow for rules to depend on one another
-type InclusiveRules []Rule
-
-// IsValid will return true if all rules are true
-func (r InclusiveRules) IsValid(value string) bool {
- for _, rule := range r {
- if !rule.IsValid(value) {
- return false
- }
- }
- return true
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/headers.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/headers.go
deleted file mode 100644
index d99b32ceb..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/headers.go
+++ /dev/null
@@ -1,70 +0,0 @@
-package v4
-
-// IgnoredHeaders is a list of headers that are ignored during signing
-var IgnoredHeaders = Rules{
- ExcludeList{
- MapRule{
- "Authorization": struct{}{},
- "User-Agent": struct{}{},
- "X-Amzn-Trace-Id": struct{}{},
- "Expect": struct{}{},
- "Transfer-Encoding": struct{}{},
- },
- },
-}
-
-// RequiredSignedHeaders is a allow list for Build canonical headers.
-var RequiredSignedHeaders = Rules{
- AllowList{
- MapRule{
- "Cache-Control": struct{}{},
- "Content-Disposition": struct{}{},
- "Content-Encoding": struct{}{},
- "Content-Language": struct{}{},
- "Content-Md5": struct{}{},
- "Content-Type": struct{}{},
- "Expires": struct{}{},
- "If-Match": struct{}{},
- "If-Modified-Since": struct{}{},
- "If-None-Match": struct{}{},
- "If-Unmodified-Since": struct{}{},
- "Range": struct{}{},
- "X-Amz-Acl": struct{}{},
- "X-Amz-Copy-Source": struct{}{},
- "X-Amz-Copy-Source-If-Match": struct{}{},
- "X-Amz-Copy-Source-If-Modified-Since": struct{}{},
- "X-Amz-Copy-Source-If-None-Match": struct{}{},
- "X-Amz-Copy-Source-If-Unmodified-Since": struct{}{},
- "X-Amz-Copy-Source-Range": struct{}{},
- "X-Amz-Copy-Source-Server-Side-Encryption-Customer-Algorithm": struct{}{},
- "X-Amz-Copy-Source-Server-Side-Encryption-Customer-Key": struct{}{},
- "X-Amz-Copy-Source-Server-Side-Encryption-Customer-Key-Md5": struct{}{},
- "X-Amz-Grant-Full-control": struct{}{},
- "X-Amz-Grant-Read": struct{}{},
- "X-Amz-Grant-Read-Acp": struct{}{},
- "X-Amz-Grant-Write": struct{}{},
- "X-Amz-Grant-Write-Acp": struct{}{},
- "X-Amz-Metadata-Directive": struct{}{},
- "X-Amz-Mfa": struct{}{},
- "X-Amz-Server-Side-Encryption": struct{}{},
- "X-Amz-Server-Side-Encryption-Aws-Kms-Key-Id": struct{}{},
- "X-Amz-Server-Side-Encryption-Context": struct{}{},
- "X-Amz-Server-Side-Encryption-Customer-Algorithm": struct{}{},
- "X-Amz-Server-Side-Encryption-Customer-Key": struct{}{},
- "X-Amz-Server-Side-Encryption-Customer-Key-Md5": struct{}{},
- "X-Amz-Storage-Class": struct{}{},
- "X-Amz-Website-Redirect-Location": struct{}{},
- "X-Amz-Content-Sha256": struct{}{},
- "X-Amz-Tagging": struct{}{},
- },
- },
- Patterns{"X-Amz-Object-Lock-"},
- Patterns{"X-Amz-Meta-"},
-}
-
-// AllowedQueryHoisting is a allowed list for Build query headers. The boolean value
-// represents whether or not it is a pattern.
-var AllowedQueryHoisting = InclusiveRules{
- ExcludeList{RequiredSignedHeaders},
- Patterns{"X-Amz-"},
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/hmac.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/hmac.go
deleted file mode 100644
index e7fa7a1b1..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/hmac.go
+++ /dev/null
@@ -1,13 +0,0 @@
-package v4
-
-import (
- "crypto/hmac"
- "crypto/sha256"
-)
-
-// HMACSHA256 computes a HMAC-SHA256 of data given the provided key.
-func HMACSHA256(key []byte, data []byte) []byte {
- hash := hmac.New(sha256.New, key)
- hash.Write(data)
- return hash.Sum(nil)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/host.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/host.go
deleted file mode 100644
index bf93659a4..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/host.go
+++ /dev/null
@@ -1,75 +0,0 @@
-package v4
-
-import (
- "net/http"
- "strings"
-)
-
-// SanitizeHostForHeader removes default port from host and updates request.Host
-func SanitizeHostForHeader(r *http.Request) {
- host := getHost(r)
- port := portOnly(host)
- if port != "" && isDefaultPort(r.URL.Scheme, port) {
- r.Host = stripPort(host)
- }
-}
-
-// Returns host from request
-func getHost(r *http.Request) string {
- if r.Host != "" {
- return r.Host
- }
-
- return r.URL.Host
-}
-
-// Hostname returns u.Host, without any port number.
-//
-// If Host is an IPv6 literal with a port number, Hostname returns the
-// IPv6 literal without the square brackets. IPv6 literals may include
-// a zone identifier.
-//
-// Copied from the Go 1.8 standard library (net/url)
-func stripPort(hostport string) string {
- colon := strings.IndexByte(hostport, ':')
- if colon == -1 {
- return hostport
- }
- if i := strings.IndexByte(hostport, ']'); i != -1 {
- return strings.TrimPrefix(hostport[:i], "[")
- }
- return hostport[:colon]
-}
-
-// Port returns the port part of u.Host, without the leading colon.
-// If u.Host doesn't contain a port, Port returns an empty string.
-//
-// Copied from the Go 1.8 standard library (net/url)
-func portOnly(hostport string) string {
- colon := strings.IndexByte(hostport, ':')
- if colon == -1 {
- return ""
- }
- if i := strings.Index(hostport, "]:"); i != -1 {
- return hostport[i+len("]:"):]
- }
- if strings.Contains(hostport, "]") {
- return ""
- }
- return hostport[colon+len(":"):]
-}
-
-// Returns true if the specified URI is using the standard port
-// (i.e. port 80 for HTTP URIs or 443 for HTTPS URIs)
-func isDefaultPort(scheme, port string) bool {
- if port == "" {
- return true
- }
-
- lowerCaseScheme := strings.ToLower(scheme)
- if (lowerCaseScheme == "http" && port == "80") || (lowerCaseScheme == "https" && port == "443") {
- return true
- }
-
- return false
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/scope.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/scope.go
deleted file mode 100644
index fc7887909..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/scope.go
+++ /dev/null
@@ -1,13 +0,0 @@
-package v4
-
-import "strings"
-
-// BuildCredentialScope builds the Signature Version 4 (SigV4) signing scope
-func BuildCredentialScope(signingTime SigningTime, region, service string) string {
- return strings.Join([]string{
- signingTime.ShortTimeFormat(),
- region,
- service,
- "aws4_request",
- }, "/")
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/time.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/time.go
deleted file mode 100644
index 1de06a765..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/time.go
+++ /dev/null
@@ -1,36 +0,0 @@
-package v4
-
-import "time"
-
-// SigningTime provides a wrapper around a time.Time which provides cached values for SigV4 signing.
-type SigningTime struct {
- time.Time
- timeFormat string
- shortTimeFormat string
-}
-
-// NewSigningTime creates a new SigningTime given a time.Time
-func NewSigningTime(t time.Time) SigningTime {
- return SigningTime{
- Time: t,
- }
-}
-
-// TimeFormat provides a time formatted in the X-Amz-Date format.
-func (m *SigningTime) TimeFormat() string {
- return m.format(&m.timeFormat, TimeFormat)
-}
-
-// ShortTimeFormat provides a time formatted of 20060102.
-func (m *SigningTime) ShortTimeFormat() string {
- return m.format(&m.shortTimeFormat, ShortTimeFormat)
-}
-
-func (m *SigningTime) format(target *string, format string) string {
- if len(*target) > 0 {
- return *target
- }
- v := m.Time.Format(format)
- *target = v
- return v
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/util.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/util.go
deleted file mode 100644
index d025dbaa0..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/util.go
+++ /dev/null
@@ -1,80 +0,0 @@
-package v4
-
-import (
- "net/url"
- "strings"
-)
-
-const doubleSpace = " "
-
-// StripExcessSpaces will rewrite the passed in slice's string values to not
-// contain multiple side-by-side spaces.
-func StripExcessSpaces(str string) string {
- var j, k, l, m, spaces int
- // Trim trailing spaces
- for j = len(str) - 1; j >= 0 && str[j] == ' '; j-- {
- }
-
- // Trim leading spaces
- for k = 0; k < j && str[k] == ' '; k++ {
- }
- str = str[k : j+1]
-
- // Strip multiple spaces.
- j = strings.Index(str, doubleSpace)
- if j < 0 {
- return str
- }
-
- buf := []byte(str)
- for k, m, l = j, j, len(buf); k < l; k++ {
- if buf[k] == ' ' {
- if spaces == 0 {
- // First space.
- buf[m] = buf[k]
- m++
- }
- spaces++
- } else {
- // End of multiple spaces.
- spaces = 0
- buf[m] = buf[k]
- m++
- }
- }
-
- return string(buf[:m])
-}
-
-// GetURIPath returns the escaped URI component from the provided URL.
-func GetURIPath(u *url.URL) string {
- var uriPath string
-
- if len(u.Opaque) > 0 {
- const schemeSep, pathSep, queryStart = "//", "/", "?"
-
- opaque := u.Opaque
- // Cut off the query string if present.
- if idx := strings.Index(opaque, queryStart); idx >= 0 {
- opaque = opaque[:idx]
- }
-
- // Cutout the scheme separator if present.
- if strings.Index(opaque, schemeSep) == 0 {
- opaque = opaque[len(schemeSep):]
- }
-
- // capture URI path starting with first path separator.
- if idx := strings.Index(opaque, pathSep); idx >= 0 {
- uriPath = opaque[idx:]
- }
- } else {
- uriPath = u.EscapedPath()
- }
-
- if len(uriPath) == 0 {
- uriPath = "/"
- }
-
- return uriPath
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/middleware.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/middleware.go
deleted file mode 100644
index 8a46220a3..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/middleware.go
+++ /dev/null
@@ -1,420 +0,0 @@
-package v4
-
-import (
- "context"
- "crypto/sha256"
- "encoding/hex"
- "fmt"
- "io"
- "net/http"
- "strings"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- v4Internal "github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4"
- internalauth "github.com/aws/aws-sdk-go-v2/internal/auth"
- "github.com/aws/aws-sdk-go-v2/internal/sdk"
- "github.com/aws/smithy-go/middleware"
- "github.com/aws/smithy-go/tracing"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-const computePayloadHashMiddlewareID = "ComputePayloadHash"
-
-// HashComputationError indicates an error occurred while computing the signing hash
-type HashComputationError struct {
- Err error
-}
-
-// Error is the error message
-func (e *HashComputationError) Error() string {
- return fmt.Sprintf("failed to compute payload hash: %v", e.Err)
-}
-
-// Unwrap returns the underlying error if one is set
-func (e *HashComputationError) Unwrap() error {
- return e.Err
-}
-
-// SigningError indicates an error condition occurred while performing SigV4 signing
-type SigningError struct {
- Err error
-}
-
-func (e *SigningError) Error() string {
- return fmt.Sprintf("failed to sign request: %v", e.Err)
-}
-
-// Unwrap returns the underlying error cause
-func (e *SigningError) Unwrap() error {
- return e.Err
-}
-
-// UseDynamicPayloadSigningMiddleware swaps the compute payload sha256 middleware with a resolver middleware that
-// switches between unsigned and signed payload based on TLS state for request.
-// This middleware should not be used for AWS APIs that do not support unsigned payload signing auth.
-// By default, SDK uses this middleware for known AWS APIs that support such TLS based auth selection .
-//
-// Usage example -
-// S3 PutObject API allows unsigned payload signing auth usage when TLS is enabled, and uses this middleware to
-// dynamically switch between unsigned and signed payload based on TLS state for request.
-func UseDynamicPayloadSigningMiddleware(stack *middleware.Stack) error {
- _, err := stack.Finalize.Swap(computePayloadHashMiddlewareID, &dynamicPayloadSigningMiddleware{})
- return err
-}
-
-// dynamicPayloadSigningMiddleware dynamically resolves the middleware that computes and set payload sha256 middleware.
-type dynamicPayloadSigningMiddleware struct {
-}
-
-// ID returns the resolver identifier
-func (m *dynamicPayloadSigningMiddleware) ID() string {
- return computePayloadHashMiddlewareID
-}
-
-// HandleFinalize delegates SHA256 computation according to whether the request
-// is TLS-enabled.
-func (m *dynamicPayloadSigningMiddleware) HandleFinalize(
- ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler,
-) (
- out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
-) {
- req, ok := in.Request.(*smithyhttp.Request)
- if !ok {
- return out, metadata, fmt.Errorf("unknown transport type %T", in.Request)
- }
-
- if req.IsHTTPS() {
- return (&UnsignedPayload{}).HandleFinalize(ctx, in, next)
- }
- return (&ComputePayloadSHA256{}).HandleFinalize(ctx, in, next)
-}
-
-// UnsignedPayload sets the SigV4 request payload hash to unsigned.
-//
-// Will not set the Unsigned Payload magic SHA value, if a SHA has already been
-// stored in the context. (e.g. application pre-computed SHA256 before making
-// API call).
-//
-// This middleware does not check the X-Amz-Content-Sha256 header, if that
-// header is serialized a middleware must translate it into the context.
-type UnsignedPayload struct{}
-
-// AddUnsignedPayloadMiddleware adds unsignedPayload to the operation
-// middleware stack
-func AddUnsignedPayloadMiddleware(stack *middleware.Stack) error {
- return stack.Finalize.Insert(&UnsignedPayload{}, "ResolveEndpointV2", middleware.After)
-}
-
-// ID returns the unsignedPayload identifier
-func (m *UnsignedPayload) ID() string {
- return computePayloadHashMiddlewareID
-}
-
-// HandleFinalize sets the payload hash magic value to the unsigned sentinel.
-func (m *UnsignedPayload) HandleFinalize(
- ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler,
-) (
- out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
-) {
- if GetPayloadHash(ctx) == "" {
- ctx = SetPayloadHash(ctx, v4Internal.UnsignedPayload)
- }
- return next.HandleFinalize(ctx, in)
-}
-
-// ComputePayloadSHA256 computes SHA256 payload hash to sign.
-//
-// Will not set the Unsigned Payload magic SHA value, if a SHA has already been
-// stored in the context. (e.g. application pre-computed SHA256 before making
-// API call).
-//
-// This middleware does not check the X-Amz-Content-Sha256 header, if that
-// header is serialized a middleware must translate it into the context.
-type ComputePayloadSHA256 struct{}
-
-// AddComputePayloadSHA256Middleware adds computePayloadSHA256 to the
-// operation middleware stack
-func AddComputePayloadSHA256Middleware(stack *middleware.Stack) error {
- return stack.Finalize.Insert(&ComputePayloadSHA256{}, "ResolveEndpointV2", middleware.After)
-}
-
-// RemoveComputePayloadSHA256Middleware removes computePayloadSHA256 from the
-// operation middleware stack
-func RemoveComputePayloadSHA256Middleware(stack *middleware.Stack) error {
- _, err := stack.Finalize.Remove(computePayloadHashMiddlewareID)
- return err
-}
-
-// ID is the middleware name
-func (m *ComputePayloadSHA256) ID() string {
- return computePayloadHashMiddlewareID
-}
-
-// HandleFinalize computes the payload hash for the request, storing it to the
-// context. This is a no-op if a caller has previously set that value.
-func (m *ComputePayloadSHA256) HandleFinalize(
- ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler,
-) (
- out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
-) {
- if GetPayloadHash(ctx) != "" {
- return next.HandleFinalize(ctx, in)
- }
-
- _, span := tracing.StartSpan(ctx, "ComputePayloadSHA256")
- defer span.End()
-
- req, ok := in.Request.(*smithyhttp.Request)
- if !ok {
- return out, metadata, &HashComputationError{
- Err: fmt.Errorf("unexpected request middleware type %T", in.Request),
- }
- }
-
- hash := sha256.New()
- if stream := req.GetStream(); stream != nil {
- _, err = io.Copy(hash, stream)
- if err != nil {
- return out, metadata, &HashComputationError{
- Err: fmt.Errorf("failed to compute payload hash, %w", err),
- }
- }
-
- if err := req.RewindStream(); err != nil {
- return out, metadata, &HashComputationError{
- Err: fmt.Errorf("failed to seek body to start, %w", err),
- }
- }
- }
-
- ctx = SetPayloadHash(ctx, hex.EncodeToString(hash.Sum(nil)))
-
- span.End()
- return next.HandleFinalize(ctx, in)
-}
-
-// SwapComputePayloadSHA256ForUnsignedPayloadMiddleware replaces the
-// ComputePayloadSHA256 middleware with the UnsignedPayload middleware.
-//
-// Use this to disable computing the Payload SHA256 checksum and instead use
-// UNSIGNED-PAYLOAD for the SHA256 value.
-func SwapComputePayloadSHA256ForUnsignedPayloadMiddleware(stack *middleware.Stack) error {
- _, err := stack.Finalize.Swap(computePayloadHashMiddlewareID, &UnsignedPayload{})
- return err
-}
-
-// ContentSHA256Header sets the X-Amz-Content-Sha256 header value to
-// the Payload hash stored in the context.
-type ContentSHA256Header struct{}
-
-// AddContentSHA256HeaderMiddleware adds ContentSHA256Header to the
-// operation middleware stack
-func AddContentSHA256HeaderMiddleware(stack *middleware.Stack) error {
- return stack.Finalize.Insert(&ContentSHA256Header{}, computePayloadHashMiddlewareID, middleware.After)
-}
-
-// RemoveContentSHA256HeaderMiddleware removes contentSHA256Header middleware
-// from the operation middleware stack
-func RemoveContentSHA256HeaderMiddleware(stack *middleware.Stack) error {
- _, err := stack.Finalize.Remove((*ContentSHA256Header)(nil).ID())
- return err
-}
-
-// ID returns the ContentSHA256HeaderMiddleware identifier
-func (m *ContentSHA256Header) ID() string {
- return "SigV4ContentSHA256Header"
-}
-
-// HandleFinalize sets the X-Amz-Content-Sha256 header value to the Payload hash
-// stored in the context.
-func (m *ContentSHA256Header) HandleFinalize(
- ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler,
-) (
- out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
-) {
- req, ok := in.Request.(*smithyhttp.Request)
- if !ok {
- return out, metadata, &HashComputationError{Err: fmt.Errorf("unexpected request middleware type %T", in.Request)}
- }
-
- req.Header.Set(v4Internal.ContentSHAKey, GetPayloadHash(ctx))
- return next.HandleFinalize(ctx, in)
-}
-
-// SignHTTPRequestMiddlewareOptions is the configuration options for
-// [SignHTTPRequestMiddleware].
-//
-// Deprecated: [SignHTTPRequestMiddleware] is deprecated.
-type SignHTTPRequestMiddlewareOptions struct {
- CredentialsProvider aws.CredentialsProvider
- Signer HTTPSigner
- LogSigning bool
-}
-
-// SignHTTPRequestMiddleware is a `FinalizeMiddleware` implementation for SigV4
-// HTTP Signing.
-//
-// Deprecated: AWS service clients no longer use this middleware. Signing as an
-// SDK operation is now performed through an internal per-service middleware
-// which opaquely selects and uses the signer from the resolved auth scheme.
-type SignHTTPRequestMiddleware struct {
- credentialsProvider aws.CredentialsProvider
- signer HTTPSigner
- logSigning bool
-}
-
-// NewSignHTTPRequestMiddleware constructs a [SignHTTPRequestMiddleware] using
-// the given [Signer] for signing requests.
-//
-// Deprecated: SignHTTPRequestMiddleware is deprecated.
-func NewSignHTTPRequestMiddleware(options SignHTTPRequestMiddlewareOptions) *SignHTTPRequestMiddleware {
- return &SignHTTPRequestMiddleware{
- credentialsProvider: options.CredentialsProvider,
- signer: options.Signer,
- logSigning: options.LogSigning,
- }
-}
-
-// ID is the SignHTTPRequestMiddleware identifier.
-//
-// Deprecated: SignHTTPRequestMiddleware is deprecated.
-func (s *SignHTTPRequestMiddleware) ID() string {
- return "Signing"
-}
-
-// HandleFinalize will take the provided input and sign the request using the
-// SigV4 authentication scheme.
-//
-// Deprecated: SignHTTPRequestMiddleware is deprecated.
-func (s *SignHTTPRequestMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
- out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
-) {
- if !haveCredentialProvider(s.credentialsProvider) {
- return next.HandleFinalize(ctx, in)
- }
-
- req, ok := in.Request.(*smithyhttp.Request)
- if !ok {
- return out, metadata, &SigningError{Err: fmt.Errorf("unexpected request middleware type %T", in.Request)}
- }
-
- signingName, signingRegion := awsmiddleware.GetSigningName(ctx), awsmiddleware.GetSigningRegion(ctx)
- payloadHash := GetPayloadHash(ctx)
- if len(payloadHash) == 0 {
- return out, metadata, &SigningError{Err: fmt.Errorf("computed payload hash missing from context")}
- }
-
- credentials, err := s.credentialsProvider.Retrieve(ctx)
- if err != nil {
- return out, metadata, &SigningError{Err: fmt.Errorf("failed to retrieve credentials: %w", err)}
- }
-
- signerOptions := []func(o *SignerOptions){
- func(o *SignerOptions) {
- o.Logger = middleware.GetLogger(ctx)
- o.LogSigning = s.logSigning
- },
- }
-
- // existing DisableURIPathEscaping is equivalent in purpose
- // to authentication scheme property DisableDoubleEncoding
- disableDoubleEncoding, overridden := internalauth.GetDisableDoubleEncoding(ctx)
- if overridden {
- signerOptions = append(signerOptions, func(o *SignerOptions) {
- o.DisableURIPathEscaping = disableDoubleEncoding
- })
- }
-
- err = s.signer.SignHTTP(ctx, credentials, req.Request, payloadHash, signingName, signingRegion, sdk.NowTime(), signerOptions...)
- if err != nil {
- return out, metadata, &SigningError{Err: fmt.Errorf("failed to sign http request, %w", err)}
- }
-
- ctx = awsmiddleware.SetSigningCredentials(ctx, credentials)
-
- return next.HandleFinalize(ctx, in)
-}
-
-// StreamingEventsPayload signs input event stream messages.
-type StreamingEventsPayload struct{}
-
-// AddStreamingEventsPayload adds the streamingEventsPayload middleware to the stack.
-func AddStreamingEventsPayload(stack *middleware.Stack) error {
- return stack.Finalize.Add(&StreamingEventsPayload{}, middleware.Before)
-}
-
-// ID identifies the middleware.
-func (s *StreamingEventsPayload) ID() string {
- return computePayloadHashMiddlewareID
-}
-
-// HandleFinalize marks the input stream to be signed with SigV4.
-func (s *StreamingEventsPayload) HandleFinalize(
- ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler,
-) (
- out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
-) {
- contentSHA := GetPayloadHash(ctx)
- if len(contentSHA) == 0 {
- contentSHA = v4Internal.StreamingEventsPayload
- }
-
- ctx = SetPayloadHash(ctx, contentSHA)
-
- return next.HandleFinalize(ctx, in)
-}
-
-// GetSignedRequestSignature attempts to extract the signature of the request.
-// Returning an error if the request is unsigned, or unable to extract the
-// signature.
-func GetSignedRequestSignature(r *http.Request) ([]byte, error) {
- const authHeaderSignatureElem = "Signature="
-
- if auth := r.Header.Get(authorizationHeader); len(auth) != 0 {
- ps := strings.Split(auth, ",")
- for _, p := range ps {
- p = strings.TrimSpace(p)
- if idx := strings.Index(p, authHeaderSignatureElem); idx >= 0 {
- sig := p[len(authHeaderSignatureElem):]
- if len(sig) == 0 {
- return nil, fmt.Errorf("invalid request signature authorization header")
- }
- return hex.DecodeString(sig)
- }
- }
- }
-
- if sig := r.URL.Query().Get("X-Amz-Signature"); len(sig) != 0 {
- return hex.DecodeString(sig)
- }
-
- return nil, fmt.Errorf("request not signed")
-}
-
-func haveCredentialProvider(p aws.CredentialsProvider) bool {
- if p == nil {
- return false
- }
-
- return !aws.IsCredentialsProvider(p, (*aws.AnonymousCredentials)(nil))
-}
-
-type payloadHashKey struct{}
-
-// GetPayloadHash retrieves the payload hash to use for signing
-//
-// Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues
-// to clear all stack values.
-func GetPayloadHash(ctx context.Context) (v string) {
- v, _ = middleware.GetStackValue(ctx, payloadHashKey{}).(string)
- return v
-}
-
-// SetPayloadHash sets the payload hash to be used for signing the request
-//
-// Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues
-// to clear all stack values.
-func SetPayloadHash(ctx context.Context, hash string) context.Context {
- return middleware.WithStackValue(ctx, payloadHashKey{}, hash)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/presign_middleware.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/presign_middleware.go
deleted file mode 100644
index e1a066512..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/presign_middleware.go
+++ /dev/null
@@ -1,127 +0,0 @@
-package v4
-
-import (
- "context"
- "fmt"
- "net/http"
- "time"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/internal/sdk"
- "github.com/aws/smithy-go/middleware"
- smithyHTTP "github.com/aws/smithy-go/transport/http"
-)
-
-// HTTPPresigner is an interface to a SigV4 signer that can sign create a
-// presigned URL for a HTTP requests.
-type HTTPPresigner interface {
- PresignHTTP(
- ctx context.Context, credentials aws.Credentials, r *http.Request,
- payloadHash string, service string, region string, signingTime time.Time,
- optFns ...func(*SignerOptions),
- ) (url string, signedHeader http.Header, err error)
-}
-
-// PresignedHTTPRequest provides the URL and signed headers that are included
-// in the presigned URL.
-type PresignedHTTPRequest struct {
- URL string
- Method string
- SignedHeader http.Header
-}
-
-// PresignHTTPRequestMiddlewareOptions is the options for the PresignHTTPRequestMiddleware middleware.
-type PresignHTTPRequestMiddlewareOptions struct {
- CredentialsProvider aws.CredentialsProvider
- Presigner HTTPPresigner
- LogSigning bool
-}
-
-// PresignHTTPRequestMiddleware provides the Finalize middleware for creating a
-// presigned URL for an HTTP request.
-//
-// Will short circuit the middleware stack and not forward onto the next
-// Finalize handler.
-type PresignHTTPRequestMiddleware struct {
- credentialsProvider aws.CredentialsProvider
- presigner HTTPPresigner
- logSigning bool
-}
-
-// NewPresignHTTPRequestMiddleware returns a new PresignHTTPRequestMiddleware
-// initialized with the presigner.
-func NewPresignHTTPRequestMiddleware(options PresignHTTPRequestMiddlewareOptions) *PresignHTTPRequestMiddleware {
- return &PresignHTTPRequestMiddleware{
- credentialsProvider: options.CredentialsProvider,
- presigner: options.Presigner,
- logSigning: options.LogSigning,
- }
-}
-
-// ID provides the middleware ID.
-func (*PresignHTTPRequestMiddleware) ID() string { return "PresignHTTPRequest" }
-
-// HandleFinalize will take the provided input and create a presigned url for
-// the http request using the SigV4 presign authentication scheme.
-//
-// Since the signed request is not a valid HTTP request
-func (s *PresignHTTPRequestMiddleware) HandleFinalize(
- ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler,
-) (
- out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
-) {
- req, ok := in.Request.(*smithyHTTP.Request)
- if !ok {
- return out, metadata, &SigningError{
- Err: fmt.Errorf("unexpected request middleware type %T", in.Request),
- }
- }
-
- httpReq := req.Build(ctx)
- if !haveCredentialProvider(s.credentialsProvider) {
- out.Result = &PresignedHTTPRequest{
- URL: httpReq.URL.String(),
- Method: httpReq.Method,
- SignedHeader: http.Header{},
- }
-
- return out, metadata, nil
- }
-
- signingName := awsmiddleware.GetSigningName(ctx)
- signingRegion := awsmiddleware.GetSigningRegion(ctx)
- payloadHash := GetPayloadHash(ctx)
- if len(payloadHash) == 0 {
- return out, metadata, &SigningError{
- Err: fmt.Errorf("computed payload hash missing from context"),
- }
- }
-
- credentials, err := s.credentialsProvider.Retrieve(ctx)
- if err != nil {
- return out, metadata, &SigningError{
- Err: fmt.Errorf("failed to retrieve credentials: %w", err),
- }
- }
-
- u, h, err := s.presigner.PresignHTTP(ctx, credentials,
- httpReq, payloadHash, signingName, signingRegion, sdk.NowTime(),
- func(o *SignerOptions) {
- o.Logger = middleware.GetLogger(ctx)
- o.LogSigning = s.logSigning
- })
- if err != nil {
- return out, metadata, &SigningError{
- Err: fmt.Errorf("failed to sign http request, %w", err),
- }
- }
-
- out.Result = &PresignedHTTPRequest{
- URL: u,
- Method: httpReq.Method,
- SignedHeader: h,
- }
-
- return out, metadata, nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/stream.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/stream.go
deleted file mode 100644
index 32875e077..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/stream.go
+++ /dev/null
@@ -1,86 +0,0 @@
-package v4
-
-import (
- "context"
- "crypto/sha256"
- "encoding/hex"
- "github.com/aws/aws-sdk-go-v2/aws"
- v4Internal "github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4"
- "strings"
- "time"
-)
-
-// EventStreamSigner is an AWS EventStream protocol signer.
-type EventStreamSigner interface {
- GetSignature(ctx context.Context, headers, payload []byte, signingTime time.Time, optFns ...func(*StreamSignerOptions)) ([]byte, error)
-}
-
-// StreamSignerOptions is the configuration options for StreamSigner.
-type StreamSignerOptions struct{}
-
-// StreamSigner implements Signature Version 4 (SigV4) signing of event stream encoded payloads.
-type StreamSigner struct {
- options StreamSignerOptions
-
- credentials aws.Credentials
- service string
- region string
-
- prevSignature []byte
-
- signingKeyDeriver *v4Internal.SigningKeyDeriver
-}
-
-// NewStreamSigner returns a new AWS EventStream protocol signer.
-func NewStreamSigner(credentials aws.Credentials, service, region string, seedSignature []byte, optFns ...func(*StreamSignerOptions)) *StreamSigner {
- o := StreamSignerOptions{}
-
- for _, fn := range optFns {
- fn(&o)
- }
-
- return &StreamSigner{
- options: o,
- credentials: credentials,
- service: service,
- region: region,
- signingKeyDeriver: v4Internal.NewSigningKeyDeriver(),
- prevSignature: seedSignature,
- }
-}
-
-// GetSignature signs the provided header and payload bytes.
-func (s *StreamSigner) GetSignature(ctx context.Context, headers, payload []byte, signingTime time.Time, optFns ...func(*StreamSignerOptions)) ([]byte, error) {
- options := s.options
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- prevSignature := s.prevSignature
-
- st := v4Internal.NewSigningTime(signingTime.UTC())
-
- sigKey := s.signingKeyDeriver.DeriveKey(s.credentials, s.service, s.region, st)
-
- scope := v4Internal.BuildCredentialScope(st, s.region, s.service)
-
- stringToSign := s.buildEventStreamStringToSign(headers, payload, prevSignature, scope, &st)
-
- signature := v4Internal.HMACSHA256(sigKey, []byte(stringToSign))
- s.prevSignature = signature
-
- return signature, nil
-}
-
-func (s *StreamSigner) buildEventStreamStringToSign(headers, payload, previousSignature []byte, credentialScope string, signingTime *v4Internal.SigningTime) string {
- hash := sha256.New()
- return strings.Join([]string{
- "AWS4-HMAC-SHA256-PAYLOAD",
- signingTime.TimeFormat(),
- credentialScope,
- hex.EncodeToString(previousSignature),
- hex.EncodeToString(makeHash(hash, headers)),
- hex.EncodeToString(makeHash(hash, payload)),
- }, "\n")
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/v4.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/v4.go
deleted file mode 100644
index 7ed91d5ba..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/v4.go
+++ /dev/null
@@ -1,564 +0,0 @@
-// Package v4 implements the AWS signature version 4 algorithm (commonly known
-// as SigV4).
-//
-// For more information about SigV4, see [Signing AWS API requests] in the IAM
-// user guide.
-//
-// While this implementation CAN work in an external context, it is developed
-// primarily for SDK use and you may encounter fringe behaviors around header
-// canonicalization.
-//
-// # Pre-escaping a request URI
-//
-// AWS v4 signature validation requires that the canonical string's URI path
-// component must be the escaped form of the HTTP request's path.
-//
-// The Go HTTP client will perform escaping automatically on the HTTP request.
-// This may cause signature validation errors because the request differs from
-// the URI path or query from which the signature was generated.
-//
-// Because of this, we recommend that you explicitly escape the request when
-// using this signer outside of the SDK to prevent possible signature mismatch.
-// This can be done by setting URL.Opaque on the request. The signer will
-// prefer that value, falling back to the return of URL.EscapedPath if unset.
-//
-// When setting URL.Opaque you must do so in the form of:
-//
-// "///"
-//
-// // e.g.
-// "//example.com/some/path"
-//
-// The leading "//" and hostname are required or the escaping will not work
-// correctly.
-//
-// The TestStandaloneSign unit test provides a complete example of using the
-// signer outside of the SDK and pre-escaping the URI path.
-//
-// [Signing AWS API requests]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html
-package v4
-
-import (
- "context"
- "crypto/sha256"
- "encoding/hex"
- "fmt"
- "hash"
- "net/http"
- "net/textproto"
- "net/url"
- "sort"
- "strconv"
- "strings"
- "time"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- v4Internal "github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4"
- "github.com/aws/smithy-go/encoding/httpbinding"
- "github.com/aws/smithy-go/logging"
-)
-
-const (
- signingAlgorithm = "AWS4-HMAC-SHA256"
- authorizationHeader = "Authorization"
-
- // Version of signing v4
- Version = "SigV4"
-)
-
-// HTTPSigner is an interface to a SigV4 signer that can sign HTTP requests
-type HTTPSigner interface {
- SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*SignerOptions)) error
-}
-
-type keyDerivator interface {
- DeriveKey(credential aws.Credentials, service, region string, signingTime v4Internal.SigningTime) []byte
-}
-
-// SignerOptions is the SigV4 Signer options.
-type SignerOptions struct {
- // Disables the Signer's moving HTTP header key/value pairs from the HTTP
- // request header to the request's query string. This is most commonly used
- // with pre-signed requests preventing headers from being added to the
- // request's query string.
- DisableHeaderHoisting bool
-
- // Disables the automatic escaping of the URI path of the request for the
- // siganture's canonical string's path. For services that do not need additional
- // escaping then use this to disable the signer escaping the path.
- //
- // S3 is an example of a service that does not need additional escaping.
- //
- // http://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html
- DisableURIPathEscaping bool
-
- // The logger to send log messages to.
- Logger logging.Logger
-
- // Enable logging of signed requests.
- // This will enable logging of the canonical request, the string to sign, and for presigning the subsequent
- // presigned URL.
- LogSigning bool
-
- // Disables setting the session token on the request as part of signing
- // through X-Amz-Security-Token. This is needed for variations of v4 that
- // present the token elsewhere.
- DisableSessionToken bool
-}
-
-// Signer applies AWS v4 signing to given request. Use this to sign requests
-// that need to be signed with AWS V4 Signatures.
-type Signer struct {
- options SignerOptions
- keyDerivator keyDerivator
-}
-
-// NewSigner returns a new SigV4 Signer
-func NewSigner(optFns ...func(signer *SignerOptions)) *Signer {
- options := SignerOptions{}
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &Signer{options: options, keyDerivator: v4Internal.NewSigningKeyDeriver()}
-}
-
-type httpSigner struct {
- Request *http.Request
- ServiceName string
- Region string
- Time v4Internal.SigningTime
- Credentials aws.Credentials
- KeyDerivator keyDerivator
- IsPreSign bool
-
- PayloadHash string
-
- DisableHeaderHoisting bool
- DisableURIPathEscaping bool
- DisableSessionToken bool
-}
-
-func (s *httpSigner) Build() (signedRequest, error) {
- req := s.Request
-
- query := req.URL.Query()
- headers := req.Header
-
- s.setRequiredSigningFields(headers, query)
-
- // Sort Each Query Key's Values
- for key := range query {
- sort.Strings(query[key])
- }
-
- v4Internal.SanitizeHostForHeader(req)
-
- credentialScope := s.buildCredentialScope()
- credentialStr := s.Credentials.AccessKeyID + "/" + credentialScope
- if s.IsPreSign {
- query.Set(v4Internal.AmzCredentialKey, credentialStr)
- }
-
- unsignedHeaders := headers
- if s.IsPreSign && !s.DisableHeaderHoisting {
- var urlValues url.Values
- urlValues, unsignedHeaders = buildQuery(v4Internal.AllowedQueryHoisting, headers)
- for k := range urlValues {
- query[k] = urlValues[k]
- }
- }
-
- host := req.URL.Host
- if len(req.Host) > 0 {
- host = req.Host
- }
-
- signedHeaders, signedHeadersStr, canonicalHeaderStr := s.buildCanonicalHeaders(host, v4Internal.IgnoredHeaders, unsignedHeaders, s.Request.ContentLength)
-
- if s.IsPreSign {
- query.Set(v4Internal.AmzSignedHeadersKey, signedHeadersStr)
- }
-
- var rawQuery strings.Builder
- rawQuery.WriteString(strings.Replace(query.Encode(), "+", "%20", -1))
-
- canonicalURI := v4Internal.GetURIPath(req.URL)
- if !s.DisableURIPathEscaping {
- canonicalURI = httpbinding.EscapePath(canonicalURI, false)
- }
-
- canonicalString := s.buildCanonicalString(
- req.Method,
- canonicalURI,
- rawQuery.String(),
- signedHeadersStr,
- canonicalHeaderStr,
- )
-
- strToSign := s.buildStringToSign(credentialScope, canonicalString)
- signingSignature, err := s.buildSignature(strToSign)
- if err != nil {
- return signedRequest{}, err
- }
-
- if s.IsPreSign {
- rawQuery.WriteString("&X-Amz-Signature=")
- rawQuery.WriteString(signingSignature)
- } else {
- headers[authorizationHeader] = append(headers[authorizationHeader][:0], buildAuthorizationHeader(credentialStr, signedHeadersStr, signingSignature))
- }
-
- req.URL.RawQuery = rawQuery.String()
-
- return signedRequest{
- Request: req,
- SignedHeaders: signedHeaders,
- CanonicalString: canonicalString,
- StringToSign: strToSign,
- PreSigned: s.IsPreSign,
- }, nil
-}
-
-func buildAuthorizationHeader(credentialStr, signedHeadersStr, signingSignature string) string {
- const credential = "Credential="
- const signedHeaders = "SignedHeaders="
- const signature = "Signature="
- const commaSpace = ", "
-
- var parts strings.Builder
- parts.Grow(len(signingAlgorithm) + 1 +
- len(credential) + len(credentialStr) + 2 +
- len(signedHeaders) + len(signedHeadersStr) + 2 +
- len(signature) + len(signingSignature),
- )
- parts.WriteString(signingAlgorithm)
- parts.WriteRune(' ')
- parts.WriteString(credential)
- parts.WriteString(credentialStr)
- parts.WriteString(commaSpace)
- parts.WriteString(signedHeaders)
- parts.WriteString(signedHeadersStr)
- parts.WriteString(commaSpace)
- parts.WriteString(signature)
- parts.WriteString(signingSignature)
- return parts.String()
-}
-
-// SignHTTP signs AWS v4 requests with the provided payload hash, service name, region the
-// request is made to, and time the request is signed at. The signTime allows
-// you to specify that a request is signed for the future, and cannot be
-// used until then.
-//
-// The payloadHash is the hex encoded SHA-256 hash of the request payload, and
-// must be provided. Even if the request has no payload (aka body). If the
-// request has no payload you should use the hex encoded SHA-256 of an empty
-// string as the payloadHash value.
-//
-// "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
-//
-// Some services such as Amazon S3 accept alternative values for the payload
-// hash, such as "UNSIGNED-PAYLOAD" for requests where the body will not be
-// included in the request signature.
-//
-// https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-header-based-auth.html
-//
-// Sign differs from Presign in that it will sign the request using HTTP
-// header values. This type of signing is intended for http.Request values that
-// will not be shared, or are shared in a way the header values on the request
-// will not be lost.
-//
-// The passed in request will be modified in place.
-func (s Signer) SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(options *SignerOptions)) error {
- options := s.options
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- signer := &httpSigner{
- Request: r,
- PayloadHash: payloadHash,
- ServiceName: service,
- Region: region,
- Credentials: credentials,
- Time: v4Internal.NewSigningTime(signingTime.UTC()),
- DisableHeaderHoisting: options.DisableHeaderHoisting,
- DisableURIPathEscaping: options.DisableURIPathEscaping,
- DisableSessionToken: options.DisableSessionToken,
- KeyDerivator: s.keyDerivator,
- }
-
- signedRequest, err := signer.Build()
- if err != nil {
- return err
- }
-
- logSigningInfo(ctx, options, &signedRequest, false)
-
- return nil
-}
-
-// PresignHTTP signs AWS v4 requests with the payload hash, service name, region
-// the request is made to, and time the request is signed at. The signTime
-// allows you to specify that a request is signed for the future, and cannot
-// be used until then.
-//
-// Returns the signed URL and the map of HTTP headers that were included in the
-// signature or an error if signing the request failed. For presigned requests
-// these headers and their values must be included on the HTTP request when it
-// is made. This is helpful to know what header values need to be shared with
-// the party the presigned request will be distributed to.
-//
-// The payloadHash is the hex encoded SHA-256 hash of the request payload, and
-// must be provided. Even if the request has no payload (aka body). If the
-// request has no payload you should use the hex encoded SHA-256 of an empty
-// string as the payloadHash value.
-//
-// "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
-//
-// Some services such as Amazon S3 accept alternative values for the payload
-// hash, such as "UNSIGNED-PAYLOAD" for requests where the body will not be
-// included in the request signature.
-//
-// https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-header-based-auth.html
-//
-// PresignHTTP differs from SignHTTP in that it will sign the request using
-// query string instead of header values. This allows you to share the
-// Presigned Request's URL with third parties, or distribute it throughout your
-// system with minimal dependencies.
-//
-// PresignHTTP will not set the expires time of the presigned request
-// automatically. To specify the expire duration for a request add the
-// "X-Amz-Expires" query parameter on the request with the value as the
-// duration in seconds the presigned URL should be considered valid for. This
-// parameter is not used by all AWS services, and is most notable used by
-// Amazon S3 APIs.
-//
-// expires := 20 * time.Minute
-// query := req.URL.Query()
-// query.Set("X-Amz-Expires", strconv.FormatInt(int64(expires/time.Second), 10))
-// req.URL.RawQuery = query.Encode()
-//
-// This method does not modify the provided request.
-func (s *Signer) PresignHTTP(
- ctx context.Context, credentials aws.Credentials, r *http.Request,
- payloadHash string, service string, region string, signingTime time.Time,
- optFns ...func(*SignerOptions),
-) (signedURI string, signedHeaders http.Header, err error) {
- options := s.options
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- signer := &httpSigner{
- Request: r.Clone(r.Context()),
- PayloadHash: payloadHash,
- ServiceName: service,
- Region: region,
- Credentials: credentials,
- Time: v4Internal.NewSigningTime(signingTime.UTC()),
- IsPreSign: true,
- DisableHeaderHoisting: options.DisableHeaderHoisting,
- DisableURIPathEscaping: options.DisableURIPathEscaping,
- DisableSessionToken: options.DisableSessionToken,
- KeyDerivator: s.keyDerivator,
- }
-
- signedRequest, err := signer.Build()
- if err != nil {
- return "", nil, err
- }
-
- logSigningInfo(ctx, options, &signedRequest, true)
-
- signedHeaders = make(http.Header)
-
- // For the signed headers we canonicalize the header keys in the returned map.
- // This avoids situations where can standard library double headers like host header. For example the standard
- // library will set the Host header, even if it is present in lower-case form.
- for k, v := range signedRequest.SignedHeaders {
- key := textproto.CanonicalMIMEHeaderKey(k)
- signedHeaders[key] = append(signedHeaders[key], v...)
- }
-
- return signedRequest.Request.URL.String(), signedHeaders, nil
-}
-
-func (s *httpSigner) buildCredentialScope() string {
- return v4Internal.BuildCredentialScope(s.Time, s.Region, s.ServiceName)
-}
-
-func buildQuery(r v4Internal.Rule, header http.Header) (url.Values, http.Header) {
- query := url.Values{}
- unsignedHeaders := http.Header{}
-
- // A list of headers to be converted to lower case to mitigate a limitation from S3
- lowerCaseHeaders := map[string]string{
- "X-Amz-Expected-Bucket-Owner": "x-amz-expected-bucket-owner", // see #2508
- "X-Amz-Request-Payer": "x-amz-request-payer", // see #2764
- }
-
- for k, h := range header {
- if newKey, ok := lowerCaseHeaders[k]; ok {
- k = newKey
- }
-
- if r.IsValid(k) {
- query[k] = h
- } else {
- unsignedHeaders[k] = h
- }
- }
-
- return query, unsignedHeaders
-}
-
-func (s *httpSigner) buildCanonicalHeaders(host string, rule v4Internal.Rule, header http.Header, length int64) (signed http.Header, signedHeaders, canonicalHeadersStr string) {
- signed = make(http.Header)
-
- var headers []string
- const hostHeader = "host"
- headers = append(headers, hostHeader)
- signed[hostHeader] = append(signed[hostHeader], host)
-
- const contentLengthHeader = "content-length"
- if length > 0 {
- headers = append(headers, contentLengthHeader)
- signed[contentLengthHeader] = append(signed[contentLengthHeader], strconv.FormatInt(length, 10))
- }
-
- for k, v := range header {
- if !rule.IsValid(k) {
- continue // ignored header
- }
- if strings.EqualFold(k, contentLengthHeader) {
- // prevent signing already handled content-length header.
- continue
- }
-
- lowerCaseKey := strings.ToLower(k)
- if _, ok := signed[lowerCaseKey]; ok {
- // include additional values
- signed[lowerCaseKey] = append(signed[lowerCaseKey], v...)
- continue
- }
-
- headers = append(headers, lowerCaseKey)
- signed[lowerCaseKey] = v
- }
- sort.Strings(headers)
-
- signedHeaders = strings.Join(headers, ";")
-
- var canonicalHeaders strings.Builder
- n := len(headers)
- const colon = ':'
- for i := 0; i < n; i++ {
- if headers[i] == hostHeader {
- canonicalHeaders.WriteString(hostHeader)
- canonicalHeaders.WriteRune(colon)
- canonicalHeaders.WriteString(v4Internal.StripExcessSpaces(host))
- } else {
- canonicalHeaders.WriteString(headers[i])
- canonicalHeaders.WriteRune(colon)
- // Trim out leading, trailing, and dedup inner spaces from signed header values.
- values := signed[headers[i]]
- for j, v := range values {
- cleanedValue := strings.TrimSpace(v4Internal.StripExcessSpaces(v))
- canonicalHeaders.WriteString(cleanedValue)
- if j < len(values)-1 {
- canonicalHeaders.WriteRune(',')
- }
- }
- }
- canonicalHeaders.WriteRune('\n')
- }
- canonicalHeadersStr = canonicalHeaders.String()
-
- return signed, signedHeaders, canonicalHeadersStr
-}
-
-func (s *httpSigner) buildCanonicalString(method, uri, query, signedHeaders, canonicalHeaders string) string {
- return strings.Join([]string{
- method,
- uri,
- query,
- canonicalHeaders,
- signedHeaders,
- s.PayloadHash,
- }, "\n")
-}
-
-func (s *httpSigner) buildStringToSign(credentialScope, canonicalRequestString string) string {
- return strings.Join([]string{
- signingAlgorithm,
- s.Time.TimeFormat(),
- credentialScope,
- hex.EncodeToString(makeHash(sha256.New(), []byte(canonicalRequestString))),
- }, "\n")
-}
-
-func makeHash(hash hash.Hash, b []byte) []byte {
- hash.Reset()
- hash.Write(b)
- return hash.Sum(nil)
-}
-
-func (s *httpSigner) buildSignature(strToSign string) (string, error) {
- key := s.KeyDerivator.DeriveKey(s.Credentials, s.ServiceName, s.Region, s.Time)
- return hex.EncodeToString(v4Internal.HMACSHA256(key, []byte(strToSign))), nil
-}
-
-func (s *httpSigner) setRequiredSigningFields(headers http.Header, query url.Values) {
- amzDate := s.Time.TimeFormat()
-
- if s.IsPreSign {
- query.Set(v4Internal.AmzAlgorithmKey, signingAlgorithm)
- sessionToken := s.Credentials.SessionToken
- if !s.DisableSessionToken && len(sessionToken) > 0 {
- query.Set("X-Amz-Security-Token", sessionToken)
- }
-
- query.Set(v4Internal.AmzDateKey, amzDate)
- return
- }
-
- headers[v4Internal.AmzDateKey] = append(headers[v4Internal.AmzDateKey][:0], amzDate)
-
- if !s.DisableSessionToken && len(s.Credentials.SessionToken) > 0 {
- headers[v4Internal.AmzSecurityTokenKey] = append(headers[v4Internal.AmzSecurityTokenKey][:0], s.Credentials.SessionToken)
- }
-}
-
-func logSigningInfo(ctx context.Context, options SignerOptions, request *signedRequest, isPresign bool) {
- if !options.LogSigning {
- return
- }
- signedURLMsg := ""
- if isPresign {
- signedURLMsg = fmt.Sprintf(logSignedURLMsg, request.Request.URL.String())
- }
- logger := logging.WithContext(ctx, options.Logger)
- logger.Logf(logging.Debug, logSignInfoMsg, request.CanonicalString, request.StringToSign, signedURLMsg)
-}
-
-type signedRequest struct {
- Request *http.Request
- SignedHeaders http.Header
- CanonicalString string
- StringToSign string
- PreSigned bool
-}
-
-const logSignInfoMsg = `Request Signature:
----[ CANONICAL STRING ]-----------------------------
-%s
----[ STRING TO SIGN ]--------------------------------
-%s%s
------------------------------------------------------`
-const logSignedURLMsg = `
----[ SIGNED URL ]------------------------------------
-%s`
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/to_ptr.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/to_ptr.go
deleted file mode 100644
index f3fc4d610..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/to_ptr.go
+++ /dev/null
@@ -1,297 +0,0 @@
-// Code generated by aws/generate.go DO NOT EDIT.
-
-package aws
-
-import (
- "github.com/aws/smithy-go/ptr"
- "time"
-)
-
-// Bool returns a pointer value for the bool value passed in.
-func Bool(v bool) *bool {
- return ptr.Bool(v)
-}
-
-// BoolSlice returns a slice of bool pointers from the values
-// passed in.
-func BoolSlice(vs []bool) []*bool {
- return ptr.BoolSlice(vs)
-}
-
-// BoolMap returns a map of bool pointers from the values
-// passed in.
-func BoolMap(vs map[string]bool) map[string]*bool {
- return ptr.BoolMap(vs)
-}
-
-// Byte returns a pointer value for the byte value passed in.
-func Byte(v byte) *byte {
- return ptr.Byte(v)
-}
-
-// ByteSlice returns a slice of byte pointers from the values
-// passed in.
-func ByteSlice(vs []byte) []*byte {
- return ptr.ByteSlice(vs)
-}
-
-// ByteMap returns a map of byte pointers from the values
-// passed in.
-func ByteMap(vs map[string]byte) map[string]*byte {
- return ptr.ByteMap(vs)
-}
-
-// String returns a pointer value for the string value passed in.
-func String(v string) *string {
- return ptr.String(v)
-}
-
-// StringSlice returns a slice of string pointers from the values
-// passed in.
-func StringSlice(vs []string) []*string {
- return ptr.StringSlice(vs)
-}
-
-// StringMap returns a map of string pointers from the values
-// passed in.
-func StringMap(vs map[string]string) map[string]*string {
- return ptr.StringMap(vs)
-}
-
-// Int returns a pointer value for the int value passed in.
-func Int(v int) *int {
- return ptr.Int(v)
-}
-
-// IntSlice returns a slice of int pointers from the values
-// passed in.
-func IntSlice(vs []int) []*int {
- return ptr.IntSlice(vs)
-}
-
-// IntMap returns a map of int pointers from the values
-// passed in.
-func IntMap(vs map[string]int) map[string]*int {
- return ptr.IntMap(vs)
-}
-
-// Int8 returns a pointer value for the int8 value passed in.
-func Int8(v int8) *int8 {
- return ptr.Int8(v)
-}
-
-// Int8Slice returns a slice of int8 pointers from the values
-// passed in.
-func Int8Slice(vs []int8) []*int8 {
- return ptr.Int8Slice(vs)
-}
-
-// Int8Map returns a map of int8 pointers from the values
-// passed in.
-func Int8Map(vs map[string]int8) map[string]*int8 {
- return ptr.Int8Map(vs)
-}
-
-// Int16 returns a pointer value for the int16 value passed in.
-func Int16(v int16) *int16 {
- return ptr.Int16(v)
-}
-
-// Int16Slice returns a slice of int16 pointers from the values
-// passed in.
-func Int16Slice(vs []int16) []*int16 {
- return ptr.Int16Slice(vs)
-}
-
-// Int16Map returns a map of int16 pointers from the values
-// passed in.
-func Int16Map(vs map[string]int16) map[string]*int16 {
- return ptr.Int16Map(vs)
-}
-
-// Int32 returns a pointer value for the int32 value passed in.
-func Int32(v int32) *int32 {
- return ptr.Int32(v)
-}
-
-// Int32Slice returns a slice of int32 pointers from the values
-// passed in.
-func Int32Slice(vs []int32) []*int32 {
- return ptr.Int32Slice(vs)
-}
-
-// Int32Map returns a map of int32 pointers from the values
-// passed in.
-func Int32Map(vs map[string]int32) map[string]*int32 {
- return ptr.Int32Map(vs)
-}
-
-// Int64 returns a pointer value for the int64 value passed in.
-func Int64(v int64) *int64 {
- return ptr.Int64(v)
-}
-
-// Int64Slice returns a slice of int64 pointers from the values
-// passed in.
-func Int64Slice(vs []int64) []*int64 {
- return ptr.Int64Slice(vs)
-}
-
-// Int64Map returns a map of int64 pointers from the values
-// passed in.
-func Int64Map(vs map[string]int64) map[string]*int64 {
- return ptr.Int64Map(vs)
-}
-
-// Uint returns a pointer value for the uint value passed in.
-func Uint(v uint) *uint {
- return ptr.Uint(v)
-}
-
-// UintSlice returns a slice of uint pointers from the values
-// passed in.
-func UintSlice(vs []uint) []*uint {
- return ptr.UintSlice(vs)
-}
-
-// UintMap returns a map of uint pointers from the values
-// passed in.
-func UintMap(vs map[string]uint) map[string]*uint {
- return ptr.UintMap(vs)
-}
-
-// Uint8 returns a pointer value for the uint8 value passed in.
-func Uint8(v uint8) *uint8 {
- return ptr.Uint8(v)
-}
-
-// Uint8Slice returns a slice of uint8 pointers from the values
-// passed in.
-func Uint8Slice(vs []uint8) []*uint8 {
- return ptr.Uint8Slice(vs)
-}
-
-// Uint8Map returns a map of uint8 pointers from the values
-// passed in.
-func Uint8Map(vs map[string]uint8) map[string]*uint8 {
- return ptr.Uint8Map(vs)
-}
-
-// Uint16 returns a pointer value for the uint16 value passed in.
-func Uint16(v uint16) *uint16 {
- return ptr.Uint16(v)
-}
-
-// Uint16Slice returns a slice of uint16 pointers from the values
-// passed in.
-func Uint16Slice(vs []uint16) []*uint16 {
- return ptr.Uint16Slice(vs)
-}
-
-// Uint16Map returns a map of uint16 pointers from the values
-// passed in.
-func Uint16Map(vs map[string]uint16) map[string]*uint16 {
- return ptr.Uint16Map(vs)
-}
-
-// Uint32 returns a pointer value for the uint32 value passed in.
-func Uint32(v uint32) *uint32 {
- return ptr.Uint32(v)
-}
-
-// Uint32Slice returns a slice of uint32 pointers from the values
-// passed in.
-func Uint32Slice(vs []uint32) []*uint32 {
- return ptr.Uint32Slice(vs)
-}
-
-// Uint32Map returns a map of uint32 pointers from the values
-// passed in.
-func Uint32Map(vs map[string]uint32) map[string]*uint32 {
- return ptr.Uint32Map(vs)
-}
-
-// Uint64 returns a pointer value for the uint64 value passed in.
-func Uint64(v uint64) *uint64 {
- return ptr.Uint64(v)
-}
-
-// Uint64Slice returns a slice of uint64 pointers from the values
-// passed in.
-func Uint64Slice(vs []uint64) []*uint64 {
- return ptr.Uint64Slice(vs)
-}
-
-// Uint64Map returns a map of uint64 pointers from the values
-// passed in.
-func Uint64Map(vs map[string]uint64) map[string]*uint64 {
- return ptr.Uint64Map(vs)
-}
-
-// Float32 returns a pointer value for the float32 value passed in.
-func Float32(v float32) *float32 {
- return ptr.Float32(v)
-}
-
-// Float32Slice returns a slice of float32 pointers from the values
-// passed in.
-func Float32Slice(vs []float32) []*float32 {
- return ptr.Float32Slice(vs)
-}
-
-// Float32Map returns a map of float32 pointers from the values
-// passed in.
-func Float32Map(vs map[string]float32) map[string]*float32 {
- return ptr.Float32Map(vs)
-}
-
-// Float64 returns a pointer value for the float64 value passed in.
-func Float64(v float64) *float64 {
- return ptr.Float64(v)
-}
-
-// Float64Slice returns a slice of float64 pointers from the values
-// passed in.
-func Float64Slice(vs []float64) []*float64 {
- return ptr.Float64Slice(vs)
-}
-
-// Float64Map returns a map of float64 pointers from the values
-// passed in.
-func Float64Map(vs map[string]float64) map[string]*float64 {
- return ptr.Float64Map(vs)
-}
-
-// Time returns a pointer value for the time.Time value passed in.
-func Time(v time.Time) *time.Time {
- return ptr.Time(v)
-}
-
-// TimeSlice returns a slice of time.Time pointers from the values
-// passed in.
-func TimeSlice(vs []time.Time) []*time.Time {
- return ptr.TimeSlice(vs)
-}
-
-// TimeMap returns a map of time.Time pointers from the values
-// passed in.
-func TimeMap(vs map[string]time.Time) map[string]*time.Time {
- return ptr.TimeMap(vs)
-}
-
-// Duration returns a pointer value for the time.Duration value passed in.
-func Duration(v time.Duration) *time.Duration {
- return ptr.Duration(v)
-}
-
-// DurationSlice returns a slice of time.Duration pointers from the values
-// passed in.
-func DurationSlice(vs []time.Duration) []*time.Duration {
- return ptr.DurationSlice(vs)
-}
-
-// DurationMap returns a map of time.Duration pointers from the values
-// passed in.
-func DurationMap(vs map[string]time.Duration) map[string]*time.Duration {
- return ptr.DurationMap(vs)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/client.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/client.go
deleted file mode 100644
index 8d7c35a9e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/client.go
+++ /dev/null
@@ -1,342 +0,0 @@
-package http
-
-import (
- "context"
- "crypto/tls"
- "net"
- "net/http"
- "reflect"
- "sync"
- "time"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- "github.com/aws/smithy-go/tracing"
-)
-
-// Defaults for the HTTPTransportBuilder.
-var (
- // Default connection pool options
- DefaultHTTPTransportMaxIdleConns = 100
- DefaultHTTPTransportMaxIdleConnsPerHost = 10
-
- // Default connection timeouts
- DefaultHTTPTransportIdleConnTimeout = 90 * time.Second
- DefaultHTTPTransportTLSHandleshakeTimeout = 10 * time.Second
- DefaultHTTPTransportExpectContinueTimeout = 1 * time.Second
-
- // Default to TLS 1.2 for all HTTPS requests.
- DefaultHTTPTransportTLSMinVersion uint16 = tls.VersionTLS12
-)
-
-// Timeouts for net.Dialer's network connection.
-var (
- DefaultDialConnectTimeout = 30 * time.Second
- DefaultDialKeepAliveTimeout = 30 * time.Second
-)
-
-// BuildableClient provides a HTTPClient implementation with options to
-// create copies of the HTTPClient when additional configuration is provided.
-//
-// The client's methods will not share the http.Transport value between copies
-// of the BuildableClient. Only exported member values of the Transport and
-// optional Dialer will be copied between copies of BuildableClient.
-type BuildableClient struct {
- transport *http.Transport
- dialer *net.Dialer
-
- initOnce sync.Once
-
- clientTimeout time.Duration
- client *http.Client
-}
-
-// NewBuildableClient returns an initialized client for invoking HTTP
-// requests.
-func NewBuildableClient() *BuildableClient {
- return &BuildableClient{}
-}
-
-// Do implements the HTTPClient interface's Do method to invoke a HTTP request,
-// and receive the response. Uses the BuildableClient's current
-// configuration to invoke the http.Request.
-//
-// If connection pooling is enabled (aka HTTP KeepAlive) the client will only
-// share pooled connections with its own instance. Copies of the
-// BuildableClient will have their own connection pools.
-//
-// Redirect (3xx) responses will not be followed, the HTTP response received
-// will returned instead.
-func (b *BuildableClient) Do(req *http.Request) (*http.Response, error) {
- b.initOnce.Do(b.build)
-
- return b.client.Do(req)
-}
-
-// Freeze returns a frozen aws.HTTPClient implementation that is no longer a BuildableClient.
-// Use this to prevent the SDK from applying DefaultMode configuration values to a buildable client.
-func (b *BuildableClient) Freeze() aws.HTTPClient {
- cpy := b.clone()
- cpy.build()
- return cpy.client
-}
-
-func (b *BuildableClient) build() {
- b.client = wrapWithLimitedRedirect(&http.Client{
- Timeout: b.clientTimeout,
- Transport: b.GetTransport(),
- })
-}
-
-func (b *BuildableClient) clone() *BuildableClient {
- cpy := NewBuildableClient()
- cpy.transport = b.GetTransport()
- cpy.dialer = b.GetDialer()
- cpy.clientTimeout = b.clientTimeout
-
- return cpy
-}
-
-// WithTransportOptions copies the BuildableClient and returns it with the
-// http.Transport options applied.
-//
-// If a non (*http.Transport) was set as the round tripper, the round tripper
-// will be replaced with a default Transport value before invoking the option
-// functions.
-func (b *BuildableClient) WithTransportOptions(opts ...func(*http.Transport)) *BuildableClient {
- cpy := b.clone()
-
- tr := cpy.GetTransport()
- for _, opt := range opts {
- opt(tr)
- }
- cpy.transport = tr
-
- return cpy
-}
-
-// WithDialerOptions copies the BuildableClient and returns it with the
-// net.Dialer options applied. Will set the client's http.Transport DialContext
-// member.
-func (b *BuildableClient) WithDialerOptions(opts ...func(*net.Dialer)) *BuildableClient {
- cpy := b.clone()
-
- dialer := cpy.GetDialer()
- for _, opt := range opts {
- opt(dialer)
- }
- cpy.dialer = dialer
-
- tr := cpy.GetTransport()
- tr.DialContext = cpy.dialer.DialContext
- cpy.transport = tr
-
- return cpy
-}
-
-// WithTimeout Sets the timeout used by the client for all requests.
-func (b *BuildableClient) WithTimeout(timeout time.Duration) *BuildableClient {
- cpy := b.clone()
- cpy.clientTimeout = timeout
- return cpy
-}
-
-// GetTransport returns a copy of the client's HTTP Transport.
-func (b *BuildableClient) GetTransport() *http.Transport {
- var tr *http.Transport
- if b.transport != nil {
- tr = b.transport.Clone()
- } else {
- tr = defaultHTTPTransport()
- }
-
- return tr
-}
-
-// GetDialer returns a copy of the client's network dialer.
-func (b *BuildableClient) GetDialer() *net.Dialer {
- var dialer *net.Dialer
- if b.dialer != nil {
- dialer = shallowCopyStruct(b.dialer).(*net.Dialer)
- } else {
- dialer = defaultDialer()
- }
-
- return dialer
-}
-
-// GetTimeout returns a copy of the client's timeout to cancel requests with.
-func (b *BuildableClient) GetTimeout() time.Duration {
- return b.clientTimeout
-}
-
-func defaultDialer() *net.Dialer {
- return &net.Dialer{
- Timeout: DefaultDialConnectTimeout,
- KeepAlive: DefaultDialKeepAliveTimeout,
- DualStack: true,
- }
-}
-
-func defaultHTTPTransport() *http.Transport {
- dialer := defaultDialer()
-
- tr := &http.Transport{
- Proxy: http.ProxyFromEnvironment,
- DialContext: traceDialContext(dialer.DialContext),
- TLSHandshakeTimeout: DefaultHTTPTransportTLSHandleshakeTimeout,
- MaxIdleConns: DefaultHTTPTransportMaxIdleConns,
- MaxIdleConnsPerHost: DefaultHTTPTransportMaxIdleConnsPerHost,
- IdleConnTimeout: DefaultHTTPTransportIdleConnTimeout,
- ExpectContinueTimeout: DefaultHTTPTransportExpectContinueTimeout,
- ForceAttemptHTTP2: true,
- TLSClientConfig: &tls.Config{
- MinVersion: DefaultHTTPTransportTLSMinVersion,
- },
- }
-
- return tr
-}
-
-type dialContext func(ctx context.Context, network, addr string) (net.Conn, error)
-
-func traceDialContext(dc dialContext) dialContext {
- return func(ctx context.Context, network, addr string) (net.Conn, error) {
- span, _ := tracing.GetSpan(ctx)
- span.SetProperty("net.peer.name", addr)
-
- conn, err := dc(ctx, network, addr)
- if err != nil {
- return conn, err
- }
-
- raddr := conn.RemoteAddr()
- if raddr == nil {
- return conn, err
- }
-
- host, port, err := net.SplitHostPort(raddr.String())
- if err != nil { // don't blow up just because we couldn't parse
- span.SetProperty("net.peer.addr", raddr.String())
- } else {
- span.SetProperty("net.peer.host", host)
- span.SetProperty("net.peer.port", port)
- }
-
- return conn, err
- }
-}
-
-// shallowCopyStruct creates a shallow copy of the passed in source struct, and
-// returns that copy of the same struct type.
-func shallowCopyStruct(src interface{}) interface{} {
- srcVal := reflect.ValueOf(src)
- srcValType := srcVal.Type()
-
- var returnAsPtr bool
- if srcValType.Kind() == reflect.Ptr {
- srcVal = srcVal.Elem()
- srcValType = srcValType.Elem()
- returnAsPtr = true
- }
- dstVal := reflect.New(srcValType).Elem()
-
- for i := 0; i < srcValType.NumField(); i++ {
- ft := srcValType.Field(i)
- if len(ft.PkgPath) != 0 {
- // unexported fields have a PkgPath
- continue
- }
-
- dstVal.Field(i).Set(srcVal.Field(i))
- }
-
- if returnAsPtr {
- dstVal = dstVal.Addr()
- }
-
- return dstVal.Interface()
-}
-
-// wrapWithLimitedRedirect updates the Client's Transport and CheckRedirect to
-// not follow any redirect other than 307 and 308. No other redirect will be
-// followed.
-//
-// If the client does not have a Transport defined will use a new SDK default
-// http.Transport configuration.
-func wrapWithLimitedRedirect(c *http.Client) *http.Client {
- tr := c.Transport
- if tr == nil {
- tr = defaultHTTPTransport()
- }
-
- cc := *c
- cc.CheckRedirect = limitedRedirect
- cc.Transport = suppressBadHTTPRedirectTransport{
- tr: tr,
- }
-
- return &cc
-}
-
-// limitedRedirect is a CheckRedirect that prevents the client from following
-// any non 307/308 HTTP status code redirects.
-//
-// The 307 and 308 redirects are allowed because the client must use the
-// original HTTP method for the redirected to location. Whereas 301 and 302
-// allow the client to switch to GET for the redirect.
-//
-// Suppresses all redirect requests with a URL of badHTTPRedirectLocation.
-func limitedRedirect(r *http.Request, via []*http.Request) error {
- // Request.Response, in CheckRedirect is the response that is triggering
- // the redirect.
- resp := r.Response
- if r.URL.String() == badHTTPRedirectLocation {
- resp.Header.Del(badHTTPRedirectLocation)
- return http.ErrUseLastResponse
- }
-
- switch resp.StatusCode {
- case 307, 308:
- // Only allow 307 and 308 redirects as they preserve the method.
- return nil
- }
-
- return http.ErrUseLastResponse
-}
-
-// suppressBadHTTPRedirectTransport provides an http.RoundTripper
-// implementation that wraps another http.RoundTripper to prevent HTTP client
-// receiving 301 and 302 HTTP responses redirects without the required location
-// header.
-//
-// Clients using this utility must have a CheckRedirect, e.g. limitedRedirect,
-// that check for responses with having a URL of baseHTTPRedirectLocation, and
-// suppress the redirect.
-type suppressBadHTTPRedirectTransport struct {
- tr http.RoundTripper
-}
-
-const badHTTPRedirectLocation = `https://amazonaws.com/badhttpredirectlocation`
-
-// RoundTrip backfills a stub location when a 301/302 response is received
-// without a location. This stub location is used by limitedRedirect to prevent
-// the HTTP client from failing attempting to use follow a redirect without a
-// location value.
-func (t suppressBadHTTPRedirectTransport) RoundTrip(r *http.Request) (*http.Response, error) {
- resp, err := t.tr.RoundTrip(r)
- if err != nil {
- return resp, err
- }
-
- // S3 is the only known service to return 301 without location header.
- // The Go standard library HTTP client will return an opaque error if it
- // tries to follow a 301/302 response missing the location header.
- switch resp.StatusCode {
- case 301, 302:
- if v := resp.Header.Get("Location"); len(v) == 0 {
- resp.Header.Set("Location", badHTTPRedirectLocation)
- }
- }
-
- return resp, err
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/content_type.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/content_type.go
deleted file mode 100644
index 556f54a7f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/content_type.go
+++ /dev/null
@@ -1,42 +0,0 @@
-package http
-
-import (
- "context"
- "fmt"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// removeContentTypeHeader is a build middleware that removes
-// content type header if content-length header is unset or
-// is set to zero,
-type removeContentTypeHeader struct {
-}
-
-// ID the name of the middleware.
-func (m *removeContentTypeHeader) ID() string {
- return "RemoveContentTypeHeader"
-}
-
-// HandleBuild adds or appends the constructed user agent to the request.
-func (m *removeContentTypeHeader) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) (
- out middleware.BuildOutput, metadata middleware.Metadata, err error,
-) {
- req, ok := in.Request.(*smithyhttp.Request)
- if !ok {
- return out, metadata, fmt.Errorf("unknown transport type %T", in)
- }
-
- // remove contentTypeHeader when content-length is zero
- if req.ContentLength == 0 {
- req.Header.Del("content-type")
- }
-
- return next.HandleBuild(ctx, in)
-}
-
-// RemoveContentTypeHeader removes content-type header if
-// content length is unset or equal to zero.
-func RemoveContentTypeHeader(stack *middleware.Stack) error {
- return stack.Build.Add(&removeContentTypeHeader{}, middleware.After)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/response_error.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/response_error.go
deleted file mode 100644
index 44651c990..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/response_error.go
+++ /dev/null
@@ -1,33 +0,0 @@
-package http
-
-import (
- "errors"
- "fmt"
-
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// ResponseError provides the HTTP centric error type wrapping the underlying error
-// with the HTTP response value and the deserialized RequestID.
-type ResponseError struct {
- *smithyhttp.ResponseError
-
- // RequestID associated with response error
- RequestID string
-}
-
-// ServiceRequestID returns the request id associated with Response Error
-func (e *ResponseError) ServiceRequestID() string { return e.RequestID }
-
-// Error returns the formatted error
-func (e *ResponseError) Error() string {
- return fmt.Sprintf(
- "https response error StatusCode: %d, RequestID: %s, %v",
- e.Response.StatusCode, e.RequestID, e.Err)
-}
-
-// As populates target and returns true if the type of target is a error type that
-// the ResponseError embeds, (e.g.AWS HTTP ResponseError)
-func (e *ResponseError) As(target interface{}) bool {
- return errors.As(e.ResponseError, target)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/response_error_middleware.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/response_error_middleware.go
deleted file mode 100644
index a1ad20fe3..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/response_error_middleware.go
+++ /dev/null
@@ -1,56 +0,0 @@
-package http
-
-import (
- "context"
-
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// AddResponseErrorMiddleware adds response error wrapper middleware
-func AddResponseErrorMiddleware(stack *middleware.Stack) error {
- // add error wrapper middleware before request id retriever middleware so that it can wrap the error response
- // returned by operation deserializers
- return stack.Deserialize.Insert(&ResponseErrorWrapper{}, "RequestIDRetriever", middleware.Before)
-}
-
-// ResponseErrorWrapper wraps operation errors with ResponseError.
-type ResponseErrorWrapper struct {
-}
-
-// ID returns the middleware identifier
-func (m *ResponseErrorWrapper) ID() string {
- return "ResponseErrorWrapper"
-}
-
-// HandleDeserialize wraps the stack error with smithyhttp.ResponseError.
-func (m *ResponseErrorWrapper) 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)
- if err == nil {
- // Nothing to do when there is no error.
- return out, metadata, err
- }
-
- resp, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- // No raw response to wrap with.
- return out, metadata, err
- }
-
- // look for request id in metadata
- reqID, _ := awsmiddleware.GetRequestIDMetadata(metadata)
-
- // Wrap the returned smithy error with the request id retrieved from the metadata
- err = &ResponseError{
- ResponseError: &smithyhttp.ResponseError{
- Response: resp,
- Err: err,
- },
- RequestID: reqID,
- }
-
- return out, metadata, err
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/timeout_read_closer.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/timeout_read_closer.go
deleted file mode 100644
index 993929bd9..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/transport/http/timeout_read_closer.go
+++ /dev/null
@@ -1,104 +0,0 @@
-package http
-
-import (
- "context"
- "fmt"
- "io"
- "time"
-
- "github.com/aws/smithy-go"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-type readResult struct {
- n int
- err error
-}
-
-// ResponseTimeoutError is an error when the reads from the response are
-// delayed longer than the timeout the read was configured for.
-type ResponseTimeoutError struct {
- TimeoutDur time.Duration
-}
-
-// Timeout returns that the error is was caused by a timeout, and can be
-// retried.
-func (*ResponseTimeoutError) Timeout() bool { return true }
-
-func (e *ResponseTimeoutError) Error() string {
- return fmt.Sprintf("read on body reach timeout limit, %v", e.TimeoutDur)
-}
-
-// timeoutReadCloser will handle body reads that take too long.
-// We will return a ErrReadTimeout error if a timeout occurs.
-type timeoutReadCloser struct {
- reader io.ReadCloser
- duration time.Duration
-}
-
-// Read will spin off a goroutine to call the reader's Read method. We will
-// select on the timer's channel or the read's channel. Whoever completes first
-// will be returned.
-func (r *timeoutReadCloser) Read(b []byte) (int, error) {
- timer := time.NewTimer(r.duration)
- c := make(chan readResult, 1)
-
- go func() {
- n, err := r.reader.Read(b)
- timer.Stop()
- c <- readResult{n: n, err: err}
- }()
-
- select {
- case data := <-c:
- return data.n, data.err
- case <-timer.C:
- return 0, &ResponseTimeoutError{TimeoutDur: r.duration}
- }
-}
-
-func (r *timeoutReadCloser) Close() error {
- return r.reader.Close()
-}
-
-// AddResponseReadTimeoutMiddleware adds a middleware to the stack that wraps the
-// response body so that a read that takes too long will return an error.
-func AddResponseReadTimeoutMiddleware(stack *middleware.Stack, duration time.Duration) error {
- return stack.Deserialize.Add(&readTimeout{duration: duration}, middleware.After)
-}
-
-// readTimeout wraps the response body with a timeoutReadCloser
-type readTimeout struct {
- duration time.Duration
-}
-
-// ID returns the id of the middleware
-func (*readTimeout) ID() string {
- return "ReadResponseTimeout"
-}
-
-// HandleDeserialize implements the DeserializeMiddleware interface
-func (m *readTimeout) 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)
- if err != nil {
- return out, metadata, err
- }
-
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- response.Body = &timeoutReadCloser{
- reader: response.Body,
- duration: m.duration,
- }
- out.RawResponse = response
-
- return out, metadata, err
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/types.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/types.go
deleted file mode 100644
index cc3ae8114..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/types.go
+++ /dev/null
@@ -1,42 +0,0 @@
-package aws
-
-import (
- "fmt"
-)
-
-// Ternary is an enum allowing an unknown or none state in addition to a bool's
-// true and false.
-type Ternary int
-
-func (t Ternary) String() string {
- switch t {
- case UnknownTernary:
- return "unknown"
- case FalseTernary:
- return "false"
- case TrueTernary:
- return "true"
- default:
- return fmt.Sprintf("unknown value, %d", int(t))
- }
-}
-
-// Bool returns true if the value is TrueTernary, false otherwise.
-func (t Ternary) Bool() bool {
- return t == TrueTernary
-}
-
-// Enumerations for the values of the Ternary type.
-const (
- UnknownTernary Ternary = iota
- FalseTernary
- TrueTernary
-)
-
-// BoolTernary returns a true or false Ternary value for the bool provided.
-func BoolTernary(v bool) Ternary {
- if v {
- return TrueTernary
- }
- return FalseTernary
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/version.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/version.go
deleted file mode 100644
index 5f729d45e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/aws/version.go
+++ /dev/null
@@ -1,8 +0,0 @@
-// Package aws provides core functionality for making requests to AWS services.
-package aws
-
-// SDKName is the name of this AWS SDK
-const SDKName = "aws-sdk-go-v2"
-
-// SDKVersion is the version of this SDK
-const SDKVersion = goModuleVersion
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/config/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go-v2/config/CHANGELOG.md
deleted file mode 100644
index 526537b8b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/config/CHANGELOG.md
+++ /dev/null
@@ -1,945 +0,0 @@
-# v1.31.12 (2025-09-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.31.11 (2025-09-26)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.31.10 (2025-09-23)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.31.9 (2025-09-22)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.31.8 (2025-09-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.31.7 (2025-09-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.31.6 (2025-08-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.31.5 (2025-08-28)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.31.4 (2025-08-27)
-
-* **Dependency Update**: Update to smithy-go v1.23.0.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.31.3 (2025-08-26)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.31.2 (2025-08-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.31.1 (2025-08-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.31.0 (2025-08-11)
-
-* **Feature**: Add support for configuring per-service Options via callback on global config.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.30.3 (2025-08-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.30.2 (2025-07-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.30.1 (2025-07-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.30.0 (2025-07-28)
-
-* **Feature**: Add support for HTTP interceptors.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.29.18 (2025-07-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.29.17 (2025-06-17)
-
-* **Dependency Update**: Update to smithy-go v1.22.4.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.29.16 (2025-06-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.29.15 (2025-06-06)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.29.14 (2025-04-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.29.13 (2025-04-03)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.29.12 (2025-03-27)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.29.11 (2025-03-25)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.29.10 (2025-03-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.29.9 (2025-03-04.2)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.29.8 (2025-02-27)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.29.7 (2025-02-18)
-
-* **Bug Fix**: Bump go version to 1.22
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.29.6 (2025-02-05)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.29.5 (2025-02-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.29.4 (2025-01-31)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.29.3 (2025-01-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.29.2 (2025-01-24)
-
-* **Bug Fix**: Fix env config naming and usage of deprecated ioutil
-* **Dependency Update**: Updated to the latest SDK module versions
-* **Dependency Update**: Upgrade to smithy-go v1.22.2.
-
-# v1.29.1 (2025-01-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.29.0 (2025-01-15)
-
-* **Feature**: S3 client behavior is updated to always calculate a checksum by default for operations that support it (such as PutObject or UploadPart), or require it (such as DeleteObjects). The checksum algorithm used by default now becomes CRC32. Checksum behavior can be configured using `when_supported` and `when_required` options - in code using RequestChecksumCalculation, in shared config using request_checksum_calculation, or as env variable using AWS_REQUEST_CHECKSUM_CALCULATION. The S3 client attempts to validate response checksums for all S3 API operations that support checksums. However, if the SDK has not implemented the specified checksum algorithm then this validation is skipped. Checksum validation behavior can be configured using `when_supported` and `when_required` options - in code using ResponseChecksumValidation, in shared config using response_checksum_validation, or as env variable using AWS_RESPONSE_CHECKSUM_VALIDATION.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.28.11 (2025-01-14)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.28.10 (2025-01-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.28.9 (2025-01-09)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.28.8 (2025-01-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.28.7 (2024-12-19)
-
-* **Bug Fix**: Fix improper use of printf-style functions.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.28.6 (2024-12-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.28.5 (2024-11-18)
-
-* **Dependency Update**: Update to smithy-go v1.22.1.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.28.4 (2024-11-14)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.28.3 (2024-11-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.28.2 (2024-11-06)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.28.1 (2024-10-28)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.28.0 (2024-10-16)
-
-* **Feature**: Adds the LoadOptions hook `WithBaseEndpoint` for setting global endpoint override in-code.
-
-# v1.27.43 (2024-10-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.42 (2024-10-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.41 (2024-10-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.40 (2024-10-03)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.39 (2024-09-27)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.38 (2024-09-25)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.37 (2024-09-23)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.36 (2024-09-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.35 (2024-09-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.34 (2024-09-16)
-
-* **Bug Fix**: Read `AWS_CONTAINER_CREDENTIALS_FULL_URI` env variable if set when reading a profile with `credential_source`. Also ensure `AWS_CONTAINER_CREDENTIALS_RELATIVE_URI` is always read before it
-
-# v1.27.33 (2024-09-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.32 (2024-09-03)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.31 (2024-08-26)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.30 (2024-08-23)
-
-* **Bug Fix**: Don't fail credentials unit tests if credentials are found on a file
-
-# v1.27.29 (2024-08-22)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.28 (2024-08-15)
-
-* **Dependency Update**: Bump minimum Go version to 1.21.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.27 (2024-07-18)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.26 (2024-07-10.2)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.25 (2024-07-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.24 (2024-07-03)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.23 (2024-06-28)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.22 (2024-06-26)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.21 (2024-06-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.20 (2024-06-18)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.19 (2024-06-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.18 (2024-06-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.17 (2024-06-03)
-
-* **Documentation**: Add deprecation docs to global endpoint resolution interfaces. These APIs were previously deprecated with the introduction of service-specific endpoint resolution (EndpointResolverV2 and BaseEndpoint on service client options).
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.16 (2024-05-23)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.15 (2024-05-16)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.14 (2024-05-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.13 (2024-05-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.12 (2024-05-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.11 (2024-04-05)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.10 (2024-03-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.9 (2024-03-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.8 (2024-03-18)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.7 (2024-03-07)
-
-* **Bug Fix**: Remove dependency on go-cmp.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.6 (2024-03-05)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.5 (2024-03-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.4 (2024-02-23)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.3 (2024-02-22)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.2 (2024-02-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.1 (2024-02-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.0 (2024-02-13)
-
-* **Feature**: Bump minimum Go version to 1.20 per our language support policy.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.26.6 (2024-01-22)
-
-* **Bug Fix**: Remove invalid escaping of shared config values. All values in the shared config file will now be interpreted literally, save for fully-quoted strings which are unwrapped for legacy reasons.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.26.5 (2024-01-18)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.26.4 (2024-01-16)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.26.3 (2024-01-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.26.2 (2023-12-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.26.1 (2023-12-08)
-
-* **Bug Fix**: Correct loading of [services *] sections into shared config.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.26.0 (2023-12-07)
-
-* **Feature**: Support modeled request compression. The only algorithm supported at this time is `gzip`.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.25.12 (2023-12-06)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.25.11 (2023-12-01)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.25.10 (2023-11-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.25.9 (2023-11-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.25.8 (2023-11-28.3)
-
-* **Bug Fix**: Correct resolution of S3Express auth disable toggle.
-
-# v1.25.7 (2023-11-28.2)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.25.6 (2023-11-28)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.25.5 (2023-11-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.25.4 (2023-11-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.25.3 (2023-11-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.25.2 (2023-11-16)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.25.1 (2023-11-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.25.0 (2023-11-14)
-
-* **Feature**: Add support for dynamic auth token from file and EKS container host in absolute/relative URIs in the HTTP credential provider.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.24.0 (2023-11-13)
-
-* **Feature**: Replace the legacy config parser with a modern, less-strict implementation. Parsing failures within a section will now simply ignore the invalid line rather than silently drop the entire section.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.23.0 (2023-11-09.2)
-
-* **Feature**: BREAKFIX: In order to support subproperty parsing, invalid property definitions must not be ignored
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.22.3 (2023-11-09)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.22.2 (2023-11-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.22.1 (2023-11-06)
-
-* No change notes available for this release.
-
-# v1.22.0 (2023-11-02)
-
-* **Feature**: Add env and shared config settings for disabling IMDSv1 fallback.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.21.0 (2023-11-01)
-
-* **Feature**: Adds support for configured endpoints via environment variables and the AWS shared configuration file.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.20.0 (2023-10-31)
-
-* **Feature**: **BREAKING CHANGE**: Bump minimum go version to 1.19 per the revised [go version support policy](https://aws.amazon.com/blogs/developer/aws-sdk-for-go-aligns-with-go-release-policy-on-supported-runtimes/).
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.19.1 (2023-10-24)
-
-* No change notes available for this release.
-
-# v1.19.0 (2023-10-16)
-
-* **Feature**: Modify logic of retrieving user agent appID from env config
-
-# v1.18.45 (2023-10-12)
-
-* **Bug Fix**: Fail to load config if an explicitly provided profile doesn't exist.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.44 (2023-10-06)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.43 (2023-10-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.42 (2023-09-22)
-
-* **Bug Fix**: Fixed a bug where merging `max_attempts` or `duration_seconds` fields across shared config files with invalid values would silently default them to 0.
-* **Bug Fix**: Move type assertion of config values out of the parsing stage, which resolves an issue where the contents of a profile would silently be dropped with certain numeric formats.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.41 (2023-09-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.40 (2023-09-18)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.39 (2023-09-05)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.38 (2023-08-31)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.37 (2023-08-23)
-
-* No change notes available for this release.
-
-# v1.18.36 (2023-08-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.35 (2023-08-18)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.34 (2023-08-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.33 (2023-08-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.32 (2023-08-01)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.31 (2023-07-31)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.30 (2023-07-28)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.29 (2023-07-25)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.28 (2023-07-13)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.27 (2023-06-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.26 (2023-06-13)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.25 (2023-05-09)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.24 (2023-05-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.23 (2023-05-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.22 (2023-04-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.21 (2023-04-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.20 (2023-04-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.19 (2023-03-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.18 (2023-03-16)
-
-* **Bug Fix**: Allow RoleARN to be set as functional option on STS WebIdentityRoleOptions. Fixes aws/aws-sdk-go-v2#2015.
-
-# v1.18.17 (2023-03-14)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.16 (2023-03-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.15 (2023-02-22)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.14 (2023-02-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.13 (2023-02-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.12 (2023-02-03)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.11 (2023-02-01)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.10 (2023-01-25)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.9 (2023-01-23)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.8 (2023-01-05)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.7 (2022-12-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.6 (2022-12-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.5 (2022-12-15)
-
-* **Bug Fix**: Unify logic between shared config and in finding home directory
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.4 (2022-12-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.3 (2022-11-22)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.2 (2022-11-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.1 (2022-11-16)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.0 (2022-11-11)
-
-* **Announcement**: When using the SSOTokenProvider, a previous implementation incorrectly compensated for invalid SSOTokenProvider configurations in the shared profile. This has been fixed via PR #1903 and tracked in issue #1846
-* **Feature**: Adds token refresh support (via SSOTokenProvider) when using the SSOCredentialProvider
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.11 (2022-11-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.10 (2022-10-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.9 (2022-10-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.8 (2022-09-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.7 (2022-09-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.6 (2022-09-14)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.5 (2022-09-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.4 (2022-08-31)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.3 (2022-08-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.2 (2022-08-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.1 (2022-08-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.0 (2022-08-14)
-
-* **Feature**: Add alternative mechanism for determning the users `$HOME` or `%USERPROFILE%` location when the environment variables are not present.
-
-# v1.16.1 (2022-08-11)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.0 (2022-08-10)
-
-* **Feature**: Adds support for the following settings in the `~/.aws/credentials` file: `sso_account_id`, `sso_region`, `sso_role_name`, `sso_start_url`, and `ca_bundle`.
-
-# v1.15.17 (2022-08-09)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.15.16 (2022-08-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.15.15 (2022-08-01)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.15.14 (2022-07-11)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.15.13 (2022-07-05)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.15.12 (2022-06-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.15.11 (2022-06-16)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.15.10 (2022-06-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.15.9 (2022-05-26)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.15.8 (2022-05-25)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.15.7 (2022-05-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.15.6 (2022-05-16)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.15.5 (2022-05-09)
-
-* **Bug Fix**: Fixes a bug in LoadDefaultConfig to correctly assign ConfigSources so all config resolvers have access to the config sources. This fixes the feature/ec2/imds client not having configuration applied via config.LoadOptions such as EC2IMDSClientEnableState. PR [#1682](https://github.com/aws/aws-sdk-go-v2/pull/1682)
-
-# v1.15.4 (2022-04-25)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.15.3 (2022-03-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.15.2 (2022-03-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.15.1 (2022-03-23)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.15.0 (2022-03-08)
-
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.14.0 (2022-02-24)
-
-* **Feature**: Adds support for loading RetryMaxAttempts and RetryMod from the environment and shared configuration files. These parameters drive how the SDK's API client will initialize its default retryer, if custome retryer has not been specified. See [config](https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/config) module and [aws.Config](https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/aws#Config) for more information about and how to use these new options.
-* **Feature**: Adds support for the `ca_bundle` parameter in shared config and credentials files. The usage of the file is the same as environment variable, `AWS_CA_BUNDLE`, but sourced from shared config. Fixes [#1589](https://github.com/aws/aws-sdk-go-v2/issues/1589)
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.1 (2022-01-28)
-
-* **Bug Fix**: Fixes LoadDefaultConfig handling of errors returned by passed in functional options. Previously errors returned from the LoadOptions passed into LoadDefaultConfig were incorrectly ignored. [#1562](https://github.com/aws/aws-sdk-go-v2/pull/1562). Thanks to [Pinglei Guo](https://github.com/pingleig) for submitting this PR.
-* **Bug Fix**: Fixes the SDK's handling of `duration_sections` in the shared credentials file or specified in multiple shared config and shared credentials files under the same profile. [#1568](https://github.com/aws/aws-sdk-go-v2/pull/1568). Thanks to [Amir Szekely](https://github.com/kichik) for help reproduce this bug.
-* **Bug Fix**: Updates `config` module to use os.UserHomeDir instead of hard coded environment variable for OS. [#1563](https://github.com/aws/aws-sdk-go-v2/pull/1563)
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.0 (2022-01-14)
-
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.0 (2022-01-07)
-
-* **Feature**: Add load option for CredentialCache. Adds a new member to the LoadOptions struct, CredentialsCacheOptions. This member allows specifying a function that will be used to configure the CredentialsCache. The CredentialsCacheOptions will only be used if the configuration loader will wrap the underlying credential provider in the CredentialsCache.
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.11.1 (2021-12-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.11.0 (2021-12-02)
-
-* **Feature**: Add support for specifying `EndpointResolverWithOptions` on `LoadOptions`, and associated `WithEndpointResolverWithOptions`.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.10.3 (2021-11-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.10.2 (2021-11-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.10.1 (2021-11-12)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.10.0 (2021-11-06)
-
-* **Feature**: The SDK now supports configuration of FIPS and DualStack endpoints using environment variables, shared configuration, or programmatically.
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.9.0 (2021-10-21)
-
-* **Feature**: Updated to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.8.3 (2021-10-11)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.8.2 (2021-09-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.8.1 (2021-09-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.8.0 (2021-09-02)
-
-* **Feature**: Add support for S3 Multi-Region Access Point ARNs.
-
-# v1.7.0 (2021-08-27)
-
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.6.1 (2021-08-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.6.0 (2021-08-04)
-
-* **Feature**: adds error handling for defered close calls
-* **Dependency Update**: Updated `github.com/aws/smithy-go` to latest version.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.5.0 (2021-07-15)
-
-* **Feature**: Support has been added for EC2 IPv6-enabled Instance Metadata Service Endpoints.
-* **Dependency Update**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.4.1 (2021-07-01)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.4.0 (2021-06-25)
-
-* **Feature**: Adds configuration setting for enabling endpoint discovery.
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.0 (2021-05-20)
-
-* **Feature**: SSO credentials can now be defined alongside other credential providers within the same configuration profile.
-* **Bug Fix**: Profile names were incorrectly normalized to lower-case, which could result in unexpected profile configurations.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.2.0 (2021-05-14)
-
-* **Feature**: Constant has been added to modules to enable runtime version inspection for reporting.
-* **Dependency Update**: Updated to the latest SDK module versions
-
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/config/LICENSE.txt b/vendor/github.com/aws/aws-sdk-go-v2/config/LICENSE.txt
deleted file mode 100644
index d64569567..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/config/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/config/auth_scheme_preference.go b/vendor/github.com/aws/aws-sdk-go-v2/config/auth_scheme_preference.go
deleted file mode 100644
index 99e123661..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/config/auth_scheme_preference.go
+++ /dev/null
@@ -1,19 +0,0 @@
-package config
-
-import "strings"
-
-func toAuthSchemePreferenceList(cfg string) []string {
- if len(cfg) == 0 {
- return nil
- }
- parts := strings.Split(cfg, ",")
- ids := make([]string, 0, len(parts))
-
- for _, p := range parts {
- if id := strings.TrimSpace(p); len(id) > 0 {
- ids = append(ids, id)
- }
- }
-
- return ids
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/config/config.go b/vendor/github.com/aws/aws-sdk-go-v2/config/config.go
deleted file mode 100644
index caa20a158..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/config/config.go
+++ /dev/null
@@ -1,235 +0,0 @@
-package config
-
-import (
- "context"
- "os"
-
- "github.com/aws/aws-sdk-go-v2/aws"
-)
-
-// defaultAWSConfigResolvers are a slice of functions that will resolve external
-// configuration values into AWS configuration values.
-//
-// This will setup the AWS configuration's Region,
-var defaultAWSConfigResolvers = []awsConfigResolver{
- // Resolves the default configuration the SDK's aws.Config will be
- // initialized with.
- resolveDefaultAWSConfig,
-
- // Sets the logger to be used. Could be user provided logger, and client
- // logging mode.
- resolveLogger,
- resolveClientLogMode,
-
- // Sets the HTTP client and configuration to use for making requests using
- // the HTTP transport.
- resolveHTTPClient,
- resolveCustomCABundle,
-
- // Sets the endpoint resolving behavior the API Clients will use for making
- // requests to. Clients default to their own clients this allows overrides
- // to be specified. The resolveEndpointResolver option is deprecated, but
- // we still need to set it for backwards compatibility on config
- // construction.
- resolveEndpointResolver,
- resolveEndpointResolverWithOptions,
-
- // Sets the retry behavior API clients will use within their retry attempt
- // middleware. Defaults to unset, allowing API clients to define their own
- // retry behavior.
- resolveRetryer,
-
- // Sets the region the API Clients should use for making requests to.
- resolveRegion,
- resolveEC2IMDSRegion,
- resolveDefaultRegion,
-
- // Sets the additional set of middleware stack mutators that will custom
- // API client request pipeline middleware.
- resolveAPIOptions,
-
- // Resolves the DefaultsMode that should be used by SDK clients. If this
- // mode is set to DefaultsModeAuto.
- //
- // Comes after HTTPClient and CustomCABundle to ensure the HTTP client is
- // configured if provided before invoking IMDS if mode is auto. Comes
- // before resolving credentials so that those subsequent clients use the
- // configured auto mode.
- resolveDefaultsModeOptions,
-
- // Sets the resolved credentials the API clients will use for
- // authentication. Provides the SDK's default credential chain.
- //
- // Should probably be the last step in the resolve chain to ensure that all
- // other configurations are resolved first in case downstream credentials
- // implementations depend on or can be configured with earlier resolved
- // configuration options.
- resolveCredentials,
-
- // Sets the resolved bearer authentication token API clients will use for
- // httpBearerAuth authentication scheme.
- resolveBearerAuthToken,
-
- // Sets the sdk app ID if present in env var or shared config profile
- resolveAppID,
-
- resolveBaseEndpoint,
-
- // Sets the DisableRequestCompression if present in env var or shared config profile
- resolveDisableRequestCompression,
-
- // Sets the RequestMinCompressSizeBytes if present in env var or shared config profile
- resolveRequestMinCompressSizeBytes,
-
- // Sets the AccountIDEndpointMode if present in env var or shared config profile
- resolveAccountIDEndpointMode,
-
- // Sets the RequestChecksumCalculation if present in env var or shared config profile
- resolveRequestChecksumCalculation,
-
- // Sets the ResponseChecksumValidation if present in env var or shared config profile
- resolveResponseChecksumValidation,
-
- resolveInterceptors,
-
- resolveAuthSchemePreference,
-
- // Sets the ServiceOptions if present in LoadOptions
- resolveServiceOptions,
-}
-
-// A Config represents a generic configuration value or set of values. This type
-// will be used by the AWSConfigResolvers to extract
-//
-// General the Config type will use type assertion against the Provider interfaces
-// to extract specific data from the Config.
-type Config interface{}
-
-// A loader is used to load external configuration data and returns it as
-// a generic Config type.
-//
-// The loader should return an error if it fails to load the external configuration
-// or the configuration data is malformed, or required components missing.
-type loader func(context.Context, configs) (Config, error)
-
-// An awsConfigResolver will extract configuration data from the configs slice
-// using the provider interfaces to extract specific functionality. The extracted
-// configuration values will be written to the AWS Config value.
-//
-// The resolver should return an error if it it fails to extract the data, the
-// data is malformed, or incomplete.
-type awsConfigResolver func(ctx context.Context, cfg *aws.Config, configs configs) error
-
-// configs is a slice of Config values. These values will be used by the
-// AWSConfigResolvers to extract external configuration values to populate the
-// AWS Config type.
-//
-// Use AppendFromLoaders to add additional external Config values that are
-// loaded from external sources.
-//
-// Use ResolveAWSConfig after external Config values have been added or loaded
-// to extract the loaded configuration values into the AWS Config.
-type configs []Config
-
-// AppendFromLoaders iterates over the slice of loaders passed in calling each
-// loader function in order. The external config value returned by the loader
-// will be added to the returned configs slice.
-//
-// If a loader returns an error this method will stop iterating and return
-// that error.
-func (cs configs) AppendFromLoaders(ctx context.Context, loaders []loader) (configs, error) {
- for _, fn := range loaders {
- cfg, err := fn(ctx, cs)
- if err != nil {
- return nil, err
- }
-
- cs = append(cs, cfg)
- }
-
- return cs, nil
-}
-
-// ResolveAWSConfig returns a AWS configuration populated with values by calling
-// the resolvers slice passed in. Each resolver is called in order. Any resolver
-// may overwrite the AWS Configuration value of a previous resolver.
-//
-// If an resolver returns an error this method will return that error, and stop
-// iterating over the resolvers.
-func (cs configs) ResolveAWSConfig(ctx context.Context, resolvers []awsConfigResolver) (aws.Config, error) {
- var cfg aws.Config
-
- for _, fn := range resolvers {
- if err := fn(ctx, &cfg, cs); err != nil {
- return aws.Config{}, err
- }
- }
-
- return cfg, nil
-}
-
-// ResolveConfig calls the provide function passing slice of configuration sources.
-// This implements the aws.ConfigResolver interface.
-func (cs configs) ResolveConfig(f func(configs []interface{}) error) error {
- var cfgs []interface{}
- for i := range cs {
- cfgs = append(cfgs, cs[i])
- }
- return f(cfgs)
-}
-
-// LoadDefaultConfig reads the SDK's default external configurations, and
-// populates an AWS Config with the values from the external configurations.
-//
-// An optional variadic set of additional Config values can be provided as input
-// that will be prepended to the configs slice. Use this to add custom configuration.
-// The custom configurations must satisfy the respective providers for their data
-// or the custom data will be ignored by the resolvers and config loaders.
-//
-// cfg, err := config.LoadDefaultConfig( context.TODO(),
-// config.WithSharedConfigProfile("test-profile"),
-// )
-// if err != nil {
-// panic(fmt.Sprintf("failed loading config, %v", err))
-// }
-//
-// The default configuration sources are:
-// * Environment Variables
-// * Shared Configuration and Shared Credentials files.
-func LoadDefaultConfig(ctx context.Context, optFns ...func(*LoadOptions) error) (cfg aws.Config, err error) {
- var options LoadOptions
- for _, optFn := range optFns {
- if err := optFn(&options); err != nil {
- return aws.Config{}, err
- }
- }
-
- // assign Load Options to configs
- var cfgCpy = configs{options}
-
- cfgCpy, err = cfgCpy.AppendFromLoaders(ctx, resolveConfigLoaders(&options))
- if err != nil {
- return aws.Config{}, err
- }
-
- cfg, err = cfgCpy.ResolveAWSConfig(ctx, defaultAWSConfigResolvers)
- if err != nil {
- return aws.Config{}, err
- }
-
- return cfg, nil
-}
-
-func resolveConfigLoaders(options *LoadOptions) []loader {
- loaders := make([]loader, 2)
- loaders[0] = loadEnvConfig
-
- // specification of a profile should cause a load failure if it doesn't exist
- if os.Getenv(awsProfileEnv) != "" || options.SharedConfigProfile != "" {
- loaders[1] = loadSharedConfig
- } else {
- loaders[1] = loadSharedConfigIgnoreNotExist
- }
-
- return loaders
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/config/defaultsmode.go b/vendor/github.com/aws/aws-sdk-go-v2/config/defaultsmode.go
deleted file mode 100644
index 20b66367f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/config/defaultsmode.go
+++ /dev/null
@@ -1,47 +0,0 @@
-package config
-
-import (
- "context"
- "os"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- "github.com/aws/aws-sdk-go-v2/feature/ec2/imds"
-)
-
-const execEnvVar = "AWS_EXECUTION_ENV"
-
-// DefaultsModeOptions is the set of options that are used to configure
-type DefaultsModeOptions struct {
- // The SDK configuration defaults mode. Defaults to legacy if not specified.
- //
- // Supported modes are: auto, cross-region, in-region, legacy, mobile, standard
- Mode aws.DefaultsMode
-
- // The EC2 Instance Metadata Client that should be used when performing environment
- // discovery when aws.DefaultsModeAuto is set.
- //
- // If not specified the SDK will construct a client if the instance metadata service has not been disabled by
- // the AWS_EC2_METADATA_DISABLED environment variable.
- IMDSClient *imds.Client
-}
-
-func resolveDefaultsModeRuntimeEnvironment(ctx context.Context, envConfig *EnvConfig, client *imds.Client) (aws.RuntimeEnvironment, error) {
- getRegionOutput, err := client.GetRegion(ctx, &imds.GetRegionInput{})
- // honor context timeouts, but if we couldn't talk to IMDS don't fail runtime environment introspection.
- select {
- case <-ctx.Done():
- return aws.RuntimeEnvironment{}, err
- default:
- }
-
- var imdsRegion string
- if err == nil {
- imdsRegion = getRegionOutput.Region
- }
-
- return aws.RuntimeEnvironment{
- EnvironmentIdentifier: aws.ExecutionEnvironmentID(os.Getenv(execEnvVar)),
- Region: envConfig.Region,
- EC2InstanceMetadataRegion: imdsRegion,
- }, nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/config/doc.go b/vendor/github.com/aws/aws-sdk-go-v2/config/doc.go
deleted file mode 100644
index aab7164e2..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/config/doc.go
+++ /dev/null
@@ -1,20 +0,0 @@
-// Package config provides utilities for loading configuration from multiple
-// sources that can be used to configure the SDK's API clients, and utilities.
-//
-// The config package will load configuration from environment variables, AWS
-// shared configuration file (~/.aws/config), and AWS shared credentials file
-// (~/.aws/credentials).
-//
-// Use the LoadDefaultConfig to load configuration from all the SDK's supported
-// sources, and resolve credentials using the SDK's default credential chain.
-//
-// LoadDefaultConfig allows for a variadic list of additional Config sources that can
-// provide one or more configuration values which can be used to programmatically control the resolution
-// of a specific value, or allow for broader range of additional configuration sources not supported by the SDK.
-// A Config source implements one or more provider interfaces defined in this package. Config sources passed in will
-// take precedence over the default environment and shared config sources used by the SDK. If one or more Config sources
-// implement the same provider interface, priority will be handled by the order in which the sources were passed in.
-//
-// A number of helpers (prefixed by “With“) are provided in this package that implement their respective provider
-// interface. These helpers should be used for overriding configuration programmatically at runtime.
-package config
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/config/env_config.go b/vendor/github.com/aws/aws-sdk-go-v2/config/env_config.go
deleted file mode 100644
index e932c63df..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/config/env_config.go
+++ /dev/null
@@ -1,932 +0,0 @@
-package config
-
-import (
- "bytes"
- "context"
- "fmt"
- "io"
- "os"
- "strconv"
- "strings"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- "github.com/aws/aws-sdk-go-v2/feature/ec2/imds"
- smithyrequestcompression "github.com/aws/smithy-go/private/requestcompression"
-)
-
-// CredentialsSourceName provides a name of the provider when config is
-// loaded from environment.
-const CredentialsSourceName = "EnvConfigCredentials"
-
-// Environment variables that will be read for configuration values.
-const (
- awsAccessKeyIDEnv = "AWS_ACCESS_KEY_ID"
- awsAccessKeyEnv = "AWS_ACCESS_KEY"
-
- awsSecretAccessKeyEnv = "AWS_SECRET_ACCESS_KEY"
- awsSecretKeyEnv = "AWS_SECRET_KEY"
-
- awsSessionTokenEnv = "AWS_SESSION_TOKEN"
-
- awsContainerCredentialsFullURIEnv = "AWS_CONTAINER_CREDENTIALS_FULL_URI"
- awsContainerCredentialsRelativeURIEnv = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"
- awsContainerAuthorizationTokenEnv = "AWS_CONTAINER_AUTHORIZATION_TOKEN"
-
- awsRegionEnv = "AWS_REGION"
- awsDefaultRegionEnv = "AWS_DEFAULT_REGION"
-
- awsProfileEnv = "AWS_PROFILE"
- awsDefaultProfileEnv = "AWS_DEFAULT_PROFILE"
-
- awsSharedCredentialsFileEnv = "AWS_SHARED_CREDENTIALS_FILE"
-
- awsConfigFileEnv = "AWS_CONFIG_FILE"
-
- awsCABundleEnv = "AWS_CA_BUNDLE"
-
- awsWebIdentityTokenFileEnv = "AWS_WEB_IDENTITY_TOKEN_FILE"
-
- awsRoleARNEnv = "AWS_ROLE_ARN"
- awsRoleSessionNameEnv = "AWS_ROLE_SESSION_NAME"
-
- awsEnableEndpointDiscoveryEnv = "AWS_ENABLE_ENDPOINT_DISCOVERY"
-
- awsS3UseARNRegionEnv = "AWS_S3_USE_ARN_REGION"
-
- awsEc2MetadataServiceEndpointModeEnv = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE"
-
- awsEc2MetadataServiceEndpointEnv = "AWS_EC2_METADATA_SERVICE_ENDPOINT"
-
- awsEc2MetadataDisabledEnv = "AWS_EC2_METADATA_DISABLED"
- awsEc2MetadataV1DisabledEnv = "AWS_EC2_METADATA_V1_DISABLED"
-
- awsS3DisableMultiRegionAccessPointsEnv = "AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS"
-
- awsUseDualStackEndpointEnv = "AWS_USE_DUALSTACK_ENDPOINT"
-
- awsUseFIPSEndpointEnv = "AWS_USE_FIPS_ENDPOINT"
-
- awsDefaultsModeEnv = "AWS_DEFAULTS_MODE"
-
- awsMaxAttemptsEnv = "AWS_MAX_ATTEMPTS"
- awsRetryModeEnv = "AWS_RETRY_MODE"
- awsSdkUaAppIDEnv = "AWS_SDK_UA_APP_ID"
-
- awsIgnoreConfiguredEndpointURLEnv = "AWS_IGNORE_CONFIGURED_ENDPOINT_URLS"
- awsEndpointURLEnv = "AWS_ENDPOINT_URL"
-
- awsDisableRequestCompressionEnv = "AWS_DISABLE_REQUEST_COMPRESSION"
- awsRequestMinCompressionSizeBytesEnv = "AWS_REQUEST_MIN_COMPRESSION_SIZE_BYTES"
-
- awsS3DisableExpressSessionAuthEnv = "AWS_S3_DISABLE_EXPRESS_SESSION_AUTH"
-
- awsAccountIDEnv = "AWS_ACCOUNT_ID"
- awsAccountIDEndpointModeEnv = "AWS_ACCOUNT_ID_ENDPOINT_MODE"
-
- awsRequestChecksumCalculation = "AWS_REQUEST_CHECKSUM_CALCULATION"
- awsResponseChecksumValidation = "AWS_RESPONSE_CHECKSUM_VALIDATION"
-
- awsAuthSchemePreferenceEnv = "AWS_AUTH_SCHEME_PREFERENCE"
-)
-
-var (
- credAccessEnvKeys = []string{
- awsAccessKeyIDEnv,
- awsAccessKeyEnv,
- }
- credSecretEnvKeys = []string{
- awsSecretAccessKeyEnv,
- awsSecretKeyEnv,
- }
- regionEnvKeys = []string{
- awsRegionEnv,
- awsDefaultRegionEnv,
- }
- profileEnvKeys = []string{
- awsProfileEnv,
- awsDefaultProfileEnv,
- }
-)
-
-// EnvConfig is a collection of environment values the SDK will read
-// setup config from. All environment values are optional. But some values
-// such as credentials require multiple values to be complete or the values
-// will be ignored.
-type EnvConfig struct {
- // Environment configuration values. If set both Access Key ID and Secret Access
- // Key must be provided. Session Token and optionally also be provided, but is
- // not required.
- //
- // # Access Key ID
- // AWS_ACCESS_KEY_ID=AKID
- // AWS_ACCESS_KEY=AKID # only read if AWS_ACCESS_KEY_ID is not set.
- //
- // # Secret Access Key
- // AWS_SECRET_ACCESS_KEY=SECRET
- // AWS_SECRET_KEY=SECRET # only read if AWS_SECRET_ACCESS_KEY is not set.
- //
- // # Session Token
- // AWS_SESSION_TOKEN=TOKEN
- Credentials aws.Credentials
-
- // ContainerCredentialsEndpoint value is the HTTP enabled endpoint to retrieve credentials
- // using the endpointcreds.Provider
- ContainerCredentialsEndpoint string
-
- // ContainerCredentialsRelativePath is the relative URI path that will be used when attempting to retrieve
- // credentials from the container endpoint.
- ContainerCredentialsRelativePath string
-
- // ContainerAuthorizationToken is the authorization token that will be included in the HTTP Authorization
- // header when attempting to retrieve credentials from the container credentials endpoint.
- ContainerAuthorizationToken string
-
- // Region value will instruct the SDK where to make service API requests to. If is
- // not provided in the environment the region must be provided before a service
- // client request is made.
- //
- // AWS_REGION=us-west-2
- // AWS_DEFAULT_REGION=us-west-2
- Region string
-
- // Profile name the SDK should load use when loading shared configuration from the
- // shared configuration files. If not provided "default" will be used as the
- // profile name.
- //
- // AWS_PROFILE=my_profile
- // AWS_DEFAULT_PROFILE=my_profile
- SharedConfigProfile string
-
- // Shared credentials file path can be set to instruct the SDK to use an alternate
- // file for the shared credentials. If not set the file will be loaded from
- // $HOME/.aws/credentials on Linux/Unix based systems, and
- // %USERPROFILE%\.aws\credentials on Windows.
- //
- // AWS_SHARED_CREDENTIALS_FILE=$HOME/my_shared_credentials
- SharedCredentialsFile string
-
- // Shared config file path can be set to instruct the SDK to use an alternate
- // file for the shared config. If not set the file will be loaded from
- // $HOME/.aws/config on Linux/Unix based systems, and
- // %USERPROFILE%\.aws\config on Windows.
- //
- // AWS_CONFIG_FILE=$HOME/my_shared_config
- SharedConfigFile string
-
- // Sets the path to a custom Credentials Authority (CA) Bundle PEM file
- // that the SDK will use instead of the system's root CA bundle.
- // Only use this if you want to configure the SDK to use a custom set
- // of CAs.
- //
- // Enabling this option will attempt to merge the Transport
- // into the SDK's HTTP client. If the client's Transport is
- // not a http.Transport an error will be returned. If the
- // Transport's TLS config is set this option will cause the
- // SDK to overwrite the Transport's TLS config's RootCAs value.
- //
- // Setting a custom HTTPClient in the aws.Config options will override this setting.
- // To use this option and custom HTTP client, the HTTP client needs to be provided
- // when creating the config. Not the service client.
- //
- // AWS_CA_BUNDLE=$HOME/my_custom_ca_bundle
- CustomCABundle string
-
- // Enables endpoint discovery via environment variables.
- //
- // AWS_ENABLE_ENDPOINT_DISCOVERY=true
- EnableEndpointDiscovery aws.EndpointDiscoveryEnableState
-
- // Specifies the WebIdentity token the SDK should use to assume a role
- // with.
- //
- // AWS_WEB_IDENTITY_TOKEN_FILE=file_path
- WebIdentityTokenFilePath string
-
- // Specifies the IAM role arn to use when assuming an role.
- //
- // AWS_ROLE_ARN=role_arn
- RoleARN string
-
- // Specifies the IAM role session name to use when assuming a role.
- //
- // AWS_ROLE_SESSION_NAME=session_name
- RoleSessionName string
-
- // Specifies if the S3 service should allow ARNs to direct the region
- // the client's requests are sent to.
- //
- // AWS_S3_USE_ARN_REGION=true
- S3UseARNRegion *bool
-
- // Specifies if the EC2 IMDS service client is enabled.
- //
- // AWS_EC2_METADATA_DISABLED=true
- EC2IMDSClientEnableState imds.ClientEnableState
-
- // Specifies if EC2 IMDSv1 fallback is disabled.
- //
- // AWS_EC2_METADATA_V1_DISABLED=true
- EC2IMDSv1Disabled *bool
-
- // Specifies the EC2 Instance Metadata Service default endpoint selection mode (IPv4 or IPv6)
- //
- // AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE=IPv6
- EC2IMDSEndpointMode imds.EndpointModeState
-
- // Specifies the EC2 Instance Metadata Service endpoint to use. If specified it overrides EC2IMDSEndpointMode.
- //
- // AWS_EC2_METADATA_SERVICE_ENDPOINT=http://fd00:ec2::254
- EC2IMDSEndpoint string
-
- // Specifies if the S3 service should disable multi-region access points
- // support.
- //
- // AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS=true
- S3DisableMultiRegionAccessPoints *bool
-
- // Specifies that SDK clients must resolve a dual-stack endpoint for
- // services.
- //
- // AWS_USE_DUALSTACK_ENDPOINT=true
- UseDualStackEndpoint aws.DualStackEndpointState
-
- // Specifies that SDK clients must resolve a FIPS endpoint for
- // services.
- //
- // AWS_USE_FIPS_ENDPOINT=true
- UseFIPSEndpoint aws.FIPSEndpointState
-
- // Specifies the SDK Defaults Mode used by services.
- //
- // AWS_DEFAULTS_MODE=standard
- DefaultsMode aws.DefaultsMode
-
- // Specifies the maximum number attempts an API client will call an
- // operation that fails with a retryable error.
- //
- // AWS_MAX_ATTEMPTS=3
- RetryMaxAttempts int
-
- // Specifies the retry model the API client will be created with.
- //
- // aws_retry_mode=standard
- RetryMode aws.RetryMode
-
- // aws sdk app ID that can be added to user agent header string
- AppID string
-
- // Flag used to disable configured endpoints.
- IgnoreConfiguredEndpoints *bool
-
- // Value to contain configured endpoints to be propagated to
- // corresponding endpoint resolution field.
- BaseEndpoint string
-
- // determine if request compression is allowed, default to false
- // retrieved from env var AWS_DISABLE_REQUEST_COMPRESSION
- DisableRequestCompression *bool
-
- // inclusive threshold request body size to trigger compression,
- // default to 10240 and must be within 0 and 10485760 bytes inclusive
- // retrieved from env var AWS_REQUEST_MIN_COMPRESSION_SIZE_BYTES
- RequestMinCompressSizeBytes *int64
-
- // Whether S3Express auth is disabled.
- //
- // This will NOT prevent requests from being made to S3Express buckets, it
- // will only bypass the modified endpoint routing and signing behaviors
- // associated with the feature.
- S3DisableExpressAuth *bool
-
- // Indicates whether account ID will be required/ignored in endpoint2.0 routing
- AccountIDEndpointMode aws.AccountIDEndpointMode
-
- // Indicates whether request checksum should be calculated
- RequestChecksumCalculation aws.RequestChecksumCalculation
-
- // Indicates whether response checksum should be validated
- ResponseChecksumValidation aws.ResponseChecksumValidation
-
- // Priority list of preferred auth scheme names (e.g. sigv4a).
- AuthSchemePreference []string
-}
-
-// loadEnvConfig reads configuration values from the OS's environment variables.
-// Returning the a Config typed EnvConfig to satisfy the ConfigLoader func type.
-func loadEnvConfig(ctx context.Context, cfgs configs) (Config, error) {
- return NewEnvConfig()
-}
-
-// NewEnvConfig retrieves the SDK's environment configuration.
-// See `EnvConfig` for the values that will be retrieved.
-func NewEnvConfig() (EnvConfig, error) {
- var cfg EnvConfig
-
- creds := aws.Credentials{
- Source: CredentialsSourceName,
- }
- setStringFromEnvVal(&creds.AccessKeyID, credAccessEnvKeys)
- setStringFromEnvVal(&creds.SecretAccessKey, credSecretEnvKeys)
- if creds.HasKeys() {
- creds.AccountID = os.Getenv(awsAccountIDEnv)
- creds.SessionToken = os.Getenv(awsSessionTokenEnv)
- cfg.Credentials = creds
- }
-
- cfg.ContainerCredentialsEndpoint = os.Getenv(awsContainerCredentialsFullURIEnv)
- cfg.ContainerCredentialsRelativePath = os.Getenv(awsContainerCredentialsRelativeURIEnv)
- cfg.ContainerAuthorizationToken = os.Getenv(awsContainerAuthorizationTokenEnv)
-
- setStringFromEnvVal(&cfg.Region, regionEnvKeys)
- setStringFromEnvVal(&cfg.SharedConfigProfile, profileEnvKeys)
-
- cfg.SharedCredentialsFile = os.Getenv(awsSharedCredentialsFileEnv)
- cfg.SharedConfigFile = os.Getenv(awsConfigFileEnv)
-
- cfg.CustomCABundle = os.Getenv(awsCABundleEnv)
-
- cfg.WebIdentityTokenFilePath = os.Getenv(awsWebIdentityTokenFileEnv)
-
- cfg.RoleARN = os.Getenv(awsRoleARNEnv)
- cfg.RoleSessionName = os.Getenv(awsRoleSessionNameEnv)
-
- cfg.AppID = os.Getenv(awsSdkUaAppIDEnv)
-
- if err := setBoolPtrFromEnvVal(&cfg.DisableRequestCompression, []string{awsDisableRequestCompressionEnv}); err != nil {
- return cfg, err
- }
- if err := setInt64PtrFromEnvVal(&cfg.RequestMinCompressSizeBytes, []string{awsRequestMinCompressionSizeBytesEnv}, smithyrequestcompression.MaxRequestMinCompressSizeBytes); err != nil {
- return cfg, err
- }
-
- if err := setEndpointDiscoveryTypeFromEnvVal(&cfg.EnableEndpointDiscovery, []string{awsEnableEndpointDiscoveryEnv}); err != nil {
- return cfg, err
- }
-
- if err := setBoolPtrFromEnvVal(&cfg.S3UseARNRegion, []string{awsS3UseARNRegionEnv}); err != nil {
- return cfg, err
- }
-
- setEC2IMDSClientEnableState(&cfg.EC2IMDSClientEnableState, []string{awsEc2MetadataDisabledEnv})
- if err := setEC2IMDSEndpointMode(&cfg.EC2IMDSEndpointMode, []string{awsEc2MetadataServiceEndpointModeEnv}); err != nil {
- return cfg, err
- }
- cfg.EC2IMDSEndpoint = os.Getenv(awsEc2MetadataServiceEndpointEnv)
- if err := setBoolPtrFromEnvVal(&cfg.EC2IMDSv1Disabled, []string{awsEc2MetadataV1DisabledEnv}); err != nil {
- return cfg, err
- }
-
- if err := setBoolPtrFromEnvVal(&cfg.S3DisableMultiRegionAccessPoints, []string{awsS3DisableMultiRegionAccessPointsEnv}); err != nil {
- return cfg, err
- }
-
- if err := setUseDualStackEndpointFromEnvVal(&cfg.UseDualStackEndpoint, []string{awsUseDualStackEndpointEnv}); err != nil {
- return cfg, err
- }
-
- if err := setUseFIPSEndpointFromEnvVal(&cfg.UseFIPSEndpoint, []string{awsUseFIPSEndpointEnv}); err != nil {
- return cfg, err
- }
-
- if err := setDefaultsModeFromEnvVal(&cfg.DefaultsMode, []string{awsDefaultsModeEnv}); err != nil {
- return cfg, err
- }
-
- if err := setIntFromEnvVal(&cfg.RetryMaxAttempts, []string{awsMaxAttemptsEnv}); err != nil {
- return cfg, err
- }
- if err := setRetryModeFromEnvVal(&cfg.RetryMode, []string{awsRetryModeEnv}); err != nil {
- return cfg, err
- }
-
- setStringFromEnvVal(&cfg.BaseEndpoint, []string{awsEndpointURLEnv})
-
- if err := setBoolPtrFromEnvVal(&cfg.IgnoreConfiguredEndpoints, []string{awsIgnoreConfiguredEndpointURLEnv}); err != nil {
- return cfg, err
- }
-
- if err := setBoolPtrFromEnvVal(&cfg.S3DisableExpressAuth, []string{awsS3DisableExpressSessionAuthEnv}); err != nil {
- return cfg, err
- }
-
- if err := setAIDEndPointModeFromEnvVal(&cfg.AccountIDEndpointMode, []string{awsAccountIDEndpointModeEnv}); err != nil {
- return cfg, err
- }
-
- if err := setRequestChecksumCalculationFromEnvVal(&cfg.RequestChecksumCalculation, []string{awsRequestChecksumCalculation}); err != nil {
- return cfg, err
- }
- if err := setResponseChecksumValidationFromEnvVal(&cfg.ResponseChecksumValidation, []string{awsResponseChecksumValidation}); err != nil {
- return cfg, err
- }
-
- cfg.AuthSchemePreference = toAuthSchemePreferenceList(os.Getenv(awsAuthSchemePreferenceEnv))
-
- return cfg, nil
-}
-
-func (c EnvConfig) getDefaultsMode(ctx context.Context) (aws.DefaultsMode, bool, error) {
- if len(c.DefaultsMode) == 0 {
- return "", false, nil
- }
- return c.DefaultsMode, true, nil
-}
-
-func (c EnvConfig) getAppID(context.Context) (string, bool, error) {
- return c.AppID, len(c.AppID) > 0, nil
-}
-
-func (c EnvConfig) getDisableRequestCompression(context.Context) (bool, bool, error) {
- if c.DisableRequestCompression == nil {
- return false, false, nil
- }
- return *c.DisableRequestCompression, true, nil
-}
-
-func (c EnvConfig) getRequestMinCompressSizeBytes(context.Context) (int64, bool, error) {
- if c.RequestMinCompressSizeBytes == nil {
- return 0, false, nil
- }
- return *c.RequestMinCompressSizeBytes, true, nil
-}
-
-func (c EnvConfig) getAccountIDEndpointMode(context.Context) (aws.AccountIDEndpointMode, bool, error) {
- return c.AccountIDEndpointMode, len(c.AccountIDEndpointMode) > 0, nil
-}
-
-func (c EnvConfig) getRequestChecksumCalculation(context.Context) (aws.RequestChecksumCalculation, bool, error) {
- return c.RequestChecksumCalculation, c.RequestChecksumCalculation > 0, nil
-}
-
-func (c EnvConfig) getResponseChecksumValidation(context.Context) (aws.ResponseChecksumValidation, bool, error) {
- return c.ResponseChecksumValidation, c.ResponseChecksumValidation > 0, nil
-}
-
-// GetRetryMaxAttempts returns the value of AWS_MAX_ATTEMPTS if was specified,
-// and not 0.
-func (c EnvConfig) GetRetryMaxAttempts(ctx context.Context) (int, bool, error) {
- if c.RetryMaxAttempts == 0 {
- return 0, false, nil
- }
- return c.RetryMaxAttempts, true, nil
-}
-
-// GetRetryMode returns the RetryMode of AWS_RETRY_MODE if was specified, and a
-// valid value.
-func (c EnvConfig) GetRetryMode(ctx context.Context) (aws.RetryMode, bool, error) {
- if len(c.RetryMode) == 0 {
- return "", false, nil
- }
- return c.RetryMode, true, nil
-}
-
-func setEC2IMDSClientEnableState(state *imds.ClientEnableState, keys []string) {
- for _, k := range keys {
- value := os.Getenv(k)
- if len(value) == 0 {
- continue
- }
- switch {
- case strings.EqualFold(value, "true"):
- *state = imds.ClientDisabled
- case strings.EqualFold(value, "false"):
- *state = imds.ClientEnabled
- default:
- continue
- }
- break
- }
-}
-
-func setDefaultsModeFromEnvVal(mode *aws.DefaultsMode, keys []string) error {
- for _, k := range keys {
- if value := os.Getenv(k); len(value) > 0 {
- if ok := mode.SetFromString(value); !ok {
- return fmt.Errorf("invalid %s value: %s", k, value)
- }
- break
- }
- }
- return nil
-}
-
-func setRetryModeFromEnvVal(mode *aws.RetryMode, keys []string) (err error) {
- for _, k := range keys {
- if value := os.Getenv(k); len(value) > 0 {
- *mode, err = aws.ParseRetryMode(value)
- if err != nil {
- return fmt.Errorf("invalid %s value, %w", k, err)
- }
- break
- }
- }
- return nil
-}
-
-func setEC2IMDSEndpointMode(mode *imds.EndpointModeState, keys []string) error {
- for _, k := range keys {
- value := os.Getenv(k)
- if len(value) == 0 {
- continue
- }
- if err := mode.SetFromString(value); err != nil {
- return fmt.Errorf("invalid value for environment variable, %s=%s, %v", k, value, err)
- }
- }
- return nil
-}
-
-func setAIDEndPointModeFromEnvVal(m *aws.AccountIDEndpointMode, keys []string) error {
- for _, k := range keys {
- value := os.Getenv(k)
- if len(value) == 0 {
- continue
- }
-
- switch value {
- case "preferred":
- *m = aws.AccountIDEndpointModePreferred
- case "required":
- *m = aws.AccountIDEndpointModeRequired
- case "disabled":
- *m = aws.AccountIDEndpointModeDisabled
- default:
- return fmt.Errorf("invalid value for environment variable, %s=%s, must be preferred/required/disabled", k, value)
- }
- break
- }
- return nil
-}
-
-func setRequestChecksumCalculationFromEnvVal(m *aws.RequestChecksumCalculation, keys []string) error {
- for _, k := range keys {
- value := os.Getenv(k)
- if len(value) == 0 {
- continue
- }
-
- switch strings.ToLower(value) {
- case checksumWhenSupported:
- *m = aws.RequestChecksumCalculationWhenSupported
- case checksumWhenRequired:
- *m = aws.RequestChecksumCalculationWhenRequired
- default:
- return fmt.Errorf("invalid value for environment variable, %s=%s, must be when_supported/when_required", k, value)
- }
- }
- return nil
-}
-
-func setResponseChecksumValidationFromEnvVal(m *aws.ResponseChecksumValidation, keys []string) error {
- for _, k := range keys {
- value := os.Getenv(k)
- if len(value) == 0 {
- continue
- }
-
- switch strings.ToLower(value) {
- case checksumWhenSupported:
- *m = aws.ResponseChecksumValidationWhenSupported
- case checksumWhenRequired:
- *m = aws.ResponseChecksumValidationWhenRequired
- default:
- return fmt.Errorf("invalid value for environment variable, %s=%s, must be when_supported/when_required", k, value)
- }
-
- }
- return nil
-}
-
-// GetRegion returns the AWS Region if set in the environment. Returns an empty
-// string if not set.
-func (c EnvConfig) getRegion(ctx context.Context) (string, bool, error) {
- if len(c.Region) == 0 {
- return "", false, nil
- }
- return c.Region, true, nil
-}
-
-// GetSharedConfigProfile returns the shared config profile if set in the
-// environment. Returns an empty string if not set.
-func (c EnvConfig) getSharedConfigProfile(ctx context.Context) (string, bool, error) {
- if len(c.SharedConfigProfile) == 0 {
- return "", false, nil
- }
-
- return c.SharedConfigProfile, true, nil
-}
-
-// getSharedConfigFiles returns a slice of filenames set in the environment.
-//
-// Will return the filenames in the order of:
-// * Shared Config
-func (c EnvConfig) getSharedConfigFiles(context.Context) ([]string, bool, error) {
- var files []string
- if v := c.SharedConfigFile; len(v) > 0 {
- files = append(files, v)
- }
-
- if len(files) == 0 {
- return nil, false, nil
- }
- return files, true, nil
-}
-
-// getSharedCredentialsFiles returns a slice of filenames set in the environment.
-//
-// Will return the filenames in the order of:
-// * Shared Credentials
-func (c EnvConfig) getSharedCredentialsFiles(context.Context) ([]string, bool, error) {
- var files []string
- if v := c.SharedCredentialsFile; len(v) > 0 {
- files = append(files, v)
- }
- if len(files) == 0 {
- return nil, false, nil
- }
- return files, true, nil
-}
-
-// GetCustomCABundle returns the custom CA bundle's PEM bytes if the file was
-func (c EnvConfig) getCustomCABundle(context.Context) (io.Reader, bool, error) {
- if len(c.CustomCABundle) == 0 {
- return nil, false, nil
- }
-
- b, err := os.ReadFile(c.CustomCABundle)
- if err != nil {
- return nil, false, err
- }
- return bytes.NewReader(b), true, nil
-}
-
-// GetIgnoreConfiguredEndpoints is used in knowing when to disable configured
-// endpoints feature.
-func (c EnvConfig) GetIgnoreConfiguredEndpoints(context.Context) (bool, bool, error) {
- if c.IgnoreConfiguredEndpoints == nil {
- return false, false, nil
- }
-
- return *c.IgnoreConfiguredEndpoints, true, nil
-}
-
-func (c EnvConfig) getBaseEndpoint(context.Context) (string, bool, error) {
- return c.BaseEndpoint, len(c.BaseEndpoint) > 0, nil
-}
-
-// GetServiceBaseEndpoint is used to retrieve a normalized SDK ID for use
-// with configured endpoints.
-func (c EnvConfig) GetServiceBaseEndpoint(ctx context.Context, sdkID string) (string, bool, error) {
- if endpt := os.Getenv(fmt.Sprintf("%s_%s", awsEndpointURLEnv, normalizeEnv(sdkID))); endpt != "" {
- return endpt, true, nil
- }
- return "", false, nil
-}
-
-func normalizeEnv(sdkID string) string {
- upper := strings.ToUpper(sdkID)
- return strings.ReplaceAll(upper, " ", "_")
-}
-
-// GetS3UseARNRegion returns whether to allow ARNs to direct the region
-// the S3 client's requests are sent to.
-func (c EnvConfig) GetS3UseARNRegion(ctx context.Context) (value, ok bool, err error) {
- if c.S3UseARNRegion == nil {
- return false, false, nil
- }
-
- return *c.S3UseARNRegion, true, nil
-}
-
-// GetS3DisableMultiRegionAccessPoints returns whether to disable multi-region access point
-// support for the S3 client.
-func (c EnvConfig) GetS3DisableMultiRegionAccessPoints(ctx context.Context) (value, ok bool, err error) {
- if c.S3DisableMultiRegionAccessPoints == nil {
- return false, false, nil
- }
-
- return *c.S3DisableMultiRegionAccessPoints, true, nil
-}
-
-// GetUseDualStackEndpoint returns whether the service's dual-stack endpoint should be
-// used for requests.
-func (c EnvConfig) GetUseDualStackEndpoint(ctx context.Context) (value aws.DualStackEndpointState, found bool, err error) {
- if c.UseDualStackEndpoint == aws.DualStackEndpointStateUnset {
- return aws.DualStackEndpointStateUnset, false, nil
- }
-
- return c.UseDualStackEndpoint, true, nil
-}
-
-// GetUseFIPSEndpoint returns whether the service's FIPS endpoint should be
-// used for requests.
-func (c EnvConfig) GetUseFIPSEndpoint(ctx context.Context) (value aws.FIPSEndpointState, found bool, err error) {
- if c.UseFIPSEndpoint == aws.FIPSEndpointStateUnset {
- return aws.FIPSEndpointStateUnset, false, nil
- }
-
- return c.UseFIPSEndpoint, true, nil
-}
-
-func setStringFromEnvVal(dst *string, keys []string) {
- for _, k := range keys {
- if v := os.Getenv(k); len(v) > 0 {
- *dst = v
- break
- }
- }
-}
-
-func setIntFromEnvVal(dst *int, keys []string) error {
- for _, k := range keys {
- if v := os.Getenv(k); len(v) > 0 {
- i, err := strconv.ParseInt(v, 10, 64)
- if err != nil {
- return fmt.Errorf("invalid value %s=%s, %w", k, v, err)
- }
- *dst = int(i)
- break
- }
- }
-
- return nil
-}
-
-func setBoolPtrFromEnvVal(dst **bool, keys []string) error {
- for _, k := range keys {
- value := os.Getenv(k)
- if len(value) == 0 {
- continue
- }
-
- if *dst == nil {
- *dst = new(bool)
- }
-
- switch {
- case strings.EqualFold(value, "false"):
- **dst = false
- case strings.EqualFold(value, "true"):
- **dst = true
- default:
- return fmt.Errorf(
- "invalid value for environment variable, %s=%s, need true or false",
- k, value)
- }
- break
- }
-
- return nil
-}
-
-func setInt64PtrFromEnvVal(dst **int64, keys []string, max int64) error {
- for _, k := range keys {
- value := os.Getenv(k)
- if len(value) == 0 {
- continue
- }
-
- v, err := strconv.ParseInt(value, 10, 64)
- if err != nil {
- return fmt.Errorf("invalid value for env var, %s=%s, need int64", k, value)
- } else if v < 0 || v > max {
- return fmt.Errorf("invalid range for env var min request compression size bytes %q, must be within 0 and 10485760 inclusively", v)
- }
- if *dst == nil {
- *dst = new(int64)
- }
-
- **dst = v
- break
- }
-
- return nil
-}
-
-func setEndpointDiscoveryTypeFromEnvVal(dst *aws.EndpointDiscoveryEnableState, keys []string) error {
- for _, k := range keys {
- value := os.Getenv(k)
- if len(value) == 0 {
- continue // skip if empty
- }
-
- switch {
- case strings.EqualFold(value, endpointDiscoveryDisabled):
- *dst = aws.EndpointDiscoveryDisabled
- case strings.EqualFold(value, endpointDiscoveryEnabled):
- *dst = aws.EndpointDiscoveryEnabled
- case strings.EqualFold(value, endpointDiscoveryAuto):
- *dst = aws.EndpointDiscoveryAuto
- default:
- return fmt.Errorf(
- "invalid value for environment variable, %s=%s, need true, false or auto",
- k, value)
- }
- }
- return nil
-}
-
-func setUseDualStackEndpointFromEnvVal(dst *aws.DualStackEndpointState, keys []string) error {
- for _, k := range keys {
- value := os.Getenv(k)
- if len(value) == 0 {
- continue // skip if empty
- }
-
- switch {
- case strings.EqualFold(value, "true"):
- *dst = aws.DualStackEndpointStateEnabled
- case strings.EqualFold(value, "false"):
- *dst = aws.DualStackEndpointStateDisabled
- default:
- return fmt.Errorf(
- "invalid value for environment variable, %s=%s, need true, false",
- k, value)
- }
- }
- return nil
-}
-
-func setUseFIPSEndpointFromEnvVal(dst *aws.FIPSEndpointState, keys []string) error {
- for _, k := range keys {
- value := os.Getenv(k)
- if len(value) == 0 {
- continue // skip if empty
- }
-
- switch {
- case strings.EqualFold(value, "true"):
- *dst = aws.FIPSEndpointStateEnabled
- case strings.EqualFold(value, "false"):
- *dst = aws.FIPSEndpointStateDisabled
- default:
- return fmt.Errorf(
- "invalid value for environment variable, %s=%s, need true, false",
- k, value)
- }
- }
- return nil
-}
-
-// GetEnableEndpointDiscovery returns resolved value for EnableEndpointDiscovery env variable setting.
-func (c EnvConfig) GetEnableEndpointDiscovery(ctx context.Context) (value aws.EndpointDiscoveryEnableState, found bool, err error) {
- if c.EnableEndpointDiscovery == aws.EndpointDiscoveryUnset {
- return aws.EndpointDiscoveryUnset, false, nil
- }
-
- return c.EnableEndpointDiscovery, true, nil
-}
-
-// GetEC2IMDSClientEnableState implements a EC2IMDSClientEnableState options resolver interface.
-func (c EnvConfig) GetEC2IMDSClientEnableState() (imds.ClientEnableState, bool, error) {
- if c.EC2IMDSClientEnableState == imds.ClientDefaultEnableState {
- return imds.ClientDefaultEnableState, false, nil
- }
-
- return c.EC2IMDSClientEnableState, true, nil
-}
-
-// GetEC2IMDSEndpointMode implements a EC2IMDSEndpointMode option resolver interface.
-func (c EnvConfig) GetEC2IMDSEndpointMode() (imds.EndpointModeState, bool, error) {
- if c.EC2IMDSEndpointMode == imds.EndpointModeStateUnset {
- return imds.EndpointModeStateUnset, false, nil
- }
-
- return c.EC2IMDSEndpointMode, true, nil
-}
-
-// GetEC2IMDSEndpoint implements a EC2IMDSEndpoint option resolver interface.
-func (c EnvConfig) GetEC2IMDSEndpoint() (string, bool, error) {
- if len(c.EC2IMDSEndpoint) == 0 {
- return "", false, nil
- }
-
- return c.EC2IMDSEndpoint, true, nil
-}
-
-// GetEC2IMDSV1FallbackDisabled implements an EC2IMDSV1FallbackDisabled option
-// resolver interface.
-func (c EnvConfig) GetEC2IMDSV1FallbackDisabled() (bool, bool) {
- if c.EC2IMDSv1Disabled == nil {
- return false, false
- }
-
- return *c.EC2IMDSv1Disabled, true
-}
-
-// GetS3DisableExpressAuth returns the configured value for
-// [EnvConfig.S3DisableExpressAuth].
-func (c EnvConfig) GetS3DisableExpressAuth() (value, ok bool) {
- if c.S3DisableExpressAuth == nil {
- return false, false
- }
-
- return *c.S3DisableExpressAuth, true
-}
-
-func (c EnvConfig) getAuthSchemePreference() ([]string, bool) {
- if len(c.AuthSchemePreference) > 0 {
- return c.AuthSchemePreference, true
- }
- return nil, false
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/config/generate.go b/vendor/github.com/aws/aws-sdk-go-v2/config/generate.go
deleted file mode 100644
index 654a7a77f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/config/generate.go
+++ /dev/null
@@ -1,4 +0,0 @@
-package config
-
-//go:generate go run -tags codegen ./codegen -output=provider_assert_test.go
-//go:generate gofmt -s -w ./
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/config/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/config/go_module_metadata.go
deleted file mode 100644
index 827423678..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/config/go_module_metadata.go
+++ /dev/null
@@ -1,6 +0,0 @@
-// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
-
-package config
-
-// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.31.12"
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/config/load_options.go b/vendor/github.com/aws/aws-sdk-go-v2/config/load_options.go
deleted file mode 100644
index 7cb5a1365..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/config/load_options.go
+++ /dev/null
@@ -1,1355 +0,0 @@
-package config
-
-import (
- "context"
- "io"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- "github.com/aws/aws-sdk-go-v2/credentials/ec2rolecreds"
- "github.com/aws/aws-sdk-go-v2/credentials/endpointcreds"
- "github.com/aws/aws-sdk-go-v2/credentials/processcreds"
- "github.com/aws/aws-sdk-go-v2/credentials/ssocreds"
- "github.com/aws/aws-sdk-go-v2/credentials/stscreds"
- "github.com/aws/aws-sdk-go-v2/feature/ec2/imds"
- smithybearer "github.com/aws/smithy-go/auth/bearer"
- "github.com/aws/smithy-go/logging"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// LoadOptionsFunc is a type alias for LoadOptions functional option
-type LoadOptionsFunc func(*LoadOptions) error
-
-// LoadOptions are discrete set of options that are valid for loading the
-// configuration
-type LoadOptions struct {
-
- // Region is the region to send requests to.
- Region string
-
- // Credentials object to use when signing requests.
- Credentials aws.CredentialsProvider
-
- // Token provider for authentication operations with bearer authentication.
- BearerAuthTokenProvider smithybearer.TokenProvider
-
- // HTTPClient the SDK's API clients will use to invoke HTTP requests.
- HTTPClient HTTPClient
-
- // EndpointResolver that can be used to provide or override an endpoint for
- // the given service and region.
- //
- // See the `aws.EndpointResolver` documentation on usage.
- //
- // Deprecated: See EndpointResolverWithOptions
- EndpointResolver aws.EndpointResolver
-
- // EndpointResolverWithOptions that can be used to provide or override an
- // endpoint for the given service and region.
- //
- // See the `aws.EndpointResolverWithOptions` documentation on usage.
- EndpointResolverWithOptions aws.EndpointResolverWithOptions
-
- // RetryMaxAttempts specifies the maximum number attempts an API client
- // will call an operation that fails with a retryable error.
- //
- // This value will only be used if Retryer option is nil.
- RetryMaxAttempts int
-
- // RetryMode specifies the retry model the API client will be created with.
- //
- // This value will only be used if Retryer option is nil.
- RetryMode aws.RetryMode
-
- // Retryer is a function that provides a Retryer implementation. A Retryer
- // guides how HTTP requests should be retried in case of recoverable
- // failures.
- //
- // If not nil, RetryMaxAttempts, and RetryMode will be ignored.
- Retryer func() aws.Retryer
-
- // APIOptions provides the set of middleware mutations modify how the API
- // client requests will be handled. This is useful for adding additional
- // tracing data to a request, or changing behavior of the SDK's client.
- APIOptions []func(*middleware.Stack) error
-
- // Logger writer interface to write logging messages to.
- Logger logging.Logger
-
- // ClientLogMode is used to configure the events that will be sent to the
- // configured logger. This can be used to configure the logging of signing,
- // retries, request, and responses of the SDK clients.
- //
- // See the ClientLogMode type documentation for the complete set of logging
- // modes and available configuration.
- ClientLogMode *aws.ClientLogMode
-
- // SharedConfigProfile is the profile to be used when loading the SharedConfig
- SharedConfigProfile string
-
- // SharedConfigFiles is the slice of custom shared config files to use when
- // loading the SharedConfig. A non-default profile used within config file
- // must have name defined with prefix 'profile '. eg [profile xyz]
- // indicates a profile with name 'xyz'. To read more on the format of the
- // config file, please refer the documentation at
- // https://docs.aws.amazon.com/credref/latest/refdocs/file-format.html#file-format-config
- //
- // If duplicate profiles are provided within the same, or across multiple
- // shared config files, the next parsed profile will override only the
- // properties that conflict with the previously defined profile. Note that
- // if duplicate profiles are provided within the SharedCredentialsFiles and
- // SharedConfigFiles, the properties defined in shared credentials file
- // take precedence.
- SharedConfigFiles []string
-
- // SharedCredentialsFile is the slice of custom shared credentials files to
- // use when loading the SharedConfig. The profile name used within
- // credentials file must not prefix 'profile '. eg [xyz] indicates a
- // profile with name 'xyz'. Profile declared as [profile xyz] will be
- // ignored. To read more on the format of the credentials file, please
- // refer the documentation at
- // https://docs.aws.amazon.com/credref/latest/refdocs/file-format.html#file-format-creds
- //
- // If duplicate profiles are provided with a same, or across multiple
- // shared credentials files, the next parsed profile will override only
- // properties that conflict with the previously defined profile. Note that
- // if duplicate profiles are provided within the SharedCredentialsFiles and
- // SharedConfigFiles, the properties defined in shared credentials file
- // take precedence.
- SharedCredentialsFiles []string
-
- // CustomCABundle is CA bundle PEM bytes reader
- CustomCABundle io.Reader
-
- // DefaultRegion is the fall back region, used if a region was not resolved
- // from other sources
- DefaultRegion string
-
- // UseEC2IMDSRegion indicates if SDK should retrieve the region
- // from the EC2 Metadata service
- UseEC2IMDSRegion *UseEC2IMDSRegion
-
- // CredentialsCacheOptions is a function for setting the
- // aws.CredentialsCacheOptions
- CredentialsCacheOptions func(*aws.CredentialsCacheOptions)
-
- // BearerAuthTokenCacheOptions is a function for setting the smithy-go
- // auth/bearer#TokenCacheOptions
- BearerAuthTokenCacheOptions func(*smithybearer.TokenCacheOptions)
-
- // SSOTokenProviderOptions is a function for setting the
- // credentials/ssocreds.SSOTokenProviderOptions
- SSOTokenProviderOptions func(*ssocreds.SSOTokenProviderOptions)
-
- // ProcessCredentialOptions is a function for setting
- // the processcreds.Options
- ProcessCredentialOptions func(*processcreds.Options)
-
- // EC2RoleCredentialOptions is a function for setting
- // the ec2rolecreds.Options
- EC2RoleCredentialOptions func(*ec2rolecreds.Options)
-
- // EndpointCredentialOptions is a function for setting
- // the endpointcreds.Options
- EndpointCredentialOptions func(*endpointcreds.Options)
-
- // WebIdentityRoleCredentialOptions is a function for setting
- // the stscreds.WebIdentityRoleOptions
- WebIdentityRoleCredentialOptions func(*stscreds.WebIdentityRoleOptions)
-
- // AssumeRoleCredentialOptions is a function for setting the
- // stscreds.AssumeRoleOptions
- AssumeRoleCredentialOptions func(*stscreds.AssumeRoleOptions)
-
- // SSOProviderOptions is a function for setting
- // the ssocreds.Options
- SSOProviderOptions func(options *ssocreds.Options)
-
- // LogConfigurationWarnings when set to true, enables logging
- // configuration warnings
- LogConfigurationWarnings *bool
-
- // S3UseARNRegion specifies if the S3 service should allow ARNs to direct
- // the region, the client's requests are sent to.
- S3UseARNRegion *bool
-
- // S3DisableMultiRegionAccessPoints specifies if the S3 service should disable
- // the S3 Multi-Region access points feature.
- S3DisableMultiRegionAccessPoints *bool
-
- // EnableEndpointDiscovery specifies if endpoint discovery is enable for
- // the client.
- EnableEndpointDiscovery aws.EndpointDiscoveryEnableState
-
- // Specifies if the EC2 IMDS service client is enabled.
- //
- // AWS_EC2_METADATA_DISABLED=true
- EC2IMDSClientEnableState imds.ClientEnableState
-
- // Specifies the EC2 Instance Metadata Service default endpoint selection
- // mode (IPv4 or IPv6)
- EC2IMDSEndpointMode imds.EndpointModeState
-
- // Specifies the EC2 Instance Metadata Service endpoint to use. If
- // specified it overrides EC2IMDSEndpointMode.
- EC2IMDSEndpoint string
-
- // Specifies that SDK clients must resolve a dual-stack endpoint for
- // services.
- UseDualStackEndpoint aws.DualStackEndpointState
-
- // Specifies that SDK clients must resolve a FIPS endpoint for
- // services.
- UseFIPSEndpoint aws.FIPSEndpointState
-
- // Specifies the SDK configuration mode for defaults.
- DefaultsModeOptions DefaultsModeOptions
-
- // The sdk app ID retrieved from env var or shared config to be added to request user agent header
- AppID string
-
- // Specifies whether an operation request could be compressed
- DisableRequestCompression *bool
-
- // The inclusive min bytes of a request body that could be compressed
- RequestMinCompressSizeBytes *int64
-
- // Whether S3 Express auth is disabled.
- S3DisableExpressAuth *bool
-
- // Whether account id should be built into endpoint resolution
- AccountIDEndpointMode aws.AccountIDEndpointMode
-
- // Specify if request checksum should be calculated
- RequestChecksumCalculation aws.RequestChecksumCalculation
-
- // Specifies if response checksum should be validated
- ResponseChecksumValidation aws.ResponseChecksumValidation
-
- // Service endpoint override. This value is not necessarily final and is
- // passed to the service's EndpointResolverV2 for further delegation.
- BaseEndpoint string
-
- // Registry of operation interceptors.
- Interceptors smithyhttp.InterceptorRegistry
-
- // Priority list of preferred auth scheme names (e.g. sigv4a).
- AuthSchemePreference []string
-
- // ServiceOptions provides service specific configuration options that will be applied
- // when constructing clients for specific services. Each callback function receives the service ID
- // and the service's Options struct, allowing for dynamic configuration based on the service.
- ServiceOptions []func(string, any)
-}
-
-func (o LoadOptions) getDefaultsMode(ctx context.Context) (aws.DefaultsMode, bool, error) {
- if len(o.DefaultsModeOptions.Mode) == 0 {
- return "", false, nil
- }
- return o.DefaultsModeOptions.Mode, true, nil
-}
-
-// GetRetryMaxAttempts returns the RetryMaxAttempts if specified in the
-// LoadOptions and not 0.
-func (o LoadOptions) GetRetryMaxAttempts(ctx context.Context) (int, bool, error) {
- if o.RetryMaxAttempts == 0 {
- return 0, false, nil
- }
- return o.RetryMaxAttempts, true, nil
-}
-
-// GetRetryMode returns the RetryMode specified in the LoadOptions.
-func (o LoadOptions) GetRetryMode(ctx context.Context) (aws.RetryMode, bool, error) {
- if len(o.RetryMode) == 0 {
- return "", false, nil
- }
- return o.RetryMode, true, nil
-}
-
-func (o LoadOptions) getDefaultsModeIMDSClient(ctx context.Context) (*imds.Client, bool, error) {
- if o.DefaultsModeOptions.IMDSClient == nil {
- return nil, false, nil
- }
- return o.DefaultsModeOptions.IMDSClient, true, nil
-}
-
-// getRegion returns Region from config's LoadOptions
-func (o LoadOptions) getRegion(ctx context.Context) (string, bool, error) {
- if len(o.Region) == 0 {
- return "", false, nil
- }
-
- return o.Region, true, nil
-}
-
-// getAppID returns AppID from config's LoadOptions
-func (o LoadOptions) getAppID(ctx context.Context) (string, bool, error) {
- return o.AppID, len(o.AppID) > 0, nil
-}
-
-// getDisableRequestCompression returns DisableRequestCompression from config's LoadOptions
-func (o LoadOptions) getDisableRequestCompression(ctx context.Context) (bool, bool, error) {
- if o.DisableRequestCompression == nil {
- return false, false, nil
- }
- return *o.DisableRequestCompression, true, nil
-}
-
-// getRequestMinCompressSizeBytes returns RequestMinCompressSizeBytes from config's LoadOptions
-func (o LoadOptions) getRequestMinCompressSizeBytes(ctx context.Context) (int64, bool, error) {
- if o.RequestMinCompressSizeBytes == nil {
- return 0, false, nil
- }
- return *o.RequestMinCompressSizeBytes, true, nil
-}
-
-func (o LoadOptions) getAccountIDEndpointMode(ctx context.Context) (aws.AccountIDEndpointMode, bool, error) {
- return o.AccountIDEndpointMode, len(o.AccountIDEndpointMode) > 0, nil
-}
-
-func (o LoadOptions) getRequestChecksumCalculation(ctx context.Context) (aws.RequestChecksumCalculation, bool, error) {
- return o.RequestChecksumCalculation, o.RequestChecksumCalculation > 0, nil
-}
-
-func (o LoadOptions) getResponseChecksumValidation(ctx context.Context) (aws.ResponseChecksumValidation, bool, error) {
- return o.ResponseChecksumValidation, o.ResponseChecksumValidation > 0, nil
-}
-
-func (o LoadOptions) getBaseEndpoint(context.Context) (string, bool, error) {
- return o.BaseEndpoint, o.BaseEndpoint != "", nil
-}
-
-func (o LoadOptions) getServiceOptions(context.Context) ([]func(string, any), bool, error) {
- return o.ServiceOptions, len(o.ServiceOptions) > 0, nil
-}
-
-// GetServiceBaseEndpoint satisfies (internal/configsources).ServiceBaseEndpointProvider.
-//
-// The sdkID value is unused because LoadOptions only supports setting a GLOBAL
-// endpoint override. In-code, per-service endpoint overrides are performed via
-// functional options in service client space.
-func (o LoadOptions) GetServiceBaseEndpoint(context.Context, string) (string, bool, error) {
- return o.BaseEndpoint, o.BaseEndpoint != "", nil
-}
-
-// WithRegion is a helper function to construct functional options
-// that sets Region on config's LoadOptions. Setting the region to
-// an empty string, will result in the region value being ignored.
-// If multiple WithRegion calls are made, the last call overrides
-// the previous call values.
-func WithRegion(v string) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.Region = v
- return nil
- }
-}
-
-// WithAppID is a helper function to construct functional options
-// that sets AppID on config's LoadOptions.
-func WithAppID(ID string) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.AppID = ID
- return nil
- }
-}
-
-// WithDisableRequestCompression is a helper function to construct functional options
-// that sets DisableRequestCompression on config's LoadOptions.
-func WithDisableRequestCompression(DisableRequestCompression *bool) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- if DisableRequestCompression == nil {
- return nil
- }
- o.DisableRequestCompression = DisableRequestCompression
- return nil
- }
-}
-
-// WithRequestMinCompressSizeBytes is a helper function to construct functional options
-// that sets RequestMinCompressSizeBytes on config's LoadOptions.
-func WithRequestMinCompressSizeBytes(RequestMinCompressSizeBytes *int64) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- if RequestMinCompressSizeBytes == nil {
- return nil
- }
- o.RequestMinCompressSizeBytes = RequestMinCompressSizeBytes
- return nil
- }
-}
-
-// WithAccountIDEndpointMode is a helper function to construct functional options
-// that sets AccountIDEndpointMode on config's LoadOptions
-func WithAccountIDEndpointMode(m aws.AccountIDEndpointMode) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- if m != "" {
- o.AccountIDEndpointMode = m
- }
- return nil
- }
-}
-
-// WithRequestChecksumCalculation is a helper function to construct functional options
-// that sets RequestChecksumCalculation on config's LoadOptions
-func WithRequestChecksumCalculation(c aws.RequestChecksumCalculation) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- if c > 0 {
- o.RequestChecksumCalculation = c
- }
- return nil
- }
-}
-
-// WithResponseChecksumValidation is a helper function to construct functional options
-// that sets ResponseChecksumValidation on config's LoadOptions
-func WithResponseChecksumValidation(v aws.ResponseChecksumValidation) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.ResponseChecksumValidation = v
- return nil
- }
-}
-
-// getDefaultRegion returns DefaultRegion from config's LoadOptions
-func (o LoadOptions) getDefaultRegion(ctx context.Context) (string, bool, error) {
- if len(o.DefaultRegion) == 0 {
- return "", false, nil
- }
-
- return o.DefaultRegion, true, nil
-}
-
-// WithDefaultRegion is a helper function to construct functional options
-// that sets a DefaultRegion on config's LoadOptions. Setting the default
-// region to an empty string, will result in the default region value
-// being ignored. If multiple WithDefaultRegion calls are made, the last
-// call overrides the previous call values. Note that both WithRegion and
-// WithEC2IMDSRegion call takes precedence over WithDefaultRegion call
-// when resolving region.
-func WithDefaultRegion(v string) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.DefaultRegion = v
- return nil
- }
-}
-
-// getSharedConfigProfile returns SharedConfigProfile from config's LoadOptions
-func (o LoadOptions) getSharedConfigProfile(ctx context.Context) (string, bool, error) {
- if len(o.SharedConfigProfile) == 0 {
- return "", false, nil
- }
-
- return o.SharedConfigProfile, true, nil
-}
-
-// WithSharedConfigProfile is a helper function to construct functional options
-// that sets SharedConfigProfile on config's LoadOptions. Setting the shared
-// config profile to an empty string, will result in the shared config profile
-// value being ignored.
-// If multiple WithSharedConfigProfile calls are made, the last call overrides
-// the previous call values.
-func WithSharedConfigProfile(v string) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.SharedConfigProfile = v
- return nil
- }
-}
-
-// getSharedConfigFiles returns SharedConfigFiles set on config's LoadOptions
-func (o LoadOptions) getSharedConfigFiles(ctx context.Context) ([]string, bool, error) {
- if o.SharedConfigFiles == nil {
- return nil, false, nil
- }
-
- return o.SharedConfigFiles, true, nil
-}
-
-// WithSharedConfigFiles is a helper function to construct functional options
-// that sets slice of SharedConfigFiles on config's LoadOptions.
-// Setting the shared config files to an nil string slice, will result in the
-// shared config files value being ignored.
-// If multiple WithSharedConfigFiles calls are made, the last call overrides
-// the previous call values.
-func WithSharedConfigFiles(v []string) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.SharedConfigFiles = v
- return nil
- }
-}
-
-// getSharedCredentialsFiles returns SharedCredentialsFiles set on config's LoadOptions
-func (o LoadOptions) getSharedCredentialsFiles(ctx context.Context) ([]string, bool, error) {
- if o.SharedCredentialsFiles == nil {
- return nil, false, nil
- }
-
- return o.SharedCredentialsFiles, true, nil
-}
-
-// WithSharedCredentialsFiles is a helper function to construct functional options
-// that sets slice of SharedCredentialsFiles on config's LoadOptions.
-// Setting the shared credentials files to an nil string slice, will result in the
-// shared credentials files value being ignored.
-// If multiple WithSharedCredentialsFiles calls are made, the last call overrides
-// the previous call values.
-func WithSharedCredentialsFiles(v []string) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.SharedCredentialsFiles = v
- return nil
- }
-}
-
-// getCustomCABundle returns CustomCABundle from LoadOptions
-func (o LoadOptions) getCustomCABundle(ctx context.Context) (io.Reader, bool, error) {
- if o.CustomCABundle == nil {
- return nil, false, nil
- }
-
- return o.CustomCABundle, true, nil
-}
-
-// WithCustomCABundle is a helper function to construct functional options
-// that sets CustomCABundle on config's LoadOptions. Setting the custom CA Bundle
-// to nil will result in custom CA Bundle value being ignored.
-// If multiple WithCustomCABundle calls are made, the last call overrides the
-// previous call values.
-func WithCustomCABundle(v io.Reader) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.CustomCABundle = v
- return nil
- }
-}
-
-// UseEC2IMDSRegion provides a regionProvider that retrieves the region
-// from the EC2 Metadata service.
-type UseEC2IMDSRegion struct {
- // If unset will default to generic EC2 IMDS client.
- Client *imds.Client
-}
-
-// getRegion attempts to retrieve the region from EC2 Metadata service.
-func (p *UseEC2IMDSRegion) getRegion(ctx context.Context) (string, bool, error) {
- if ctx == nil {
- ctx = context.Background()
- }
-
- client := p.Client
- if client == nil {
- client = imds.New(imds.Options{})
- }
-
- result, err := client.GetRegion(ctx, nil)
- if err != nil {
- return "", false, err
- }
- if len(result.Region) != 0 {
- return result.Region, true, nil
- }
- return "", false, nil
-}
-
-// getEC2IMDSRegion returns the value of EC2 IMDS region.
-func (o LoadOptions) getEC2IMDSRegion(ctx context.Context) (string, bool, error) {
- if o.UseEC2IMDSRegion == nil {
- return "", false, nil
- }
-
- return o.UseEC2IMDSRegion.getRegion(ctx)
-}
-
-// WithEC2IMDSRegion is a helper function to construct functional options
-// that enables resolving EC2IMDS region. The function takes
-// in a UseEC2IMDSRegion functional option, and can be used to set the
-// EC2IMDS client which will be used to resolve EC2IMDSRegion.
-// If no functional option is provided, an EC2IMDS client is built and used
-// by the resolver. If multiple WithEC2IMDSRegion calls are made, the last
-// call overrides the previous call values. Note that the WithRegion calls takes
-// precedence over WithEC2IMDSRegion when resolving region.
-func WithEC2IMDSRegion(fnOpts ...func(o *UseEC2IMDSRegion)) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.UseEC2IMDSRegion = &UseEC2IMDSRegion{}
-
- for _, fn := range fnOpts {
- fn(o.UseEC2IMDSRegion)
- }
- return nil
- }
-}
-
-// getCredentialsProvider returns the credentials value
-func (o LoadOptions) getCredentialsProvider(ctx context.Context) (aws.CredentialsProvider, bool, error) {
- if o.Credentials == nil {
- return nil, false, nil
- }
-
- return o.Credentials, true, nil
-}
-
-// WithCredentialsProvider is a helper function to construct functional options
-// that sets Credential provider value on config's LoadOptions. If credentials
-// provider is set to nil, the credentials provider value will be ignored.
-// If multiple WithCredentialsProvider calls are made, the last call overrides
-// the previous call values.
-func WithCredentialsProvider(v aws.CredentialsProvider) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.Credentials = v
- return nil
- }
-}
-
-// getCredentialsCacheOptionsProvider returns the wrapped function to set aws.CredentialsCacheOptions
-func (o LoadOptions) getCredentialsCacheOptions(ctx context.Context) (func(*aws.CredentialsCacheOptions), bool, error) {
- if o.CredentialsCacheOptions == nil {
- return nil, false, nil
- }
-
- return o.CredentialsCacheOptions, true, nil
-}
-
-// WithCredentialsCacheOptions is a helper function to construct functional
-// options that sets a function to modify the aws.CredentialsCacheOptions the
-// aws.CredentialsCache will be configured with, if the CredentialsCache is used
-// by the configuration loader.
-//
-// If multiple WithCredentialsCacheOptions calls are made, the last call
-// overrides the previous call values.
-func WithCredentialsCacheOptions(v func(*aws.CredentialsCacheOptions)) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.CredentialsCacheOptions = v
- return nil
- }
-}
-
-// getBearerAuthTokenProvider returns the credentials value
-func (o LoadOptions) getBearerAuthTokenProvider(ctx context.Context) (smithybearer.TokenProvider, bool, error) {
- if o.BearerAuthTokenProvider == nil {
- return nil, false, nil
- }
-
- return o.BearerAuthTokenProvider, true, nil
-}
-
-// WithBearerAuthTokenProvider is a helper function to construct functional options
-// that sets Credential provider value on config's LoadOptions. If credentials
-// provider is set to nil, the credentials provider value will be ignored.
-// If multiple WithBearerAuthTokenProvider calls are made, the last call overrides
-// the previous call values.
-func WithBearerAuthTokenProvider(v smithybearer.TokenProvider) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.BearerAuthTokenProvider = v
- return nil
- }
-}
-
-// getBearerAuthTokenCacheOptionsProvider returns the wrapped function to set smithybearer.TokenCacheOptions
-func (o LoadOptions) getBearerAuthTokenCacheOptions(ctx context.Context) (func(*smithybearer.TokenCacheOptions), bool, error) {
- if o.BearerAuthTokenCacheOptions == nil {
- return nil, false, nil
- }
-
- return o.BearerAuthTokenCacheOptions, true, nil
-}
-
-// WithBearerAuthTokenCacheOptions is a helper function to construct functional options
-// that sets a function to modify the TokenCacheOptions the smithy-go
-// auth/bearer#TokenCache will be configured with, if the TokenCache is used by
-// the configuration loader.
-//
-// If multiple WithBearerAuthTokenCacheOptions calls are made, the last call overrides
-// the previous call values.
-func WithBearerAuthTokenCacheOptions(v func(*smithybearer.TokenCacheOptions)) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.BearerAuthTokenCacheOptions = v
- return nil
- }
-}
-
-// getSSOTokenProviderOptionsProvider returns the wrapped function to set smithybearer.TokenCacheOptions
-func (o LoadOptions) getSSOTokenProviderOptions(ctx context.Context) (func(*ssocreds.SSOTokenProviderOptions), bool, error) {
- if o.SSOTokenProviderOptions == nil {
- return nil, false, nil
- }
-
- return o.SSOTokenProviderOptions, true, nil
-}
-
-// WithSSOTokenProviderOptions is a helper function to construct functional
-// options that sets a function to modify the SSOtokenProviderOptions the SDK's
-// credentials/ssocreds#SSOProvider will be configured with, if the
-// SSOTokenProvider is used by the configuration loader.
-//
-// If multiple WithSSOTokenProviderOptions calls are made, the last call overrides
-// the previous call values.
-func WithSSOTokenProviderOptions(v func(*ssocreds.SSOTokenProviderOptions)) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.SSOTokenProviderOptions = v
- return nil
- }
-}
-
-// getProcessCredentialOptions returns the wrapped function to set processcreds.Options
-func (o LoadOptions) getProcessCredentialOptions(ctx context.Context) (func(*processcreds.Options), bool, error) {
- if o.ProcessCredentialOptions == nil {
- return nil, false, nil
- }
-
- return o.ProcessCredentialOptions, true, nil
-}
-
-// WithProcessCredentialOptions is a helper function to construct functional options
-// that sets a function to use processcreds.Options on config's LoadOptions.
-// If process credential options is set to nil, the process credential value will
-// be ignored. If multiple WithProcessCredentialOptions calls are made, the last call
-// overrides the previous call values.
-func WithProcessCredentialOptions(v func(*processcreds.Options)) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.ProcessCredentialOptions = v
- return nil
- }
-}
-
-// getEC2RoleCredentialOptions returns the wrapped function to set the ec2rolecreds.Options
-func (o LoadOptions) getEC2RoleCredentialOptions(ctx context.Context) (func(*ec2rolecreds.Options), bool, error) {
- if o.EC2RoleCredentialOptions == nil {
- return nil, false, nil
- }
-
- return o.EC2RoleCredentialOptions, true, nil
-}
-
-// WithEC2RoleCredentialOptions is a helper function to construct functional options
-// that sets a function to use ec2rolecreds.Options on config's LoadOptions. If
-// EC2 role credential options is set to nil, the EC2 role credential options value
-// will be ignored. If multiple WithEC2RoleCredentialOptions calls are made,
-// the last call overrides the previous call values.
-func WithEC2RoleCredentialOptions(v func(*ec2rolecreds.Options)) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.EC2RoleCredentialOptions = v
- return nil
- }
-}
-
-// getEndpointCredentialOptions returns the wrapped function to set endpointcreds.Options
-func (o LoadOptions) getEndpointCredentialOptions(context.Context) (func(*endpointcreds.Options), bool, error) {
- if o.EndpointCredentialOptions == nil {
- return nil, false, nil
- }
-
- return o.EndpointCredentialOptions, true, nil
-}
-
-// WithEndpointCredentialOptions is a helper function to construct functional options
-// that sets a function to use endpointcreds.Options on config's LoadOptions. If
-// endpoint credential options is set to nil, the endpoint credential options
-// value will be ignored. If multiple WithEndpointCredentialOptions calls are made,
-// the last call overrides the previous call values.
-func WithEndpointCredentialOptions(v func(*endpointcreds.Options)) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.EndpointCredentialOptions = v
- return nil
- }
-}
-
-// getWebIdentityRoleCredentialOptions returns the wrapped function
-func (o LoadOptions) getWebIdentityRoleCredentialOptions(context.Context) (func(*stscreds.WebIdentityRoleOptions), bool, error) {
- if o.WebIdentityRoleCredentialOptions == nil {
- return nil, false, nil
- }
-
- return o.WebIdentityRoleCredentialOptions, true, nil
-}
-
-// WithWebIdentityRoleCredentialOptions is a helper function to construct
-// functional options that sets a function to use stscreds.WebIdentityRoleOptions
-// on config's LoadOptions. If web identity role credentials options is set to nil,
-// the web identity role credentials value will be ignored. If multiple
-// WithWebIdentityRoleCredentialOptions calls are made, the last call
-// overrides the previous call values.
-func WithWebIdentityRoleCredentialOptions(v func(*stscreds.WebIdentityRoleOptions)) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.WebIdentityRoleCredentialOptions = v
- return nil
- }
-}
-
-// getAssumeRoleCredentialOptions returns AssumeRoleCredentialOptions from LoadOptions
-func (o LoadOptions) getAssumeRoleCredentialOptions(context.Context) (func(options *stscreds.AssumeRoleOptions), bool, error) {
- if o.AssumeRoleCredentialOptions == nil {
- return nil, false, nil
- }
-
- return o.AssumeRoleCredentialOptions, true, nil
-}
-
-// WithAssumeRoleCredentialOptions is a helper function to construct
-// functional options that sets a function to use stscreds.AssumeRoleOptions
-// on config's LoadOptions. If assume role credentials options is set to nil,
-// the assume role credentials value will be ignored. If multiple
-// WithAssumeRoleCredentialOptions calls are made, the last call overrides
-// the previous call values.
-func WithAssumeRoleCredentialOptions(v func(*stscreds.AssumeRoleOptions)) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.AssumeRoleCredentialOptions = v
- return nil
- }
-}
-
-func (o LoadOptions) getHTTPClient(ctx context.Context) (HTTPClient, bool, error) {
- if o.HTTPClient == nil {
- return nil, false, nil
- }
-
- return o.HTTPClient, true, nil
-}
-
-// WithHTTPClient is a helper function to construct functional options
-// that sets HTTPClient on LoadOptions. If HTTPClient is set to nil,
-// the HTTPClient value will be ignored.
-// If multiple WithHTTPClient calls are made, the last call overrides
-// the previous call values.
-func WithHTTPClient(v HTTPClient) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.HTTPClient = v
- return nil
- }
-}
-
-func (o LoadOptions) getAPIOptions(ctx context.Context) ([]func(*middleware.Stack) error, bool, error) {
- if o.APIOptions == nil {
- return nil, false, nil
- }
-
- return o.APIOptions, true, nil
-}
-
-// WithAPIOptions is a helper function to construct functional options
-// that sets APIOptions on LoadOptions. If APIOptions is set to nil, the
-// APIOptions value is ignored. If multiple WithAPIOptions calls are
-// made, the last call overrides the previous call values.
-func WithAPIOptions(v []func(*middleware.Stack) error) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- if v == nil {
- return nil
- }
-
- o.APIOptions = append(o.APIOptions, v...)
- return nil
- }
-}
-
-func (o LoadOptions) getRetryMaxAttempts(ctx context.Context) (int, bool, error) {
- if o.RetryMaxAttempts == 0 {
- return 0, false, nil
- }
-
- return o.RetryMaxAttempts, true, nil
-}
-
-// WithRetryMaxAttempts is a helper function to construct functional options that sets
-// RetryMaxAttempts on LoadOptions. If RetryMaxAttempts is unset, the RetryMaxAttempts value is
-// ignored. If multiple WithRetryMaxAttempts calls are made, the last call overrides
-// the previous call values.
-//
-// Will be ignored of LoadOptions.Retryer or WithRetryer are used.
-func WithRetryMaxAttempts(v int) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.RetryMaxAttempts = v
- return nil
- }
-}
-
-func (o LoadOptions) getRetryMode(ctx context.Context) (aws.RetryMode, bool, error) {
- if o.RetryMode == "" {
- return "", false, nil
- }
-
- return o.RetryMode, true, nil
-}
-
-// WithRetryMode is a helper function to construct functional options that sets
-// RetryMode on LoadOptions. If RetryMode is unset, the RetryMode value is
-// ignored. If multiple WithRetryMode calls are made, the last call overrides
-// the previous call values.
-//
-// Will be ignored of LoadOptions.Retryer or WithRetryer are used.
-func WithRetryMode(v aws.RetryMode) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.RetryMode = v
- return nil
- }
-}
-
-func (o LoadOptions) getRetryer(ctx context.Context) (func() aws.Retryer, bool, error) {
- if o.Retryer == nil {
- return nil, false, nil
- }
-
- return o.Retryer, true, nil
-}
-
-// WithRetryer is a helper function to construct functional options
-// that sets Retryer on LoadOptions. If Retryer is set to nil, the
-// Retryer value is ignored. If multiple WithRetryer calls are
-// made, the last call overrides the previous call values.
-func WithRetryer(v func() aws.Retryer) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.Retryer = v
- return nil
- }
-}
-
-func (o LoadOptions) getEndpointResolver(ctx context.Context) (aws.EndpointResolver, bool, error) {
- if o.EndpointResolver == nil {
- return nil, false, nil
- }
-
- return o.EndpointResolver, true, nil
-}
-
-// WithEndpointResolver is a helper function to construct functional options
-// that sets the EndpointResolver on LoadOptions. If the EndpointResolver is set to nil,
-// the EndpointResolver value is ignored. If multiple WithEndpointResolver calls
-// are made, the last call overrides the previous call values.
-//
-// Deprecated: The global endpoint resolution interface is deprecated. The API
-// for endpoint resolution is now unique to each service and is set via the
-// EndpointResolverV2 field on service client options. Use of
-// WithEndpointResolver or WithEndpointResolverWithOptions will prevent you
-// from using any endpoint-related service features released after the
-// introduction of EndpointResolverV2. You may also encounter broken or
-// unexpected behavior when using the old global interface with services that
-// use many endpoint-related customizations such as S3.
-func WithEndpointResolver(v aws.EndpointResolver) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.EndpointResolver = v
- return nil
- }
-}
-
-func (o LoadOptions) getEndpointResolverWithOptions(ctx context.Context) (aws.EndpointResolverWithOptions, bool, error) {
- if o.EndpointResolverWithOptions == nil {
- return nil, false, nil
- }
-
- return o.EndpointResolverWithOptions, true, nil
-}
-
-// WithEndpointResolverWithOptions is a helper function to construct functional options
-// that sets the EndpointResolverWithOptions on LoadOptions. If the EndpointResolverWithOptions is set to nil,
-// the EndpointResolver value is ignored. If multiple WithEndpointResolver calls
-// are made, the last call overrides the previous call values.
-//
-// Deprecated: The global endpoint resolution interface is deprecated. See
-// deprecation docs on [WithEndpointResolver].
-func WithEndpointResolverWithOptions(v aws.EndpointResolverWithOptions) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.EndpointResolverWithOptions = v
- return nil
- }
-}
-
-func (o LoadOptions) getLogger(ctx context.Context) (logging.Logger, bool, error) {
- if o.Logger == nil {
- return nil, false, nil
- }
-
- return o.Logger, true, nil
-}
-
-// WithLogger is a helper function to construct functional options
-// that sets Logger on LoadOptions. If Logger is set to nil, the
-// Logger value will be ignored. If multiple WithLogger calls are made,
-// the last call overrides the previous call values.
-func WithLogger(v logging.Logger) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.Logger = v
- return nil
- }
-}
-
-func (o LoadOptions) getClientLogMode(ctx context.Context) (aws.ClientLogMode, bool, error) {
- if o.ClientLogMode == nil {
- return 0, false, nil
- }
-
- return *o.ClientLogMode, true, nil
-}
-
-// WithClientLogMode is a helper function to construct functional options
-// that sets client log mode on LoadOptions. If client log mode is set to nil,
-// the client log mode value will be ignored. If multiple WithClientLogMode calls are made,
-// the last call overrides the previous call values.
-func WithClientLogMode(v aws.ClientLogMode) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.ClientLogMode = &v
- return nil
- }
-}
-
-func (o LoadOptions) getLogConfigurationWarnings(ctx context.Context) (v bool, found bool, err error) {
- if o.LogConfigurationWarnings == nil {
- return false, false, nil
- }
- return *o.LogConfigurationWarnings, true, nil
-}
-
-// WithLogConfigurationWarnings is a helper function to construct
-// functional options that can be used to set LogConfigurationWarnings
-// on LoadOptions.
-//
-// If multiple WithLogConfigurationWarnings calls are made, the last call
-// overrides the previous call values.
-func WithLogConfigurationWarnings(v bool) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.LogConfigurationWarnings = &v
- return nil
- }
-}
-
-// GetS3UseARNRegion returns whether to allow ARNs to direct the region
-// the S3 client's requests are sent to.
-func (o LoadOptions) GetS3UseARNRegion(ctx context.Context) (v bool, found bool, err error) {
- if o.S3UseARNRegion == nil {
- return false, false, nil
- }
- return *o.S3UseARNRegion, true, nil
-}
-
-// WithS3UseARNRegion is a helper function to construct functional options
-// that can be used to set S3UseARNRegion on LoadOptions.
-// If multiple WithS3UseARNRegion calls are made, the last call overrides
-// the previous call values.
-func WithS3UseARNRegion(v bool) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.S3UseARNRegion = &v
- return nil
- }
-}
-
-// GetS3DisableMultiRegionAccessPoints returns whether to disable
-// the S3 multi-region access points feature.
-func (o LoadOptions) GetS3DisableMultiRegionAccessPoints(ctx context.Context) (v bool, found bool, err error) {
- if o.S3DisableMultiRegionAccessPoints == nil {
- return false, false, nil
- }
- return *o.S3DisableMultiRegionAccessPoints, true, nil
-}
-
-// WithS3DisableMultiRegionAccessPoints is a helper function to construct functional options
-// that can be used to set S3DisableMultiRegionAccessPoints on LoadOptions.
-// If multiple WithS3DisableMultiRegionAccessPoints calls are made, the last call overrides
-// the previous call values.
-func WithS3DisableMultiRegionAccessPoints(v bool) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.S3DisableMultiRegionAccessPoints = &v
- return nil
- }
-}
-
-// GetEnableEndpointDiscovery returns if the EnableEndpointDiscovery flag is set.
-func (o LoadOptions) GetEnableEndpointDiscovery(ctx context.Context) (value aws.EndpointDiscoveryEnableState, ok bool, err error) {
- if o.EnableEndpointDiscovery == aws.EndpointDiscoveryUnset {
- return aws.EndpointDiscoveryUnset, false, nil
- }
- return o.EnableEndpointDiscovery, true, nil
-}
-
-// WithEndpointDiscovery is a helper function to construct functional options
-// that can be used to enable endpoint discovery on LoadOptions for supported clients.
-// If multiple WithEndpointDiscovery calls are made, the last call overrides
-// the previous call values.
-func WithEndpointDiscovery(v aws.EndpointDiscoveryEnableState) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.EnableEndpointDiscovery = v
- return nil
- }
-}
-
-// getSSOProviderOptions returns AssumeRoleCredentialOptions from LoadOptions
-func (o LoadOptions) getSSOProviderOptions(context.Context) (func(options *ssocreds.Options), bool, error) {
- if o.SSOProviderOptions == nil {
- return nil, false, nil
- }
-
- return o.SSOProviderOptions, true, nil
-}
-
-// WithSSOProviderOptions is a helper function to construct
-// functional options that sets a function to use ssocreds.Options
-// on config's LoadOptions. If the SSO credential provider options is set to nil,
-// the sso provider options value will be ignored. If multiple
-// WithSSOProviderOptions calls are made, the last call overrides
-// the previous call values.
-func WithSSOProviderOptions(v func(*ssocreds.Options)) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.SSOProviderOptions = v
- return nil
- }
-}
-
-// GetEC2IMDSClientEnableState implements a EC2IMDSClientEnableState options resolver interface.
-func (o LoadOptions) GetEC2IMDSClientEnableState() (imds.ClientEnableState, bool, error) {
- if o.EC2IMDSClientEnableState == imds.ClientDefaultEnableState {
- return imds.ClientDefaultEnableState, false, nil
- }
-
- return o.EC2IMDSClientEnableState, true, nil
-}
-
-// GetEC2IMDSEndpointMode implements a EC2IMDSEndpointMode option resolver interface.
-func (o LoadOptions) GetEC2IMDSEndpointMode() (imds.EndpointModeState, bool, error) {
- if o.EC2IMDSEndpointMode == imds.EndpointModeStateUnset {
- return imds.EndpointModeStateUnset, false, nil
- }
-
- return o.EC2IMDSEndpointMode, true, nil
-}
-
-// GetEC2IMDSEndpoint implements a EC2IMDSEndpoint option resolver interface.
-func (o LoadOptions) GetEC2IMDSEndpoint() (string, bool, error) {
- if len(o.EC2IMDSEndpoint) == 0 {
- return "", false, nil
- }
-
- return o.EC2IMDSEndpoint, true, nil
-}
-
-// WithEC2IMDSClientEnableState is a helper function to construct functional options that sets the EC2IMDSClientEnableState.
-func WithEC2IMDSClientEnableState(v imds.ClientEnableState) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.EC2IMDSClientEnableState = v
- return nil
- }
-}
-
-// WithEC2IMDSEndpointMode is a helper function to construct functional options that sets the EC2IMDSEndpointMode.
-func WithEC2IMDSEndpointMode(v imds.EndpointModeState) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.EC2IMDSEndpointMode = v
- return nil
- }
-}
-
-// WithEC2IMDSEndpoint is a helper function to construct functional options that sets the EC2IMDSEndpoint.
-func WithEC2IMDSEndpoint(v string) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.EC2IMDSEndpoint = v
- return nil
- }
-}
-
-// WithUseDualStackEndpoint is a helper function to construct
-// functional options that can be used to set UseDualStackEndpoint on LoadOptions.
-func WithUseDualStackEndpoint(v aws.DualStackEndpointState) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.UseDualStackEndpoint = v
- return nil
- }
-}
-
-// GetUseDualStackEndpoint returns whether the service's dual-stack endpoint should be
-// used for requests.
-func (o LoadOptions) GetUseDualStackEndpoint(ctx context.Context) (value aws.DualStackEndpointState, found bool, err error) {
- if o.UseDualStackEndpoint == aws.DualStackEndpointStateUnset {
- return aws.DualStackEndpointStateUnset, false, nil
- }
- return o.UseDualStackEndpoint, true, nil
-}
-
-// WithUseFIPSEndpoint is a helper function to construct
-// functional options that can be used to set UseFIPSEndpoint on LoadOptions.
-func WithUseFIPSEndpoint(v aws.FIPSEndpointState) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.UseFIPSEndpoint = v
- return nil
- }
-}
-
-// GetUseFIPSEndpoint returns whether the service's FIPS endpoint should be
-// used for requests.
-func (o LoadOptions) GetUseFIPSEndpoint(ctx context.Context) (value aws.FIPSEndpointState, found bool, err error) {
- if o.UseFIPSEndpoint == aws.FIPSEndpointStateUnset {
- return aws.FIPSEndpointStateUnset, false, nil
- }
- return o.UseFIPSEndpoint, true, nil
-}
-
-// WithDefaultsMode sets the SDK defaults configuration mode to the value provided.
-//
-// Zero or more functional options can be provided to provide configuration options for performing
-// environment discovery when using aws.DefaultsModeAuto.
-func WithDefaultsMode(mode aws.DefaultsMode, optFns ...func(options *DefaultsModeOptions)) LoadOptionsFunc {
- do := DefaultsModeOptions{
- Mode: mode,
- }
- for _, fn := range optFns {
- fn(&do)
- }
- return func(options *LoadOptions) error {
- options.DefaultsModeOptions = do
- return nil
- }
-}
-
-// GetS3DisableExpressAuth returns the configured value for
-// [EnvConfig.S3DisableExpressAuth].
-func (o LoadOptions) GetS3DisableExpressAuth() (value, ok bool) {
- if o.S3DisableExpressAuth == nil {
- return false, false
- }
-
- return *o.S3DisableExpressAuth, true
-}
-
-// WithS3DisableExpressAuth sets [LoadOptions.S3DisableExpressAuth]
-// to the value provided.
-func WithS3DisableExpressAuth(v bool) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.S3DisableExpressAuth = &v
- return nil
- }
-}
-
-// WithBaseEndpoint is a helper function to construct functional options that
-// sets BaseEndpoint on config's LoadOptions. Empty values have no effect, and
-// subsequent calls to this API override previous ones.
-//
-// This is an in-code setting, therefore, any value set using this hook takes
-// precedence over and will override ALL environment and shared config
-// directives that set endpoint URLs. Functional options on service clients
-// have higher specificity, and functional options that modify the value of
-// BaseEndpoint on a client will take precedence over this setting.
-func WithBaseEndpoint(v string) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.BaseEndpoint = v
- return nil
- }
-}
-
-// WithServiceOptions is a helper function to construct functional options
-// that sets ServiceOptions on config's LoadOptions.
-func WithServiceOptions(callbacks ...func(string, any)) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.ServiceOptions = append(o.ServiceOptions, callbacks...)
- return nil
- }
-}
-
-// WithBeforeExecution adds the BeforeExecutionInterceptor to config.
-func WithBeforeExecution(i smithyhttp.BeforeExecutionInterceptor) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.Interceptors.BeforeExecution = append(o.Interceptors.BeforeExecution, i)
- return nil
- }
-}
-
-// WithBeforeSerialization adds the BeforeSerializationInterceptor to config.
-func WithBeforeSerialization(i smithyhttp.BeforeSerializationInterceptor) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.Interceptors.BeforeSerialization = append(o.Interceptors.BeforeSerialization, i)
- return nil
- }
-}
-
-// WithAfterSerialization adds the AfterSerializationInterceptor to config.
-func WithAfterSerialization(i smithyhttp.AfterSerializationInterceptor) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.Interceptors.AfterSerialization = append(o.Interceptors.AfterSerialization, i)
- return nil
- }
-}
-
-// WithBeforeRetryLoop adds the BeforeRetryLoopInterceptor to config.
-func WithBeforeRetryLoop(i smithyhttp.BeforeRetryLoopInterceptor) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.Interceptors.BeforeRetryLoop = append(o.Interceptors.BeforeRetryLoop, i)
- return nil
- }
-}
-
-// WithBeforeAttempt adds the BeforeAttemptInterceptor to config.
-func WithBeforeAttempt(i smithyhttp.BeforeAttemptInterceptor) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.Interceptors.BeforeAttempt = append(o.Interceptors.BeforeAttempt, i)
- return nil
- }
-}
-
-// WithBeforeSigning adds the BeforeSigningInterceptor to config.
-func WithBeforeSigning(i smithyhttp.BeforeSigningInterceptor) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.Interceptors.BeforeSigning = append(o.Interceptors.BeforeSigning, i)
- return nil
- }
-}
-
-// WithAfterSigning adds the AfterSigningInterceptor to config.
-func WithAfterSigning(i smithyhttp.AfterSigningInterceptor) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.Interceptors.AfterSigning = append(o.Interceptors.AfterSigning, i)
- return nil
- }
-}
-
-// WithBeforeTransmit adds the BeforeTransmitInterceptor to config.
-func WithBeforeTransmit(i smithyhttp.BeforeTransmitInterceptor) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.Interceptors.BeforeTransmit = append(o.Interceptors.BeforeTransmit, i)
- return nil
- }
-}
-
-// WithAfterTransmit adds the AfterTransmitInterceptor to config.
-func WithAfterTransmit(i smithyhttp.AfterTransmitInterceptor) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.Interceptors.AfterTransmit = append(o.Interceptors.AfterTransmit, i)
- return nil
- }
-}
-
-// WithBeforeDeserialization adds the BeforeDeserializationInterceptor to config.
-func WithBeforeDeserialization(i smithyhttp.BeforeDeserializationInterceptor) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.Interceptors.BeforeDeserialization = append(o.Interceptors.BeforeDeserialization, i)
- return nil
- }
-}
-
-// WithAfterDeserialization adds the AfterDeserializationInterceptor to config.
-func WithAfterDeserialization(i smithyhttp.AfterDeserializationInterceptor) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.Interceptors.AfterDeserialization = append(o.Interceptors.AfterDeserialization, i)
- return nil
- }
-}
-
-// WithAfterAttempt adds the AfterAttemptInterceptor to config.
-func WithAfterAttempt(i smithyhttp.AfterAttemptInterceptor) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.Interceptors.AfterAttempt = append(o.Interceptors.AfterAttempt, i)
- return nil
- }
-}
-
-// WithAfterExecution adds the AfterExecutionInterceptor to config.
-func WithAfterExecution(i smithyhttp.AfterExecutionInterceptor) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.Interceptors.AfterExecution = append(o.Interceptors.AfterExecution, i)
- return nil
- }
-}
-
-// WithAuthSchemePreference sets the priority order of auth schemes on config.
-//
-// Schemes are expressed as names e.g. sigv4a or sigv4.
-func WithAuthSchemePreference(schemeIDs ...string) LoadOptionsFunc {
- return func(o *LoadOptions) error {
- o.AuthSchemePreference = schemeIDs
- return nil
- }
-}
-
-func (o LoadOptions) getAuthSchemePreference() ([]string, bool) {
- if len(o.AuthSchemePreference) > 0 {
- return o.AuthSchemePreference, true
- }
- return nil, false
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/config/local.go b/vendor/github.com/aws/aws-sdk-go-v2/config/local.go
deleted file mode 100644
index b629137c8..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/config/local.go
+++ /dev/null
@@ -1,51 +0,0 @@
-package config
-
-import (
- "fmt"
- "net"
- "net/url"
-)
-
-var lookupHostFn = net.LookupHost
-
-func isLoopbackHost(host string) (bool, error) {
- ip := net.ParseIP(host)
- if ip != nil {
- return ip.IsLoopback(), nil
- }
-
- // Host is not an ip, perform lookup
- addrs, err := lookupHostFn(host)
- if err != nil {
- return false, err
- }
- if len(addrs) == 0 {
- return false, fmt.Errorf("no addrs found for host, %s", host)
- }
-
- for _, addr := range addrs {
- if !net.ParseIP(addr).IsLoopback() {
- return false, nil
- }
- }
-
- return true, nil
-}
-
-func validateLocalURL(v string) error {
- u, err := url.Parse(v)
- if err != nil {
- return err
- }
-
- host := u.Hostname()
- if len(host) == 0 {
- return fmt.Errorf("unable to parse host from local HTTP cred provider URL")
- } else if isLoopback, err := isLoopbackHost(host); err != nil {
- return fmt.Errorf("failed to resolve host %q, %v", host, err)
- } else if !isLoopback {
- return fmt.Errorf("invalid endpoint host, %q, only host resolving to loopback addresses are allowed", host)
- }
-
- return nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/config/provider.go b/vendor/github.com/aws/aws-sdk-go-v2/config/provider.go
deleted file mode 100644
index 18b9b5ad2..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/config/provider.go
+++ /dev/null
@@ -1,786 +0,0 @@
-package config
-
-import (
- "context"
- "io"
- "net/http"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- "github.com/aws/aws-sdk-go-v2/credentials/ec2rolecreds"
- "github.com/aws/aws-sdk-go-v2/credentials/endpointcreds"
- "github.com/aws/aws-sdk-go-v2/credentials/processcreds"
- "github.com/aws/aws-sdk-go-v2/credentials/ssocreds"
- "github.com/aws/aws-sdk-go-v2/credentials/stscreds"
- "github.com/aws/aws-sdk-go-v2/feature/ec2/imds"
- smithybearer "github.com/aws/smithy-go/auth/bearer"
- "github.com/aws/smithy-go/logging"
- "github.com/aws/smithy-go/middleware"
-)
-
-// sharedConfigProfileProvider provides access to the shared config profile
-// name external configuration value.
-type sharedConfigProfileProvider interface {
- getSharedConfigProfile(ctx context.Context) (string, bool, error)
-}
-
-// getSharedConfigProfile searches the configs for a sharedConfigProfileProvider
-// and returns the value if found. Returns an error if a provider fails before a
-// value is found.
-func getSharedConfigProfile(ctx context.Context, configs configs) (value string, found bool, err error) {
- for _, cfg := range configs {
- if p, ok := cfg.(sharedConfigProfileProvider); ok {
- value, found, err = p.getSharedConfigProfile(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// sharedConfigFilesProvider provides access to the shared config filesnames
-// external configuration value.
-type sharedConfigFilesProvider interface {
- getSharedConfigFiles(ctx context.Context) ([]string, bool, error)
-}
-
-// getSharedConfigFiles searches the configs for a sharedConfigFilesProvider
-// and returns the value if found. Returns an error if a provider fails before a
-// value is found.
-func getSharedConfigFiles(ctx context.Context, configs configs) (value []string, found bool, err error) {
- for _, cfg := range configs {
- if p, ok := cfg.(sharedConfigFilesProvider); ok {
- value, found, err = p.getSharedConfigFiles(ctx)
- if err != nil || found {
- break
- }
- }
- }
-
- return
-}
-
-// sharedCredentialsFilesProvider provides access to the shared credentials filesnames
-// external configuration value.
-type sharedCredentialsFilesProvider interface {
- getSharedCredentialsFiles(ctx context.Context) ([]string, bool, error)
-}
-
-// getSharedCredentialsFiles searches the configs for a sharedCredentialsFilesProvider
-// and returns the value if found. Returns an error if a provider fails before a
-// value is found.
-func getSharedCredentialsFiles(ctx context.Context, configs configs) (value []string, found bool, err error) {
- for _, cfg := range configs {
- if p, ok := cfg.(sharedCredentialsFilesProvider); ok {
- value, found, err = p.getSharedCredentialsFiles(ctx)
- if err != nil || found {
- break
- }
- }
- }
-
- return
-}
-
-// customCABundleProvider provides access to the custom CA bundle PEM bytes.
-type customCABundleProvider interface {
- getCustomCABundle(ctx context.Context) (io.Reader, bool, error)
-}
-
-// getCustomCABundle searches the configs for a customCABundleProvider
-// and returns the value if found. Returns an error if a provider fails before a
-// value is found.
-func getCustomCABundle(ctx context.Context, configs configs) (value io.Reader, found bool, err error) {
- for _, cfg := range configs {
- if p, ok := cfg.(customCABundleProvider); ok {
- value, found, err = p.getCustomCABundle(ctx)
- if err != nil || found {
- break
- }
- }
- }
-
- return
-}
-
-// regionProvider provides access to the region external configuration value.
-type regionProvider interface {
- getRegion(ctx context.Context) (string, bool, error)
-}
-
-// getRegion searches the configs for a regionProvider and returns the value
-// if found. Returns an error if a provider fails before a value is found.
-func getRegion(ctx context.Context, configs configs) (value string, found bool, err error) {
- for _, cfg := range configs {
- if p, ok := cfg.(regionProvider); ok {
- value, found, err = p.getRegion(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// IgnoreConfiguredEndpointsProvider is needed to search for all providers
-// that provide a flag to disable configured endpoints.
-type IgnoreConfiguredEndpointsProvider interface {
- GetIgnoreConfiguredEndpoints(ctx context.Context) (bool, bool, error)
-}
-
-// GetIgnoreConfiguredEndpoints is used in knowing when to disable configured
-// endpoints feature.
-func GetIgnoreConfiguredEndpoints(ctx context.Context, configs []interface{}) (value bool, found bool, err error) {
- for _, cfg := range configs {
- if p, ok := cfg.(IgnoreConfiguredEndpointsProvider); ok {
- value, found, err = p.GetIgnoreConfiguredEndpoints(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-type baseEndpointProvider interface {
- getBaseEndpoint(ctx context.Context) (string, bool, error)
-}
-
-func getBaseEndpoint(ctx context.Context, configs configs) (value string, found bool, err error) {
- for _, cfg := range configs {
- if p, ok := cfg.(baseEndpointProvider); ok {
- value, found, err = p.getBaseEndpoint(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-type servicesObjectProvider interface {
- getServicesObject(ctx context.Context) (map[string]map[string]string, bool, error)
-}
-
-func getServicesObject(ctx context.Context, configs configs) (value map[string]map[string]string, found bool, err error) {
- for _, cfg := range configs {
- if p, ok := cfg.(servicesObjectProvider); ok {
- value, found, err = p.getServicesObject(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// appIDProvider provides access to the sdk app ID value
-type appIDProvider interface {
- getAppID(ctx context.Context) (string, bool, error)
-}
-
-func getAppID(ctx context.Context, configs configs) (value string, found bool, err error) {
- for _, cfg := range configs {
- if p, ok := cfg.(appIDProvider); ok {
- value, found, err = p.getAppID(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// disableRequestCompressionProvider provides access to the DisableRequestCompression
-type disableRequestCompressionProvider interface {
- getDisableRequestCompression(context.Context) (bool, bool, error)
-}
-
-func getDisableRequestCompression(ctx context.Context, configs configs) (value bool, found bool, err error) {
- for _, cfg := range configs {
- if p, ok := cfg.(disableRequestCompressionProvider); ok {
- value, found, err = p.getDisableRequestCompression(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// requestMinCompressSizeBytesProvider provides access to the MinCompressSizeBytes
-type requestMinCompressSizeBytesProvider interface {
- getRequestMinCompressSizeBytes(context.Context) (int64, bool, error)
-}
-
-func getRequestMinCompressSizeBytes(ctx context.Context, configs configs) (value int64, found bool, err error) {
- for _, cfg := range configs {
- if p, ok := cfg.(requestMinCompressSizeBytesProvider); ok {
- value, found, err = p.getRequestMinCompressSizeBytes(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// accountIDEndpointModeProvider provides access to the AccountIDEndpointMode
-type accountIDEndpointModeProvider interface {
- getAccountIDEndpointMode(context.Context) (aws.AccountIDEndpointMode, bool, error)
-}
-
-func getAccountIDEndpointMode(ctx context.Context, configs configs) (value aws.AccountIDEndpointMode, found bool, err error) {
- for _, cfg := range configs {
- if p, ok := cfg.(accountIDEndpointModeProvider); ok {
- value, found, err = p.getAccountIDEndpointMode(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// requestChecksumCalculationProvider provides access to the RequestChecksumCalculation
-type requestChecksumCalculationProvider interface {
- getRequestChecksumCalculation(context.Context) (aws.RequestChecksumCalculation, bool, error)
-}
-
-func getRequestChecksumCalculation(ctx context.Context, configs configs) (value aws.RequestChecksumCalculation, found bool, err error) {
- for _, cfg := range configs {
- if p, ok := cfg.(requestChecksumCalculationProvider); ok {
- value, found, err = p.getRequestChecksumCalculation(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// responseChecksumValidationProvider provides access to the ResponseChecksumValidation
-type responseChecksumValidationProvider interface {
- getResponseChecksumValidation(context.Context) (aws.ResponseChecksumValidation, bool, error)
-}
-
-func getResponseChecksumValidation(ctx context.Context, configs configs) (value aws.ResponseChecksumValidation, found bool, err error) {
- for _, cfg := range configs {
- if p, ok := cfg.(responseChecksumValidationProvider); ok {
- value, found, err = p.getResponseChecksumValidation(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// ec2IMDSRegionProvider provides access to the ec2 imds region
-// configuration value
-type ec2IMDSRegionProvider interface {
- getEC2IMDSRegion(ctx context.Context) (string, bool, error)
-}
-
-// getEC2IMDSRegion searches the configs for a ec2IMDSRegionProvider and
-// returns the value if found. Returns an error if a provider fails before
-// a value is found.
-func getEC2IMDSRegion(ctx context.Context, configs configs) (region string, found bool, err error) {
- for _, cfg := range configs {
- if provider, ok := cfg.(ec2IMDSRegionProvider); ok {
- region, found, err = provider.getEC2IMDSRegion(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// credentialsProviderProvider provides access to the credentials external
-// configuration value.
-type credentialsProviderProvider interface {
- getCredentialsProvider(ctx context.Context) (aws.CredentialsProvider, bool, error)
-}
-
-// getCredentialsProvider searches the configs for a credentialsProviderProvider
-// and returns the value if found. Returns an error if a provider fails before a
-// value is found.
-func getCredentialsProvider(ctx context.Context, configs configs) (p aws.CredentialsProvider, found bool, err error) {
- for _, cfg := range configs {
- if provider, ok := cfg.(credentialsProviderProvider); ok {
- p, found, err = provider.getCredentialsProvider(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// credentialsCacheOptionsProvider is an interface for retrieving a function for setting
-// the aws.CredentialsCacheOptions.
-type credentialsCacheOptionsProvider interface {
- getCredentialsCacheOptions(ctx context.Context) (func(*aws.CredentialsCacheOptions), bool, error)
-}
-
-// getCredentialsCacheOptionsProvider is an interface for retrieving a function for setting
-// the aws.CredentialsCacheOptions.
-func getCredentialsCacheOptionsProvider(ctx context.Context, configs configs) (
- f func(*aws.CredentialsCacheOptions), found bool, err error,
-) {
- for _, config := range configs {
- if p, ok := config.(credentialsCacheOptionsProvider); ok {
- f, found, err = p.getCredentialsCacheOptions(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// bearerAuthTokenProviderProvider provides access to the bearer authentication
-// token external configuration value.
-type bearerAuthTokenProviderProvider interface {
- getBearerAuthTokenProvider(context.Context) (smithybearer.TokenProvider, bool, error)
-}
-
-// getBearerAuthTokenProvider searches the config sources for a
-// bearerAuthTokenProviderProvider and returns the value if found. Returns an
-// error if a provider fails before a value is found.
-func getBearerAuthTokenProvider(ctx context.Context, configs configs) (p smithybearer.TokenProvider, found bool, err error) {
- for _, cfg := range configs {
- if provider, ok := cfg.(bearerAuthTokenProviderProvider); ok {
- p, found, err = provider.getBearerAuthTokenProvider(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// bearerAuthTokenCacheOptionsProvider is an interface for retrieving a function for
-// setting the smithy-go auth/bearer#TokenCacheOptions.
-type bearerAuthTokenCacheOptionsProvider interface {
- getBearerAuthTokenCacheOptions(context.Context) (func(*smithybearer.TokenCacheOptions), bool, error)
-}
-
-// getBearerAuthTokenCacheOptionsProvider is an interface for retrieving a function for
-// setting the smithy-go auth/bearer#TokenCacheOptions.
-func getBearerAuthTokenCacheOptions(ctx context.Context, configs configs) (
- f func(*smithybearer.TokenCacheOptions), found bool, err error,
-) {
- for _, config := range configs {
- if p, ok := config.(bearerAuthTokenCacheOptionsProvider); ok {
- f, found, err = p.getBearerAuthTokenCacheOptions(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// ssoTokenProviderOptionsProvider is an interface for retrieving a function for
-// setting the SDK's credentials/ssocreds#SSOTokenProviderOptions.
-type ssoTokenProviderOptionsProvider interface {
- getSSOTokenProviderOptions(context.Context) (func(*ssocreds.SSOTokenProviderOptions), bool, error)
-}
-
-// getSSOTokenProviderOptions is an interface for retrieving a function for
-// setting the SDK's credentials/ssocreds#SSOTokenProviderOptions.
-func getSSOTokenProviderOptions(ctx context.Context, configs configs) (
- f func(*ssocreds.SSOTokenProviderOptions), found bool, err error,
-) {
- for _, config := range configs {
- if p, ok := config.(ssoTokenProviderOptionsProvider); ok {
- f, found, err = p.getSSOTokenProviderOptions(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// ssoTokenProviderOptionsProvider
-
-// processCredentialOptions is an interface for retrieving a function for setting
-// the processcreds.Options.
-type processCredentialOptions interface {
- getProcessCredentialOptions(ctx context.Context) (func(*processcreds.Options), bool, error)
-}
-
-// getProcessCredentialOptions searches the slice of configs and returns the first function found
-func getProcessCredentialOptions(ctx context.Context, configs configs) (f func(*processcreds.Options), found bool, err error) {
- for _, config := range configs {
- if p, ok := config.(processCredentialOptions); ok {
- f, found, err = p.getProcessCredentialOptions(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// ec2RoleCredentialOptionsProvider is an interface for retrieving a function
-// for setting the ec2rolecreds.Provider options.
-type ec2RoleCredentialOptionsProvider interface {
- getEC2RoleCredentialOptions(ctx context.Context) (func(*ec2rolecreds.Options), bool, error)
-}
-
-// getEC2RoleCredentialProviderOptions searches the slice of configs and returns the first function found
-func getEC2RoleCredentialProviderOptions(ctx context.Context, configs configs) (f func(*ec2rolecreds.Options), found bool, err error) {
- for _, config := range configs {
- if p, ok := config.(ec2RoleCredentialOptionsProvider); ok {
- f, found, err = p.getEC2RoleCredentialOptions(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// defaultRegionProvider is an interface for retrieving a default region if a region was not resolved from other sources
-type defaultRegionProvider interface {
- getDefaultRegion(ctx context.Context) (string, bool, error)
-}
-
-// getDefaultRegion searches the slice of configs and returns the first fallback region found
-func getDefaultRegion(ctx context.Context, configs configs) (value string, found bool, err error) {
- for _, config := range configs {
- if p, ok := config.(defaultRegionProvider); ok {
- value, found, err = p.getDefaultRegion(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// endpointCredentialOptionsProvider is an interface for retrieving a function for setting
-// the endpointcreds.ProviderOptions.
-type endpointCredentialOptionsProvider interface {
- getEndpointCredentialOptions(ctx context.Context) (func(*endpointcreds.Options), bool, error)
-}
-
-// getEndpointCredentialProviderOptions searches the slice of configs and returns the first function found
-func getEndpointCredentialProviderOptions(ctx context.Context, configs configs) (f func(*endpointcreds.Options), found bool, err error) {
- for _, config := range configs {
- if p, ok := config.(endpointCredentialOptionsProvider); ok {
- f, found, err = p.getEndpointCredentialOptions(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// webIdentityRoleCredentialOptionsProvider is an interface for retrieving a function for setting
-// the stscreds.WebIdentityRoleProvider.
-type webIdentityRoleCredentialOptionsProvider interface {
- getWebIdentityRoleCredentialOptions(ctx context.Context) (func(*stscreds.WebIdentityRoleOptions), bool, error)
-}
-
-// getWebIdentityCredentialProviderOptions searches the slice of configs and returns the first function found
-func getWebIdentityCredentialProviderOptions(ctx context.Context, configs configs) (f func(*stscreds.WebIdentityRoleOptions), found bool, err error) {
- for _, config := range configs {
- if p, ok := config.(webIdentityRoleCredentialOptionsProvider); ok {
- f, found, err = p.getWebIdentityRoleCredentialOptions(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// assumeRoleCredentialOptionsProvider is an interface for retrieving a function for setting
-// the stscreds.AssumeRoleOptions.
-type assumeRoleCredentialOptionsProvider interface {
- getAssumeRoleCredentialOptions(ctx context.Context) (func(*stscreds.AssumeRoleOptions), bool, error)
-}
-
-// getAssumeRoleCredentialProviderOptions searches the slice of configs and returns the first function found
-func getAssumeRoleCredentialProviderOptions(ctx context.Context, configs configs) (f func(*stscreds.AssumeRoleOptions), found bool, err error) {
- for _, config := range configs {
- if p, ok := config.(assumeRoleCredentialOptionsProvider); ok {
- f, found, err = p.getAssumeRoleCredentialOptions(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// HTTPClient is an HTTP client implementation
-type HTTPClient interface {
- Do(*http.Request) (*http.Response, error)
-}
-
-// httpClientProvider is an interface for retrieving HTTPClient
-type httpClientProvider interface {
- getHTTPClient(ctx context.Context) (HTTPClient, bool, error)
-}
-
-// getHTTPClient searches the slice of configs and returns the HTTPClient set on configs
-func getHTTPClient(ctx context.Context, configs configs) (client HTTPClient, found bool, err error) {
- for _, config := range configs {
- if p, ok := config.(httpClientProvider); ok {
- client, found, err = p.getHTTPClient(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// apiOptionsProvider is an interface for retrieving APIOptions
-type apiOptionsProvider interface {
- getAPIOptions(ctx context.Context) ([]func(*middleware.Stack) error, bool, error)
-}
-
-// getAPIOptions searches the slice of configs and returns the APIOptions set on configs
-func getAPIOptions(ctx context.Context, configs configs) (apiOptions []func(*middleware.Stack) error, found bool, err error) {
- for _, config := range configs {
- if p, ok := config.(apiOptionsProvider); ok {
- // retrieve APIOptions from configs and set it on cfg
- apiOptions, found, err = p.getAPIOptions(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// endpointResolverProvider is an interface for retrieving an aws.EndpointResolver from a configuration source
-type endpointResolverProvider interface {
- getEndpointResolver(ctx context.Context) (aws.EndpointResolver, bool, error)
-}
-
-// getEndpointResolver searches the provided config sources for a EndpointResolverFunc that can be used
-// to configure the aws.Config.EndpointResolver value.
-func getEndpointResolver(ctx context.Context, configs configs) (f aws.EndpointResolver, found bool, err error) {
- for _, c := range configs {
- if p, ok := c.(endpointResolverProvider); ok {
- f, found, err = p.getEndpointResolver(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// endpointResolverWithOptionsProvider is an interface for retrieving an aws.EndpointResolverWithOptions from a configuration source
-type endpointResolverWithOptionsProvider interface {
- getEndpointResolverWithOptions(ctx context.Context) (aws.EndpointResolverWithOptions, bool, error)
-}
-
-// getEndpointResolver searches the provided config sources for a EndpointResolverFunc that can be used
-// to configure the aws.Config.EndpointResolver value.
-func getEndpointResolverWithOptions(ctx context.Context, configs configs) (f aws.EndpointResolverWithOptions, found bool, err error) {
- for _, c := range configs {
- if p, ok := c.(endpointResolverWithOptionsProvider); ok {
- f, found, err = p.getEndpointResolverWithOptions(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// loggerProvider is an interface for retrieving a logging.Logger from a configuration source.
-type loggerProvider interface {
- getLogger(ctx context.Context) (logging.Logger, bool, error)
-}
-
-// getLogger searches the provided config sources for a logging.Logger that can be used
-// to configure the aws.Config.Logger value.
-func getLogger(ctx context.Context, configs configs) (l logging.Logger, found bool, err error) {
- for _, c := range configs {
- if p, ok := c.(loggerProvider); ok {
- l, found, err = p.getLogger(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// clientLogModeProvider is an interface for retrieving the aws.ClientLogMode from a configuration source.
-type clientLogModeProvider interface {
- getClientLogMode(ctx context.Context) (aws.ClientLogMode, bool, error)
-}
-
-func getClientLogMode(ctx context.Context, configs configs) (m aws.ClientLogMode, found bool, err error) {
- for _, c := range configs {
- if p, ok := c.(clientLogModeProvider); ok {
- m, found, err = p.getClientLogMode(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// retryProvider is an configuration provider for custom Retryer.
-type retryProvider interface {
- getRetryer(ctx context.Context) (func() aws.Retryer, bool, error)
-}
-
-func getRetryer(ctx context.Context, configs configs) (v func() aws.Retryer, found bool, err error) {
- for _, c := range configs {
- if p, ok := c.(retryProvider); ok {
- v, found, err = p.getRetryer(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// logConfigurationWarningsProvider is an configuration provider for
-// retrieving a boolean indicating whether configuration issues should
-// be logged when loading from config sources
-type logConfigurationWarningsProvider interface {
- getLogConfigurationWarnings(ctx context.Context) (bool, bool, error)
-}
-
-func getLogConfigurationWarnings(ctx context.Context, configs configs) (v bool, found bool, err error) {
- for _, c := range configs {
- if p, ok := c.(logConfigurationWarningsProvider); ok {
- v, found, err = p.getLogConfigurationWarnings(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// ssoCredentialOptionsProvider is an interface for retrieving a function for setting
-// the ssocreds.Options.
-type ssoCredentialOptionsProvider interface {
- getSSOProviderOptions(context.Context) (func(*ssocreds.Options), bool, error)
-}
-
-func getSSOProviderOptions(ctx context.Context, configs configs) (v func(options *ssocreds.Options), found bool, err error) {
- for _, c := range configs {
- if p, ok := c.(ssoCredentialOptionsProvider); ok {
- v, found, err = p.getSSOProviderOptions(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return v, found, err
-}
-
-type defaultsModeIMDSClientProvider interface {
- getDefaultsModeIMDSClient(context.Context) (*imds.Client, bool, error)
-}
-
-func getDefaultsModeIMDSClient(ctx context.Context, configs configs) (v *imds.Client, found bool, err error) {
- for _, c := range configs {
- if p, ok := c.(defaultsModeIMDSClientProvider); ok {
- v, found, err = p.getDefaultsModeIMDSClient(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return v, found, err
-}
-
-type defaultsModeProvider interface {
- getDefaultsMode(context.Context) (aws.DefaultsMode, bool, error)
-}
-
-func getDefaultsMode(ctx context.Context, configs configs) (v aws.DefaultsMode, found bool, err error) {
- for _, c := range configs {
- if p, ok := c.(defaultsModeProvider); ok {
- v, found, err = p.getDefaultsMode(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return v, found, err
-}
-
-type retryMaxAttemptsProvider interface {
- GetRetryMaxAttempts(context.Context) (int, bool, error)
-}
-
-func getRetryMaxAttempts(ctx context.Context, configs configs) (v int, found bool, err error) {
- for _, c := range configs {
- if p, ok := c.(retryMaxAttemptsProvider); ok {
- v, found, err = p.GetRetryMaxAttempts(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return v, found, err
-}
-
-type retryModeProvider interface {
- GetRetryMode(context.Context) (aws.RetryMode, bool, error)
-}
-
-func getRetryMode(ctx context.Context, configs configs) (v aws.RetryMode, found bool, err error) {
- for _, c := range configs {
- if p, ok := c.(retryModeProvider); ok {
- v, found, err = p.GetRetryMode(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return v, found, err
-}
-
-func getAuthSchemePreference(ctx context.Context, configs configs) ([]string, bool) {
- type provider interface {
- getAuthSchemePreference() ([]string, bool)
- }
-
- for _, cfg := range configs {
- if p, ok := cfg.(provider); ok {
- if v, ok := p.getAuthSchemePreference(); ok {
- return v, true
- }
- }
- }
- return nil, false
-}
-
-type serviceOptionsProvider interface {
- getServiceOptions(ctx context.Context) ([]func(string, any), bool, error)
-}
-
-func getServiceOptions(ctx context.Context, configs configs) (v []func(string, any), found bool, err error) {
- for _, c := range configs {
- if p, ok := c.(serviceOptionsProvider); ok {
- v, found, err = p.getServiceOptions(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return v, found, err
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/config/resolve.go b/vendor/github.com/aws/aws-sdk-go-v2/config/resolve.go
deleted file mode 100644
index 92a16d718..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/config/resolve.go
+++ /dev/null
@@ -1,444 +0,0 @@
-package config
-
-import (
- "context"
- "crypto/tls"
- "crypto/x509"
- "fmt"
- "io/ioutil"
- "net/http"
- "os"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http"
- "github.com/aws/aws-sdk-go-v2/feature/ec2/imds"
- "github.com/aws/smithy-go/logging"
-)
-
-// resolveDefaultAWSConfig will write default configuration values into the cfg
-// value. It will write the default values, overwriting any previous value.
-//
-// This should be used as the first resolver in the slice of resolvers when
-// resolving external configuration.
-func resolveDefaultAWSConfig(ctx context.Context, cfg *aws.Config, cfgs configs) error {
- var sources []interface{}
- for _, s := range cfgs {
- sources = append(sources, s)
- }
-
- *cfg = aws.Config{
- Logger: logging.NewStandardLogger(os.Stderr),
- ConfigSources: sources,
- }
- return nil
-}
-
-// resolveCustomCABundle extracts the first instance of a custom CA bundle filename
-// from the external configurations. It will update the HTTP Client's builder
-// to be configured with the custom CA bundle.
-//
-// Config provider used:
-// * customCABundleProvider
-func resolveCustomCABundle(ctx context.Context, cfg *aws.Config, cfgs configs) error {
- pemCerts, found, err := getCustomCABundle(ctx, cfgs)
- if err != nil {
- // TODO error handling, What is the best way to handle this?
- // capture previous errors continue. error out if all errors
- return err
- }
- if !found {
- return nil
- }
-
- if cfg.HTTPClient == nil {
- cfg.HTTPClient = awshttp.NewBuildableClient()
- }
-
- trOpts, ok := cfg.HTTPClient.(*awshttp.BuildableClient)
- if !ok {
- return fmt.Errorf("unable to add custom RootCAs HTTPClient, "+
- "has no WithTransportOptions, %T", cfg.HTTPClient)
- }
-
- var appendErr error
- client := trOpts.WithTransportOptions(func(tr *http.Transport) {
- if tr.TLSClientConfig == nil {
- tr.TLSClientConfig = &tls.Config{}
- }
- if tr.TLSClientConfig.RootCAs == nil {
- tr.TLSClientConfig.RootCAs = x509.NewCertPool()
- }
-
- b, err := ioutil.ReadAll(pemCerts)
- if err != nil {
- appendErr = fmt.Errorf("failed to read custom CA bundle PEM file")
- }
-
- if !tr.TLSClientConfig.RootCAs.AppendCertsFromPEM(b) {
- appendErr = fmt.Errorf("failed to load custom CA bundle PEM file")
- }
- })
- if appendErr != nil {
- return appendErr
- }
-
- cfg.HTTPClient = client
- return err
-}
-
-// resolveRegion extracts the first instance of a Region from the configs slice.
-//
-// Config providers used:
-// * regionProvider
-func resolveRegion(ctx context.Context, cfg *aws.Config, configs configs) error {
- v, found, err := getRegion(ctx, configs)
- if err != nil {
- // TODO error handling, What is the best way to handle this?
- // capture previous errors continue. error out if all errors
- return err
- }
- if !found {
- return nil
- }
-
- cfg.Region = v
- return nil
-}
-
-func resolveBaseEndpoint(ctx context.Context, cfg *aws.Config, configs configs) error {
- var downcastCfgSources []interface{}
- for _, cs := range configs {
- downcastCfgSources = append(downcastCfgSources, interface{}(cs))
- }
-
- if val, found, err := GetIgnoreConfiguredEndpoints(ctx, downcastCfgSources); found && val && err == nil {
- cfg.BaseEndpoint = nil
- return nil
- }
-
- v, found, err := getBaseEndpoint(ctx, configs)
- if err != nil {
- return err
- }
-
- if !found {
- return nil
- }
- cfg.BaseEndpoint = aws.String(v)
- return nil
-}
-
-// resolveAppID extracts the sdk app ID from the configs slice's SharedConfig or env var
-func resolveAppID(ctx context.Context, cfg *aws.Config, configs configs) error {
- ID, _, err := getAppID(ctx, configs)
- if err != nil {
- return err
- }
-
- cfg.AppID = ID
- return nil
-}
-
-// resolveDisableRequestCompression extracts the DisableRequestCompression from the configs slice's
-// SharedConfig or EnvConfig
-func resolveDisableRequestCompression(ctx context.Context, cfg *aws.Config, configs configs) error {
- disable, _, err := getDisableRequestCompression(ctx, configs)
- if err != nil {
- return err
- }
-
- cfg.DisableRequestCompression = disable
- return nil
-}
-
-// resolveRequestMinCompressSizeBytes extracts the RequestMinCompressSizeBytes from the configs slice's
-// SharedConfig or EnvConfig
-func resolveRequestMinCompressSizeBytes(ctx context.Context, cfg *aws.Config, configs configs) error {
- minBytes, found, err := getRequestMinCompressSizeBytes(ctx, configs)
- if err != nil {
- return err
- }
- // must set a default min size 10240 if not configured
- if !found {
- minBytes = 10240
- }
- cfg.RequestMinCompressSizeBytes = minBytes
- return nil
-}
-
-// resolveAccountIDEndpointMode extracts the AccountIDEndpointMode from the configs slice's
-// SharedConfig or EnvConfig
-func resolveAccountIDEndpointMode(ctx context.Context, cfg *aws.Config, configs configs) error {
- m, found, err := getAccountIDEndpointMode(ctx, configs)
- if err != nil {
- return err
- }
-
- if !found {
- m = aws.AccountIDEndpointModePreferred
- }
-
- cfg.AccountIDEndpointMode = m
- return nil
-}
-
-// resolveRequestChecksumCalculation extracts the RequestChecksumCalculation from the configs slice's
-// SharedConfig or EnvConfig
-func resolveRequestChecksumCalculation(ctx context.Context, cfg *aws.Config, configs configs) error {
- c, found, err := getRequestChecksumCalculation(ctx, configs)
- if err != nil {
- return err
- }
-
- if !found {
- c = aws.RequestChecksumCalculationWhenSupported
- }
- cfg.RequestChecksumCalculation = c
- return nil
-}
-
-// resolveResponseValidation extracts the ResponseChecksumValidation from the configs slice's
-// SharedConfig or EnvConfig
-func resolveResponseChecksumValidation(ctx context.Context, cfg *aws.Config, configs configs) error {
- c, found, err := getResponseChecksumValidation(ctx, configs)
- if err != nil {
- return err
- }
-
- if !found {
- c = aws.ResponseChecksumValidationWhenSupported
- }
- cfg.ResponseChecksumValidation = c
- return nil
-}
-
-// resolveDefaultRegion extracts the first instance of a default region and sets `aws.Config.Region` to the default
-// region if region had not been resolved from other sources.
-func resolveDefaultRegion(ctx context.Context, cfg *aws.Config, configs configs) error {
- if len(cfg.Region) > 0 {
- return nil
- }
-
- v, found, err := getDefaultRegion(ctx, configs)
- if err != nil {
- return err
- }
- if !found {
- return nil
- }
-
- cfg.Region = v
-
- return nil
-}
-
-// resolveHTTPClient extracts the first instance of a HTTPClient and sets `aws.Config.HTTPClient` to the HTTPClient instance
-// if one has not been resolved from other sources.
-func resolveHTTPClient(ctx context.Context, cfg *aws.Config, configs configs) error {
- c, found, err := getHTTPClient(ctx, configs)
- if err != nil {
- return err
- }
- if !found {
- return nil
- }
-
- cfg.HTTPClient = c
- return nil
-}
-
-// resolveAPIOptions extracts the first instance of APIOptions and sets `aws.Config.APIOptions` to the resolved API options
-// if one has not been resolved from other sources.
-func resolveAPIOptions(ctx context.Context, cfg *aws.Config, configs configs) error {
- o, found, err := getAPIOptions(ctx, configs)
- if err != nil {
- return err
- }
- if !found {
- return nil
- }
-
- cfg.APIOptions = o
-
- return nil
-}
-
-// resolveEndpointResolver extracts the first instance of a EndpointResolverFunc from the config slice
-// and sets the functions result on the aws.Config.EndpointResolver
-func resolveEndpointResolver(ctx context.Context, cfg *aws.Config, configs configs) error {
- endpointResolver, found, err := getEndpointResolver(ctx, configs)
- if err != nil {
- return err
- }
- if !found {
- return nil
- }
-
- cfg.EndpointResolver = endpointResolver
-
- return nil
-}
-
-// resolveEndpointResolver extracts the first instance of a EndpointResolverFunc from the config slice
-// and sets the functions result on the aws.Config.EndpointResolver
-func resolveEndpointResolverWithOptions(ctx context.Context, cfg *aws.Config, configs configs) error {
- endpointResolver, found, err := getEndpointResolverWithOptions(ctx, configs)
- if err != nil {
- return err
- }
- if !found {
- return nil
- }
-
- cfg.EndpointResolverWithOptions = endpointResolver
-
- return nil
-}
-
-func resolveLogger(ctx context.Context, cfg *aws.Config, configs configs) error {
- logger, found, err := getLogger(ctx, configs)
- if err != nil {
- return err
- }
- if !found {
- return nil
- }
-
- cfg.Logger = logger
-
- return nil
-}
-
-func resolveClientLogMode(ctx context.Context, cfg *aws.Config, configs configs) error {
- mode, found, err := getClientLogMode(ctx, configs)
- if err != nil {
- return err
- }
- if !found {
- return nil
- }
-
- cfg.ClientLogMode = mode
-
- return nil
-}
-
-func resolveRetryer(ctx context.Context, cfg *aws.Config, configs configs) error {
- retryer, found, err := getRetryer(ctx, configs)
- if err != nil {
- return err
- }
-
- if found {
- cfg.Retryer = retryer
- return nil
- }
-
- // Only load the retry options if a custom retryer has not be specified.
- if err = resolveRetryMaxAttempts(ctx, cfg, configs); err != nil {
- return err
- }
- return resolveRetryMode(ctx, cfg, configs)
-}
-
-func resolveEC2IMDSRegion(ctx context.Context, cfg *aws.Config, configs configs) error {
- if len(cfg.Region) > 0 {
- return nil
- }
-
- region, found, err := getEC2IMDSRegion(ctx, configs)
- if err != nil {
- return err
- }
- if !found {
- return nil
- }
-
- cfg.Region = region
-
- return nil
-}
-
-func resolveDefaultsModeOptions(ctx context.Context, cfg *aws.Config, configs configs) error {
- defaultsMode, found, err := getDefaultsMode(ctx, configs)
- if err != nil {
- return err
- }
- if !found {
- defaultsMode = aws.DefaultsModeLegacy
- }
-
- var environment aws.RuntimeEnvironment
- if defaultsMode == aws.DefaultsModeAuto {
- envConfig, _, _ := getAWSConfigSources(configs)
-
- client, found, err := getDefaultsModeIMDSClient(ctx, configs)
- if err != nil {
- return err
- }
- if !found {
- client = imds.NewFromConfig(*cfg)
- }
-
- environment, err = resolveDefaultsModeRuntimeEnvironment(ctx, envConfig, client)
- if err != nil {
- return err
- }
- }
-
- cfg.DefaultsMode = defaultsMode
- cfg.RuntimeEnvironment = environment
-
- return nil
-}
-
-func resolveRetryMaxAttempts(ctx context.Context, cfg *aws.Config, configs configs) error {
- maxAttempts, found, err := getRetryMaxAttempts(ctx, configs)
- if err != nil || !found {
- return err
- }
- cfg.RetryMaxAttempts = maxAttempts
-
- return nil
-}
-
-func resolveRetryMode(ctx context.Context, cfg *aws.Config, configs configs) error {
- retryMode, found, err := getRetryMode(ctx, configs)
- if err != nil || !found {
- return err
- }
- cfg.RetryMode = retryMode
-
- return nil
-}
-
-func resolveInterceptors(ctx context.Context, cfg *aws.Config, configs configs) error {
- // LoadOptions is the only thing that you can really configure interceptors
- // on so just check that directly.
- for _, c := range configs {
- if loadopts, ok := c.(LoadOptions); ok {
- cfg.Interceptors = loadopts.Interceptors.Copy()
- }
- }
- return nil
-}
-
-func resolveAuthSchemePreference(ctx context.Context, cfg *aws.Config, configs configs) error {
- if pref, ok := getAuthSchemePreference(ctx, configs); ok {
- cfg.AuthSchemePreference = pref
- }
- return nil
-}
-
-func resolveServiceOptions(ctx context.Context, cfg *aws.Config, configs configs) error {
- serviceOptions, found, err := getServiceOptions(ctx, configs)
- if err != nil {
- return err
- }
- if !found {
- return nil
- }
-
- cfg.ServiceOptions = serviceOptions
- return nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/config/resolve_bearer_token.go b/vendor/github.com/aws/aws-sdk-go-v2/config/resolve_bearer_token.go
deleted file mode 100644
index a8ebb3c0a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/config/resolve_bearer_token.go
+++ /dev/null
@@ -1,122 +0,0 @@
-package config
-
-import (
- "context"
- "fmt"
- "time"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- "github.com/aws/aws-sdk-go-v2/credentials/ssocreds"
- "github.com/aws/aws-sdk-go-v2/service/ssooidc"
- smithybearer "github.com/aws/smithy-go/auth/bearer"
-)
-
-// resolveBearerAuthToken extracts a token provider from the config sources.
-//
-// If an explicit bearer authentication token provider is not found the
-// resolver will fallback to resolving token provider via other config sources
-// such as SharedConfig.
-func resolveBearerAuthToken(ctx context.Context, cfg *aws.Config, configs configs) error {
- found, err := resolveBearerAuthTokenProvider(ctx, cfg, configs)
- if found || err != nil {
- return err
- }
-
- return resolveBearerAuthTokenProviderChain(ctx, cfg, configs)
-}
-
-// resolveBearerAuthTokenProvider extracts the first instance of
-// BearerAuthTokenProvider from the config sources.
-//
-// The resolved BearerAuthTokenProvider will be wrapped in a cache to ensure
-// the Token is only refreshed when needed. This also protects the
-// TokenProvider so it can be used concurrently.
-//
-// Config providers used:
-// * bearerAuthTokenProviderProvider
-func resolveBearerAuthTokenProvider(ctx context.Context, cfg *aws.Config, configs configs) (bool, error) {
- tokenProvider, found, err := getBearerAuthTokenProvider(ctx, configs)
- if !found || err != nil {
- return false, err
- }
-
- cfg.BearerAuthTokenProvider, err = wrapWithBearerAuthTokenCache(
- ctx, configs, tokenProvider)
- if err != nil {
- return false, err
- }
-
- return true, nil
-}
-
-func resolveBearerAuthTokenProviderChain(ctx context.Context, cfg *aws.Config, configs configs) (err error) {
- _, sharedConfig, _ := getAWSConfigSources(configs)
-
- var provider smithybearer.TokenProvider
-
- if sharedConfig.SSOSession != nil {
- provider, err = resolveBearerAuthSSOTokenProvider(
- ctx, cfg, sharedConfig.SSOSession, configs)
- }
-
- if err == nil && provider != nil {
- cfg.BearerAuthTokenProvider, err = wrapWithBearerAuthTokenCache(
- ctx, configs, provider)
- }
-
- return err
-}
-
-func resolveBearerAuthSSOTokenProvider(ctx context.Context, cfg *aws.Config, session *SSOSession, configs configs) (*ssocreds.SSOTokenProvider, error) {
- ssoTokenProviderOptionsFn, found, err := getSSOTokenProviderOptions(ctx, configs)
- if err != nil {
- return nil, fmt.Errorf("failed to get SSOTokenProviderOptions from config sources, %w", err)
- }
-
- var optFns []func(*ssocreds.SSOTokenProviderOptions)
- if found {
- optFns = append(optFns, ssoTokenProviderOptionsFn)
- }
-
- cachePath, err := ssocreds.StandardCachedTokenFilepath(session.Name)
- if err != nil {
- return nil, fmt.Errorf("failed to get SSOTokenProvider's cache path, %w", err)
- }
-
- client := ssooidc.NewFromConfig(*cfg)
- provider := ssocreds.NewSSOTokenProvider(client, cachePath, optFns...)
-
- return provider, nil
-}
-
-// wrapWithBearerAuthTokenCache will wrap provider with an smithy-go
-// bearer/auth#TokenCache with the provided options if the provider is not
-// already a TokenCache.
-func wrapWithBearerAuthTokenCache(
- ctx context.Context,
- cfgs configs,
- provider smithybearer.TokenProvider,
- optFns ...func(*smithybearer.TokenCacheOptions),
-) (smithybearer.TokenProvider, error) {
- _, ok := provider.(*smithybearer.TokenCache)
- if ok {
- return provider, nil
- }
-
- tokenCacheConfigOptions, optionsFound, err := getBearerAuthTokenCacheOptions(ctx, cfgs)
- if err != nil {
- return nil, err
- }
-
- opts := make([]func(*smithybearer.TokenCacheOptions), 0, 2+len(optFns))
- opts = append(opts, func(o *smithybearer.TokenCacheOptions) {
- o.RefreshBeforeExpires = 5 * time.Minute
- o.RetrieveBearerTokenTimeout = 30 * time.Second
- })
- opts = append(opts, optFns...)
- if optionsFound {
- opts = append(opts, tokenCacheConfigOptions)
- }
-
- return smithybearer.NewTokenCache(provider, opts...), nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/config/resolve_credentials.go b/vendor/github.com/aws/aws-sdk-go-v2/config/resolve_credentials.go
deleted file mode 100644
index b00259df0..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/config/resolve_credentials.go
+++ /dev/null
@@ -1,627 +0,0 @@
-package config
-
-import (
- "context"
- "fmt"
- "io/ioutil"
- "net"
- "net/url"
- "os"
- "time"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- "github.com/aws/aws-sdk-go-v2/credentials"
- "github.com/aws/aws-sdk-go-v2/credentials/ec2rolecreds"
- "github.com/aws/aws-sdk-go-v2/credentials/endpointcreds"
- "github.com/aws/aws-sdk-go-v2/credentials/processcreds"
- "github.com/aws/aws-sdk-go-v2/credentials/ssocreds"
- "github.com/aws/aws-sdk-go-v2/credentials/stscreds"
- "github.com/aws/aws-sdk-go-v2/feature/ec2/imds"
- "github.com/aws/aws-sdk-go-v2/service/sso"
- "github.com/aws/aws-sdk-go-v2/service/ssooidc"
- "github.com/aws/aws-sdk-go-v2/service/sts"
-)
-
-const (
- // valid credential source values
- credSourceEc2Metadata = "Ec2InstanceMetadata"
- credSourceEnvironment = "Environment"
- credSourceECSContainer = "EcsContainer"
- httpProviderAuthFileEnvVar = "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE"
-)
-
-// direct representation of the IPv4 address for the ECS container
-// "169.254.170.2"
-var ecsContainerIPv4 net.IP = []byte{
- 169, 254, 170, 2,
-}
-
-// direct representation of the IPv4 address for the EKS container
-// "169.254.170.23"
-var eksContainerIPv4 net.IP = []byte{
- 169, 254, 170, 23,
-}
-
-// direct representation of the IPv6 address for the EKS container
-// "fd00:ec2::23"
-var eksContainerIPv6 net.IP = []byte{
- 0xFD, 0, 0xE, 0xC2,
- 0, 0, 0, 0,
- 0, 0, 0, 0,
- 0, 0, 0, 0x23,
-}
-
-var (
- ecsContainerEndpoint = "http://169.254.170.2" // not constant to allow for swapping during unit-testing
-)
-
-// resolveCredentials extracts a credential provider from slice of config
-// sources.
-//
-// If an explicit credential provider is not found the resolver will fallback
-// to resolving credentials by extracting a credential provider from EnvConfig
-// and SharedConfig.
-func resolveCredentials(ctx context.Context, cfg *aws.Config, configs configs) error {
- found, err := resolveCredentialProvider(ctx, cfg, configs)
- if found || err != nil {
- return err
- }
-
- return resolveCredentialChain(ctx, cfg, configs)
-}
-
-// resolveCredentialProvider extracts the first instance of Credentials from the
-// config slices.
-//
-// The resolved CredentialProvider will be wrapped in a cache to ensure the
-// credentials are only refreshed when needed. This also protects the
-// credential provider to be used concurrently.
-//
-// Config providers used:
-// * credentialsProviderProvider
-func resolveCredentialProvider(ctx context.Context, cfg *aws.Config, configs configs) (bool, error) {
- credProvider, found, err := getCredentialsProvider(ctx, configs)
- if !found || err != nil {
- return false, err
- }
-
- cfg.Credentials, err = wrapWithCredentialsCache(ctx, configs, credProvider)
- if err != nil {
- return false, err
- }
-
- return true, nil
-}
-
-// resolveCredentialChain resolves a credential provider chain using EnvConfig
-// and SharedConfig if present in the slice of provided configs.
-//
-// The resolved CredentialProvider will be wrapped in a cache to ensure the
-// credentials are only refreshed when needed. This also protects the
-// credential provider to be used concurrently.
-func resolveCredentialChain(ctx context.Context, cfg *aws.Config, configs configs) (err error) {
- envConfig, sharedConfig, other := getAWSConfigSources(configs)
-
- // When checking if a profile was specified programmatically we should only consider the "other"
- // configuration sources that have been provided. This ensures we correctly honor the expected credential
- // hierarchy.
- _, sharedProfileSet, err := getSharedConfigProfile(ctx, other)
- if err != nil {
- return err
- }
-
- switch {
- case sharedProfileSet:
- ctx, err = resolveCredsFromProfile(ctx, cfg, envConfig, sharedConfig, other)
- case envConfig.Credentials.HasKeys():
- ctx = addCredentialSource(ctx, aws.CredentialSourceEnvVars)
- cfg.Credentials = credentials.StaticCredentialsProvider{Value: envConfig.Credentials, Source: getCredentialSources(ctx)}
- case len(envConfig.WebIdentityTokenFilePath) > 0:
- ctx = addCredentialSource(ctx, aws.CredentialSourceEnvVarsSTSWebIDToken)
- err = assumeWebIdentity(ctx, cfg, envConfig.WebIdentityTokenFilePath, envConfig.RoleARN, envConfig.RoleSessionName, configs)
- default:
- ctx, err = resolveCredsFromProfile(ctx, cfg, envConfig, sharedConfig, other)
- }
- if err != nil {
- return err
- }
-
- // Wrap the resolved provider in a cache so the SDK will cache credentials.
- cfg.Credentials, err = wrapWithCredentialsCache(ctx, configs, cfg.Credentials)
- if err != nil {
- return err
- }
-
- return nil
-}
-
-func resolveCredsFromProfile(ctx context.Context, cfg *aws.Config, envConfig *EnvConfig, sharedConfig *SharedConfig, configs configs) (ctx2 context.Context, err error) {
- switch {
- case sharedConfig.Source != nil:
- ctx = addCredentialSource(ctx, aws.CredentialSourceProfileSourceProfile)
- // Assume IAM role with credentials source from a different profile.
- ctx, err = resolveCredsFromProfile(ctx, cfg, envConfig, sharedConfig.Source, configs)
-
- case sharedConfig.Credentials.HasKeys():
- // Static Credentials from Shared Config/Credentials file.
- ctx = addCredentialSource(ctx, aws.CredentialSourceProfile)
- cfg.Credentials = credentials.StaticCredentialsProvider{
- Value: sharedConfig.Credentials,
- Source: getCredentialSources(ctx),
- }
-
- case len(sharedConfig.CredentialSource) != 0:
- ctx = addCredentialSource(ctx, aws.CredentialSourceProfileNamedProvider)
- ctx, err = resolveCredsFromSource(ctx, cfg, envConfig, sharedConfig, configs)
-
- case len(sharedConfig.WebIdentityTokenFile) != 0:
- // Credentials from Assume Web Identity token require an IAM Role, and
- // that roll will be assumed. May be wrapped with another assume role
- // via SourceProfile.
- ctx = addCredentialSource(ctx, aws.CredentialSourceProfileSTSWebIDToken)
- return ctx, assumeWebIdentity(ctx, cfg, sharedConfig.WebIdentityTokenFile, sharedConfig.RoleARN, sharedConfig.RoleSessionName, configs)
-
- case sharedConfig.hasSSOConfiguration():
- if sharedConfig.hasLegacySSOConfiguration() {
- ctx = addCredentialSource(ctx, aws.CredentialSourceProfileSSOLegacy)
- ctx = addCredentialSource(ctx, aws.CredentialSourceSSOLegacy)
- } else {
- ctx = addCredentialSource(ctx, aws.CredentialSourceSSO)
- }
- if sharedConfig.SSOSession != nil {
- ctx = addCredentialSource(ctx, aws.CredentialSourceProfileSSO)
- }
- err = resolveSSOCredentials(ctx, cfg, sharedConfig, configs)
-
- case len(sharedConfig.CredentialProcess) != 0:
- // Get credentials from CredentialProcess
- ctx = addCredentialSource(ctx, aws.CredentialSourceProfileProcess)
- ctx = addCredentialSource(ctx, aws.CredentialSourceProcess)
- err = processCredentials(ctx, cfg, sharedConfig, configs)
-
- case len(envConfig.ContainerCredentialsRelativePath) != 0:
- ctx = addCredentialSource(ctx, aws.CredentialSourceHTTP)
- err = resolveHTTPCredProvider(ctx, cfg, ecsContainerURI(envConfig.ContainerCredentialsRelativePath), envConfig.ContainerAuthorizationToken, configs)
-
- case len(envConfig.ContainerCredentialsEndpoint) != 0:
- ctx = addCredentialSource(ctx, aws.CredentialSourceHTTP)
- err = resolveLocalHTTPCredProvider(ctx, cfg, envConfig.ContainerCredentialsEndpoint, envConfig.ContainerAuthorizationToken, configs)
-
- default:
- ctx = addCredentialSource(ctx, aws.CredentialSourceIMDS)
- err = resolveEC2RoleCredentials(ctx, cfg, configs)
- }
- if err != nil {
- return ctx, err
- }
-
- if len(sharedConfig.RoleARN) > 0 {
- return ctx, credsFromAssumeRole(ctx, cfg, sharedConfig, configs)
- }
-
- return ctx, nil
-}
-
-func resolveSSOCredentials(ctx context.Context, cfg *aws.Config, sharedConfig *SharedConfig, configs configs) error {
- if err := sharedConfig.validateSSOConfiguration(); err != nil {
- return err
- }
-
- var options []func(*ssocreds.Options)
- v, found, err := getSSOProviderOptions(ctx, configs)
- if err != nil {
- return err
- }
- if found {
- options = append(options, v)
- }
-
- cfgCopy := cfg.Copy()
-
- options = append(options, func(o *ssocreds.Options) {
- o.CredentialSources = getCredentialSources(ctx)
- })
-
- if sharedConfig.SSOSession != nil {
- ssoTokenProviderOptionsFn, found, err := getSSOTokenProviderOptions(ctx, configs)
- if err != nil {
- return fmt.Errorf("failed to get SSOTokenProviderOptions from config sources, %w", err)
- }
- var optFns []func(*ssocreds.SSOTokenProviderOptions)
- if found {
- optFns = append(optFns, ssoTokenProviderOptionsFn)
- }
- cfgCopy.Region = sharedConfig.SSOSession.SSORegion
- cachedPath, err := ssocreds.StandardCachedTokenFilepath(sharedConfig.SSOSession.Name)
- if err != nil {
- return err
- }
- oidcClient := ssooidc.NewFromConfig(cfgCopy)
- tokenProvider := ssocreds.NewSSOTokenProvider(oidcClient, cachedPath, optFns...)
- options = append(options, func(o *ssocreds.Options) {
- o.SSOTokenProvider = tokenProvider
- o.CachedTokenFilepath = cachedPath
- })
- } else {
- cfgCopy.Region = sharedConfig.SSORegion
- }
-
- cfg.Credentials = ssocreds.New(sso.NewFromConfig(cfgCopy), sharedConfig.SSOAccountID, sharedConfig.SSORoleName, sharedConfig.SSOStartURL, options...)
-
- return nil
-}
-
-func ecsContainerURI(path string) string {
- return fmt.Sprintf("%s%s", ecsContainerEndpoint, path)
-}
-
-func processCredentials(ctx context.Context, cfg *aws.Config, sharedConfig *SharedConfig, configs configs) error {
- var opts []func(*processcreds.Options)
-
- options, found, err := getProcessCredentialOptions(ctx, configs)
- if err != nil {
- return err
- }
- if found {
- opts = append(opts, options)
- }
-
- opts = append(opts, func(o *processcreds.Options) {
- o.CredentialSources = getCredentialSources(ctx)
- })
-
- cfg.Credentials = processcreds.NewProvider(sharedConfig.CredentialProcess, opts...)
-
- return nil
-}
-
-// isAllowedHost allows host to be loopback or known ECS/EKS container IPs
-//
-// host can either be an IP address OR an unresolved hostname - resolution will
-// be automatically performed in the latter case
-func isAllowedHost(host string) (bool, error) {
- if ip := net.ParseIP(host); ip != nil {
- return isIPAllowed(ip), nil
- }
-
- addrs, err := lookupHostFn(host)
- if err != nil {
- return false, err
- }
-
- for _, addr := range addrs {
- if ip := net.ParseIP(addr); ip == nil || !isIPAllowed(ip) {
- return false, nil
- }
- }
-
- return true, nil
-}
-
-func isIPAllowed(ip net.IP) bool {
- return ip.IsLoopback() ||
- ip.Equal(ecsContainerIPv4) ||
- ip.Equal(eksContainerIPv4) ||
- ip.Equal(eksContainerIPv6)
-}
-
-func resolveLocalHTTPCredProvider(ctx context.Context, cfg *aws.Config, endpointURL, authToken string, configs configs) error {
- var resolveErr error
-
- parsed, err := url.Parse(endpointURL)
- if err != nil {
- resolveErr = fmt.Errorf("invalid URL, %w", err)
- } else {
- host := parsed.Hostname()
- if len(host) == 0 {
- resolveErr = fmt.Errorf("unable to parse host from local HTTP cred provider URL")
- } else if parsed.Scheme == "http" {
- if isAllowedHost, allowHostErr := isAllowedHost(host); allowHostErr != nil {
- resolveErr = fmt.Errorf("failed to resolve host %q, %v", host, allowHostErr)
- } else if !isAllowedHost {
- resolveErr = fmt.Errorf("invalid endpoint host, %q, only loopback/ecs/eks hosts are allowed", host)
- }
- }
- }
-
- if resolveErr != nil {
- return resolveErr
- }
-
- return resolveHTTPCredProvider(ctx, cfg, endpointURL, authToken, configs)
-}
-
-func resolveHTTPCredProvider(ctx context.Context, cfg *aws.Config, url, authToken string, configs configs) error {
- optFns := []func(*endpointcreds.Options){
- func(options *endpointcreds.Options) {
- if len(authToken) != 0 {
- options.AuthorizationToken = authToken
- }
- if authFilePath := os.Getenv(httpProviderAuthFileEnvVar); authFilePath != "" {
- options.AuthorizationTokenProvider = endpointcreds.TokenProviderFunc(func() (string, error) {
- var contents []byte
- var err error
- if contents, err = ioutil.ReadFile(authFilePath); err != nil {
- return "", fmt.Errorf("failed to read authorization token from %v: %v", authFilePath, err)
- }
- return string(contents), nil
- })
- }
- options.APIOptions = cfg.APIOptions
- if cfg.Retryer != nil {
- options.Retryer = cfg.Retryer()
- }
- options.CredentialSources = getCredentialSources(ctx)
- },
- }
-
- optFn, found, err := getEndpointCredentialProviderOptions(ctx, configs)
- if err != nil {
- return err
- }
- if found {
- optFns = append(optFns, optFn)
- }
-
- provider := endpointcreds.New(url, optFns...)
-
- cfg.Credentials, err = wrapWithCredentialsCache(ctx, configs, provider, func(options *aws.CredentialsCacheOptions) {
- options.ExpiryWindow = 5 * time.Minute
- })
- if err != nil {
- return err
- }
-
- return nil
-}
-
-func resolveCredsFromSource(ctx context.Context, cfg *aws.Config, envConfig *EnvConfig, sharedCfg *SharedConfig, configs configs) (context.Context, error) {
- switch sharedCfg.CredentialSource {
- case credSourceEc2Metadata:
- ctx = addCredentialSource(ctx, aws.CredentialSourceIMDS)
- return ctx, resolveEC2RoleCredentials(ctx, cfg, configs)
-
- case credSourceEnvironment:
- ctx = addCredentialSource(ctx, aws.CredentialSourceHTTP)
- cfg.Credentials = credentials.StaticCredentialsProvider{Value: envConfig.Credentials, Source: getCredentialSources(ctx)}
-
- case credSourceECSContainer:
- ctx = addCredentialSource(ctx, aws.CredentialSourceHTTP)
- if len(envConfig.ContainerCredentialsRelativePath) != 0 {
- return ctx, resolveHTTPCredProvider(ctx, cfg, ecsContainerURI(envConfig.ContainerCredentialsRelativePath), envConfig.ContainerAuthorizationToken, configs)
- }
- if len(envConfig.ContainerCredentialsEndpoint) != 0 {
- return ctx, resolveLocalHTTPCredProvider(ctx, cfg, envConfig.ContainerCredentialsEndpoint, envConfig.ContainerAuthorizationToken, configs)
- }
- return ctx, fmt.Errorf("EcsContainer was specified as the credential_source, but neither 'AWS_CONTAINER_CREDENTIALS_RELATIVE_URI' or AWS_CONTAINER_CREDENTIALS_FULL_URI' was set")
-
- default:
- return ctx, fmt.Errorf("credential_source values must be EcsContainer, Ec2InstanceMetadata, or Environment")
- }
-
- return ctx, nil
-}
-
-func resolveEC2RoleCredentials(ctx context.Context, cfg *aws.Config, configs configs) error {
- optFns := make([]func(*ec2rolecreds.Options), 0, 2)
-
- optFn, found, err := getEC2RoleCredentialProviderOptions(ctx, configs)
- if err != nil {
- return err
- }
- if found {
- optFns = append(optFns, optFn)
- }
-
- optFns = append(optFns, func(o *ec2rolecreds.Options) {
- // Only define a client from config if not already defined.
- if o.Client == nil {
- o.Client = imds.NewFromConfig(*cfg)
- }
- o.CredentialSources = getCredentialSources(ctx)
- })
-
- provider := ec2rolecreds.New(optFns...)
-
- cfg.Credentials, err = wrapWithCredentialsCache(ctx, configs, provider)
- if err != nil {
- return err
- }
- return nil
-}
-
-func getAWSConfigSources(cfgs configs) (*EnvConfig, *SharedConfig, configs) {
- var (
- envConfig *EnvConfig
- sharedConfig *SharedConfig
- other configs
- )
-
- for i := range cfgs {
- switch c := cfgs[i].(type) {
- case EnvConfig:
- if envConfig == nil {
- envConfig = &c
- }
- case *EnvConfig:
- if envConfig == nil {
- envConfig = c
- }
- case SharedConfig:
- if sharedConfig == nil {
- sharedConfig = &c
- }
- case *SharedConfig:
- if envConfig == nil {
- sharedConfig = c
- }
- default:
- other = append(other, c)
- }
- }
-
- if envConfig == nil {
- envConfig = &EnvConfig{}
- }
-
- if sharedConfig == nil {
- sharedConfig = &SharedConfig{}
- }
-
- return envConfig, sharedConfig, other
-}
-
-// AssumeRoleTokenProviderNotSetError is an error returned when creating a
-// session when the MFAToken option is not set when shared config is configured
-// load assume a role with an MFA token.
-type AssumeRoleTokenProviderNotSetError struct{}
-
-// Error is the error message
-func (e AssumeRoleTokenProviderNotSetError) Error() string {
- return fmt.Sprintf("assume role with MFA enabled, but AssumeRoleTokenProvider session option not set.")
-}
-
-func assumeWebIdentity(ctx context.Context, cfg *aws.Config, filepath string, roleARN, sessionName string, configs configs) error {
- if len(filepath) == 0 {
- return fmt.Errorf("token file path is not set")
- }
-
- optFns := []func(*stscreds.WebIdentityRoleOptions){
- func(options *stscreds.WebIdentityRoleOptions) {
- options.RoleSessionName = sessionName
- },
- }
-
- optFn, found, err := getWebIdentityCredentialProviderOptions(ctx, configs)
- if err != nil {
- return err
- }
-
- if found {
- optFns = append(optFns, optFn)
- }
-
- opts := stscreds.WebIdentityRoleOptions{
- RoleARN: roleARN,
- }
-
- optFns = append(optFns, func(options *stscreds.WebIdentityRoleOptions) {
- options.CredentialSources = getCredentialSources(ctx)
- })
-
- for _, fn := range optFns {
- fn(&opts)
- }
-
- if len(opts.RoleARN) == 0 {
- return fmt.Errorf("role ARN is not set")
- }
-
- client := opts.Client
- if client == nil {
- client = sts.NewFromConfig(*cfg)
- }
-
- provider := stscreds.NewWebIdentityRoleProvider(client, roleARN, stscreds.IdentityTokenFile(filepath), optFns...)
-
- cfg.Credentials = provider
-
- return nil
-}
-
-func credsFromAssumeRole(ctx context.Context, cfg *aws.Config, sharedCfg *SharedConfig, configs configs) (err error) {
- // resolve credentials early
- credentialSources := getCredentialSources(ctx)
- optFns := []func(*stscreds.AssumeRoleOptions){
- func(options *stscreds.AssumeRoleOptions) {
- options.RoleSessionName = sharedCfg.RoleSessionName
- if sharedCfg.RoleDurationSeconds != nil {
- if *sharedCfg.RoleDurationSeconds/time.Minute > 15 {
- options.Duration = *sharedCfg.RoleDurationSeconds
- }
- }
- // Assume role with external ID
- if len(sharedCfg.ExternalID) > 0 {
- options.ExternalID = aws.String(sharedCfg.ExternalID)
- }
-
- // Assume role with MFA
- if len(sharedCfg.MFASerial) != 0 {
- options.SerialNumber = aws.String(sharedCfg.MFASerial)
- }
-
- // add existing credential chain
- options.CredentialSources = credentialSources
- },
- }
-
- optFn, found, err := getAssumeRoleCredentialProviderOptions(ctx, configs)
- if err != nil {
- return err
- }
- if found {
- optFns = append(optFns, optFn)
- }
-
- {
- // Synthesize options early to validate configuration errors sooner to ensure a token provider
- // is present if the SerialNumber was set.
- var o stscreds.AssumeRoleOptions
- for _, fn := range optFns {
- fn(&o)
- }
- if o.TokenProvider == nil && o.SerialNumber != nil {
- return AssumeRoleTokenProviderNotSetError{}
- }
- }
- cfg.Credentials = stscreds.NewAssumeRoleProvider(sts.NewFromConfig(*cfg), sharedCfg.RoleARN, optFns...)
-
- return nil
-}
-
-// wrapWithCredentialsCache will wrap provider with an aws.CredentialsCache
-// with the provided options if the provider is not already a
-// aws.CredentialsCache.
-func wrapWithCredentialsCache(
- ctx context.Context,
- cfgs configs,
- provider aws.CredentialsProvider,
- optFns ...func(options *aws.CredentialsCacheOptions),
-) (aws.CredentialsProvider, error) {
- _, ok := provider.(*aws.CredentialsCache)
- if ok {
- return provider, nil
- }
-
- credCacheOptions, optionsFound, err := getCredentialsCacheOptionsProvider(ctx, cfgs)
- if err != nil {
- return nil, err
- }
-
- // force allocation of a new slice if the additional options are
- // needed, to prevent overwriting the passed in slice of options.
- optFns = optFns[:len(optFns):len(optFns)]
- if optionsFound {
- optFns = append(optFns, credCacheOptions)
- }
-
- return aws.NewCredentialsCache(provider, optFns...), nil
-}
-
-// credentialSource stores the chain of providers that was used to create an instance of
-// a credentials provider on the context
-type credentialSource struct{}
-
-func addCredentialSource(ctx context.Context, source aws.CredentialSource) context.Context {
- existing, ok := ctx.Value(credentialSource{}).([]aws.CredentialSource)
- if !ok {
- existing = []aws.CredentialSource{source}
- } else {
- existing = append(existing, source)
- }
- return context.WithValue(ctx, credentialSource{}, existing)
-}
-
-func getCredentialSources(ctx context.Context) []aws.CredentialSource {
- return ctx.Value(credentialSource{}).([]aws.CredentialSource)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/config/shared_config.go b/vendor/github.com/aws/aws-sdk-go-v2/config/shared_config.go
deleted file mode 100644
index 97be3f756..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/config/shared_config.go
+++ /dev/null
@@ -1,1696 +0,0 @@
-package config
-
-import (
- "bytes"
- "context"
- "errors"
- "fmt"
- "io"
- "io/ioutil"
- "os"
- "path/filepath"
- "strings"
- "time"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- "github.com/aws/aws-sdk-go-v2/feature/ec2/imds"
- "github.com/aws/aws-sdk-go-v2/internal/ini"
- "github.com/aws/aws-sdk-go-v2/internal/shareddefaults"
- "github.com/aws/smithy-go/logging"
- smithyrequestcompression "github.com/aws/smithy-go/private/requestcompression"
-)
-
-const (
- // Prefix to use for filtering profiles. The profile prefix should only
- // exist in the shared config file, not the credentials file.
- profilePrefix = `profile `
-
- // Prefix to be used for SSO sections. These are supposed to only exist in
- // the shared config file, not the credentials file.
- ssoSectionPrefix = `sso-session `
-
- // Prefix for services section. It is referenced in profile via the services
- // parameter to configure clients for service-specific parameters.
- servicesPrefix = `services `
-
- // string equivalent for boolean
- endpointDiscoveryDisabled = `false`
- endpointDiscoveryEnabled = `true`
- endpointDiscoveryAuto = `auto`
-
- // Static Credentials group
- accessKeyIDKey = `aws_access_key_id` // group required
- secretAccessKey = `aws_secret_access_key` // group required
- sessionTokenKey = `aws_session_token` // optional
-
- // Assume Role Credentials group
- roleArnKey = `role_arn` // group required
- sourceProfileKey = `source_profile` // group required
- credentialSourceKey = `credential_source` // group required (or source_profile)
- externalIDKey = `external_id` // optional
- mfaSerialKey = `mfa_serial` // optional
- roleSessionNameKey = `role_session_name` // optional
- roleDurationSecondsKey = "duration_seconds" // optional
-
- // AWS Single Sign-On (AWS SSO) group
- ssoSessionNameKey = "sso_session"
-
- ssoRegionKey = "sso_region"
- ssoStartURLKey = "sso_start_url"
-
- ssoAccountIDKey = "sso_account_id"
- ssoRoleNameKey = "sso_role_name"
-
- // Additional Config fields
- regionKey = `region`
-
- // endpoint discovery group
- enableEndpointDiscoveryKey = `endpoint_discovery_enabled` // optional
-
- // External Credential process
- credentialProcessKey = `credential_process` // optional
-
- // Web Identity Token File
- webIdentityTokenFileKey = `web_identity_token_file` // optional
-
- // S3 ARN Region Usage
- s3UseARNRegionKey = "s3_use_arn_region"
-
- ec2MetadataServiceEndpointModeKey = "ec2_metadata_service_endpoint_mode"
-
- ec2MetadataServiceEndpointKey = "ec2_metadata_service_endpoint"
-
- ec2MetadataV1DisabledKey = "ec2_metadata_v1_disabled"
-
- // Use DualStack Endpoint Resolution
- useDualStackEndpoint = "use_dualstack_endpoint"
-
- // DefaultSharedConfigProfile is the default profile to be used when
- // loading configuration from the config files if another profile name
- // is not provided.
- DefaultSharedConfigProfile = `default`
-
- // S3 Disable Multi-Region AccessPoints
- s3DisableMultiRegionAccessPointsKey = `s3_disable_multiregion_access_points`
-
- useFIPSEndpointKey = "use_fips_endpoint"
-
- defaultsModeKey = "defaults_mode"
-
- // Retry options
- retryMaxAttemptsKey = "max_attempts"
- retryModeKey = "retry_mode"
-
- caBundleKey = "ca_bundle"
-
- sdkAppID = "sdk_ua_app_id"
-
- ignoreConfiguredEndpoints = "ignore_configured_endpoint_urls"
-
- endpointURL = "endpoint_url"
-
- servicesSectionKey = "services"
-
- disableRequestCompression = "disable_request_compression"
- requestMinCompressionSizeBytes = "request_min_compression_size_bytes"
-
- s3DisableExpressSessionAuthKey = "s3_disable_express_session_auth"
-
- accountIDKey = "aws_account_id"
- accountIDEndpointMode = "account_id_endpoint_mode"
-
- requestChecksumCalculationKey = "request_checksum_calculation"
- responseChecksumValidationKey = "response_checksum_validation"
- checksumWhenSupported = "when_supported"
- checksumWhenRequired = "when_required"
-
- authSchemePreferenceKey = "auth_scheme_preference"
-)
-
-// defaultSharedConfigProfile allows for swapping the default profile for testing
-var defaultSharedConfigProfile = DefaultSharedConfigProfile
-
-// DefaultSharedCredentialsFilename returns the SDK's default file path
-// for the shared credentials file.
-//
-// Builds the shared config file path based on the OS's platform.
-//
-// - Linux/Unix: $HOME/.aws/credentials
-// - Windows: %USERPROFILE%\.aws\credentials
-func DefaultSharedCredentialsFilename() string {
- return filepath.Join(shareddefaults.UserHomeDir(), ".aws", "credentials")
-}
-
-// DefaultSharedConfigFilename returns the SDK's default file path for
-// the shared config file.
-//
-// Builds the shared config file path based on the OS's platform.
-//
-// - Linux/Unix: $HOME/.aws/config
-// - Windows: %USERPROFILE%\.aws\config
-func DefaultSharedConfigFilename() string {
- return filepath.Join(shareddefaults.UserHomeDir(), ".aws", "config")
-}
-
-// DefaultSharedConfigFiles is a slice of the default shared config files that
-// the will be used in order to load the SharedConfig.
-var DefaultSharedConfigFiles = []string{
- DefaultSharedConfigFilename(),
-}
-
-// DefaultSharedCredentialsFiles is a slice of the default shared credentials
-// files that the will be used in order to load the SharedConfig.
-var DefaultSharedCredentialsFiles = []string{
- DefaultSharedCredentialsFilename(),
-}
-
-// SSOSession provides the shared configuration parameters of the sso-session
-// section.
-type SSOSession struct {
- Name string
- SSORegion string
- SSOStartURL string
-}
-
-func (s *SSOSession) setFromIniSection(section ini.Section) {
- updateString(&s.Name, section, ssoSessionNameKey)
- updateString(&s.SSORegion, section, ssoRegionKey)
- updateString(&s.SSOStartURL, section, ssoStartURLKey)
-}
-
-// Services contains values configured in the services section
-// of the AWS configuration file.
-type Services struct {
- // Services section values
- // {"serviceId": {"key": "value"}}
- // e.g. {"s3": {"endpoint_url": "example.com"}}
- ServiceValues map[string]map[string]string
-}
-
-func (s *Services) setFromIniSection(section ini.Section) {
- if s.ServiceValues == nil {
- s.ServiceValues = make(map[string]map[string]string)
- }
- for _, service := range section.List() {
- s.ServiceValues[service] = section.Map(service)
- }
-}
-
-// SharedConfig represents the configuration fields of the SDK config files.
-type SharedConfig struct {
- Profile string
-
- // Credentials values from the config file. Both aws_access_key_id
- // and aws_secret_access_key must be provided together in the same file
- // to be considered valid. The values will be ignored if not a complete group.
- // aws_session_token is an optional field that can be provided if both of the
- // other two fields are also provided.
- //
- // aws_access_key_id
- // aws_secret_access_key
- // aws_session_token
- Credentials aws.Credentials
-
- CredentialSource string
- CredentialProcess string
- WebIdentityTokenFile string
-
- // SSO session options
- SSOSessionName string
- SSOSession *SSOSession
-
- // Legacy SSO session options
- SSORegion string
- SSOStartURL string
-
- // SSO fields not used
- SSOAccountID string
- SSORoleName string
-
- RoleARN string
- ExternalID string
- MFASerial string
- RoleSessionName string
- RoleDurationSeconds *time.Duration
-
- SourceProfileName string
- Source *SharedConfig
-
- // Region is the region the SDK should use for looking up AWS service endpoints
- // and signing requests.
- //
- // region = us-west-2
- Region string
-
- // EnableEndpointDiscovery can be enabled or disabled in the shared config
- // by setting endpoint_discovery_enabled to true, or false respectively.
- //
- // endpoint_discovery_enabled = true
- EnableEndpointDiscovery aws.EndpointDiscoveryEnableState
-
- // Specifies if the S3 service should allow ARNs to direct the region
- // the client's requests are sent to.
- //
- // s3_use_arn_region=true
- S3UseARNRegion *bool
-
- // Specifies the EC2 Instance Metadata Service default endpoint selection
- // mode (IPv4 or IPv6)
- //
- // ec2_metadata_service_endpoint_mode=IPv6
- EC2IMDSEndpointMode imds.EndpointModeState
-
- // Specifies the EC2 Instance Metadata Service endpoint to use. If
- // specified it overrides EC2IMDSEndpointMode.
- //
- // ec2_metadata_service_endpoint=http://fd00:ec2::254
- EC2IMDSEndpoint string
-
- // Specifies that IMDS clients should not fallback to IMDSv1 if token
- // requests fail.
- //
- // ec2_metadata_v1_disabled=true
- EC2IMDSv1Disabled *bool
-
- // Specifies if the S3 service should disable support for Multi-Region
- // access-points
- //
- // s3_disable_multiregion_access_points=true
- S3DisableMultiRegionAccessPoints *bool
-
- // Specifies that SDK clients must resolve a dual-stack endpoint for
- // services.
- //
- // use_dualstack_endpoint=true
- UseDualStackEndpoint aws.DualStackEndpointState
-
- // Specifies that SDK clients must resolve a FIPS endpoint for
- // services.
- //
- // use_fips_endpoint=true
- UseFIPSEndpoint aws.FIPSEndpointState
-
- // Specifies which defaults mode should be used by services.
- //
- // defaults_mode=standard
- DefaultsMode aws.DefaultsMode
-
- // Specifies the maximum number attempts an API client will call an
- // operation that fails with a retryable error.
- //
- // max_attempts=3
- RetryMaxAttempts int
-
- // Specifies the retry model the API client will be created with.
- //
- // retry_mode=standard
- RetryMode aws.RetryMode
-
- // Sets the path to a custom Credentials Authority (CA) Bundle PEM file
- // that the SDK will use instead of the system's root CA bundle. Only use
- // this if you want to configure the SDK to use a custom set of CAs.
- //
- // Enabling this option will attempt to merge the Transport into the SDK's
- // HTTP client. If the client's Transport is not a http.Transport an error
- // will be returned. If the Transport's TLS config is set this option will
- // cause the SDK to overwrite the Transport's TLS config's RootCAs value.
- //
- // Setting a custom HTTPClient in the aws.Config options will override this
- // setting. To use this option and custom HTTP client, the HTTP client
- // needs to be provided when creating the config. Not the service client.
- //
- // ca_bundle=$HOME/my_custom_ca_bundle
- CustomCABundle string
-
- // aws sdk app ID that can be added to user agent header string
- AppID string
-
- // Flag used to disable configured endpoints.
- IgnoreConfiguredEndpoints *bool
-
- // Value to contain configured endpoints to be propagated to
- // corresponding endpoint resolution field.
- BaseEndpoint string
-
- // Services section config.
- ServicesSectionName string
- Services Services
-
- // determine if request compression is allowed, default to false
- // retrieved from config file's profile field disable_request_compression
- DisableRequestCompression *bool
-
- // inclusive threshold request body size to trigger compression,
- // default to 10240 and must be within 0 and 10485760 bytes inclusive
- // retrieved from config file's profile field request_min_compression_size_bytes
- RequestMinCompressSizeBytes *int64
-
- // Whether S3Express auth is disabled.
- //
- // This will NOT prevent requests from being made to S3Express buckets, it
- // will only bypass the modified endpoint routing and signing behaviors
- // associated with the feature.
- S3DisableExpressAuth *bool
-
- AccountIDEndpointMode aws.AccountIDEndpointMode
-
- // RequestChecksumCalculation indicates if the request checksum should be calculated
- RequestChecksumCalculation aws.RequestChecksumCalculation
-
- // ResponseChecksumValidation indicates if the response checksum should be validated
- ResponseChecksumValidation aws.ResponseChecksumValidation
-
- // Priority list of preferred auth scheme names (e.g. sigv4a).
- AuthSchemePreference []string
-}
-
-func (c SharedConfig) getDefaultsMode(ctx context.Context) (value aws.DefaultsMode, ok bool, err error) {
- if len(c.DefaultsMode) == 0 {
- return "", false, nil
- }
-
- return c.DefaultsMode, true, nil
-}
-
-// GetRetryMaxAttempts returns the maximum number of attempts an API client
-// created Retryer should attempt an operation call before failing.
-func (c SharedConfig) GetRetryMaxAttempts(ctx context.Context) (value int, ok bool, err error) {
- if c.RetryMaxAttempts == 0 {
- return 0, false, nil
- }
-
- return c.RetryMaxAttempts, true, nil
-}
-
-// GetRetryMode returns the model the API client should create its Retryer in.
-func (c SharedConfig) GetRetryMode(ctx context.Context) (value aws.RetryMode, ok bool, err error) {
- if len(c.RetryMode) == 0 {
- return "", false, nil
- }
-
- return c.RetryMode, true, nil
-}
-
-// GetS3UseARNRegion returns if the S3 service should allow ARNs to direct the region
-// the client's requests are sent to.
-func (c SharedConfig) GetS3UseARNRegion(ctx context.Context) (value, ok bool, err error) {
- if c.S3UseARNRegion == nil {
- return false, false, nil
- }
-
- return *c.S3UseARNRegion, true, nil
-}
-
-// GetEnableEndpointDiscovery returns if the enable_endpoint_discovery is set.
-func (c SharedConfig) GetEnableEndpointDiscovery(ctx context.Context) (value aws.EndpointDiscoveryEnableState, ok bool, err error) {
- if c.EnableEndpointDiscovery == aws.EndpointDiscoveryUnset {
- return aws.EndpointDiscoveryUnset, false, nil
- }
-
- return c.EnableEndpointDiscovery, true, nil
-}
-
-// GetS3DisableMultiRegionAccessPoints returns if the S3 service should disable support for Multi-Region
-// access-points.
-func (c SharedConfig) GetS3DisableMultiRegionAccessPoints(ctx context.Context) (value, ok bool, err error) {
- if c.S3DisableMultiRegionAccessPoints == nil {
- return false, false, nil
- }
-
- return *c.S3DisableMultiRegionAccessPoints, true, nil
-}
-
-// GetRegion returns the region for the profile if a region is set.
-func (c SharedConfig) getRegion(ctx context.Context) (string, bool, error) {
- if len(c.Region) == 0 {
- return "", false, nil
- }
- return c.Region, true, nil
-}
-
-// GetCredentialsProvider returns the credentials for a profile if they were set.
-func (c SharedConfig) getCredentialsProvider() (aws.Credentials, bool, error) {
- return c.Credentials, true, nil
-}
-
-// GetEC2IMDSEndpointMode implements a EC2IMDSEndpointMode option resolver interface.
-func (c SharedConfig) GetEC2IMDSEndpointMode() (imds.EndpointModeState, bool, error) {
- if c.EC2IMDSEndpointMode == imds.EndpointModeStateUnset {
- return imds.EndpointModeStateUnset, false, nil
- }
-
- return c.EC2IMDSEndpointMode, true, nil
-}
-
-// GetEC2IMDSEndpoint implements a EC2IMDSEndpoint option resolver interface.
-func (c SharedConfig) GetEC2IMDSEndpoint() (string, bool, error) {
- if len(c.EC2IMDSEndpoint) == 0 {
- return "", false, nil
- }
-
- return c.EC2IMDSEndpoint, true, nil
-}
-
-// GetEC2IMDSV1FallbackDisabled implements an EC2IMDSV1FallbackDisabled option
-// resolver interface.
-func (c SharedConfig) GetEC2IMDSV1FallbackDisabled() (bool, bool) {
- if c.EC2IMDSv1Disabled == nil {
- return false, false
- }
-
- return *c.EC2IMDSv1Disabled, true
-}
-
-// GetUseDualStackEndpoint returns whether the service's dual-stack endpoint should be
-// used for requests.
-func (c SharedConfig) GetUseDualStackEndpoint(ctx context.Context) (value aws.DualStackEndpointState, found bool, err error) {
- if c.UseDualStackEndpoint == aws.DualStackEndpointStateUnset {
- return aws.DualStackEndpointStateUnset, false, nil
- }
-
- return c.UseDualStackEndpoint, true, nil
-}
-
-// GetUseFIPSEndpoint returns whether the service's FIPS endpoint should be
-// used for requests.
-func (c SharedConfig) GetUseFIPSEndpoint(ctx context.Context) (value aws.FIPSEndpointState, found bool, err error) {
- if c.UseFIPSEndpoint == aws.FIPSEndpointStateUnset {
- return aws.FIPSEndpointStateUnset, false, nil
- }
-
- return c.UseFIPSEndpoint, true, nil
-}
-
-// GetS3DisableExpressAuth returns the configured value for
-// [SharedConfig.S3DisableExpressAuth].
-func (c SharedConfig) GetS3DisableExpressAuth() (value, ok bool) {
- if c.S3DisableExpressAuth == nil {
- return false, false
- }
-
- return *c.S3DisableExpressAuth, true
-}
-
-// GetCustomCABundle returns the custom CA bundle's PEM bytes if the file was
-func (c SharedConfig) getCustomCABundle(context.Context) (io.Reader, bool, error) {
- if len(c.CustomCABundle) == 0 {
- return nil, false, nil
- }
-
- b, err := ioutil.ReadFile(c.CustomCABundle)
- if err != nil {
- return nil, false, err
- }
- return bytes.NewReader(b), true, nil
-}
-
-// getAppID returns the sdk app ID if set in shared config profile
-func (c SharedConfig) getAppID(context.Context) (string, bool, error) {
- return c.AppID, len(c.AppID) > 0, nil
-}
-
-// GetIgnoreConfiguredEndpoints is used in knowing when to disable configured
-// endpoints feature.
-func (c SharedConfig) GetIgnoreConfiguredEndpoints(context.Context) (bool, bool, error) {
- if c.IgnoreConfiguredEndpoints == nil {
- return false, false, nil
- }
-
- return *c.IgnoreConfiguredEndpoints, true, nil
-}
-
-func (c SharedConfig) getBaseEndpoint(context.Context) (string, bool, error) {
- return c.BaseEndpoint, len(c.BaseEndpoint) > 0, nil
-}
-
-// GetServiceBaseEndpoint is used to retrieve a normalized SDK ID for use
-// with configured endpoints.
-func (c SharedConfig) GetServiceBaseEndpoint(ctx context.Context, sdkID string) (string, bool, error) {
- if service, ok := c.Services.ServiceValues[normalizeShared(sdkID)]; ok {
- if endpt, ok := service[endpointURL]; ok {
- return endpt, true, nil
- }
- }
- return "", false, nil
-}
-
-func normalizeShared(sdkID string) string {
- lower := strings.ToLower(sdkID)
- return strings.ReplaceAll(lower, " ", "_")
-}
-
-func (c SharedConfig) getServicesObject(context.Context) (map[string]map[string]string, bool, error) {
- return c.Services.ServiceValues, c.Services.ServiceValues != nil, nil
-}
-
-// loadSharedConfigIgnoreNotExist is an alias for loadSharedConfig with the
-// addition of ignoring when none of the files exist or when the profile
-// is not found in any of the files.
-func loadSharedConfigIgnoreNotExist(ctx context.Context, configs configs) (Config, error) {
- cfg, err := loadSharedConfig(ctx, configs)
- if err != nil {
- if _, ok := err.(SharedConfigProfileNotExistError); ok {
- return SharedConfig{}, nil
- }
- return nil, err
- }
-
- return cfg, nil
-}
-
-// loadSharedConfig uses the configs passed in to load the SharedConfig from file
-// The file names and profile name are sourced from the configs.
-//
-// If profile name is not provided DefaultSharedConfigProfile (default) will
-// be used.
-//
-// If shared config filenames are not provided DefaultSharedConfigFiles will
-// be used.
-//
-// Config providers used:
-// * sharedConfigProfileProvider
-// * sharedConfigFilesProvider
-func loadSharedConfig(ctx context.Context, configs configs) (Config, error) {
- var profile string
- var configFiles []string
- var credentialsFiles []string
- var ok bool
- var err error
-
- profile, ok, err = getSharedConfigProfile(ctx, configs)
- if err != nil {
- return nil, err
- }
- if !ok {
- profile = defaultSharedConfigProfile
- }
-
- configFiles, ok, err = getSharedConfigFiles(ctx, configs)
- if err != nil {
- return nil, err
- }
-
- credentialsFiles, ok, err = getSharedCredentialsFiles(ctx, configs)
- if err != nil {
- return nil, err
- }
-
- // setup logger if log configuration warning is seti
- var logger logging.Logger
- logWarnings, found, err := getLogConfigurationWarnings(ctx, configs)
- if err != nil {
- return SharedConfig{}, err
- }
- if found && logWarnings {
- logger, found, err = getLogger(ctx, configs)
- if err != nil {
- return SharedConfig{}, err
- }
- if !found {
- logger = logging.NewStandardLogger(os.Stderr)
- }
- }
-
- return LoadSharedConfigProfile(ctx, profile,
- func(o *LoadSharedConfigOptions) {
- o.Logger = logger
- o.ConfigFiles = configFiles
- o.CredentialsFiles = credentialsFiles
- },
- )
-}
-
-// LoadSharedConfigOptions struct contains optional values that can be used to load the config.
-type LoadSharedConfigOptions struct {
-
- // CredentialsFiles are the shared credentials files
- CredentialsFiles []string
-
- // ConfigFiles are the shared config files
- ConfigFiles []string
-
- // Logger is the logger used to log shared config behavior
- Logger logging.Logger
-}
-
-// LoadSharedConfigProfile retrieves the configuration from the list of files
-// using the profile provided. The order the files are listed will determine
-// precedence. Values in subsequent files will overwrite values defined in
-// earlier files.
-//
-// For example, given two files A and B. Both define credentials. If the order
-// of the files are A then B, B's credential values will be used instead of A's.
-//
-// If config files are not set, SDK will default to using a file at location `.aws/config` if present.
-// If credentials files are not set, SDK will default to using a file at location `.aws/credentials` if present.
-// No default files are set, if files set to an empty slice.
-//
-// You can read more about shared config and credentials file location at
-// https://docs.aws.amazon.com/credref/latest/refdocs/file-location.html#file-location
-func LoadSharedConfigProfile(ctx context.Context, profile string, optFns ...func(*LoadSharedConfigOptions)) (SharedConfig, error) {
- var option LoadSharedConfigOptions
- for _, fn := range optFns {
- fn(&option)
- }
-
- if option.ConfigFiles == nil {
- option.ConfigFiles = DefaultSharedConfigFiles
- }
-
- if option.CredentialsFiles == nil {
- option.CredentialsFiles = DefaultSharedCredentialsFiles
- }
-
- // load shared configuration sections from shared configuration INI options
- configSections, err := loadIniFiles(option.ConfigFiles)
- if err != nil {
- return SharedConfig{}, err
- }
-
- // check for profile prefix and drop duplicates or invalid profiles
- err = processConfigSections(ctx, &configSections, option.Logger)
- if err != nil {
- return SharedConfig{}, err
- }
-
- // load shared credentials sections from shared credentials INI options
- credentialsSections, err := loadIniFiles(option.CredentialsFiles)
- if err != nil {
- return SharedConfig{}, err
- }
-
- // check for profile prefix and drop duplicates or invalid profiles
- err = processCredentialsSections(ctx, &credentialsSections, option.Logger)
- if err != nil {
- return SharedConfig{}, err
- }
-
- err = mergeSections(&configSections, credentialsSections)
- if err != nil {
- return SharedConfig{}, err
- }
-
- cfg := SharedConfig{}
- profiles := map[string]struct{}{}
-
- if err = cfg.setFromIniSections(profiles, profile, configSections, option.Logger); err != nil {
- return SharedConfig{}, err
- }
-
- return cfg, nil
-}
-
-func processConfigSections(ctx context.Context, sections *ini.Sections, logger logging.Logger) error {
- skipSections := map[string]struct{}{}
-
- for _, section := range sections.List() {
- if _, ok := skipSections[section]; ok {
- continue
- }
-
- // drop sections from config file that do not have expected prefixes.
- switch {
- case strings.HasPrefix(section, profilePrefix):
- // Rename sections to remove "profile " prefixing to match with
- // credentials file. If default is already present, it will be
- // dropped.
- newName, err := renameProfileSection(section, sections, logger)
- if err != nil {
- return fmt.Errorf("failed to rename profile section, %w", err)
- }
- skipSections[newName] = struct{}{}
-
- case strings.HasPrefix(section, ssoSectionPrefix):
- case strings.HasPrefix(section, servicesPrefix):
- case strings.EqualFold(section, "default"):
- default:
- // drop this section, as invalid profile name
- sections.DeleteSection(section)
-
- if logger != nil {
- logger.Logf(logging.Debug, "A profile defined with name `%v` is ignored. "+
- "For use within a shared configuration file, "+
- "a non-default profile must have `profile ` "+
- "prefixed to the profile name.",
- section,
- )
- }
- }
- }
- return nil
-}
-
-func renameProfileSection(section string, sections *ini.Sections, logger logging.Logger) (string, error) {
- v, ok := sections.GetSection(section)
- if !ok {
- return "", fmt.Errorf("error processing profiles within the shared configuration files")
- }
-
- // delete section with profile as prefix
- sections.DeleteSection(section)
-
- // set the value to non-prefixed name in sections.
- section = strings.TrimPrefix(section, profilePrefix)
- if sections.HasSection(section) {
- oldSection, _ := sections.GetSection(section)
- v.Logs = append(v.Logs,
- fmt.Sprintf("A non-default profile not prefixed with `profile ` found in %s, "+
- "overriding non-default profile from %s",
- v.SourceFile, oldSection.SourceFile))
- sections.DeleteSection(section)
- }
-
- // assign non-prefixed name to section
- v.Name = section
- sections.SetSection(section, v)
-
- return section, nil
-}
-
-func processCredentialsSections(ctx context.Context, sections *ini.Sections, logger logging.Logger) error {
- for _, section := range sections.List() {
- // drop profiles with prefix for credential files
- if strings.HasPrefix(section, profilePrefix) {
- // drop this section, as invalid profile name
- sections.DeleteSection(section)
-
- if logger != nil {
- logger.Logf(logging.Debug,
- "The profile defined with name `%v` is ignored. A profile with the `profile ` prefix is invalid "+
- "for the shared credentials file.\n",
- section,
- )
- }
- }
- }
- return nil
-}
-
-func loadIniFiles(filenames []string) (ini.Sections, error) {
- mergedSections := ini.NewSections()
-
- for _, filename := range filenames {
- sections, err := ini.OpenFile(filename)
- var v *ini.UnableToReadFile
- if ok := errors.As(err, &v); ok {
- // Skip files which can't be opened and read for whatever reason.
- // We treat such files as empty, and do not fall back to other locations.
- continue
- } else if err != nil {
- return ini.Sections{}, SharedConfigLoadError{Filename: filename, Err: err}
- }
-
- // mergeSections into mergedSections
- err = mergeSections(&mergedSections, sections)
- if err != nil {
- return ini.Sections{}, SharedConfigLoadError{Filename: filename, Err: err}
- }
- }
-
- return mergedSections, nil
-}
-
-// mergeSections merges source section properties into destination section properties
-func mergeSections(dst *ini.Sections, src ini.Sections) error {
- for _, sectionName := range src.List() {
- srcSection, _ := src.GetSection(sectionName)
-
- if (!srcSection.Has(accessKeyIDKey) && srcSection.Has(secretAccessKey)) ||
- (srcSection.Has(accessKeyIDKey) && !srcSection.Has(secretAccessKey)) {
- srcSection.Errors = append(srcSection.Errors,
- fmt.Errorf("partial credentials found for profile %v", sectionName))
- }
-
- if !dst.HasSection(sectionName) {
- dst.SetSection(sectionName, srcSection)
- continue
- }
-
- // merge with destination srcSection
- dstSection, _ := dst.GetSection(sectionName)
-
- // errors should be overriden if any
- dstSection.Errors = srcSection.Errors
-
- // Access key id update
- if srcSection.Has(accessKeyIDKey) && srcSection.Has(secretAccessKey) {
- accessKey := srcSection.String(accessKeyIDKey)
- secretKey := srcSection.String(secretAccessKey)
-
- if dstSection.Has(accessKeyIDKey) {
- dstSection.Logs = append(dstSection.Logs, newMergeKeyLogMessage(sectionName, accessKeyIDKey,
- dstSection.SourceFile[accessKeyIDKey], srcSection.SourceFile[accessKeyIDKey]))
- }
-
- // update access key
- v, err := ini.NewStringValue(accessKey)
- if err != nil {
- return fmt.Errorf("error merging access key, %w", err)
- }
- dstSection.UpdateValue(accessKeyIDKey, v)
-
- // update secret key
- v, err = ini.NewStringValue(secretKey)
- if err != nil {
- return fmt.Errorf("error merging secret key, %w", err)
- }
- dstSection.UpdateValue(secretAccessKey, v)
-
- // update session token
- if err = mergeStringKey(&srcSection, &dstSection, sectionName, sessionTokenKey); err != nil {
- return err
- }
-
- // update source file to reflect where the static creds came from
- dstSection.UpdateSourceFile(accessKeyIDKey, srcSection.SourceFile[accessKeyIDKey])
- dstSection.UpdateSourceFile(secretAccessKey, srcSection.SourceFile[secretAccessKey])
- }
-
- stringKeys := []string{
- roleArnKey,
- sourceProfileKey,
- credentialSourceKey,
- externalIDKey,
- mfaSerialKey,
- roleSessionNameKey,
- regionKey,
- enableEndpointDiscoveryKey,
- credentialProcessKey,
- webIdentityTokenFileKey,
- s3UseARNRegionKey,
- s3DisableMultiRegionAccessPointsKey,
- ec2MetadataServiceEndpointModeKey,
- ec2MetadataServiceEndpointKey,
- ec2MetadataV1DisabledKey,
- useDualStackEndpoint,
- useFIPSEndpointKey,
- defaultsModeKey,
- retryModeKey,
- caBundleKey,
- roleDurationSecondsKey,
- retryMaxAttemptsKey,
-
- ssoSessionNameKey,
- ssoAccountIDKey,
- ssoRegionKey,
- ssoRoleNameKey,
- ssoStartURLKey,
-
- authSchemePreferenceKey,
- }
- for i := range stringKeys {
- if err := mergeStringKey(&srcSection, &dstSection, sectionName, stringKeys[i]); err != nil {
- return err
- }
- }
-
- // set srcSection on dst srcSection
- *dst = dst.SetSection(sectionName, dstSection)
- }
-
- return nil
-}
-
-func mergeStringKey(srcSection *ini.Section, dstSection *ini.Section, sectionName, key string) error {
- if srcSection.Has(key) {
- srcValue := srcSection.String(key)
- val, err := ini.NewStringValue(srcValue)
- if err != nil {
- return fmt.Errorf("error merging %s, %w", key, err)
- }
-
- if dstSection.Has(key) {
- dstSection.Logs = append(dstSection.Logs, newMergeKeyLogMessage(sectionName, key,
- dstSection.SourceFile[key], srcSection.SourceFile[key]))
- }
-
- dstSection.UpdateValue(key, val)
- dstSection.UpdateSourceFile(key, srcSection.SourceFile[key])
- }
- return nil
-}
-
-func newMergeKeyLogMessage(sectionName, key, dstSourceFile, srcSourceFile string) string {
- return fmt.Sprintf("For profile: %v, overriding %v value, defined in %v "+
- "with a %v value found in a duplicate profile defined at file %v. \n",
- sectionName, key, dstSourceFile, key, srcSourceFile)
-}
-
-// Returns an error if all of the files fail to load. If at least one file is
-// successfully loaded and contains the profile, no error will be returned.
-func (c *SharedConfig) setFromIniSections(profiles map[string]struct{}, profile string,
- sections ini.Sections, logger logging.Logger) error {
- c.Profile = profile
-
- section, ok := sections.GetSection(profile)
- if !ok {
- return SharedConfigProfileNotExistError{
- Profile: profile,
- }
- }
-
- // if logs are appended to the section, log them
- if section.Logs != nil && logger != nil {
- for _, log := range section.Logs {
- logger.Logf(logging.Debug, log)
- }
- }
-
- // set config from the provided INI section
- err := c.setFromIniSection(profile, section)
- if err != nil {
- return fmt.Errorf("error fetching config from profile, %v, %w", profile, err)
- }
-
- if _, ok := profiles[profile]; ok {
- // if this is the second instance of the profile the Assume Role
- // options must be cleared because they are only valid for the
- // first reference of a profile. The self linked instance of the
- // profile only have credential provider options.
- c.clearAssumeRoleOptions()
- } else {
- // First time a profile has been seen. Assert if the credential type
- // requires a role ARN, the ARN is also set
- if err := c.validateCredentialsConfig(profile); err != nil {
- return err
- }
- }
-
- // if not top level profile and has credentials, return with credentials.
- if len(profiles) != 0 && c.Credentials.HasKeys() {
- return nil
- }
-
- profiles[profile] = struct{}{}
-
- // validate no colliding credentials type are present
- if err := c.validateCredentialType(); err != nil {
- return err
- }
-
- // Link source profiles for assume roles
- if len(c.SourceProfileName) != 0 {
- // Linked profile via source_profile ignore credential provider
- // options, the source profile must provide the credentials.
- c.clearCredentialOptions()
-
- srcCfg := &SharedConfig{}
- err := srcCfg.setFromIniSections(profiles, c.SourceProfileName, sections, logger)
- if err != nil {
- // SourceProfileName that doesn't exist is an error in configuration.
- if _, ok := err.(SharedConfigProfileNotExistError); ok {
- err = SharedConfigAssumeRoleError{
- RoleARN: c.RoleARN,
- Profile: c.SourceProfileName,
- Err: err,
- }
- }
- return err
- }
-
- if !srcCfg.hasCredentials() {
- return SharedConfigAssumeRoleError{
- RoleARN: c.RoleARN,
- Profile: c.SourceProfileName,
- }
- }
-
- c.Source = srcCfg
- }
-
- // If the profile contains an SSO session parameter, the session MUST exist
- // as a section in the config file. Load the SSO session using the name
- // provided. If the session section is not found or incomplete an error
- // will be returned.
- if c.hasSSOTokenProviderConfiguration() {
- section, ok := sections.GetSection(ssoSectionPrefix + strings.TrimSpace(c.SSOSessionName))
- if !ok {
- return fmt.Errorf("failed to find SSO session section, %v", c.SSOSessionName)
- }
- var ssoSession SSOSession
- ssoSession.setFromIniSection(section)
- ssoSession.Name = c.SSOSessionName
- c.SSOSession = &ssoSession
- }
-
- if len(c.ServicesSectionName) > 0 {
- if section, ok := sections.GetSection(servicesPrefix + c.ServicesSectionName); ok {
- var svcs Services
- svcs.setFromIniSection(section)
- c.Services = svcs
- }
- }
-
- return nil
-}
-
-// setFromIniSection loads the configuration from the profile section defined in
-// the provided INI file. A SharedConfig pointer type value is used so that
-// multiple config file loadings can be chained.
-//
-// Only loads complete logically grouped values, and will not set fields in cfg
-// for incomplete grouped values in the config. Such as credentials. For example
-// if a config file only includes aws_access_key_id but no aws_secret_access_key
-// the aws_access_key_id will be ignored.
-func (c *SharedConfig) setFromIniSection(profile string, section ini.Section) error {
- if len(section.Name) == 0 {
- sources := make([]string, 0)
- for _, v := range section.SourceFile {
- sources = append(sources, v)
- }
-
- return fmt.Errorf("parsing error : could not find profile section name after processing files: %v", sources)
- }
-
- if len(section.Errors) != 0 {
- var errStatement string
- for i, e := range section.Errors {
- errStatement = fmt.Sprintf("%d, %v\n", i+1, e.Error())
- }
- return fmt.Errorf("Error using profile: \n %v", errStatement)
- }
-
- // Assume Role
- updateString(&c.RoleARN, section, roleArnKey)
- updateString(&c.ExternalID, section, externalIDKey)
- updateString(&c.MFASerial, section, mfaSerialKey)
- updateString(&c.RoleSessionName, section, roleSessionNameKey)
- updateString(&c.SourceProfileName, section, sourceProfileKey)
- updateString(&c.CredentialSource, section, credentialSourceKey)
- updateString(&c.Region, section, regionKey)
-
- // AWS Single Sign-On (AWS SSO)
- // SSO session options
- updateString(&c.SSOSessionName, section, ssoSessionNameKey)
-
- // Legacy SSO session options
- updateString(&c.SSORegion, section, ssoRegionKey)
- updateString(&c.SSOStartURL, section, ssoStartURLKey)
-
- // SSO fields not used
- updateString(&c.SSOAccountID, section, ssoAccountIDKey)
- updateString(&c.SSORoleName, section, ssoRoleNameKey)
-
- // we're retaining a behavioral quirk with this field that existed before
- // the removal of literal parsing for #2276:
- // - if the key is missing, the config field will not be set
- // - if the key is set to a non-numeric, the config field will be set to 0
- if section.Has(roleDurationSecondsKey) {
- if v, ok := section.Int(roleDurationSecondsKey); ok {
- c.RoleDurationSeconds = aws.Duration(time.Duration(v) * time.Second)
- } else {
- c.RoleDurationSeconds = aws.Duration(time.Duration(0))
- }
- }
-
- updateString(&c.CredentialProcess, section, credentialProcessKey)
- updateString(&c.WebIdentityTokenFile, section, webIdentityTokenFileKey)
-
- updateEndpointDiscoveryType(&c.EnableEndpointDiscovery, section, enableEndpointDiscoveryKey)
- updateBoolPtr(&c.S3UseARNRegion, section, s3UseARNRegionKey)
- updateBoolPtr(&c.S3DisableMultiRegionAccessPoints, section, s3DisableMultiRegionAccessPointsKey)
- updateBoolPtr(&c.S3DisableExpressAuth, section, s3DisableExpressSessionAuthKey)
-
- if err := updateEC2MetadataServiceEndpointMode(&c.EC2IMDSEndpointMode, section, ec2MetadataServiceEndpointModeKey); err != nil {
- return fmt.Errorf("failed to load %s from shared config, %v", ec2MetadataServiceEndpointModeKey, err)
- }
- updateString(&c.EC2IMDSEndpoint, section, ec2MetadataServiceEndpointKey)
- updateBoolPtr(&c.EC2IMDSv1Disabled, section, ec2MetadataV1DisabledKey)
-
- updateUseDualStackEndpoint(&c.UseDualStackEndpoint, section, useDualStackEndpoint)
- updateUseFIPSEndpoint(&c.UseFIPSEndpoint, section, useFIPSEndpointKey)
-
- if err := updateDefaultsMode(&c.DefaultsMode, section, defaultsModeKey); err != nil {
- return fmt.Errorf("failed to load %s from shared config, %w", defaultsModeKey, err)
- }
-
- if err := updateInt(&c.RetryMaxAttempts, section, retryMaxAttemptsKey); err != nil {
- return fmt.Errorf("failed to load %s from shared config, %w", retryMaxAttemptsKey, err)
- }
- if err := updateRetryMode(&c.RetryMode, section, retryModeKey); err != nil {
- return fmt.Errorf("failed to load %s from shared config, %w", retryModeKey, err)
- }
-
- updateString(&c.CustomCABundle, section, caBundleKey)
-
- // user agent app ID added to request User-Agent header
- updateString(&c.AppID, section, sdkAppID)
-
- updateBoolPtr(&c.IgnoreConfiguredEndpoints, section, ignoreConfiguredEndpoints)
-
- updateString(&c.BaseEndpoint, section, endpointURL)
-
- if err := updateDisableRequestCompression(&c.DisableRequestCompression, section, disableRequestCompression); err != nil {
- return fmt.Errorf("failed to load %s from shared config, %w", disableRequestCompression, err)
- }
- if err := updateRequestMinCompressSizeBytes(&c.RequestMinCompressSizeBytes, section, requestMinCompressionSizeBytes); err != nil {
- return fmt.Errorf("failed to load %s from shared config, %w", requestMinCompressionSizeBytes, err)
- }
-
- if err := updateAIDEndpointMode(&c.AccountIDEndpointMode, section, accountIDEndpointMode); err != nil {
- return fmt.Errorf("failed to load %s from shared config, %w", accountIDEndpointMode, err)
- }
-
- if err := updateRequestChecksumCalculation(&c.RequestChecksumCalculation, section, requestChecksumCalculationKey); err != nil {
- return fmt.Errorf("failed to load %s from shared config, %w", requestChecksumCalculationKey, err)
- }
- if err := updateResponseChecksumValidation(&c.ResponseChecksumValidation, section, responseChecksumValidationKey); err != nil {
- return fmt.Errorf("failed to load %s from shared config, %w", responseChecksumValidationKey, err)
- }
-
- // Shared Credentials
- creds := aws.Credentials{
- AccessKeyID: section.String(accessKeyIDKey),
- SecretAccessKey: section.String(secretAccessKey),
- SessionToken: section.String(sessionTokenKey),
- Source: fmt.Sprintf("SharedConfigCredentials: %s", section.SourceFile[accessKeyIDKey]),
- AccountID: section.String(accountIDKey),
- }
-
- if creds.HasKeys() {
- c.Credentials = creds
- }
-
- updateString(&c.ServicesSectionName, section, servicesSectionKey)
-
- c.AuthSchemePreference = toAuthSchemePreferenceList(section.String(authSchemePreferenceKey))
-
- return nil
-}
-
-func updateRequestMinCompressSizeBytes(bytes **int64, sec ini.Section, key string) error {
- if !sec.Has(key) {
- return nil
- }
-
- v, ok := sec.Int(key)
- if !ok {
- return fmt.Errorf("invalid value for min request compression size bytes %s, need int64", sec.String(key))
- }
- if v < 0 || v > smithyrequestcompression.MaxRequestMinCompressSizeBytes {
- return fmt.Errorf("invalid range for min request compression size bytes %d, must be within 0 and 10485760 inclusively", v)
- }
- *bytes = new(int64)
- **bytes = v
- return nil
-}
-
-func updateDisableRequestCompression(disable **bool, sec ini.Section, key string) error {
- if !sec.Has(key) {
- return nil
- }
-
- v := sec.String(key)
- switch {
- case v == "true":
- *disable = new(bool)
- **disable = true
- case v == "false":
- *disable = new(bool)
- **disable = false
- default:
- return fmt.Errorf("invalid value for shared config profile field, %s=%s, need true or false", key, v)
- }
- return nil
-}
-
-func updateAIDEndpointMode(m *aws.AccountIDEndpointMode, sec ini.Section, key string) error {
- if !sec.Has(key) {
- return nil
- }
-
- v := sec.String(key)
- switch v {
- case "preferred":
- *m = aws.AccountIDEndpointModePreferred
- case "required":
- *m = aws.AccountIDEndpointModeRequired
- case "disabled":
- *m = aws.AccountIDEndpointModeDisabled
- default:
- return fmt.Errorf("invalid value for shared config profile field, %s=%s, must be preferred/required/disabled", key, v)
- }
-
- return nil
-}
-
-func updateRequestChecksumCalculation(m *aws.RequestChecksumCalculation, sec ini.Section, key string) error {
- if !sec.Has(key) {
- return nil
- }
-
- v := sec.String(key)
- switch strings.ToLower(v) {
- case checksumWhenSupported:
- *m = aws.RequestChecksumCalculationWhenSupported
- case checksumWhenRequired:
- *m = aws.RequestChecksumCalculationWhenRequired
- default:
- return fmt.Errorf("invalid value for shared config profile field, %s=%s, must be when_supported/when_required", key, v)
- }
-
- return nil
-}
-
-func updateResponseChecksumValidation(m *aws.ResponseChecksumValidation, sec ini.Section, key string) error {
- if !sec.Has(key) {
- return nil
- }
-
- v := sec.String(key)
- switch strings.ToLower(v) {
- case checksumWhenSupported:
- *m = aws.ResponseChecksumValidationWhenSupported
- case checksumWhenRequired:
- *m = aws.ResponseChecksumValidationWhenRequired
- default:
- return fmt.Errorf("invalid value for shared config profile field, %s=%s, must be when_supported/when_required", key, v)
- }
-
- return nil
-}
-
-func (c SharedConfig) getRequestMinCompressSizeBytes(ctx context.Context) (int64, bool, error) {
- if c.RequestMinCompressSizeBytes == nil {
- return 0, false, nil
- }
- return *c.RequestMinCompressSizeBytes, true, nil
-}
-
-func (c SharedConfig) getDisableRequestCompression(ctx context.Context) (bool, bool, error) {
- if c.DisableRequestCompression == nil {
- return false, false, nil
- }
- return *c.DisableRequestCompression, true, nil
-}
-
-func (c SharedConfig) getAccountIDEndpointMode(ctx context.Context) (aws.AccountIDEndpointMode, bool, error) {
- return c.AccountIDEndpointMode, len(c.AccountIDEndpointMode) > 0, nil
-}
-
-func (c SharedConfig) getRequestChecksumCalculation(ctx context.Context) (aws.RequestChecksumCalculation, bool, error) {
- return c.RequestChecksumCalculation, c.RequestChecksumCalculation > 0, nil
-}
-
-func (c SharedConfig) getResponseChecksumValidation(ctx context.Context) (aws.ResponseChecksumValidation, bool, error) {
- return c.ResponseChecksumValidation, c.ResponseChecksumValidation > 0, nil
-}
-
-func updateDefaultsMode(mode *aws.DefaultsMode, section ini.Section, key string) error {
- if !section.Has(key) {
- return nil
- }
- value := section.String(key)
- if ok := mode.SetFromString(value); !ok {
- return fmt.Errorf("invalid value: %s", value)
- }
- return nil
-}
-
-func updateRetryMode(mode *aws.RetryMode, section ini.Section, key string) (err error) {
- if !section.Has(key) {
- return nil
- }
- value := section.String(key)
- if *mode, err = aws.ParseRetryMode(value); err != nil {
- return err
- }
- return nil
-}
-
-func updateEC2MetadataServiceEndpointMode(endpointMode *imds.EndpointModeState, section ini.Section, key string) error {
- if !section.Has(key) {
- return nil
- }
- value := section.String(key)
- return endpointMode.SetFromString(value)
-}
-
-func (c *SharedConfig) validateCredentialsConfig(profile string) error {
- if err := c.validateCredentialsRequireARN(profile); err != nil {
- return err
- }
-
- return nil
-}
-
-func (c *SharedConfig) validateCredentialsRequireARN(profile string) error {
- var credSource string
-
- switch {
- case len(c.SourceProfileName) != 0:
- credSource = sourceProfileKey
- case len(c.CredentialSource) != 0:
- credSource = credentialSourceKey
- case len(c.WebIdentityTokenFile) != 0:
- credSource = webIdentityTokenFileKey
- }
-
- if len(credSource) != 0 && len(c.RoleARN) == 0 {
- return CredentialRequiresARNError{
- Type: credSource,
- Profile: profile,
- }
- }
-
- return nil
-}
-
-func (c *SharedConfig) validateCredentialType() error {
- // Only one or no credential type can be defined.
- if !oneOrNone(
- len(c.SourceProfileName) != 0,
- len(c.CredentialSource) != 0,
- len(c.CredentialProcess) != 0,
- len(c.WebIdentityTokenFile) != 0,
- ) {
- return fmt.Errorf("only one credential type may be specified per profile: source profile, credential source, credential process, web identity token")
- }
-
- return nil
-}
-
-func (c *SharedConfig) validateSSOConfiguration() error {
- if c.hasSSOTokenProviderConfiguration() {
- err := c.validateSSOTokenProviderConfiguration()
- if err != nil {
- return err
- }
- return nil
- }
-
- if c.hasLegacySSOConfiguration() {
- err := c.validateLegacySSOConfiguration()
- if err != nil {
- return err
- }
- }
- return nil
-}
-
-func (c *SharedConfig) validateSSOTokenProviderConfiguration() error {
- var missing []string
-
- if len(c.SSOSessionName) == 0 {
- missing = append(missing, ssoSessionNameKey)
- }
-
- if c.SSOSession == nil {
- missing = append(missing, ssoSectionPrefix)
- } else {
- if len(c.SSOSession.SSORegion) == 0 {
- missing = append(missing, ssoRegionKey)
- }
-
- if len(c.SSOSession.SSOStartURL) == 0 {
- missing = append(missing, ssoStartURLKey)
- }
- }
-
- if len(missing) > 0 {
- return fmt.Errorf("profile %q is configured to use SSO but is missing required configuration: %s",
- c.Profile, strings.Join(missing, ", "))
- }
-
- if len(c.SSORegion) > 0 && c.SSORegion != c.SSOSession.SSORegion {
- return fmt.Errorf("%s in profile %q must match %s in %s", ssoRegionKey, c.Profile, ssoRegionKey, ssoSectionPrefix)
- }
-
- if len(c.SSOStartURL) > 0 && c.SSOStartURL != c.SSOSession.SSOStartURL {
- return fmt.Errorf("%s in profile %q must match %s in %s", ssoStartURLKey, c.Profile, ssoStartURLKey, ssoSectionPrefix)
- }
-
- return nil
-}
-
-func (c *SharedConfig) validateLegacySSOConfiguration() error {
- var missing []string
-
- if len(c.SSORegion) == 0 {
- missing = append(missing, ssoRegionKey)
- }
-
- if len(c.SSOStartURL) == 0 {
- missing = append(missing, ssoStartURLKey)
- }
-
- if len(c.SSOAccountID) == 0 {
- missing = append(missing, ssoAccountIDKey)
- }
-
- if len(c.SSORoleName) == 0 {
- missing = append(missing, ssoRoleNameKey)
- }
-
- if len(missing) > 0 {
- return fmt.Errorf("profile %q is configured to use SSO but is missing required configuration: %s",
- c.Profile, strings.Join(missing, ", "))
- }
- return nil
-}
-
-func (c *SharedConfig) hasCredentials() bool {
- switch {
- case len(c.SourceProfileName) != 0:
- case len(c.CredentialSource) != 0:
- case len(c.CredentialProcess) != 0:
- case len(c.WebIdentityTokenFile) != 0:
- case c.hasSSOConfiguration():
- case c.Credentials.HasKeys():
- default:
- return false
- }
-
- return true
-}
-
-func (c *SharedConfig) hasSSOConfiguration() bool {
- return c.hasSSOTokenProviderConfiguration() || c.hasLegacySSOConfiguration()
-}
-
-func (c *SharedConfig) hasSSOTokenProviderConfiguration() bool {
- return len(c.SSOSessionName) > 0
-}
-
-func (c *SharedConfig) hasLegacySSOConfiguration() bool {
- return len(c.SSORegion) > 0 || len(c.SSOAccountID) > 0 || len(c.SSOStartURL) > 0 || len(c.SSORoleName) > 0
-}
-
-func (c *SharedConfig) clearAssumeRoleOptions() {
- c.RoleARN = ""
- c.ExternalID = ""
- c.MFASerial = ""
- c.RoleSessionName = ""
- c.SourceProfileName = ""
-}
-
-func (c *SharedConfig) clearCredentialOptions() {
- c.CredentialSource = ""
- c.CredentialProcess = ""
- c.WebIdentityTokenFile = ""
- c.Credentials = aws.Credentials{}
- c.SSOAccountID = ""
- c.SSORegion = ""
- c.SSORoleName = ""
- c.SSOStartURL = ""
-}
-
-// SharedConfigLoadError is an error for the shared config file failed to load.
-type SharedConfigLoadError struct {
- Filename string
- Err error
-}
-
-// Unwrap returns the underlying error that caused the failure.
-func (e SharedConfigLoadError) Unwrap() error {
- return e.Err
-}
-
-func (e SharedConfigLoadError) Error() string {
- return fmt.Sprintf("failed to load shared config file, %s, %v", e.Filename, e.Err)
-}
-
-// SharedConfigProfileNotExistError is an error for the shared config when
-// the profile was not find in the config file.
-type SharedConfigProfileNotExistError struct {
- Filename []string
- Profile string
- Err error
-}
-
-// Unwrap returns the underlying error that caused the failure.
-func (e SharedConfigProfileNotExistError) Unwrap() error {
- return e.Err
-}
-
-func (e SharedConfigProfileNotExistError) Error() string {
- return fmt.Sprintf("failed to get shared config profile, %s", e.Profile)
-}
-
-// SharedConfigAssumeRoleError is an error for the shared config when the
-// profile contains assume role information, but that information is invalid
-// or not complete.
-type SharedConfigAssumeRoleError struct {
- Profile string
- RoleARN string
- Err error
-}
-
-// Unwrap returns the underlying error that caused the failure.
-func (e SharedConfigAssumeRoleError) Unwrap() error {
- return e.Err
-}
-
-func (e SharedConfigAssumeRoleError) Error() string {
- return fmt.Sprintf("failed to load assume role %s, of profile %s, %v",
- e.RoleARN, e.Profile, e.Err)
-}
-
-// CredentialRequiresARNError provides the error for shared config credentials
-// that are incorrectly configured in the shared config or credentials file.
-type CredentialRequiresARNError struct {
- // type of credentials that were configured.
- Type string
-
- // Profile name the credentials were in.
- Profile string
-}
-
-// Error satisfies the error interface.
-func (e CredentialRequiresARNError) Error() string {
- return fmt.Sprintf(
- "credential type %s requires role_arn, profile %s",
- e.Type, e.Profile,
- )
-}
-
-func oneOrNone(bs ...bool) bool {
- var count int
-
- for _, b := range bs {
- if b {
- count++
- if count > 1 {
- return false
- }
- }
- }
-
- return true
-}
-
-// updateString will only update the dst with the value in the section key, key
-// is present in the section.
-func updateString(dst *string, section ini.Section, key string) {
- if !section.Has(key) {
- return
- }
- *dst = section.String(key)
-}
-
-// updateInt will only update the dst with the value in the section key, key
-// is present in the section.
-//
-// Down casts the INI integer value from a int64 to an int, which could be
-// different bit size depending on platform.
-func updateInt(dst *int, section ini.Section, key string) error {
- if !section.Has(key) {
- return nil
- }
-
- v, ok := section.Int(key)
- if !ok {
- return fmt.Errorf("invalid value %s=%s, expect integer", key, section.String(key))
- }
-
- *dst = int(v)
- return nil
-}
-
-// updateBool will only update the dst with the value in the section key, key
-// is present in the section.
-func updateBool(dst *bool, section ini.Section, key string) {
- if !section.Has(key) {
- return
- }
-
- // retains pre-#2276 behavior where non-bool value would resolve to false
- v, _ := section.Bool(key)
- *dst = v
-}
-
-// updateBoolPtr will only update the dst with the value in the section key,
-// key is present in the section.
-func updateBoolPtr(dst **bool, section ini.Section, key string) {
- if !section.Has(key) {
- return
- }
-
- // retains pre-#2276 behavior where non-bool value would resolve to false
- v, _ := section.Bool(key)
- *dst = new(bool)
- **dst = v
-}
-
-// updateEndpointDiscoveryType will only update the dst with the value in the section, if
-// a valid key and corresponding EndpointDiscoveryType is found.
-func updateEndpointDiscoveryType(dst *aws.EndpointDiscoveryEnableState, section ini.Section, key string) {
- if !section.Has(key) {
- return
- }
-
- value := section.String(key)
- if len(value) == 0 {
- return
- }
-
- switch {
- case strings.EqualFold(value, endpointDiscoveryDisabled):
- *dst = aws.EndpointDiscoveryDisabled
- case strings.EqualFold(value, endpointDiscoveryEnabled):
- *dst = aws.EndpointDiscoveryEnabled
- case strings.EqualFold(value, endpointDiscoveryAuto):
- *dst = aws.EndpointDiscoveryAuto
- }
-}
-
-// updateEndpointDiscoveryType will only update the dst with the value in the section, if
-// a valid key and corresponding EndpointDiscoveryType is found.
-func updateUseDualStackEndpoint(dst *aws.DualStackEndpointState, section ini.Section, key string) {
- if !section.Has(key) {
- return
- }
-
- // retains pre-#2276 behavior where non-bool value would resolve to false
- if v, _ := section.Bool(key); v {
- *dst = aws.DualStackEndpointStateEnabled
- } else {
- *dst = aws.DualStackEndpointStateDisabled
- }
-
- return
-}
-
-// updateEndpointDiscoveryType will only update the dst with the value in the section, if
-// a valid key and corresponding EndpointDiscoveryType is found.
-func updateUseFIPSEndpoint(dst *aws.FIPSEndpointState, section ini.Section, key string) {
- if !section.Has(key) {
- return
- }
-
- // retains pre-#2276 behavior where non-bool value would resolve to false
- if v, _ := section.Bool(key); v {
- *dst = aws.FIPSEndpointStateEnabled
- } else {
- *dst = aws.FIPSEndpointStateDisabled
- }
-
- return
-}
-
-func (c SharedConfig) getAuthSchemePreference() ([]string, bool) {
- if len(c.AuthSchemePreference) > 0 {
- return c.AuthSchemePreference, true
- }
- return nil, false
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/credentials/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go-v2/credentials/CHANGELOG.md
deleted file mode 100644
index 015f24d3b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/credentials/CHANGELOG.md
+++ /dev/null
@@ -1,843 +0,0 @@
-# v1.18.16 (2025-09-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.15 (2025-09-26)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.14 (2025-09-23)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.13 (2025-09-22)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.12 (2025-09-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.11 (2025-09-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.10 (2025-08-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.9 (2025-08-28)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.8 (2025-08-27)
-
-* **Dependency Update**: Update to smithy-go v1.23.0.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.7 (2025-08-26)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.6 (2025-08-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.5 (2025-08-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.4 (2025-08-11)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.3 (2025-08-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.2 (2025-07-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.1 (2025-07-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.0 (2025-07-28)
-
-* **Feature**: Add support for HTTP interceptors.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.71 (2025-07-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.70 (2025-06-17)
-
-* **Dependency Update**: Update to smithy-go v1.22.4.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.69 (2025-06-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.68 (2025-06-06)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.67 (2025-04-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.66 (2025-04-03)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.65 (2025-03-27)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.64 (2025-03-25)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.63 (2025-03-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.62 (2025-03-04.2)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.61 (2025-02-27)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.60 (2025-02-18)
-
-* **Bug Fix**: Bump go version to 1.22
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.59 (2025-02-05)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.58 (2025-02-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.57 (2025-01-31)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.56 (2025-01-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.55 (2025-01-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-* **Dependency Update**: Upgrade to smithy-go v1.22.2.
-
-# v1.17.54 (2025-01-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.53 (2025-01-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.52 (2025-01-14)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.51 (2025-01-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.50 (2025-01-09)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.49 (2025-01-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.48 (2024-12-19)
-
-* **Bug Fix**: Fix improper use of printf-style functions.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.47 (2024-12-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.46 (2024-11-18)
-
-* **Dependency Update**: Update to smithy-go v1.22.1.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.45 (2024-11-14)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.44 (2024-11-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.43 (2024-11-06)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.42 (2024-10-28)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.41 (2024-10-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.40 (2024-10-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.39 (2024-10-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.38 (2024-10-03)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.37 (2024-09-27)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.36 (2024-09-25)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.35 (2024-09-23)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.34 (2024-09-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.33 (2024-09-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.32 (2024-09-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.31 (2024-09-03)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.30 (2024-08-26)
-
-* **Bug Fix**: Save SSO cached token expiry in UTC to ensure cross-SDK compatibility.
-
-# v1.17.29 (2024-08-22)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.28 (2024-08-15)
-
-* **Dependency Update**: Bump minimum Go version to 1.21.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.27 (2024-07-18)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.26 (2024-07-10.2)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.25 (2024-07-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.24 (2024-07-03)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.23 (2024-06-28)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.22 (2024-06-26)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.21 (2024-06-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.20 (2024-06-18)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.19 (2024-06-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.18 (2024-06-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.17 (2024-06-03)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.16 (2024-05-23)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.15 (2024-05-16)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.14 (2024-05-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.13 (2024-05-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.12 (2024-05-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.11 (2024-04-05)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.10 (2024-03-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.9 (2024-03-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.8 (2024-03-18)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.7 (2024-03-07)
-
-* **Bug Fix**: Remove dependency on go-cmp.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.6 (2024-03-05)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.5 (2024-03-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.4 (2024-02-23)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.3 (2024-02-22)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.2 (2024-02-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.1 (2024-02-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.17.0 (2024-02-13)
-
-* **Feature**: Bump minimum Go version to 1.20 per our language support policy.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.16 (2024-01-18)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.15 (2024-01-16)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.14 (2024-01-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.13 (2023-12-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.12 (2023-12-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.11 (2023-12-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.10 (2023-12-06)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.9 (2023-12-01)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.8 (2023-11-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.7 (2023-11-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.6 (2023-11-28.2)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.5 (2023-11-28)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.4 (2023-11-21)
-
-* **Bug Fix**: Don't expect error responses to have a JSON payload in the endpointcreds provider.
-
-# v1.16.3 (2023-11-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.2 (2023-11-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.1 (2023-11-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.0 (2023-11-14)
-
-* **Feature**: Add support for dynamic auth token from file and EKS container host in absolute/relative URIs in the HTTP credential provider.
-
-# v1.15.2 (2023-11-09)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.15.1 (2023-11-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.15.0 (2023-11-01)
-
-* **Feature**: Adds support for configured endpoints via environment variables and the AWS shared configuration file.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.14.0 (2023-10-31)
-
-* **Feature**: **BREAKING CHANGE**: Bump minimum go version to 1.19 per the revised [go version support policy](https://aws.amazon.com/blogs/developer/aws-sdk-for-go-aligns-with-go-release-policy-on-supported-runtimes/).
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.43 (2023-10-12)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.42 (2023-10-06)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.41 (2023-10-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.40 (2023-09-22)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.39 (2023-09-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.38 (2023-09-18)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.37 (2023-09-05)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.36 (2023-08-31)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.35 (2023-08-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.34 (2023-08-18)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.33 (2023-08-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.32 (2023-08-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.31 (2023-08-01)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.30 (2023-07-31)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.29 (2023-07-28)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.28 (2023-07-25)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.27 (2023-07-13)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.26 (2023-06-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.25 (2023-06-13)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.24 (2023-05-09)
-
-* No change notes available for this release.
-
-# v1.13.23 (2023-05-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.22 (2023-05-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.21 (2023-04-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.20 (2023-04-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.19 (2023-04-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.18 (2023-03-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.17 (2023-03-14)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.16 (2023-03-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.15 (2023-02-22)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.14 (2023-02-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.13 (2023-02-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.12 (2023-02-03)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.11 (2023-02-01)
-
-* No change notes available for this release.
-
-# v1.13.10 (2023-01-25)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.9 (2023-01-23)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.8 (2023-01-05)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.7 (2022-12-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.6 (2022-12-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.5 (2022-12-15)
-
-* **Bug Fix**: Unify logic between shared config and in finding home directory
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.4 (2022-12-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.3 (2022-11-22)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.2 (2022-11-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.1 (2022-11-16)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.0 (2022-11-11)
-
-* **Announcement**: When using the SSOTokenProvider, a previous implementation incorrectly compensated for invalid SSOTokenProvider configurations in the shared profile. This has been fixed via PR #1903 and tracked in issue #1846
-* **Feature**: Adds token refresh support (via SSOTokenProvider) when using the SSOCredentialProvider
-
-# v1.12.24 (2022-11-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.23 (2022-10-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.22 (2022-10-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.21 (2022-09-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.20 (2022-09-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.19 (2022-09-14)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.18 (2022-09-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.17 (2022-08-31)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.16 (2022-08-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.15 (2022-08-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.14 (2022-08-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.13 (2022-08-11)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.12 (2022-08-09)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.11 (2022-08-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.10 (2022-08-01)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.9 (2022-07-11)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.8 (2022-07-05)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.7 (2022-06-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.6 (2022-06-16)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.5 (2022-06-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.4 (2022-05-26)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.3 (2022-05-25)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.2 (2022-05-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.1 (2022-05-16)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.0 (2022-04-25)
-
-* **Feature**: Adds Duration and Policy options that can be used when creating stscreds.WebIdentityRoleProvider credentials provider.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.11.2 (2022-03-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.11.1 (2022-03-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.11.0 (2022-03-23)
-
-* **Feature**: Update `ec2rolecreds` package's `Provider` to implememnt support for CredentialsCache new optional caching strategy interfaces, HandleFailRefreshCredentialsCacheStrategy and AdjustExpiresByCredentialsCacheStrategy.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.10.0 (2022-03-08)
-
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.9.0 (2022-02-24)
-
-* **Feature**: Adds support for `SourceIdentity` to `stscreds.AssumeRoleProvider` [#1588](https://github.com/aws/aws-sdk-go-v2/pull/1588). Fixes [#1575](https://github.com/aws/aws-sdk-go-v2/issues/1575)
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.8.0 (2022-01-14)
-
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.7.0 (2022-01-07)
-
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.6.5 (2021-12-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.6.4 (2021-12-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.6.3 (2021-11-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.6.2 (2021-11-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.6.1 (2021-11-12)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.6.0 (2021-11-06)
-
-* **Feature**: The SDK now supports configuration of FIPS and DualStack endpoints using environment variables, shared configuration, or programmatically.
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.5.0 (2021-10-21)
-
-* **Feature**: Updated to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.4.3 (2021-10-11)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.4.2 (2021-09-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.4.1 (2021-09-10)
-
-* **Documentation**: Fixes the AssumeRoleProvider's documentation for using custom TokenProviders.
-
-# v1.4.0 (2021-08-27)
-
-* **Feature**: Adds support for Tags and TransitiveTagKeys to stscreds.AssumeRoleProvider. Closes https://github.com/aws/aws-sdk-go-v2/issues/723
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.3 (2021-08-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.2 (2021-08-04)
-
-* **Dependency Update**: Updated `github.com/aws/smithy-go` to latest version.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.1 (2021-07-15)
-
-* **Dependency Update**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.0 (2021-06-25)
-
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Bug Fix**: Fixed example usages of aws.CredentialsCache ([#1275](https://github.com/aws/aws-sdk-go-v2/pull/1275))
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.2.1 (2021-05-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.2.0 (2021-05-14)
-
-* **Feature**: Constant has been added to modules to enable runtime version inspection for reporting.
-* **Dependency Update**: Updated to the latest SDK module versions
-
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/credentials/LICENSE.txt b/vendor/github.com/aws/aws-sdk-go-v2/credentials/LICENSE.txt
deleted file mode 100644
index d64569567..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/credentials/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/credentials/doc.go b/vendor/github.com/aws/aws-sdk-go-v2/credentials/doc.go
deleted file mode 100644
index f6e2873ab..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/credentials/doc.go
+++ /dev/null
@@ -1,4 +0,0 @@
-/*
-Package credentials provides types for retrieving credentials from credentials sources.
-*/
-package credentials
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/credentials/ec2rolecreds/doc.go b/vendor/github.com/aws/aws-sdk-go-v2/credentials/ec2rolecreds/doc.go
deleted file mode 100644
index 6ed71b42b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/credentials/ec2rolecreds/doc.go
+++ /dev/null
@@ -1,58 +0,0 @@
-// Package ec2rolecreds provides the credentials provider implementation for
-// retrieving AWS credentials from Amazon EC2 Instance Roles via Amazon EC2 IMDS.
-//
-// # Concurrency and caching
-//
-// The Provider is not safe to be used concurrently, and does not provide any
-// caching of credentials retrieved. You should wrap the Provider with a
-// `aws.CredentialsCache` to provide concurrency safety, and caching of
-// credentials.
-//
-// # Loading credentials with the SDK's AWS Config
-//
-// The EC2 Instance role credentials provider will automatically be the resolved
-// credential provider in the credential chain if no other credential provider is
-// resolved first.
-//
-// To explicitly instruct the SDK's credentials resolving to use the EC2 Instance
-// role for credentials, you specify a `credentials_source` property in the config
-// profile the SDK will load.
-//
-// [default]
-// credential_source = Ec2InstanceMetadata
-//
-// # Loading credentials with the Provider directly
-//
-// Another way to use the EC2 Instance role credentials provider is to create it
-// directly and assign it as the credentials provider for an API client.
-//
-// The following example creates a credentials provider for a command, and wraps
-// it with the CredentialsCache before assigning the provider to the Amazon S3 API
-// client's Credentials option.
-//
-// provider := imds.New(imds.Options{})
-//
-// // Create the service client value configured for credentials.
-// svc := s3.New(s3.Options{
-// Credentials: aws.NewCredentialsCache(provider),
-// })
-//
-// If you need more control, you can set the configuration options on the
-// credentials provider using the imds.Options type to configure the EC2 IMDS
-// API Client and ExpiryWindow of the retrieved credentials.
-//
-// provider := imds.New(imds.Options{
-// // See imds.Options type's documentation for more options available.
-// Client: imds.New(Options{
-// HTTPClient: customHTTPClient,
-// }),
-//
-// // Modify how soon credentials expire prior to their original expiry time.
-// ExpiryWindow: 5 * time.Minute,
-// })
-//
-// # EC2 IMDS API Client
-//
-// See the github.com/aws/aws-sdk-go-v2/feature/ec2/imds module for more details on
-// configuring the client, and options available.
-package ec2rolecreds
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/credentials/ec2rolecreds/provider.go b/vendor/github.com/aws/aws-sdk-go-v2/credentials/ec2rolecreds/provider.go
deleted file mode 100644
index a95e6c8bd..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/credentials/ec2rolecreds/provider.go
+++ /dev/null
@@ -1,241 +0,0 @@
-package ec2rolecreds
-
-import (
- "bufio"
- "context"
- "encoding/json"
- "fmt"
- "math"
- "path"
- "strings"
- "time"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- "github.com/aws/aws-sdk-go-v2/feature/ec2/imds"
- sdkrand "github.com/aws/aws-sdk-go-v2/internal/rand"
- "github.com/aws/aws-sdk-go-v2/internal/sdk"
- "github.com/aws/smithy-go"
- "github.com/aws/smithy-go/logging"
- "github.com/aws/smithy-go/middleware"
-)
-
-// ProviderName provides a name of EC2Role provider
-const ProviderName = "EC2RoleProvider"
-
-// GetMetadataAPIClient provides the interface for an EC2 IMDS API client for the
-// GetMetadata operation.
-type GetMetadataAPIClient interface {
- GetMetadata(context.Context, *imds.GetMetadataInput, ...func(*imds.Options)) (*imds.GetMetadataOutput, error)
-}
-
-// A Provider retrieves credentials from the EC2 service, and keeps track if
-// those credentials are expired.
-//
-// The New function must be used to create the with a custom EC2 IMDS client.
-//
-// p := &ec2rolecreds.New(func(o *ec2rolecreds.Options{
-// o.Client = imds.New(imds.Options{/* custom options */})
-// })
-type Provider struct {
- options Options
-}
-
-// Options is a list of user settable options for setting the behavior of the Provider.
-type Options struct {
- // The API client that will be used by the provider to make GetMetadata API
- // calls to EC2 IMDS.
- //
- // If nil, the provider will default to the EC2 IMDS client.
- Client GetMetadataAPIClient
-
- // The chain of providers that was used to create this provider
- // These values are for reporting purposes and are not meant to be set up directly
- CredentialSources []aws.CredentialSource
-}
-
-// New returns an initialized Provider value configured to retrieve
-// credentials from EC2 Instance Metadata service.
-func New(optFns ...func(*Options)) *Provider {
- options := Options{}
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.Client == nil {
- options.Client = imds.New(imds.Options{})
- }
-
- return &Provider{
- options: options,
- }
-}
-
-// Retrieve retrieves credentials from the EC2 service. Error will be returned
-// if the request fails, or unable to extract the desired credentials.
-func (p *Provider) Retrieve(ctx context.Context) (aws.Credentials, error) {
- credsList, err := requestCredList(ctx, p.options.Client)
- if err != nil {
- return aws.Credentials{Source: ProviderName}, err
- }
-
- if len(credsList) == 0 {
- return aws.Credentials{Source: ProviderName},
- fmt.Errorf("unexpected empty EC2 IMDS role list")
- }
- credsName := credsList[0]
-
- roleCreds, err := requestCred(ctx, p.options.Client, credsName)
- if err != nil {
- return aws.Credentials{Source: ProviderName}, err
- }
-
- creds := aws.Credentials{
- AccessKeyID: roleCreds.AccessKeyID,
- SecretAccessKey: roleCreds.SecretAccessKey,
- SessionToken: roleCreds.Token,
- Source: ProviderName,
-
- CanExpire: true,
- Expires: roleCreds.Expiration,
- }
-
- // Cap role credentials Expires to 1 hour so they can be refreshed more
- // often. Jitter will be applied credentials cache if being used.
- if anHour := sdk.NowTime().Add(1 * time.Hour); creds.Expires.After(anHour) {
- creds.Expires = anHour
- }
-
- return creds, nil
-}
-
-// HandleFailToRefresh will extend the credentials Expires time if it it is
-// expired. If the credentials will not expire within the minimum time, they
-// will be returned.
-//
-// If the credentials cannot expire, the original error will be returned.
-func (p *Provider) HandleFailToRefresh(ctx context.Context, prevCreds aws.Credentials, err error) (
- aws.Credentials, error,
-) {
- if !prevCreds.CanExpire {
- return aws.Credentials{}, err
- }
-
- if prevCreds.Expires.After(sdk.NowTime().Add(5 * time.Minute)) {
- return prevCreds, nil
- }
-
- newCreds := prevCreds
- randFloat64, err := sdkrand.CryptoRandFloat64()
- if err != nil {
- return aws.Credentials{}, fmt.Errorf("failed to get random float, %w", err)
- }
-
- // Random distribution of [5,15) minutes.
- expireOffset := time.Duration(randFloat64*float64(10*time.Minute)) + 5*time.Minute
- newCreds.Expires = sdk.NowTime().Add(expireOffset)
-
- logger := middleware.GetLogger(ctx)
- logger.Logf(logging.Warn, "Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted again in %v minutes.", math.Floor(expireOffset.Minutes()))
-
- return newCreds, nil
-}
-
-// AdjustExpiresBy will adds the passed in duration to the passed in
-// credential's Expires time, unless the time until Expires is less than 15
-// minutes. Returns the credentials, even if not updated.
-func (p *Provider) AdjustExpiresBy(creds aws.Credentials, dur time.Duration) (
- aws.Credentials, error,
-) {
- if !creds.CanExpire {
- return creds, nil
- }
- if creds.Expires.Before(sdk.NowTime().Add(15 * time.Minute)) {
- return creds, nil
- }
-
- creds.Expires = creds.Expires.Add(dur)
- return creds, nil
-}
-
-// ec2RoleCredRespBody provides the shape for unmarshaling credential
-// request responses.
-type ec2RoleCredRespBody struct {
- // Success State
- Expiration time.Time
- AccessKeyID string
- SecretAccessKey string
- Token string
-
- // Error state
- Code string
- Message string
-}
-
-const iamSecurityCredsPath = "/iam/security-credentials/"
-
-// requestCredList requests a list of credentials from the EC2 service. If
-// there are no credentials, or there is an error making or receiving the
-// request
-func requestCredList(ctx context.Context, client GetMetadataAPIClient) ([]string, error) {
- resp, err := client.GetMetadata(ctx, &imds.GetMetadataInput{
- Path: iamSecurityCredsPath,
- })
- if err != nil {
- return nil, fmt.Errorf("no EC2 IMDS role found, %w", err)
- }
- defer resp.Content.Close()
-
- credsList := []string{}
- s := bufio.NewScanner(resp.Content)
- for s.Scan() {
- credsList = append(credsList, s.Text())
- }
-
- if err := s.Err(); err != nil {
- return nil, fmt.Errorf("failed to read EC2 IMDS role, %w", err)
- }
-
- return credsList, nil
-}
-
-// requestCred requests the credentials for a specific credentials from the EC2 service.
-//
-// If the credentials cannot be found, or there is an error reading the response
-// and error will be returned.
-func requestCred(ctx context.Context, client GetMetadataAPIClient, credsName string) (ec2RoleCredRespBody, error) {
- resp, err := client.GetMetadata(ctx, &imds.GetMetadataInput{
- Path: path.Join(iamSecurityCredsPath, credsName),
- })
- if err != nil {
- return ec2RoleCredRespBody{},
- fmt.Errorf("failed to get %s EC2 IMDS role credentials, %w",
- credsName, err)
- }
- defer resp.Content.Close()
-
- var respCreds ec2RoleCredRespBody
- if err := json.NewDecoder(resp.Content).Decode(&respCreds); err != nil {
- return ec2RoleCredRespBody{},
- fmt.Errorf("failed to decode %s EC2 IMDS role credentials, %w",
- credsName, err)
- }
-
- if !strings.EqualFold(respCreds.Code, "Success") {
- // If an error code was returned something failed requesting the role.
- return ec2RoleCredRespBody{},
- fmt.Errorf("failed to get %s EC2 IMDS role credentials, %w",
- credsName,
- &smithy.GenericAPIError{Code: respCreds.Code, Message: respCreds.Message})
- }
-
- return respCreds, nil
-}
-
-// ProviderSources returns the credential chain that was used to construct this provider
-func (p *Provider) ProviderSources() []aws.CredentialSource {
- if p.options.CredentialSources == nil {
- return []aws.CredentialSource{aws.CredentialSourceIMDS}
- } // If no source has been set, assume this is used directly which means just call to assume role
- return p.options.CredentialSources
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client/auth.go b/vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client/auth.go
deleted file mode 100644
index c3f5dadce..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client/auth.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package client
-
-import (
- "context"
- "github.com/aws/smithy-go/middleware"
-)
-
-type getIdentityMiddleware struct {
- options Options
-}
-
-func (*getIdentityMiddleware) ID() string {
- return "GetIdentity"
-}
-
-func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
- out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
-) {
- return next.HandleFinalize(ctx, in)
-}
-
-type signRequestMiddleware struct {
-}
-
-func (*signRequestMiddleware) ID() string {
- return "Signing"
-}
-
-func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
- out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
-) {
- return next.HandleFinalize(ctx, in)
-}
-
-type resolveAuthSchemeMiddleware struct {
- operation string
- options Options
-}
-
-func (*resolveAuthSchemeMiddleware) ID() string {
- return "ResolveAuthScheme"
-}
-
-func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
- out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
-) {
- return next.HandleFinalize(ctx, in)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client/client.go b/vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client/client.go
deleted file mode 100644
index dc291c97c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client/client.go
+++ /dev/null
@@ -1,165 +0,0 @@
-package client
-
-import (
- "context"
- "fmt"
- "net/http"
- "time"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/aws/retry"
- awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http"
- "github.com/aws/smithy-go"
- smithymiddleware "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// ServiceID is the client identifer
-const ServiceID = "endpoint-credentials"
-
-// HTTPClient is a client for sending HTTP requests
-type HTTPClient interface {
- Do(*http.Request) (*http.Response, error)
-}
-
-// Options is the endpoint client configurable options
-type Options struct {
- // The endpoint to retrieve credentials from
- Endpoint string
-
- // The HTTP client to invoke API calls with. Defaults to client's default HTTP
- // implementation if nil.
- HTTPClient HTTPClient
-
- // Retryer guides how HTTP requests should be retried in case of recoverable
- // failures. When nil the API client will use a default retryer.
- Retryer aws.Retryer
-
- // Set of options to modify how the credentials operation is invoked.
- APIOptions []func(*smithymiddleware.Stack) error
-}
-
-// Copy creates a copy of the API options.
-func (o Options) Copy() Options {
- to := o
- to.APIOptions = make([]func(*smithymiddleware.Stack) error, len(o.APIOptions))
- copy(to.APIOptions, o.APIOptions)
- return to
-}
-
-// Client is an client for retrieving AWS credentials from an endpoint
-type Client struct {
- options Options
-}
-
-// New constructs a new Client from the given options
-func New(options Options, optFns ...func(*Options)) *Client {
- options = options.Copy()
-
- if options.HTTPClient == nil {
- options.HTTPClient = awshttp.NewBuildableClient()
- }
-
- if options.Retryer == nil {
- // Amazon-owned implementations of this endpoint are known to sometimes
- // return plaintext responses (i.e. no Code) like normal, add a few
- // additional status codes
- options.Retryer = retry.NewStandard(func(o *retry.StandardOptions) {
- o.Retryables = append(o.Retryables, retry.RetryableHTTPStatusCode{
- Codes: map[int]struct{}{
- http.StatusTooManyRequests: {},
- },
- })
- })
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- client := &Client{
- options: options,
- }
-
- return client
-}
-
-// GetCredentialsInput is the input to send with the endpoint service to receive credentials.
-type GetCredentialsInput struct {
- AuthorizationToken string
-}
-
-// GetCredentials retrieves credentials from credential endpoint
-func (c *Client) GetCredentials(ctx context.Context, params *GetCredentialsInput, optFns ...func(*Options)) (*GetCredentialsOutput, error) {
- stack := smithymiddleware.NewStack("GetCredentials", smithyhttp.NewStackRequest)
- options := c.options.Copy()
- for _, fn := range optFns {
- fn(&options)
- }
-
- stack.Serialize.Add(&serializeOpGetCredential{}, smithymiddleware.After)
- stack.Build.Add(&buildEndpoint{Endpoint: options.Endpoint}, smithymiddleware.After)
- stack.Deserialize.Add(&deserializeOpGetCredential{}, smithymiddleware.After)
- addProtocolFinalizerMiddlewares(stack, options, "GetCredentials")
- retry.AddRetryMiddlewares(stack, retry.AddRetryMiddlewaresOptions{Retryer: options.Retryer})
- middleware.AddSDKAgentKey(middleware.FeatureMetadata, ServiceID)
- smithyhttp.AddErrorCloseResponseBodyMiddleware(stack)
- smithyhttp.AddCloseResponseBodyMiddleware(stack)
-
- for _, fn := range options.APIOptions {
- if err := fn(stack); err != nil {
- return nil, err
- }
- }
-
- handler := smithymiddleware.DecorateHandler(smithyhttp.NewClientHandler(options.HTTPClient), stack)
- result, _, err := handler.Handle(ctx, params)
- if err != nil {
- return nil, err
- }
-
- return result.(*GetCredentialsOutput), err
-}
-
-// GetCredentialsOutput is the response from the credential endpoint
-type GetCredentialsOutput struct {
- Expiration *time.Time
- AccessKeyID string
- SecretAccessKey string
- Token string
- AccountID string
-}
-
-// EndpointError is an error returned from the endpoint service
-type EndpointError struct {
- Code string `json:"code"`
- Message string `json:"message"`
- Fault smithy.ErrorFault `json:"-"`
- statusCode int `json:"-"`
-}
-
-// Error is the error mesage string
-func (e *EndpointError) Error() string {
- return fmt.Sprintf("%s: %s", e.Code, e.Message)
-}
-
-// ErrorCode is the error code returned by the endpoint
-func (e *EndpointError) ErrorCode() string {
- return e.Code
-}
-
-// ErrorMessage is the error message returned by the endpoint
-func (e *EndpointError) ErrorMessage() string {
- return e.Message
-}
-
-// ErrorFault indicates error fault classification
-func (e *EndpointError) ErrorFault() smithy.ErrorFault {
- return e.Fault
-}
-
-// HTTPStatusCode implements retry.HTTPStatusCode.
-func (e *EndpointError) HTTPStatusCode() int {
- return e.statusCode
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client/endpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client/endpoints.go
deleted file mode 100644
index 748ee6724..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client/endpoints.go
+++ /dev/null
@@ -1,20 +0,0 @@
-package client
-
-import (
- "context"
- "github.com/aws/smithy-go/middleware"
-)
-
-type resolveEndpointV2Middleware struct {
- options Options
-}
-
-func (*resolveEndpointV2Middleware) ID() string {
- return "ResolveEndpointV2"
-}
-
-func (m *resolveEndpointV2Middleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
- out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
-) {
- return next.HandleFinalize(ctx, in)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client/middleware.go b/vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client/middleware.go
deleted file mode 100644
index f2820d20e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client/middleware.go
+++ /dev/null
@@ -1,164 +0,0 @@
-package client
-
-import (
- "context"
- "encoding/json"
- "fmt"
- "io"
- "net/url"
-
- "github.com/aws/smithy-go"
- smithymiddleware "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-type buildEndpoint struct {
- Endpoint string
-}
-
-func (b *buildEndpoint) ID() string {
- return "BuildEndpoint"
-}
-
-func (b *buildEndpoint) HandleBuild(ctx context.Context, in smithymiddleware.BuildInput, next smithymiddleware.BuildHandler) (
- out smithymiddleware.BuildOutput, metadata smithymiddleware.Metadata, err error,
-) {
- request, ok := in.Request.(*smithyhttp.Request)
- if !ok {
- return out, metadata, fmt.Errorf("unknown transport, %T", in.Request)
- }
-
- if len(b.Endpoint) == 0 {
- return out, metadata, fmt.Errorf("endpoint not provided")
- }
-
- parsed, err := url.Parse(b.Endpoint)
- if err != nil {
- return out, metadata, fmt.Errorf("failed to parse endpoint, %w", err)
- }
-
- request.URL = parsed
-
- return next.HandleBuild(ctx, in)
-}
-
-type serializeOpGetCredential struct{}
-
-func (s *serializeOpGetCredential) ID() string {
- return "OperationSerializer"
-}
-
-func (s *serializeOpGetCredential) HandleSerialize(ctx context.Context, in smithymiddleware.SerializeInput, next smithymiddleware.SerializeHandler) (
- out smithymiddleware.SerializeOutput, metadata smithymiddleware.Metadata, err error,
-) {
- request, ok := in.Request.(*smithyhttp.Request)
- if !ok {
- return out, metadata, fmt.Errorf("unknown transport type, %T", in.Request)
- }
-
- params, ok := in.Parameters.(*GetCredentialsInput)
- if !ok {
- return out, metadata, fmt.Errorf("unknown input parameters, %T", in.Parameters)
- }
-
- const acceptHeader = "Accept"
- request.Header[acceptHeader] = append(request.Header[acceptHeader][:0], "application/json")
-
- if len(params.AuthorizationToken) > 0 {
- const authHeader = "Authorization"
- request.Header[authHeader] = append(request.Header[authHeader][:0], params.AuthorizationToken)
- }
-
- return next.HandleSerialize(ctx, in)
-}
-
-type deserializeOpGetCredential struct{}
-
-func (d *deserializeOpGetCredential) ID() string {
- return "OperationDeserializer"
-}
-
-func (d *deserializeOpGetCredential) HandleDeserialize(ctx context.Context, in smithymiddleware.DeserializeInput, next smithymiddleware.DeserializeHandler) (
- out smithymiddleware.DeserializeOutput, metadata smithymiddleware.Metadata, err error,
-) {
- out, metadata, err = next.HandleDeserialize(ctx, in)
- if err != nil {
- return out, metadata, err
- }
-
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, deserializeError(response)
- }
-
- var shape *GetCredentialsOutput
- if err = json.NewDecoder(response.Body).Decode(&shape); err != nil {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to deserialize json response, %w", err)}
- }
-
- out.Result = shape
- return out, metadata, err
-}
-
-func deserializeError(response *smithyhttp.Response) error {
- // we could be talking to anything, json isn't guaranteed
- // see https://github.com/aws/aws-sdk-go-v2/issues/2316
- if response.Header.Get("Content-Type") == "application/json" {
- return deserializeJSONError(response)
- }
-
- msg, err := io.ReadAll(response.Body)
- if err != nil {
- return &smithy.DeserializationError{
- Err: fmt.Errorf("read response, %w", err),
- }
- }
-
- return &EndpointError{
- // no sensible value for Code
- Message: string(msg),
- Fault: stof(response.StatusCode),
- statusCode: response.StatusCode,
- }
-}
-
-func deserializeJSONError(response *smithyhttp.Response) error {
- var errShape *EndpointError
- if err := json.NewDecoder(response.Body).Decode(&errShape); err != nil {
- return &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode error message, %w", err),
- }
- }
-
- errShape.Fault = stof(response.StatusCode)
- errShape.statusCode = response.StatusCode
- return errShape
-}
-
-// maps HTTP status code to smithy ErrorFault
-func stof(code int) smithy.ErrorFault {
- if code >= 500 {
- return smithy.FaultServer
- }
- return smithy.FaultClient
-}
-
-func addProtocolFinalizerMiddlewares(stack *smithymiddleware.Stack, options Options, operation string) error {
- if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, smithymiddleware.Before); err != nil {
- return fmt.Errorf("add ResolveAuthScheme: %w", err)
- }
- if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", smithymiddleware.After); err != nil {
- return fmt.Errorf("add GetIdentity: %w", err)
- }
- if err := stack.Finalize.Insert(&resolveEndpointV2Middleware{options: options}, "GetIdentity", smithymiddleware.After); err != nil {
- return fmt.Errorf("add ResolveEndpointV2: %w", err)
- }
- if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", smithymiddleware.After); err != nil {
- return fmt.Errorf("add Signing: %w", err)
- }
- return nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/provider.go b/vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/provider.go
deleted file mode 100644
index c8ac6d9ff..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/provider.go
+++ /dev/null
@@ -1,207 +0,0 @@
-// Package endpointcreds provides support for retrieving credentials from an
-// arbitrary HTTP endpoint.
-//
-// The credentials endpoint Provider can receive both static and refreshable
-// credentials that will expire. Credentials are static when an "Expiration"
-// value is not provided in the endpoint's response.
-//
-// Static credentials will never expire once they have been retrieved. The format
-// of the static credentials response:
-//
-// {
-// "AccessKeyId" : "MUA...",
-// "SecretAccessKey" : "/7PC5om....",
-// }
-//
-// Refreshable credentials will expire within the "ExpiryWindow" of the Expiration
-// value in the response. The format of the refreshable credentials response:
-//
-// {
-// "AccessKeyId" : "MUA...",
-// "SecretAccessKey" : "/7PC5om....",
-// "Token" : "AQoDY....=",
-// "Expiration" : "2016-02-25T06:03:31Z"
-// }
-//
-// Errors should be returned in the following format and only returned with 400
-// or 500 HTTP status codes.
-//
-// {
-// "code": "ErrorCode",
-// "message": "Helpful error message."
-// }
-package endpointcreds
-
-import (
- "context"
- "fmt"
- "net/http"
- "strings"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- "github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client"
- "github.com/aws/smithy-go/middleware"
-)
-
-// ProviderName is the name of the credentials provider.
-const ProviderName = `CredentialsEndpointProvider`
-
-type getCredentialsAPIClient interface {
- GetCredentials(context.Context, *client.GetCredentialsInput, ...func(*client.Options)) (*client.GetCredentialsOutput, error)
-}
-
-// Provider satisfies the aws.CredentialsProvider interface, and is a client to
-// retrieve credentials from an arbitrary endpoint.
-type Provider struct {
- // The AWS Client to make HTTP requests to the endpoint with. The endpoint
- // the request will be made to is provided by the aws.Config's
- // EndpointResolver.
- client getCredentialsAPIClient
-
- options Options
-}
-
-// HTTPClient is a client for sending HTTP requests
-type HTTPClient interface {
- Do(*http.Request) (*http.Response, error)
-}
-
-// Options is structure of configurable options for Provider
-type Options struct {
- // Endpoint to retrieve credentials from. Required
- Endpoint string
-
- // HTTPClient to handle sending HTTP requests to the target endpoint.
- HTTPClient HTTPClient
-
- // Set of options to modify how the credentials operation is invoked.
- APIOptions []func(*middleware.Stack) error
-
- // The Retryer to be used for determining whether a failed requested should be retried
- Retryer aws.Retryer
-
- // Optional authorization token value if set will be used as the value of
- // the Authorization header of the endpoint credential request.
- //
- // When constructed from environment, the provider will use the value of
- // AWS_CONTAINER_AUTHORIZATION_TOKEN environment variable as the token
- //
- // Will be overridden if AuthorizationTokenProvider is configured
- AuthorizationToken string
-
- // Optional auth provider func to dynamically load the auth token from a file
- // everytime a credential is retrieved
- //
- // When constructed from environment, the provider will read and use the content
- // of the file pointed to by AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE environment variable
- // as the auth token everytime credentials are retrieved
- //
- // Will override AuthorizationToken if configured
- AuthorizationTokenProvider AuthTokenProvider
-
- // The chain of providers that was used to create this provider
- // These values are for reporting purposes and are not meant to be set up directly
- CredentialSources []aws.CredentialSource
-}
-
-// AuthTokenProvider defines an interface to dynamically load a value to be passed
-// for the Authorization header of a credentials request.
-type AuthTokenProvider interface {
- GetToken() (string, error)
-}
-
-// TokenProviderFunc is a func type implementing AuthTokenProvider interface
-// and enables customizing token provider behavior
-type TokenProviderFunc func() (string, error)
-
-// GetToken func retrieves auth token according to TokenProviderFunc implementation
-func (p TokenProviderFunc) GetToken() (string, error) {
- return p()
-}
-
-// New returns a credentials Provider for retrieving AWS credentials
-// from arbitrary endpoint.
-func New(endpoint string, optFns ...func(*Options)) *Provider {
- o := Options{
- Endpoint: endpoint,
- }
-
- for _, fn := range optFns {
- fn(&o)
- }
-
- p := &Provider{
- client: client.New(client.Options{
- HTTPClient: o.HTTPClient,
- Endpoint: o.Endpoint,
- APIOptions: o.APIOptions,
- Retryer: o.Retryer,
- }),
- options: o,
- }
-
- return p
-}
-
-// Retrieve will attempt to request the credentials from the endpoint the Provider
-// was configured for. And error will be returned if the retrieval fails.
-func (p *Provider) Retrieve(ctx context.Context) (aws.Credentials, error) {
- resp, err := p.getCredentials(ctx)
- if err != nil {
- return aws.Credentials{}, fmt.Errorf("failed to load credentials, %w", err)
- }
-
- creds := aws.Credentials{
- AccessKeyID: resp.AccessKeyID,
- SecretAccessKey: resp.SecretAccessKey,
- SessionToken: resp.Token,
- Source: ProviderName,
- AccountID: resp.AccountID,
- }
-
- if resp.Expiration != nil {
- creds.CanExpire = true
- creds.Expires = *resp.Expiration
- }
-
- return creds, nil
-}
-
-func (p *Provider) getCredentials(ctx context.Context) (*client.GetCredentialsOutput, error) {
- authToken, err := p.resolveAuthToken()
- if err != nil {
- return nil, fmt.Errorf("resolve auth token: %v", err)
- }
-
- return p.client.GetCredentials(ctx, &client.GetCredentialsInput{
- AuthorizationToken: authToken,
- })
-}
-
-func (p *Provider) resolveAuthToken() (string, error) {
- authToken := p.options.AuthorizationToken
-
- var err error
- if p.options.AuthorizationTokenProvider != nil {
- authToken, err = p.options.AuthorizationTokenProvider.GetToken()
- if err != nil {
- return "", err
- }
- }
-
- if strings.ContainsAny(authToken, "\r\n") {
- return "", fmt.Errorf("authorization token contains invalid newline sequence")
- }
-
- return authToken, nil
-}
-
-var _ aws.CredentialProviderSource = (*Provider)(nil)
-
-// ProviderSources returns the credential chain that was used to construct this provider
-func (p *Provider) ProviderSources() []aws.CredentialSource {
- if p.options.CredentialSources == nil {
- return []aws.CredentialSource{aws.CredentialSourceHTTP}
- }
- return p.options.CredentialSources
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/credentials/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/credentials/go_module_metadata.go
deleted file mode 100644
index 03357b760..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/credentials/go_module_metadata.go
+++ /dev/null
@@ -1,6 +0,0 @@
-// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
-
-package credentials
-
-// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.18.16"
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/credentials/processcreds/doc.go b/vendor/github.com/aws/aws-sdk-go-v2/credentials/processcreds/doc.go
deleted file mode 100644
index a3137b8fa..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/credentials/processcreds/doc.go
+++ /dev/null
@@ -1,92 +0,0 @@
-// Package processcreds is a credentials provider to retrieve credentials from a
-// external CLI invoked process.
-//
-// WARNING: The following describes a method of sourcing credentials from an external
-// process. This can potentially be dangerous, so proceed with caution. Other
-// credential providers should be preferred if at all possible. If using this
-// option, you should make sure that the config file is as locked down as possible
-// using security best practices for your operating system.
-//
-// # Concurrency and caching
-//
-// The Provider is not safe to be used concurrently, and does not provide any
-// caching of credentials retrieved. You should wrap the Provider with a
-// `aws.CredentialsCache` to provide concurrency safety, and caching of
-// credentials.
-//
-// # Loading credentials with the SDKs AWS Config
-//
-// You can use credentials from a AWS shared config `credential_process` in a
-// variety of ways.
-//
-// One way is to setup your shared config file, located in the default
-// location, with the `credential_process` key and the command you want to be
-// called. You also need to set the AWS_SDK_LOAD_CONFIG environment variable
-// (e.g., `export AWS_SDK_LOAD_CONFIG=1`) to use the shared config file.
-//
-// [default]
-// credential_process = /command/to/call
-//
-// Loading configuration using external will use the credential process to
-// retrieve credentials. NOTE: If there are credentials in the profile you are
-// using, the credential process will not be used.
-//
-// // Initialize a session to load credentials.
-// cfg, _ := config.LoadDefaultConfig(context.TODO())
-//
-// // Create S3 service client to use the credentials.
-// svc := s3.NewFromConfig(cfg)
-//
-// # Loading credentials with the Provider directly
-//
-// Another way to use the credentials process provider is by using the
-// `NewProvider` constructor to create the provider and providing a it with a
-// command to be executed to retrieve credentials.
-//
-// The following example creates a credentials provider for a command, and wraps
-// it with the CredentialsCache before assigning the provider to the Amazon S3 API
-// client's Credentials option.
-//
-// // Create credentials using the Provider.
-// provider := processcreds.NewProvider("/path/to/command")
-//
-// // Create the service client value configured for credentials.
-// svc := s3.New(s3.Options{
-// Credentials: aws.NewCredentialsCache(provider),
-// })
-//
-// If you need more control, you can set any configurable options in the
-// credentials using one or more option functions.
-//
-// provider := processcreds.NewProvider("/path/to/command",
-// func(o *processcreds.Options) {
-// // Override the provider's default timeout
-// o.Timeout = 2 * time.Minute
-// })
-//
-// You can also use your own `exec.Cmd` value by satisfying a value that satisfies
-// the `NewCommandBuilder` interface and use the `NewProviderCommand` constructor.
-//
-// // Create an exec.Cmd
-// cmdBuilder := processcreds.NewCommandBuilderFunc(
-// func(ctx context.Context) (*exec.Cmd, error) {
-// cmd := exec.CommandContext(ctx,
-// "customCLICommand",
-// "-a", "argument",
-// )
-// cmd.Env = []string{
-// "ENV_VAR_FOO=value",
-// "ENV_VAR_BAR=other_value",
-// }
-//
-// return cmd, nil
-// },
-// )
-//
-// // Create credentials using your exec.Cmd and custom timeout
-// provider := processcreds.NewProviderCommand(cmdBuilder,
-// func(opt *processcreds.Provider) {
-// // optionally override the provider's default timeout
-// opt.Timeout = 1 * time.Second
-// })
-package processcreds
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/credentials/processcreds/provider.go b/vendor/github.com/aws/aws-sdk-go-v2/credentials/processcreds/provider.go
deleted file mode 100644
index dfc6b2548..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/credentials/processcreds/provider.go
+++ /dev/null
@@ -1,296 +0,0 @@
-package processcreds
-
-import (
- "bytes"
- "context"
- "encoding/json"
- "fmt"
- "io"
- "os"
- "os/exec"
- "runtime"
- "time"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- "github.com/aws/aws-sdk-go-v2/internal/sdkio"
-)
-
-const (
- // ProviderName is the name this credentials provider will label any
- // returned credentials Value with.
- ProviderName = `ProcessProvider`
-
- // DefaultTimeout default limit on time a process can run.
- DefaultTimeout = time.Duration(1) * time.Minute
-)
-
-// ProviderError is an error indicating failure initializing or executing the
-// process credentials provider
-type ProviderError struct {
- Err error
-}
-
-// Error returns the error message.
-func (e *ProviderError) Error() string {
- return fmt.Sprintf("process provider error: %v", e.Err)
-}
-
-// Unwrap returns the underlying error the provider error wraps.
-func (e *ProviderError) Unwrap() error {
- return e.Err
-}
-
-// Provider satisfies the credentials.Provider interface, and is a
-// client to retrieve credentials from a process.
-type Provider struct {
- // Provides a constructor for exec.Cmd that are invoked by the provider for
- // retrieving credentials. Use this to provide custom creation of exec.Cmd
- // with things like environment variables, or other configuration.
- //
- // The provider defaults to the DefaultNewCommand function.
- commandBuilder NewCommandBuilder
-
- options Options
-}
-
-// Options is the configuration options for configuring the Provider.
-type Options struct {
- // Timeout limits the time a process can run.
- Timeout time.Duration
- // The chain of providers that was used to create this provider
- // These values are for reporting purposes and are not meant to be set up directly
- CredentialSources []aws.CredentialSource
-}
-
-// NewCommandBuilder provides the interface for specifying how command will be
-// created that the Provider will use to retrieve credentials with.
-type NewCommandBuilder interface {
- NewCommand(context.Context) (*exec.Cmd, error)
-}
-
-// NewCommandBuilderFunc provides a wrapper type around a function pointer to
-// satisfy the NewCommandBuilder interface.
-type NewCommandBuilderFunc func(context.Context) (*exec.Cmd, error)
-
-// NewCommand calls the underlying function pointer the builder was initialized with.
-func (fn NewCommandBuilderFunc) NewCommand(ctx context.Context) (*exec.Cmd, error) {
- return fn(ctx)
-}
-
-// DefaultNewCommandBuilder provides the default NewCommandBuilder
-// implementation used by the provider. It takes a command and arguments to
-// invoke. The command will also be initialized with the current process
-// environment variables, stderr, and stdin pipes.
-type DefaultNewCommandBuilder struct {
- Args []string
-}
-
-// NewCommand returns an initialized exec.Cmd with the builder's initialized
-// Args. The command is also initialized current process environment variables,
-// stderr, and stdin pipes.
-func (b DefaultNewCommandBuilder) NewCommand(ctx context.Context) (*exec.Cmd, error) {
- var cmdArgs []string
- if runtime.GOOS == "windows" {
- cmdArgs = []string{"cmd.exe", "/C"}
- } else {
- cmdArgs = []string{"sh", "-c"}
- }
-
- if len(b.Args) == 0 {
- return nil, &ProviderError{
- Err: fmt.Errorf("failed to prepare command: command must not be empty"),
- }
- }
-
- cmdArgs = append(cmdArgs, b.Args...)
- cmd := exec.CommandContext(ctx, cmdArgs[0], cmdArgs[1:]...)
- cmd.Env = os.Environ()
-
- cmd.Stderr = os.Stderr // display stderr on console for MFA
- cmd.Stdin = os.Stdin // enable stdin for MFA
-
- return cmd, nil
-}
-
-// NewProvider returns a pointer to a new Credentials object wrapping the
-// Provider.
-//
-// The provider defaults to the DefaultNewCommandBuilder for creating command
-// the Provider will use to retrieve credentials with.
-func NewProvider(command string, options ...func(*Options)) *Provider {
- var args []string
-
- // Ensure that the command arguments are not set if the provided command is
- // empty. This will error out when the command is executed since no
- // arguments are specified.
- if len(command) > 0 {
- args = []string{command}
- }
-
- commanBuilder := DefaultNewCommandBuilder{
- Args: args,
- }
- return NewProviderCommand(commanBuilder, options...)
-}
-
-// NewProviderCommand returns a pointer to a new Credentials object with the
-// specified command, and default timeout duration. Use this to provide custom
-// creation of exec.Cmd for options like environment variables, or other
-// configuration.
-func NewProviderCommand(builder NewCommandBuilder, options ...func(*Options)) *Provider {
- p := &Provider{
- commandBuilder: builder,
- options: Options{
- Timeout: DefaultTimeout,
- },
- }
-
- for _, option := range options {
- option(&p.options)
- }
-
- return p
-}
-
-// A CredentialProcessResponse is the AWS credentials format that must be
-// returned when executing an external credential_process.
-type CredentialProcessResponse struct {
- // As of this writing, the Version key must be set to 1. This might
- // increment over time as the structure evolves.
- Version int
-
- // The access key ID that identifies the temporary security credentials.
- AccessKeyID string `json:"AccessKeyId"`
-
- // The secret access key that can be used to sign requests.
- SecretAccessKey string
-
- // The token that users must pass to the service API to use the temporary credentials.
- SessionToken string
-
- // The date on which the current credentials expire.
- Expiration *time.Time
-
- // The ID of the account for credentials
- AccountID string `json:"AccountId"`
-}
-
-// Retrieve executes the credential process command and returns the
-// credentials, or error if the command fails.
-func (p *Provider) Retrieve(ctx context.Context) (aws.Credentials, error) {
- out, err := p.executeCredentialProcess(ctx)
- if err != nil {
- return aws.Credentials{Source: ProviderName}, err
- }
-
- // Serialize and validate response
- resp := &CredentialProcessResponse{}
- if err = json.Unmarshal(out, resp); err != nil {
- return aws.Credentials{Source: ProviderName}, &ProviderError{
- Err: fmt.Errorf("parse failed of process output: %s, error: %w", out, err),
- }
- }
-
- if resp.Version != 1 {
- return aws.Credentials{Source: ProviderName}, &ProviderError{
- Err: fmt.Errorf("wrong version in process output (not 1)"),
- }
- }
-
- if len(resp.AccessKeyID) == 0 {
- return aws.Credentials{Source: ProviderName}, &ProviderError{
- Err: fmt.Errorf("missing AccessKeyId in process output"),
- }
- }
-
- if len(resp.SecretAccessKey) == 0 {
- return aws.Credentials{Source: ProviderName}, &ProviderError{
- Err: fmt.Errorf("missing SecretAccessKey in process output"),
- }
- }
-
- creds := aws.Credentials{
- Source: ProviderName,
- AccessKeyID: resp.AccessKeyID,
- SecretAccessKey: resp.SecretAccessKey,
- SessionToken: resp.SessionToken,
- AccountID: resp.AccountID,
- }
-
- // Handle expiration
- if resp.Expiration != nil {
- creds.CanExpire = true
- creds.Expires = *resp.Expiration
- }
-
- return creds, nil
-}
-
-// executeCredentialProcess starts the credential process on the OS and
-// returns the results or an error.
-func (p *Provider) executeCredentialProcess(ctx context.Context) ([]byte, error) {
- if p.options.Timeout >= 0 {
- var cancelFunc func()
- ctx, cancelFunc = context.WithTimeout(ctx, p.options.Timeout)
- defer cancelFunc()
- }
-
- cmd, err := p.commandBuilder.NewCommand(ctx)
- if err != nil {
- return nil, err
- }
-
- // get creds json on process's stdout
- output := bytes.NewBuffer(make([]byte, 0, int(8*sdkio.KibiByte)))
- if cmd.Stdout != nil {
- cmd.Stdout = io.MultiWriter(cmd.Stdout, output)
- } else {
- cmd.Stdout = output
- }
-
- execCh := make(chan error, 1)
- go executeCommand(cmd, execCh)
-
- select {
- case execError := <-execCh:
- if execError == nil {
- break
- }
- select {
- case <-ctx.Done():
- return output.Bytes(), &ProviderError{
- Err: fmt.Errorf("credential process timed out: %w", execError),
- }
- default:
- return output.Bytes(), &ProviderError{
- Err: fmt.Errorf("error in credential_process: %w", execError),
- }
- }
- }
-
- out := output.Bytes()
- if runtime.GOOS == "windows" {
- // windows adds slashes to quotes
- out = bytes.ReplaceAll(out, []byte(`\"`), []byte(`"`))
- }
-
- return out, nil
-}
-
-// ProviderSources returns the credential chain that was used to construct this provider
-func (p *Provider) ProviderSources() []aws.CredentialSource {
- if p.options.CredentialSources == nil {
- return []aws.CredentialSource{aws.CredentialSourceProcess}
- }
- return p.options.CredentialSources
-}
-
-func executeCommand(cmd *exec.Cmd, exec chan error) {
- // Start the command
- err := cmd.Start()
- if err == nil {
- err = cmd.Wait()
- }
-
- exec <- err
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/doc.go b/vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/doc.go
deleted file mode 100644
index ece1e65f7..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/doc.go
+++ /dev/null
@@ -1,81 +0,0 @@
-// Package ssocreds provides a credential provider for retrieving temporary AWS
-// credentials using an SSO access token.
-//
-// IMPORTANT: The provider in this package does not initiate or perform the AWS
-// SSO login flow. The SDK provider expects that you have already performed the
-// SSO login flow using AWS CLI using the "aws sso login" command, or by some
-// other mechanism. The provider must find a valid non-expired access token for
-// the AWS SSO user portal URL in ~/.aws/sso/cache. If a cached token is not
-// found, it is expired, or the file is malformed an error will be returned.
-//
-// # Loading AWS SSO credentials with the AWS shared configuration file
-//
-// You can use configure AWS SSO credentials from the AWS shared configuration file by
-// specifying the required keys in the profile and referencing an sso-session:
-//
-// sso_session
-// sso_account_id
-// sso_role_name
-//
-// For example, the following defines a profile "devsso" and specifies the AWS
-// SSO parameters that defines the target account, role, sign-on portal, and
-// the region where the user portal is located. Note: all SSO arguments must be
-// provided, or an error will be returned.
-//
-// [profile devsso]
-// sso_session = dev-session
-// sso_role_name = SSOReadOnlyRole
-// sso_account_id = 123456789012
-//
-// [sso-session dev-session]
-// sso_start_url = https://my-sso-portal.awsapps.com/start
-// sso_region = us-east-1
-// sso_registration_scopes = sso:account:access
-//
-// Using the config module, you can load the AWS SDK shared configuration, and
-// specify that this profile be used to retrieve credentials. For example:
-//
-// config, err := config.LoadDefaultConfig(context.TODO(), config.WithSharedConfigProfile("devsso"))
-// if err != nil {
-// return err
-// }
-//
-// # Programmatically loading AWS SSO credentials directly
-//
-// You can programmatically construct the AWS SSO Provider in your application,
-// and provide the necessary information to load and retrieve temporary
-// credentials using an access token from ~/.aws/sso/cache.
-//
-// ssoClient := sso.NewFromConfig(cfg)
-// ssoOidcClient := ssooidc.NewFromConfig(cfg)
-// tokenPath, err := ssocreds.StandardCachedTokenFilepath("dev-session")
-// if err != nil {
-// return err
-// }
-//
-// var provider aws.CredentialsProvider
-// provider = ssocreds.New(ssoClient, "123456789012", "SSOReadOnlyRole", "https://my-sso-portal.awsapps.com/start", func(options *ssocreds.Options) {
-// options.SSOTokenProvider = ssocreds.NewSSOTokenProvider(ssoOidcClient, tokenPath)
-// })
-//
-// // Wrap the provider with aws.CredentialsCache to cache the credentials until their expire time
-// provider = aws.NewCredentialsCache(provider)
-//
-// credentials, err := provider.Retrieve(context.TODO())
-// if err != nil {
-// return err
-// }
-//
-// It is important that you wrap the Provider with aws.CredentialsCache if you
-// are programmatically constructing the provider directly. This prevents your
-// application from accessing the cached access token and requesting new
-// credentials each time the credentials are used.
-//
-// # Additional Resources
-//
-// Configuring the AWS CLI to use AWS Single Sign-On:
-// https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html
-//
-// AWS Single Sign-On User Guide:
-// https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html
-package ssocreds
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/sso_cached_token.go b/vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/sso_cached_token.go
deleted file mode 100644
index 46ae2f923..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/sso_cached_token.go
+++ /dev/null
@@ -1,233 +0,0 @@
-package ssocreds
-
-import (
- "crypto/sha1"
- "encoding/hex"
- "encoding/json"
- "fmt"
- "io/ioutil"
- "os"
- "path/filepath"
- "strconv"
- "strings"
- "time"
-
- "github.com/aws/aws-sdk-go-v2/internal/sdk"
- "github.com/aws/aws-sdk-go-v2/internal/shareddefaults"
-)
-
-var osUserHomeDur = shareddefaults.UserHomeDir
-
-// StandardCachedTokenFilepath returns the filepath for the cached SSO token file, or
-// error if unable get derive the path. Key that will be used to compute a SHA1
-// value that is hex encoded.
-//
-// Derives the filepath using the Key as:
-//
-// ~/.aws/sso/cache/.json
-func StandardCachedTokenFilepath(key string) (string, error) {
- homeDir := osUserHomeDur()
- if len(homeDir) == 0 {
- return "", fmt.Errorf("unable to get USER's home directory for cached token")
- }
- hash := sha1.New()
- if _, err := hash.Write([]byte(key)); err != nil {
- return "", fmt.Errorf("unable to compute cached token filepath key SHA1 hash, %w", err)
- }
-
- cacheFilename := strings.ToLower(hex.EncodeToString(hash.Sum(nil))) + ".json"
-
- return filepath.Join(homeDir, ".aws", "sso", "cache", cacheFilename), nil
-}
-
-type tokenKnownFields struct {
- AccessToken string `json:"accessToken,omitempty"`
- ExpiresAt *rfc3339 `json:"expiresAt,omitempty"`
-
- RefreshToken string `json:"refreshToken,omitempty"`
- ClientID string `json:"clientId,omitempty"`
- ClientSecret string `json:"clientSecret,omitempty"`
-}
-
-type token struct {
- tokenKnownFields
- UnknownFields map[string]interface{} `json:"-"`
-}
-
-func (t token) MarshalJSON() ([]byte, error) {
- fields := map[string]interface{}{}
-
- setTokenFieldString(fields, "accessToken", t.AccessToken)
- setTokenFieldRFC3339(fields, "expiresAt", t.ExpiresAt)
-
- setTokenFieldString(fields, "refreshToken", t.RefreshToken)
- setTokenFieldString(fields, "clientId", t.ClientID)
- setTokenFieldString(fields, "clientSecret", t.ClientSecret)
-
- for k, v := range t.UnknownFields {
- if _, ok := fields[k]; ok {
- return nil, fmt.Errorf("unknown token field %v, duplicates known field", k)
- }
- fields[k] = v
- }
-
- return json.Marshal(fields)
-}
-
-func setTokenFieldString(fields map[string]interface{}, key, value string) {
- if value == "" {
- return
- }
- fields[key] = value
-}
-func setTokenFieldRFC3339(fields map[string]interface{}, key string, value *rfc3339) {
- if value == nil {
- return
- }
- fields[key] = value
-}
-
-func (t *token) UnmarshalJSON(b []byte) error {
- var fields map[string]interface{}
- if err := json.Unmarshal(b, &fields); err != nil {
- return nil
- }
-
- t.UnknownFields = map[string]interface{}{}
-
- for k, v := range fields {
- var err error
- switch k {
- case "accessToken":
- err = getTokenFieldString(v, &t.AccessToken)
- case "expiresAt":
- err = getTokenFieldRFC3339(v, &t.ExpiresAt)
- case "refreshToken":
- err = getTokenFieldString(v, &t.RefreshToken)
- case "clientId":
- err = getTokenFieldString(v, &t.ClientID)
- case "clientSecret":
- err = getTokenFieldString(v, &t.ClientSecret)
- default:
- t.UnknownFields[k] = v
- }
-
- if err != nil {
- return fmt.Errorf("field %q, %w", k, err)
- }
- }
-
- return nil
-}
-
-func getTokenFieldString(v interface{}, value *string) error {
- var ok bool
- *value, ok = v.(string)
- if !ok {
- return fmt.Errorf("expect value to be string, got %T", v)
- }
- return nil
-}
-
-func getTokenFieldRFC3339(v interface{}, value **rfc3339) error {
- var stringValue string
- if err := getTokenFieldString(v, &stringValue); err != nil {
- return err
- }
-
- timeValue, err := parseRFC3339(stringValue)
- if err != nil {
- return err
- }
-
- *value = &timeValue
- return nil
-}
-
-func loadCachedToken(filename string) (token, error) {
- fileBytes, err := ioutil.ReadFile(filename)
- if err != nil {
- return token{}, fmt.Errorf("failed to read cached SSO token file, %w", err)
- }
-
- var t token
- if err := json.Unmarshal(fileBytes, &t); err != nil {
- return token{}, fmt.Errorf("failed to parse cached SSO token file, %w", err)
- }
-
- if len(t.AccessToken) == 0 || t.ExpiresAt == nil || time.Time(*t.ExpiresAt).IsZero() {
- return token{}, fmt.Errorf(
- "cached SSO token must contain accessToken and expiresAt fields")
- }
-
- return t, nil
-}
-
-func storeCachedToken(filename string, t token, fileMode os.FileMode) (err error) {
- tmpFilename := filename + ".tmp-" + strconv.FormatInt(sdk.NowTime().UnixNano(), 10)
- if err := writeCacheFile(tmpFilename, fileMode, t); err != nil {
- return err
- }
-
- if err := os.Rename(tmpFilename, filename); err != nil {
- return fmt.Errorf("failed to replace old cached SSO token file, %w", err)
- }
-
- return nil
-}
-
-func writeCacheFile(filename string, fileMode os.FileMode, t token) (err error) {
- var f *os.File
- f, err = os.OpenFile(filename, os.O_CREATE|os.O_TRUNC|os.O_RDWR, fileMode)
- if err != nil {
- return fmt.Errorf("failed to create cached SSO token file %w", err)
- }
-
- defer func() {
- closeErr := f.Close()
- if err == nil && closeErr != nil {
- err = fmt.Errorf("failed to close cached SSO token file, %w", closeErr)
- }
- }()
-
- encoder := json.NewEncoder(f)
-
- if err = encoder.Encode(t); err != nil {
- return fmt.Errorf("failed to serialize cached SSO token, %w", err)
- }
-
- return nil
-}
-
-type rfc3339 time.Time
-
-func parseRFC3339(v string) (rfc3339, error) {
- parsed, err := time.Parse(time.RFC3339, v)
- if err != nil {
- return rfc3339{}, fmt.Errorf("expected RFC3339 timestamp: %w", err)
- }
-
- return rfc3339(parsed), nil
-}
-
-func (r *rfc3339) UnmarshalJSON(bytes []byte) (err error) {
- var value string
-
- // Use JSON unmarshal to unescape the quoted value making use of JSON's
- // unquoting rules.
- if err = json.Unmarshal(bytes, &value); err != nil {
- return err
- }
-
- *r, err = parseRFC3339(value)
-
- return nil
-}
-
-func (r *rfc3339) MarshalJSON() ([]byte, error) {
- value := time.Time(*r).UTC().Format(time.RFC3339)
-
- // Use JSON unmarshal to unescape the quoted value making use of JSON's
- // quoting rules.
- return json.Marshal(value)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/sso_credentials_provider.go b/vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/sso_credentials_provider.go
deleted file mode 100644
index 3ed9cbb3e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/sso_credentials_provider.go
+++ /dev/null
@@ -1,165 +0,0 @@
-package ssocreds
-
-import (
- "context"
- "time"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- "github.com/aws/aws-sdk-go-v2/internal/sdk"
- "github.com/aws/aws-sdk-go-v2/service/sso"
-)
-
-// ProviderName is the name of the provider used to specify the source of
-// credentials.
-const ProviderName = "SSOProvider"
-
-// GetRoleCredentialsAPIClient is a API client that implements the
-// GetRoleCredentials operation.
-type GetRoleCredentialsAPIClient interface {
- GetRoleCredentials(context.Context, *sso.GetRoleCredentialsInput, ...func(*sso.Options)) (
- *sso.GetRoleCredentialsOutput, error,
- )
-}
-
-// Options is the Provider options structure.
-type Options struct {
- // The Client which is configured for the AWS Region where the AWS SSO user
- // portal is located.
- Client GetRoleCredentialsAPIClient
-
- // The AWS account that is assigned to the user.
- AccountID string
-
- // The role name that is assigned to the user.
- RoleName string
-
- // The URL that points to the organization's AWS Single Sign-On (AWS SSO)
- // user portal.
- StartURL string
-
- // The filepath the cached token will be retrieved from. If unset Provider will
- // use the startURL to determine the filepath at.
- //
- // ~/.aws/sso/cache/.json
- //
- // If custom cached token filepath is used, the Provider's startUrl
- // parameter will be ignored.
- CachedTokenFilepath string
-
- // Used by the SSOCredentialProvider if a token configuration
- // profile is used in the shared config
- SSOTokenProvider *SSOTokenProvider
-
- // The chain of providers that was used to create this provider.
- // These values are for reporting purposes and are not meant to be set up directly
- CredentialSources []aws.CredentialSource
-}
-
-// Provider is an AWS credential provider that retrieves temporary AWS
-// credentials by exchanging an SSO login token.
-type Provider struct {
- options Options
-
- cachedTokenFilepath string
-}
-
-// New returns a new AWS Single Sign-On (AWS SSO) credential provider. The
-// provided client is expected to be configured for the AWS Region where the
-// AWS SSO user portal is located.
-func New(client GetRoleCredentialsAPIClient, accountID, roleName, startURL string, optFns ...func(options *Options)) *Provider {
- options := Options{
- Client: client,
- AccountID: accountID,
- RoleName: roleName,
- StartURL: startURL,
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &Provider{
- options: options,
- cachedTokenFilepath: options.CachedTokenFilepath,
- }
-}
-
-// Retrieve retrieves temporary AWS credentials from the configured Amazon
-// Single Sign-On (AWS SSO) user portal by exchanging the accessToken present
-// in ~/.aws/sso/cache. However, if a token provider configuration exists
-// in the shared config, then we ought to use the token provider rather then
-// direct access on the cached token.
-func (p *Provider) Retrieve(ctx context.Context) (aws.Credentials, error) {
- var accessToken *string
- if p.options.SSOTokenProvider != nil {
- token, err := p.options.SSOTokenProvider.RetrieveBearerToken(ctx)
- if err != nil {
- return aws.Credentials{}, err
- }
- accessToken = &token.Value
- } else {
- if p.cachedTokenFilepath == "" {
- cachedTokenFilepath, err := StandardCachedTokenFilepath(p.options.StartURL)
- if err != nil {
- return aws.Credentials{}, &InvalidTokenError{Err: err}
- }
- p.cachedTokenFilepath = cachedTokenFilepath
- }
-
- tokenFile, err := loadCachedToken(p.cachedTokenFilepath)
- if err != nil {
- return aws.Credentials{}, &InvalidTokenError{Err: err}
- }
-
- if tokenFile.ExpiresAt == nil || sdk.NowTime().After(time.Time(*tokenFile.ExpiresAt)) {
- return aws.Credentials{}, &InvalidTokenError{}
- }
- accessToken = &tokenFile.AccessToken
- }
-
- output, err := p.options.Client.GetRoleCredentials(ctx, &sso.GetRoleCredentialsInput{
- AccessToken: accessToken,
- AccountId: &p.options.AccountID,
- RoleName: &p.options.RoleName,
- })
- if err != nil {
- return aws.Credentials{}, err
- }
-
- return aws.Credentials{
- AccessKeyID: aws.ToString(output.RoleCredentials.AccessKeyId),
- SecretAccessKey: aws.ToString(output.RoleCredentials.SecretAccessKey),
- SessionToken: aws.ToString(output.RoleCredentials.SessionToken),
- CanExpire: true,
- Expires: time.Unix(0, output.RoleCredentials.Expiration*int64(time.Millisecond)).UTC(),
- Source: ProviderName,
- AccountID: p.options.AccountID,
- }, nil
-}
-
-// ProviderSources returns the credential chain that was used to construct this provider
-func (p *Provider) ProviderSources() []aws.CredentialSource {
- if p.options.CredentialSources == nil {
- return []aws.CredentialSource{aws.CredentialSourceSSO}
- }
- return p.options.CredentialSources
-}
-
-// InvalidTokenError is the error type that is returned if loaded token has
-// expired or is otherwise invalid. To refresh the SSO session run AWS SSO
-// login with the corresponding profile.
-type InvalidTokenError struct {
- Err error
-}
-
-func (i *InvalidTokenError) Unwrap() error {
- return i.Err
-}
-
-func (i *InvalidTokenError) Error() string {
- const msg = "the SSO session has expired or is invalid"
- if i.Err == nil {
- return msg
- }
- return msg + ": " + i.Err.Error()
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/sso_token_provider.go b/vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/sso_token_provider.go
deleted file mode 100644
index 7f4fc5467..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/sso_token_provider.go
+++ /dev/null
@@ -1,147 +0,0 @@
-package ssocreds
-
-import (
- "context"
- "fmt"
- "os"
- "time"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- "github.com/aws/aws-sdk-go-v2/internal/sdk"
- "github.com/aws/aws-sdk-go-v2/service/ssooidc"
- "github.com/aws/smithy-go/auth/bearer"
-)
-
-// CreateTokenAPIClient provides the interface for the SSOTokenProvider's API
-// client for calling CreateToken operation to refresh the SSO token.
-type CreateTokenAPIClient interface {
- CreateToken(context.Context, *ssooidc.CreateTokenInput, ...func(*ssooidc.Options)) (
- *ssooidc.CreateTokenOutput, error,
- )
-}
-
-// SSOTokenProviderOptions provides the options for configuring the
-// SSOTokenProvider.
-type SSOTokenProviderOptions struct {
- // Client that can be overridden
- Client CreateTokenAPIClient
-
- // The set of API Client options to be applied when invoking the
- // CreateToken operation.
- ClientOptions []func(*ssooidc.Options)
-
- // The path the file containing the cached SSO token will be read from.
- // Initialized the NewSSOTokenProvider's cachedTokenFilepath parameter.
- CachedTokenFilepath string
-}
-
-// SSOTokenProvider provides an utility for refreshing SSO AccessTokens for
-// Bearer Authentication. The SSOTokenProvider can only be used to refresh
-// already cached SSO Tokens. This utility cannot perform the initial SSO
-// create token.
-//
-// The SSOTokenProvider is not safe to use concurrently. It must be wrapped in
-// a utility such as smithy-go's auth/bearer#TokenCache. The SDK's
-// config.LoadDefaultConfig will automatically wrap the SSOTokenProvider with
-// the smithy-go TokenCache, if the external configuration loaded configured
-// for an SSO session.
-//
-// The initial SSO create token should be preformed with the AWS CLI before the
-// Go application using the SSOTokenProvider will need to retrieve the SSO
-// token. If the AWS CLI has not created the token cache file, this provider
-// will return an error when attempting to retrieve the cached token.
-//
-// This provider will attempt to refresh the cached SSO token periodically if
-// needed when RetrieveBearerToken is called.
-//
-// A utility such as the AWS CLI must be used to initially create the SSO
-// session and cached token file.
-// https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html
-type SSOTokenProvider struct {
- options SSOTokenProviderOptions
-}
-
-var _ bearer.TokenProvider = (*SSOTokenProvider)(nil)
-
-// NewSSOTokenProvider returns an initialized SSOTokenProvider that will
-// periodically refresh the SSO token cached stored in the cachedTokenFilepath.
-// The cachedTokenFilepath file's content will be rewritten by the token
-// provider when the token is refreshed.
-//
-// The client must be configured for the AWS region the SSO token was created for.
-func NewSSOTokenProvider(client CreateTokenAPIClient, cachedTokenFilepath string, optFns ...func(o *SSOTokenProviderOptions)) *SSOTokenProvider {
- options := SSOTokenProviderOptions{
- Client: client,
- CachedTokenFilepath: cachedTokenFilepath,
- }
- for _, fn := range optFns {
- fn(&options)
- }
-
- provider := &SSOTokenProvider{
- options: options,
- }
-
- return provider
-}
-
-// RetrieveBearerToken returns the SSO token stored in the cachedTokenFilepath
-// the SSOTokenProvider was created with. If the token has expired
-// RetrieveBearerToken will attempt to refresh it. If the token cannot be
-// refreshed or is not present an error will be returned.
-//
-// A utility such as the AWS CLI must be used to initially create the SSO
-// session and cached token file. https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html
-func (p SSOTokenProvider) RetrieveBearerToken(ctx context.Context) (bearer.Token, error) {
- cachedToken, err := loadCachedToken(p.options.CachedTokenFilepath)
- if err != nil {
- return bearer.Token{}, err
- }
-
- if cachedToken.ExpiresAt != nil && sdk.NowTime().After(time.Time(*cachedToken.ExpiresAt)) {
- cachedToken, err = p.refreshToken(ctx, cachedToken)
- if err != nil {
- return bearer.Token{}, fmt.Errorf("refresh cached SSO token failed, %w", err)
- }
- }
-
- expiresAt := aws.ToTime((*time.Time)(cachedToken.ExpiresAt))
- return bearer.Token{
- Value: cachedToken.AccessToken,
- CanExpire: !expiresAt.IsZero(),
- Expires: expiresAt,
- }, nil
-}
-
-func (p SSOTokenProvider) refreshToken(ctx context.Context, cachedToken token) (token, error) {
- if cachedToken.ClientSecret == "" || cachedToken.ClientID == "" || cachedToken.RefreshToken == "" {
- return token{}, fmt.Errorf("cached SSO token is expired, or not present, and cannot be refreshed")
- }
-
- createResult, err := p.options.Client.CreateToken(ctx, &ssooidc.CreateTokenInput{
- ClientId: &cachedToken.ClientID,
- ClientSecret: &cachedToken.ClientSecret,
- RefreshToken: &cachedToken.RefreshToken,
- GrantType: aws.String("refresh_token"),
- }, p.options.ClientOptions...)
- if err != nil {
- return token{}, fmt.Errorf("unable to refresh SSO token, %w", err)
- }
-
- expiresAt := sdk.NowTime().Add(time.Duration(createResult.ExpiresIn) * time.Second)
-
- cachedToken.AccessToken = aws.ToString(createResult.AccessToken)
- cachedToken.ExpiresAt = (*rfc3339)(&expiresAt)
- cachedToken.RefreshToken = aws.ToString(createResult.RefreshToken)
-
- fileInfo, err := os.Stat(p.options.CachedTokenFilepath)
- if err != nil {
- return token{}, fmt.Errorf("failed to stat cached SSO token file %w", err)
- }
-
- if err = storeCachedToken(p.options.CachedTokenFilepath, cachedToken, fileInfo.Mode()); err != nil {
- return token{}, fmt.Errorf("unable to cache refreshed SSO token, %w", err)
- }
-
- return cachedToken, nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/credentials/static_provider.go b/vendor/github.com/aws/aws-sdk-go-v2/credentials/static_provider.go
deleted file mode 100644
index a469abdb7..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/credentials/static_provider.go
+++ /dev/null
@@ -1,63 +0,0 @@
-package credentials
-
-import (
- "context"
-
- "github.com/aws/aws-sdk-go-v2/aws"
-)
-
-const (
- // StaticCredentialsName provides a name of Static provider
- StaticCredentialsName = "StaticCredentials"
-)
-
-// StaticCredentialsEmptyError is emitted when static credentials are empty.
-type StaticCredentialsEmptyError struct{}
-
-func (*StaticCredentialsEmptyError) Error() string {
- return "static credentials are empty"
-}
-
-// A StaticCredentialsProvider is a set of credentials which are set, and will
-// never expire.
-type StaticCredentialsProvider struct {
- Value aws.Credentials
- // These values are for reporting purposes and are not meant to be set up directly
- Source []aws.CredentialSource
-}
-
-// ProviderSources returns the credential chain that was used to construct this provider
-func (s StaticCredentialsProvider) ProviderSources() []aws.CredentialSource {
- if s.Source == nil {
- return []aws.CredentialSource{aws.CredentialSourceCode} // If no source has been set, assume this is used directly which means hardcoded creds
- }
- return s.Source
-}
-
-// NewStaticCredentialsProvider return a StaticCredentialsProvider initialized with the AWS
-// credentials passed in.
-func NewStaticCredentialsProvider(key, secret, session string) StaticCredentialsProvider {
- return StaticCredentialsProvider{
- Value: aws.Credentials{
- AccessKeyID: key,
- SecretAccessKey: secret,
- SessionToken: session,
- },
- }
-}
-
-// Retrieve returns the credentials or error if the credentials are invalid.
-func (s StaticCredentialsProvider) Retrieve(_ context.Context) (aws.Credentials, error) {
- v := s.Value
- if v.AccessKeyID == "" || v.SecretAccessKey == "" {
- return aws.Credentials{
- Source: StaticCredentialsName,
- }, &StaticCredentialsEmptyError{}
- }
-
- if len(v.Source) == 0 {
- v.Source = StaticCredentialsName
- }
-
- return v, nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/credentials/stscreds/assume_role_provider.go b/vendor/github.com/aws/aws-sdk-go-v2/credentials/stscreds/assume_role_provider.go
deleted file mode 100644
index 1ccf71e77..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/credentials/stscreds/assume_role_provider.go
+++ /dev/null
@@ -1,338 +0,0 @@
-// Package stscreds are credential Providers to retrieve STS AWS credentials.
-//
-// STS provides multiple ways to retrieve credentials which can be used when making
-// future AWS service API operation calls.
-//
-// The SDK will ensure that per instance of credentials.Credentials all requests
-// to refresh the credentials will be synchronized. But, the SDK is unable to
-// ensure synchronous usage of the AssumeRoleProvider if the value is shared
-// between multiple Credentials or service clients.
-//
-// # Assume Role
-//
-// To assume an IAM role using STS with the SDK you can create a new Credentials
-// with the SDKs's stscreds package.
-//
-// // Initial credentials loaded from SDK's default credential chain. Such as
-// // the environment, shared credentials (~/.aws/credentials), or EC2 Instance
-// // Role. These credentials will be used to to make the STS Assume Role API.
-// cfg, err := config.LoadDefaultConfig(context.TODO())
-// if err != nil {
-// panic(err)
-// }
-//
-// // Create the credentials from AssumeRoleProvider to assume the role
-// // referenced by the "myRoleARN" ARN.
-// stsSvc := sts.NewFromConfig(cfg)
-// creds := stscreds.NewAssumeRoleProvider(stsSvc, "myRoleArn")
-//
-// cfg.Credentials = aws.NewCredentialsCache(creds)
-//
-// // Create service client value configured for credentials
-// // from assumed role.
-// svc := s3.NewFromConfig(cfg)
-//
-// # Assume Role with custom MFA Token provider
-//
-// To assume an IAM role with a MFA token you can either specify a custom MFA
-// token provider or use the SDK's built in StdinTokenProvider that will prompt
-// the user for a token code each time the credentials need to to be refreshed.
-// Specifying a custom token provider allows you to control where the token
-// code is retrieved from, and how it is refreshed.
-//
-// With a custom token provider, the provider is responsible for refreshing the
-// token code when called.
-//
-// cfg, err := config.LoadDefaultConfig(context.TODO())
-// if err != nil {
-// panic(err)
-// }
-//
-// staticTokenProvider := func() (string, error) {
-// return someTokenCode, nil
-// }
-//
-// // Create the credentials from AssumeRoleProvider to assume the role
-// // referenced by the "myRoleARN" ARN using the MFA token code provided.
-// creds := stscreds.NewAssumeRoleProvider(sts.NewFromConfig(cfg), "myRoleArn", func(o *stscreds.AssumeRoleOptions) {
-// o.SerialNumber = aws.String("myTokenSerialNumber")
-// o.TokenProvider = staticTokenProvider
-// })
-//
-// cfg.Credentials = aws.NewCredentialsCache(creds)
-//
-// // Create service client value configured for credentials
-// // from assumed role.
-// svc := s3.NewFromConfig(cfg)
-//
-// # Assume Role with MFA Token Provider
-//
-// To assume an IAM role with MFA for longer running tasks where the credentials
-// may need to be refreshed setting the TokenProvider field of AssumeRoleProvider
-// will allow the credential provider to prompt for new MFA token code when the
-// role's credentials need to be refreshed.
-//
-// The StdinTokenProvider function is available to prompt on stdin to retrieve
-// the MFA token code from the user. You can also implement custom prompts by
-// satisfying the TokenProvider function signature.
-//
-// Using StdinTokenProvider with multiple AssumeRoleProviders, or Credentials will
-// have undesirable results as the StdinTokenProvider will not be synchronized. A
-// single Credentials with an AssumeRoleProvider can be shared safely.
-//
-// cfg, err := config.LoadDefaultConfig(context.TODO())
-// if err != nil {
-// panic(err)
-// }
-//
-// // Create the credentials from AssumeRoleProvider to assume the role
-// // referenced by the "myRoleARN" ARN using the MFA token code provided.
-// creds := stscreds.NewAssumeRoleProvider(sts.NewFromConfig(cfg), "myRoleArn", func(o *stscreds.AssumeRoleOptions) {
-// o.SerialNumber = aws.String("myTokenSerialNumber")
-// o.TokenProvider = stscreds.StdinTokenProvider
-// })
-//
-// cfg.Credentials = aws.NewCredentialsCache(creds)
-//
-// // Create service client value configured for credentials
-// // from assumed role.
-// svc := s3.NewFromConfig(cfg)
-package stscreds
-
-import (
- "context"
- "fmt"
- "time"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- "github.com/aws/aws-sdk-go-v2/service/sts"
- "github.com/aws/aws-sdk-go-v2/service/sts/types"
-)
-
-// StdinTokenProvider will prompt on stdout and read from stdin for a string value.
-// An error is returned if reading from stdin fails.
-//
-// Use this function go read MFA tokens from stdin. The function makes no attempt
-// to make atomic prompts from stdin across multiple gorouties.
-//
-// Using StdinTokenProvider with multiple AssumeRoleProviders, or Credentials will
-// have undesirable results as the StdinTokenProvider will not be synchronized. A
-// single Credentials with an AssumeRoleProvider can be shared safely
-//
-// Will wait forever until something is provided on the stdin.
-func StdinTokenProvider() (string, error) {
- var v string
- fmt.Printf("Assume Role MFA token code: ")
- _, err := fmt.Scanln(&v)
-
- return v, err
-}
-
-// ProviderName provides a name of AssumeRole provider
-const ProviderName = "AssumeRoleProvider"
-
-// AssumeRoleAPIClient is a client capable of the STS AssumeRole operation.
-type AssumeRoleAPIClient interface {
- AssumeRole(ctx context.Context, params *sts.AssumeRoleInput, optFns ...func(*sts.Options)) (*sts.AssumeRoleOutput, error)
-}
-
-// DefaultDuration is the default amount of time in minutes that the
-// credentials will be valid for. This value is only used by AssumeRoleProvider
-// for specifying the default expiry duration of an assume role.
-//
-// Other providers such as WebIdentityRoleProvider do not use this value, and
-// instead rely on STS API's default parameter handing to assign a default
-// value.
-var DefaultDuration = time.Duration(15) * time.Minute
-
-// AssumeRoleProvider retrieves temporary credentials from the STS service, and
-// keeps track of their expiration time.
-//
-// This credential provider will be used by the SDKs default credential change
-// when shared configuration is enabled, and the shared config or shared credentials
-// file configure assume role. See Session docs for how to do this.
-//
-// AssumeRoleProvider does not provide any synchronization and it is not safe
-// to share this value across multiple Credentials, Sessions, or service clients
-// without also sharing the same Credentials instance.
-type AssumeRoleProvider struct {
- options AssumeRoleOptions
-}
-
-// AssumeRoleOptions is the configurable options for AssumeRoleProvider
-type AssumeRoleOptions struct {
- // Client implementation of the AssumeRole operation. Required
- Client AssumeRoleAPIClient
-
- // IAM Role ARN to be assumed. Required
- RoleARN string
-
- // Session name, if you wish to uniquely identify this session.
- RoleSessionName string
-
- // Expiry duration of the STS credentials. Defaults to 15 minutes if not set.
- Duration time.Duration
-
- // Optional ExternalID to pass along, defaults to nil if not set.
- ExternalID *string
-
- // The policy plain text must be 2048 bytes or shorter. However, an internal
- // conversion compresses it into a packed binary format with a separate limit.
- // The PackedPolicySize response element indicates by percentage how close to
- // the upper size limit the policy is, with 100% equaling the maximum allowed
- // size.
- Policy *string
-
- // The ARNs of IAM managed policies you want to use as managed session policies.
- // The policies must exist in the same account as the role.
- //
- // This parameter is optional. You can provide up to 10 managed policy ARNs.
- // However, the plain text that you use for both inline and managed session
- // policies can't exceed 2,048 characters.
- //
- // An AWS conversion compresses the passed session policies and session tags
- // into a packed binary format that has a separate limit. Your request can fail
- // for this limit even if your plain text meets the other requirements. The
- // PackedPolicySize response element indicates by percentage how close the policies
- // and tags for your request are to the upper size limit.
- //
- // Passing policies to this operation returns new temporary credentials. The
- // resulting session's permissions are the intersection of the role's identity-based
- // policy and the session policies. You can use the role's temporary credentials
- // in subsequent AWS API calls to access resources in the account that owns
- // the role. You cannot use session policies to grant more permissions than
- // those allowed by the identity-based policy of the role that is being assumed.
- // For more information, see Session Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
- // in the IAM User Guide.
- PolicyARNs []types.PolicyDescriptorType
-
- // The identification number of the MFA device that is associated with the user
- // who is making the AssumeRole call. Specify this value if the trust policy
- // of the role being assumed includes a condition that requires MFA authentication.
- // The value is either the serial number for a hardware device (such as GAHT12345678)
- // or an Amazon Resource Name (ARN) for a virtual device (such as arn:aws:iam::123456789012:mfa/user).
- SerialNumber *string
-
- // The source identity specified by the principal that is calling the AssumeRole
- // operation. You can require users to specify a source identity when they assume a
- // role. You do this by using the sts:SourceIdentity condition key in a role trust
- // policy. You can use source identity information in CloudTrail logs to determine
- // who took actions with a role. You can use the aws:SourceIdentity condition key
- // to further control access to Amazon Web Services resources based on the value of
- // source identity. For more information about using source identity, see Monitor
- // and control actions taken with assumed roles
- // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_monitor.html)
- // in the IAM User Guide.
- SourceIdentity *string
-
- // Async method of providing MFA token code for assuming an IAM role with MFA.
- // The value returned by the function will be used as the TokenCode in the Retrieve
- // call. See StdinTokenProvider for a provider that prompts and reads from stdin.
- //
- // This token provider will be called when ever the assumed role's
- // credentials need to be refreshed when SerialNumber is set.
- TokenProvider func() (string, error)
-
- // A list of session tags that you want to pass. Each session tag consists of a key
- // name and an associated value. For more information about session tags, see
- // Tagging STS Sessions
- // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html) in the
- // IAM User Guide. This parameter is optional. You can pass up to 50 session tags.
- Tags []types.Tag
-
- // A list of keys for session tags that you want to set as transitive. If you set a
- // tag key as transitive, the corresponding key and value passes to subsequent
- // sessions in a role chain. For more information, see Chaining Roles with Session
- // Tags
- // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_role-chaining)
- // in the IAM User Guide. This parameter is optional.
- TransitiveTagKeys []string
-
- // The chain of providers that was used to create this provider
- // These values are for reporting purposes and are not meant to be set up directly
- CredentialSources []aws.CredentialSource
-}
-
-// NewAssumeRoleProvider constructs and returns a credentials provider that
-// will retrieve credentials by assuming a IAM role using STS.
-func NewAssumeRoleProvider(client AssumeRoleAPIClient, roleARN string, optFns ...func(*AssumeRoleOptions)) *AssumeRoleProvider {
- o := AssumeRoleOptions{
- Client: client,
- RoleARN: roleARN,
- }
-
- for _, fn := range optFns {
- fn(&o)
- }
-
- return &AssumeRoleProvider{
- options: o,
- }
-}
-
-// Retrieve generates a new set of temporary credentials using STS.
-func (p *AssumeRoleProvider) Retrieve(ctx context.Context) (aws.Credentials, error) {
- // Apply defaults where parameters are not set.
- if len(p.options.RoleSessionName) == 0 {
- // Try to work out a role name that will hopefully end up unique.
- p.options.RoleSessionName = fmt.Sprintf("aws-go-sdk-%d", time.Now().UTC().UnixNano())
- }
- if p.options.Duration == 0 {
- // Expire as often as AWS permits.
- p.options.Duration = DefaultDuration
- }
- input := &sts.AssumeRoleInput{
- DurationSeconds: aws.Int32(int32(p.options.Duration / time.Second)),
- PolicyArns: p.options.PolicyARNs,
- RoleArn: aws.String(p.options.RoleARN),
- RoleSessionName: aws.String(p.options.RoleSessionName),
- ExternalId: p.options.ExternalID,
- SourceIdentity: p.options.SourceIdentity,
- Tags: p.options.Tags,
- TransitiveTagKeys: p.options.TransitiveTagKeys,
- }
- if p.options.Policy != nil {
- input.Policy = p.options.Policy
- }
- if p.options.SerialNumber != nil {
- if p.options.TokenProvider != nil {
- input.SerialNumber = p.options.SerialNumber
- code, err := p.options.TokenProvider()
- if err != nil {
- return aws.Credentials{}, err
- }
- input.TokenCode = aws.String(code)
- } else {
- return aws.Credentials{}, fmt.Errorf("assume role with MFA enabled, but TokenProvider is not set")
- }
- }
-
- resp, err := p.options.Client.AssumeRole(ctx, input)
- if err != nil {
- return aws.Credentials{Source: ProviderName}, err
- }
-
- var accountID string
- if resp.AssumedRoleUser != nil {
- accountID = getAccountID(resp.AssumedRoleUser)
- }
-
- return aws.Credentials{
- AccessKeyID: *resp.Credentials.AccessKeyId,
- SecretAccessKey: *resp.Credentials.SecretAccessKey,
- SessionToken: *resp.Credentials.SessionToken,
- Source: ProviderName,
-
- CanExpire: true,
- Expires: *resp.Credentials.Expiration,
- AccountID: accountID,
- }, nil
-}
-
-// ProviderSources returns the credential chain that was used to construct this provider
-func (p *AssumeRoleProvider) ProviderSources() []aws.CredentialSource {
- if p.options.CredentialSources == nil {
- return []aws.CredentialSource{aws.CredentialSourceSTSAssumeRole}
- } // If no source has been set, assume this is used directly which means just call to assume role
- return append(p.options.CredentialSources, aws.CredentialSourceSTSAssumeRole)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/credentials/stscreds/web_identity_provider.go b/vendor/github.com/aws/aws-sdk-go-v2/credentials/stscreds/web_identity_provider.go
deleted file mode 100644
index 5f4286dda..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/credentials/stscreds/web_identity_provider.go
+++ /dev/null
@@ -1,181 +0,0 @@
-package stscreds
-
-import (
- "context"
- "fmt"
- "io/ioutil"
- "strconv"
- "strings"
- "time"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- "github.com/aws/aws-sdk-go-v2/aws/retry"
- "github.com/aws/aws-sdk-go-v2/internal/sdk"
- "github.com/aws/aws-sdk-go-v2/service/sts"
- "github.com/aws/aws-sdk-go-v2/service/sts/types"
-)
-
-var invalidIdentityTokenExceptionCode = (&types.InvalidIdentityTokenException{}).ErrorCode()
-
-const (
- // WebIdentityProviderName is the web identity provider name
- WebIdentityProviderName = "WebIdentityCredentials"
-)
-
-// AssumeRoleWithWebIdentityAPIClient is a client capable of the STS AssumeRoleWithWebIdentity operation.
-type AssumeRoleWithWebIdentityAPIClient interface {
- AssumeRoleWithWebIdentity(ctx context.Context, params *sts.AssumeRoleWithWebIdentityInput, optFns ...func(*sts.Options)) (*sts.AssumeRoleWithWebIdentityOutput, error)
-}
-
-// WebIdentityRoleProvider is used to retrieve credentials using
-// an OIDC token.
-type WebIdentityRoleProvider struct {
- options WebIdentityRoleOptions
-}
-
-// WebIdentityRoleOptions is a structure of configurable options for WebIdentityRoleProvider
-type WebIdentityRoleOptions struct {
- // Client implementation of the AssumeRoleWithWebIdentity operation. Required
- Client AssumeRoleWithWebIdentityAPIClient
-
- // JWT Token Provider. Required
- TokenRetriever IdentityTokenRetriever
-
- // IAM Role ARN to assume. Required
- RoleARN string
-
- // Session name, if you wish to uniquely identify this session.
- RoleSessionName string
-
- // Expiry duration of the STS credentials. STS will assign a default expiry
- // duration if this value is unset. This is different from the Duration
- // option of AssumeRoleProvider, which automatically assigns 15 minutes if
- // Duration is unset.
- //
- // See the STS AssumeRoleWithWebIdentity API reference guide for more
- // information on defaults.
- // https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoleWithWebIdentity.html
- Duration time.Duration
-
- // An IAM policy in JSON format that you want to use as an inline session policy.
- Policy *string
-
- // The Amazon Resource Names (ARNs) of the IAM managed policies that you
- // want to use as managed session policies. The policies must exist in the
- // same account as the role.
- PolicyARNs []types.PolicyDescriptorType
-
- // The chain of providers that was used to create this provider
- // These values are for reporting purposes and are not meant to be set up directly
- CredentialSources []aws.CredentialSource
-}
-
-// IdentityTokenRetriever is an interface for retrieving a JWT
-type IdentityTokenRetriever interface {
- GetIdentityToken() ([]byte, error)
-}
-
-// IdentityTokenFile is for retrieving an identity token from the given file name
-type IdentityTokenFile string
-
-// GetIdentityToken retrieves the JWT token from the file and returns the contents as a []byte
-func (j IdentityTokenFile) GetIdentityToken() ([]byte, error) {
- b, err := ioutil.ReadFile(string(j))
- if err != nil {
- return nil, fmt.Errorf("unable to read file at %s: %v", string(j), err)
- }
-
- return b, nil
-}
-
-// NewWebIdentityRoleProvider will return a new WebIdentityRoleProvider with the
-// provided stsiface.ClientAPI
-func NewWebIdentityRoleProvider(client AssumeRoleWithWebIdentityAPIClient, roleARN string, tokenRetriever IdentityTokenRetriever, optFns ...func(*WebIdentityRoleOptions)) *WebIdentityRoleProvider {
- o := WebIdentityRoleOptions{
- Client: client,
- RoleARN: roleARN,
- TokenRetriever: tokenRetriever,
- }
-
- for _, fn := range optFns {
- fn(&o)
- }
-
- return &WebIdentityRoleProvider{options: o}
-}
-
-// Retrieve will attempt to assume a role from a token which is located at
-// 'WebIdentityTokenFilePath' specified destination and if that is empty an
-// error will be returned.
-func (p *WebIdentityRoleProvider) Retrieve(ctx context.Context) (aws.Credentials, error) {
- b, err := p.options.TokenRetriever.GetIdentityToken()
- if err != nil {
- return aws.Credentials{}, fmt.Errorf("failed to retrieve jwt from provide source, %w", err)
- }
-
- sessionName := p.options.RoleSessionName
- if len(sessionName) == 0 {
- // session name is used to uniquely identify a session. This simply
- // uses unix time in nanoseconds to uniquely identify sessions.
- sessionName = strconv.FormatInt(sdk.NowTime().UnixNano(), 10)
- }
- input := &sts.AssumeRoleWithWebIdentityInput{
- PolicyArns: p.options.PolicyARNs,
- RoleArn: &p.options.RoleARN,
- RoleSessionName: &sessionName,
- WebIdentityToken: aws.String(string(b)),
- }
- if p.options.Duration != 0 {
- // If set use the value, otherwise STS will assign a default expiration duration.
- input.DurationSeconds = aws.Int32(int32(p.options.Duration / time.Second))
- }
- if p.options.Policy != nil {
- input.Policy = p.options.Policy
- }
-
- resp, err := p.options.Client.AssumeRoleWithWebIdentity(ctx, input, func(options *sts.Options) {
- options.Retryer = retry.AddWithErrorCodes(options.Retryer, invalidIdentityTokenExceptionCode)
- })
- if err != nil {
- return aws.Credentials{}, fmt.Errorf("failed to retrieve credentials, %w", err)
- }
-
- var accountID string
- if resp.AssumedRoleUser != nil {
- accountID = getAccountID(resp.AssumedRoleUser)
- }
-
- // InvalidIdentityToken error is a temporary error that can occur
- // when assuming an Role with a JWT web identity token.
-
- value := aws.Credentials{
- AccessKeyID: aws.ToString(resp.Credentials.AccessKeyId),
- SecretAccessKey: aws.ToString(resp.Credentials.SecretAccessKey),
- SessionToken: aws.ToString(resp.Credentials.SessionToken),
- Source: WebIdentityProviderName,
- CanExpire: true,
- Expires: *resp.Credentials.Expiration,
- AccountID: accountID,
- }
- return value, nil
-}
-
-// extract accountID from arn with format "arn:partition:service:region:account-id:[resource-section]"
-func getAccountID(u *types.AssumedRoleUser) string {
- if u.Arn == nil {
- return ""
- }
- parts := strings.Split(*u.Arn, ":")
- if len(parts) < 5 {
- return ""
- }
- return parts[4]
-}
-
-// ProviderSources returns the credential chain that was used to construct this provider
-func (p *WebIdentityRoleProvider) ProviderSources() []aws.CredentialSource {
- if p.options.CredentialSources == nil {
- return []aws.CredentialSource{aws.CredentialSourceSTSAssumeRoleWebID}
- }
- return p.options.CredentialSources
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/CHANGELOG.md
deleted file mode 100644
index 6b8c45473..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/CHANGELOG.md
+++ /dev/null
@@ -1,494 +0,0 @@
-# v1.18.9 (2025-09-26)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.8 (2025-09-23)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.7 (2025-09-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.6 (2025-08-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.5 (2025-08-27)
-
-* **Dependency Update**: Update to smithy-go v1.23.0.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.4 (2025-08-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.3 (2025-08-11)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.2 (2025-08-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.1 (2025-07-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.0 (2025-07-29)
-
-* **Feature**: Add config switch `DisableDefaultMaxBackoff` that allows you to disable the default maximum backoff (1 second) for IMDS calls retry attempt
-
-# v1.17.0 (2025-07-28)
-
-* **Feature**: Add support for HTTP interceptors.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.33 (2025-07-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.32 (2025-06-17)
-
-* **Dependency Update**: Update to smithy-go v1.22.4.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.31 (2025-06-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.30 (2025-02-27)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.29 (2025-02-18)
-
-* **Bug Fix**: Bump go version to 1.22
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.28 (2025-02-05)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.27 (2025-01-31)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.26 (2025-01-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.25 (2025-01-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-* **Dependency Update**: Upgrade to smithy-go v1.22.2.
-
-# v1.16.24 (2025-01-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.23 (2025-01-09)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.22 (2024-12-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.21 (2024-12-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.20 (2024-11-18)
-
-* **Dependency Update**: Update to smithy-go v1.22.1.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.19 (2024-11-06)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.18 (2024-10-28)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.17 (2024-10-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.16 (2024-10-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.15 (2024-10-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.14 (2024-09-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.13 (2024-09-03)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.12 (2024-08-15)
-
-* **Dependency Update**: Bump minimum Go version to 1.21.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.11 (2024-07-10.2)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.10 (2024-07-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.9 (2024-06-28)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.8 (2024-06-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.7 (2024-06-18)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.6 (2024-06-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.5 (2024-06-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.4 (2024-06-03)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.3 (2024-05-16)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.2 (2024-05-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.1 (2024-03-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.0 (2024-03-21)
-
-* **Feature**: Add config switch `DisableDefaultTimeout` that allows you to disable the default operation timeout (5 seconds) for IMDS calls.
-
-# v1.15.4 (2024-03-18)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.15.3 (2024-03-07)
-
-* **Bug Fix**: Remove dependency on go-cmp.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.15.2 (2024-02-23)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.15.1 (2024-02-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.15.0 (2024-02-13)
-
-* **Feature**: Bump minimum Go version to 1.20 per our language support policy.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.14.11 (2024-01-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.14.10 (2023-12-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.14.9 (2023-12-01)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.14.8 (2023-11-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.14.7 (2023-11-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.14.6 (2023-11-28.2)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.14.5 (2023-11-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.14.4 (2023-11-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.14.3 (2023-11-09)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.14.2 (2023-11-02)
-
-* No change notes available for this release.
-
-# v1.14.1 (2023-11-01)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.14.0 (2023-10-31)
-
-* **Feature**: **BREAKING CHANGE**: Bump minimum go version to 1.19 per the revised [go version support policy](https://aws.amazon.com/blogs/developer/aws-sdk-for-go-aligns-with-go-release-policy-on-supported-runtimes/).
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.13 (2023-10-12)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.12 (2023-10-06)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.11 (2023-08-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.10 (2023-08-18)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.9 (2023-08-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.8 (2023-08-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.7 (2023-07-31)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.6 (2023-07-28)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.5 (2023-07-13)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.4 (2023-06-13)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.3 (2023-04-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.2 (2023-04-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.1 (2023-03-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.0 (2023-03-14)
-
-* **Feature**: Add flag to disable IMDSv1 fallback
-
-# v1.12.24 (2023-03-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.23 (2023-02-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.22 (2023-02-03)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.21 (2022-12-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.20 (2022-12-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.19 (2022-10-24)
-
-* **Bug Fix**: Fixes an issue that prevented logging of the API request or responses when the respective log modes were enabled.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.18 (2022-10-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.17 (2022-09-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.16 (2022-09-14)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.15 (2022-09-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.14 (2022-08-31)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.13 (2022-08-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.12 (2022-08-11)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.11 (2022-08-09)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.10 (2022-08-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.9 (2022-08-01)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.8 (2022-07-05)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.7 (2022-06-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.6 (2022-06-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.5 (2022-05-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.4 (2022-04-25)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.3 (2022-03-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.2 (2022-03-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.1 (2022-03-23)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.0 (2022-03-08)
-
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.11.0 (2022-02-24)
-
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.10.0 (2022-01-14)
-
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.9.0 (2022-01-07)
-
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.8.2 (2021-12-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.8.1 (2021-11-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.8.0 (2021-11-06)
-
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.7.0 (2021-10-21)
-
-* **Feature**: Updated to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.6.0 (2021-10-11)
-
-* **Feature**: Respect passed in Context Deadline/Timeout. Updates the IMDS Client operations to not override the passed in Context's Deadline or Timeout options. If an Client operation is called with a Context with a Deadline or Timeout, the client will no longer override it with the client's default timeout.
-* **Bug Fix**: Fix IMDS client's response handling and operation timeout race. Fixes #1253
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.5.1 (2021-09-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.5.0 (2021-08-27)
-
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.4.1 (2021-08-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.4.0 (2021-08-04)
-
-* **Feature**: adds error handling for defered close calls
-* **Dependency Update**: Updated `github.com/aws/smithy-go` to latest version.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.0 (2021-07-15)
-
-* **Feature**: Support has been added for EC2 IPv6-enabled Instance Metadata Service Endpoints.
-* **Dependency Update**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.2.0 (2021-06-25)
-
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.1 (2021-05-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.0 (2021-05-14)
-
-* **Feature**: Constant has been added to modules to enable runtime version inspection for reporting.
-* **Dependency Update**: Updated to the latest SDK module versions
-
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/LICENSE.txt b/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/LICENSE.txt
deleted file mode 100644
index d64569567..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_client.go b/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_client.go
deleted file mode 100644
index 75edc4e9d..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_client.go
+++ /dev/null
@@ -1,358 +0,0 @@
-package imds
-
-import (
- "context"
- "fmt"
- "net"
- "net/http"
- "os"
- "strings"
- "time"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- "github.com/aws/aws-sdk-go-v2/aws/retry"
- awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http"
- internalconfig "github.com/aws/aws-sdk-go-v2/feature/ec2/imds/internal/config"
- "github.com/aws/smithy-go"
- "github.com/aws/smithy-go/logging"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// ServiceID provides the unique name of this API client
-const ServiceID = "ec2imds"
-
-// Client provides the API client for interacting with the Amazon EC2 Instance
-// Metadata Service API.
-type Client struct {
- options Options
-}
-
-// ClientEnableState provides an enumeration if the client is enabled,
-// disabled, or default behavior.
-type ClientEnableState = internalconfig.ClientEnableState
-
-// Enumeration values for ClientEnableState
-const (
- ClientDefaultEnableState ClientEnableState = internalconfig.ClientDefaultEnableState // default behavior
- ClientDisabled ClientEnableState = internalconfig.ClientDisabled // client disabled
- ClientEnabled ClientEnableState = internalconfig.ClientEnabled // client enabled
-)
-
-// EndpointModeState is an enum configuration variable describing the client endpoint mode.
-// Not configurable directly, but used when using the NewFromConfig.
-type EndpointModeState = internalconfig.EndpointModeState
-
-// Enumeration values for EndpointModeState
-const (
- EndpointModeStateUnset EndpointModeState = internalconfig.EndpointModeStateUnset
- EndpointModeStateIPv4 EndpointModeState = internalconfig.EndpointModeStateIPv4
- EndpointModeStateIPv6 EndpointModeState = internalconfig.EndpointModeStateIPv6
-)
-
-const (
- disableClientEnvVar = "AWS_EC2_METADATA_DISABLED"
-
- // Client endpoint options
- endpointEnvVar = "AWS_EC2_METADATA_SERVICE_ENDPOINT"
-
- defaultIPv4Endpoint = "http://169.254.169.254"
- defaultIPv6Endpoint = "http://[fd00:ec2::254]"
-)
-
-// New returns an initialized Client based on the functional options. Provide
-// additional functional options to further configure the behavior of the client,
-// such as changing the client's endpoint or adding custom middleware behavior.
-func New(options Options, optFns ...func(*Options)) *Client {
- options = options.Copy()
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- options.HTTPClient = resolveHTTPClient(options.HTTPClient)
-
- if options.Retryer == nil {
- options.Retryer = retry.NewStandard()
- }
- if !options.DisableDefaultMaxBackoff {
- options.Retryer = retry.AddWithMaxBackoffDelay(options.Retryer, 1*time.Second)
- }
-
- if options.ClientEnableState == ClientDefaultEnableState {
- if v := os.Getenv(disableClientEnvVar); strings.EqualFold(v, "true") {
- options.ClientEnableState = ClientDisabled
- }
- }
-
- if len(options.Endpoint) == 0 {
- if v := os.Getenv(endpointEnvVar); len(v) != 0 {
- options.Endpoint = v
- }
- }
-
- client := &Client{
- options: options,
- }
-
- if client.options.tokenProvider == nil && !client.options.disableAPIToken {
- client.options.tokenProvider = newTokenProvider(client, defaultTokenTTL)
- }
-
- return client
-}
-
-// NewFromConfig returns an initialized Client based the AWS SDK config, and
-// functional options. Provide additional functional options to further
-// configure the behavior of the client, such as changing the client's endpoint
-// or adding custom middleware behavior.
-func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client {
- opts := Options{
- APIOptions: append([]func(*middleware.Stack) error{}, cfg.APIOptions...),
- HTTPClient: cfg.HTTPClient,
- ClientLogMode: cfg.ClientLogMode,
- Logger: cfg.Logger,
- }
-
- if cfg.Retryer != nil {
- opts.Retryer = cfg.Retryer()
- }
-
- resolveClientEnableState(cfg, &opts)
- resolveEndpointConfig(cfg, &opts)
- resolveEndpointModeConfig(cfg, &opts)
- resolveEnableFallback(cfg, &opts)
-
- return New(opts, optFns...)
-}
-
-// Options provides the fields for configuring the API client's behavior.
-type Options struct {
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation
- // call to modify this list for per operation behavior.
- APIOptions []func(*middleware.Stack) error
-
- // The endpoint the client will use to retrieve EC2 instance metadata.
- //
- // Specifies the EC2 Instance Metadata Service endpoint to use. If specified it overrides EndpointMode.
- //
- // If unset, and the environment variable AWS_EC2_METADATA_SERVICE_ENDPOINT
- // has a value the client will use the value of the environment variable as
- // the endpoint for operation calls.
- //
- // AWS_EC2_METADATA_SERVICE_ENDPOINT=http://[::1]
- Endpoint string
-
- // The endpoint selection mode the client will use if no explicit endpoint is provided using the Endpoint field.
- //
- // Setting EndpointMode to EndpointModeStateIPv4 will configure the client to use the default EC2 IPv4 endpoint.
- // Setting EndpointMode to EndpointModeStateIPv6 will configure the client to use the default EC2 IPv6 endpoint.
- //
- // By default if EndpointMode is not set (EndpointModeStateUnset) than the default endpoint selection mode EndpointModeStateIPv4.
- EndpointMode EndpointModeState
-
- // The HTTP client to invoke API calls with. Defaults to client's default
- // HTTP implementation if nil.
- HTTPClient HTTPClient
-
- // Retryer guides how HTTP requests should be retried in case of recoverable
- // failures. When nil the API client will use a default retryer.
- Retryer aws.Retryer
-
- // Changes if the EC2 Instance Metadata client is enabled or not. Client
- // will default to enabled if not set to ClientDisabled. When the client is
- // disabled it will return an error for all operation calls.
- //
- // If ClientEnableState value is ClientDefaultEnableState (default value),
- // and the environment variable "AWS_EC2_METADATA_DISABLED" is set to
- // "true", the client will be disabled.
- //
- // AWS_EC2_METADATA_DISABLED=true
- ClientEnableState ClientEnableState
-
- // Configures the events that will be sent to the configured logger.
- ClientLogMode aws.ClientLogMode
-
- // The logger writer interface to write logging messages to.
- Logger logging.Logger
-
- // Configure IMDSv1 fallback behavior. By default, the client will attempt
- // to fall back to IMDSv1 as needed for backwards compatibility. When set to [aws.FalseTernary]
- // the client will return any errors encountered from attempting to fetch a token
- // instead of silently using the insecure data flow of IMDSv1.
- //
- // See [configuring IMDS] for more information.
- //
- // [configuring IMDS]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html
- EnableFallback aws.Ternary
-
- // By default, all IMDS client operations enforce a 5-second timeout. You
- // can disable that behavior with this setting.
- DisableDefaultTimeout bool
-
- // By default all IMDS client operations enforce a 1-second retry delay at maximum.
- // You can disable that behavior with this setting.
- DisableDefaultMaxBackoff bool
-
- // provides the caching of API tokens used for operation calls. If unset,
- // the API token will not be retrieved for the operation.
- tokenProvider *tokenProvider
-
- // option to disable the API token provider for testing.
- disableAPIToken bool
-}
-
-// HTTPClient provides the interface for a client making HTTP requests with the
-// API.
-type HTTPClient interface {
- Do(*http.Request) (*http.Response, error)
-}
-
-// Copy creates a copy of the API options.
-func (o Options) Copy() Options {
- to := o
- to.APIOptions = append([]func(*middleware.Stack) error{}, o.APIOptions...)
- return to
-}
-
-// WithAPIOptions wraps the API middleware functions, as a functional option
-// for the API Client Options. Use this helper to add additional functional
-// options to the API client, or operation calls.
-func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options) {
- return func(o *Options) {
- o.APIOptions = append(o.APIOptions, optFns...)
- }
-}
-
-func (c *Client) invokeOperation(
- ctx context.Context, opID string, params interface{}, optFns []func(*Options),
- stackFns ...func(*middleware.Stack, Options) error,
-) (
- result interface{}, metadata middleware.Metadata, err error,
-) {
- stack := middleware.NewStack(opID, smithyhttp.NewStackRequest)
- options := c.options.Copy()
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.ClientEnableState == ClientDisabled {
- return nil, metadata, &smithy.OperationError{
- ServiceID: ServiceID,
- OperationName: opID,
- Err: fmt.Errorf(
- "access disabled to EC2 IMDS via client option, or %q environment variable",
- disableClientEnvVar),
- }
- }
-
- for _, fn := range stackFns {
- if err := fn(stack, options); err != nil {
- return nil, metadata, err
- }
- }
-
- for _, fn := range options.APIOptions {
- if err := fn(stack); err != nil {
- return nil, metadata, err
- }
- }
-
- handler := middleware.DecorateHandler(smithyhttp.NewClientHandler(options.HTTPClient), stack)
- result, metadata, err = handler.Handle(ctx, params)
- if err != nil {
- return nil, metadata, &smithy.OperationError{
- ServiceID: ServiceID,
- OperationName: opID,
- Err: err,
- }
- }
-
- return result, metadata, err
-}
-
-const (
- // HTTP client constants
- defaultDialerTimeout = 250 * time.Millisecond
- defaultResponseHeaderTimeout = 500 * time.Millisecond
-)
-
-func resolveHTTPClient(client HTTPClient) HTTPClient {
- if client == nil {
- client = awshttp.NewBuildableClient()
- }
-
- if c, ok := client.(*awshttp.BuildableClient); ok {
- client = c.
- WithDialerOptions(func(d *net.Dialer) {
- // Use a custom Dial timeout for the EC2 Metadata service to account
- // for the possibility the application might not be running in an
- // environment with the service present. The client should fail fast in
- // this case.
- d.Timeout = defaultDialerTimeout
- }).
- WithTransportOptions(func(tr *http.Transport) {
- // Use a custom Transport timeout for the EC2 Metadata service to
- // account for the possibility that the application might be running in
- // a container, and EC2Metadata service drops the connection after a
- // single IP Hop. The client should fail fast in this case.
- tr.ResponseHeaderTimeout = defaultResponseHeaderTimeout
- })
- }
-
- return client
-}
-
-func resolveClientEnableState(cfg aws.Config, options *Options) error {
- if options.ClientEnableState != ClientDefaultEnableState {
- return nil
- }
- value, found, err := internalconfig.ResolveClientEnableState(cfg.ConfigSources)
- if err != nil || !found {
- return err
- }
- options.ClientEnableState = value
- return nil
-}
-
-func resolveEndpointModeConfig(cfg aws.Config, options *Options) error {
- if options.EndpointMode != EndpointModeStateUnset {
- return nil
- }
- value, found, err := internalconfig.ResolveEndpointModeConfig(cfg.ConfigSources)
- if err != nil || !found {
- return err
- }
- options.EndpointMode = value
- return nil
-}
-
-func resolveEndpointConfig(cfg aws.Config, options *Options) error {
- if len(options.Endpoint) != 0 {
- return nil
- }
- value, found, err := internalconfig.ResolveEndpointConfig(cfg.ConfigSources)
- if err != nil || !found {
- return err
- }
- options.Endpoint = value
- return nil
-}
-
-func resolveEnableFallback(cfg aws.Config, options *Options) {
- if options.EnableFallback != aws.UnknownTernary {
- return
- }
-
- disabled, ok := internalconfig.ResolveV1FallbackDisabled(cfg.ConfigSources)
- if !ok {
- return
- }
-
- if disabled {
- options.EnableFallback = aws.FalseTernary
- } else {
- options.EnableFallback = aws.TrueTernary
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetDynamicData.go b/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetDynamicData.go
deleted file mode 100644
index af58b6bb1..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetDynamicData.go
+++ /dev/null
@@ -1,77 +0,0 @@
-package imds
-
-import (
- "context"
- "fmt"
- "io"
-
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-const getDynamicDataPath = "/latest/dynamic"
-
-// GetDynamicData uses the path provided to request information from the EC2
-// instance metadata service for dynamic data. The content will be returned
-// as a string, or error if the request failed.
-func (c *Client) GetDynamicData(ctx context.Context, params *GetDynamicDataInput, optFns ...func(*Options)) (*GetDynamicDataOutput, error) {
- if params == nil {
- params = &GetDynamicDataInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetDynamicData", params, optFns,
- addGetDynamicDataMiddleware,
- )
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetDynamicDataOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// GetDynamicDataInput provides the input parameters for the GetDynamicData
-// operation.
-type GetDynamicDataInput struct {
- // The relative dynamic data path to retrieve. Can be empty string to
- // retrieve a response containing a new line separated list of dynamic data
- // resources available.
- //
- // Must not include the dynamic data base path.
- //
- // May include leading slash. If Path includes trailing slash the trailing
- // slash will be included in the request for the resource.
- Path string
-}
-
-// GetDynamicDataOutput provides the output parameters for the GetDynamicData
-// operation.
-type GetDynamicDataOutput struct {
- Content io.ReadCloser
-
- ResultMetadata middleware.Metadata
-}
-
-func addGetDynamicDataMiddleware(stack *middleware.Stack, options Options) error {
- return addAPIRequestMiddleware(stack,
- options,
- "GetDynamicData",
- buildGetDynamicDataPath,
- buildGetDynamicDataOutput)
-}
-
-func buildGetDynamicDataPath(params interface{}) (string, error) {
- p, ok := params.(*GetDynamicDataInput)
- if !ok {
- return "", fmt.Errorf("unknown parameter type %T", params)
- }
-
- return appendURIPath(getDynamicDataPath, p.Path), nil
-}
-
-func buildGetDynamicDataOutput(resp *smithyhttp.Response) (interface{}, error) {
- return &GetDynamicDataOutput{
- Content: resp.Body,
- }, nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetIAMInfo.go b/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetIAMInfo.go
deleted file mode 100644
index 5111cc90c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetIAMInfo.go
+++ /dev/null
@@ -1,103 +0,0 @@
-package imds
-
-import (
- "context"
- "encoding/json"
- "fmt"
- "io"
- "strings"
- "time"
-
- "github.com/aws/smithy-go"
- smithyio "github.com/aws/smithy-go/io"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-const getIAMInfoPath = getMetadataPath + "/iam/info"
-
-// GetIAMInfo retrieves an identity document describing an
-// instance. Error is returned if the request fails or is unable to parse
-// the response.
-func (c *Client) GetIAMInfo(
- ctx context.Context, params *GetIAMInfoInput, optFns ...func(*Options),
-) (
- *GetIAMInfoOutput, error,
-) {
- if params == nil {
- params = &GetIAMInfoInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetIAMInfo", params, optFns,
- addGetIAMInfoMiddleware,
- )
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetIAMInfoOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// GetIAMInfoInput provides the input parameters for GetIAMInfo operation.
-type GetIAMInfoInput struct{}
-
-// GetIAMInfoOutput provides the output parameters for GetIAMInfo operation.
-type GetIAMInfoOutput struct {
- IAMInfo
-
- ResultMetadata middleware.Metadata
-}
-
-func addGetIAMInfoMiddleware(stack *middleware.Stack, options Options) error {
- return addAPIRequestMiddleware(stack,
- options,
- "GetIAMInfo",
- buildGetIAMInfoPath,
- buildGetIAMInfoOutput,
- )
-}
-
-func buildGetIAMInfoPath(params interface{}) (string, error) {
- return getIAMInfoPath, nil
-}
-
-func buildGetIAMInfoOutput(resp *smithyhttp.Response) (v interface{}, err error) {
- defer func() {
- closeErr := resp.Body.Close()
- if err == nil {
- err = closeErr
- } else if closeErr != nil {
- err = fmt.Errorf("response body close error: %v, original error: %w", closeErr, err)
- }
- }()
-
- var buff [1024]byte
- ringBuffer := smithyio.NewRingBuffer(buff[:])
- body := io.TeeReader(resp.Body, ringBuffer)
-
- imdsResult := &GetIAMInfoOutput{}
- if err = json.NewDecoder(body).Decode(&imdsResult.IAMInfo); err != nil {
- return nil, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode instance identity document, %w", err),
- Snapshot: ringBuffer.Bytes(),
- }
- }
- // Any code other success is an error
- if !strings.EqualFold(imdsResult.Code, "success") {
- return nil, fmt.Errorf("failed to get EC2 IMDS IAM info, %s",
- imdsResult.Code)
- }
-
- return imdsResult, nil
-}
-
-// IAMInfo provides the shape for unmarshaling an IAM info from the metadata
-// API.
-type IAMInfo struct {
- Code string
- LastUpdated time.Time
- InstanceProfileArn string
- InstanceProfileID string
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetInstanceIdentityDocument.go b/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetInstanceIdentityDocument.go
deleted file mode 100644
index dc8c09edf..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetInstanceIdentityDocument.go
+++ /dev/null
@@ -1,110 +0,0 @@
-package imds
-
-import (
- "context"
- "encoding/json"
- "fmt"
- "io"
- "time"
-
- "github.com/aws/smithy-go"
- smithyio "github.com/aws/smithy-go/io"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-const getInstanceIdentityDocumentPath = getDynamicDataPath + "/instance-identity/document"
-
-// GetInstanceIdentityDocument retrieves an identity document describing an
-// instance. Error is returned if the request fails or is unable to parse
-// the response.
-func (c *Client) GetInstanceIdentityDocument(
- ctx context.Context, params *GetInstanceIdentityDocumentInput, optFns ...func(*Options),
-) (
- *GetInstanceIdentityDocumentOutput, error,
-) {
- if params == nil {
- params = &GetInstanceIdentityDocumentInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetInstanceIdentityDocument", params, optFns,
- addGetInstanceIdentityDocumentMiddleware,
- )
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetInstanceIdentityDocumentOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// GetInstanceIdentityDocumentInput provides the input parameters for
-// GetInstanceIdentityDocument operation.
-type GetInstanceIdentityDocumentInput struct{}
-
-// GetInstanceIdentityDocumentOutput provides the output parameters for
-// GetInstanceIdentityDocument operation.
-type GetInstanceIdentityDocumentOutput struct {
- InstanceIdentityDocument
-
- ResultMetadata middleware.Metadata
-}
-
-func addGetInstanceIdentityDocumentMiddleware(stack *middleware.Stack, options Options) error {
- return addAPIRequestMiddleware(stack,
- options,
- "GetInstanceIdentityDocument",
- buildGetInstanceIdentityDocumentPath,
- buildGetInstanceIdentityDocumentOutput,
- )
-}
-
-func buildGetInstanceIdentityDocumentPath(params interface{}) (string, error) {
- return getInstanceIdentityDocumentPath, nil
-}
-
-func buildGetInstanceIdentityDocumentOutput(resp *smithyhttp.Response) (v interface{}, err error) {
- defer func() {
- closeErr := resp.Body.Close()
- if err == nil {
- err = closeErr
- } else if closeErr != nil {
- err = fmt.Errorf("response body close error: %v, original error: %w", closeErr, err)
- }
- }()
-
- var buff [1024]byte
- ringBuffer := smithyio.NewRingBuffer(buff[:])
- body := io.TeeReader(resp.Body, ringBuffer)
-
- output := &GetInstanceIdentityDocumentOutput{}
- if err = json.NewDecoder(body).Decode(&output.InstanceIdentityDocument); err != nil {
- return nil, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode instance identity document, %w", err),
- Snapshot: ringBuffer.Bytes(),
- }
- }
-
- return output, nil
-}
-
-// InstanceIdentityDocument provides the shape for unmarshaling
-// an instance identity document
-type InstanceIdentityDocument struct {
- DevpayProductCodes []string `json:"devpayProductCodes"`
- MarketplaceProductCodes []string `json:"marketplaceProductCodes"`
- AvailabilityZone string `json:"availabilityZone"`
- PrivateIP string `json:"privateIp"`
- Version string `json:"version"`
- Region string `json:"region"`
- InstanceID string `json:"instanceId"`
- BillingProducts []string `json:"billingProducts"`
- InstanceType string `json:"instanceType"`
- AccountID string `json:"accountId"`
- PendingTime time.Time `json:"pendingTime"`
- ImageID string `json:"imageId"`
- KernelID string `json:"kernelId"`
- RamdiskID string `json:"ramdiskId"`
- Architecture string `json:"architecture"`
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetMetadata.go b/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetMetadata.go
deleted file mode 100644
index 869bfc9fe..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetMetadata.go
+++ /dev/null
@@ -1,77 +0,0 @@
-package imds
-
-import (
- "context"
- "fmt"
- "io"
-
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-const getMetadataPath = "/latest/meta-data"
-
-// GetMetadata uses the path provided to request information from the Amazon
-// EC2 Instance Metadata Service. The content will be returned as a string, or
-// error if the request failed.
-func (c *Client) GetMetadata(ctx context.Context, params *GetMetadataInput, optFns ...func(*Options)) (*GetMetadataOutput, error) {
- if params == nil {
- params = &GetMetadataInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetMetadata", params, optFns,
- addGetMetadataMiddleware,
- )
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetMetadataOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// GetMetadataInput provides the input parameters for the GetMetadata
-// operation.
-type GetMetadataInput struct {
- // The relative metadata path to retrieve. Can be empty string to retrieve
- // a response containing a new line separated list of metadata resources
- // available.
- //
- // Must not include the metadata base path.
- //
- // May include leading slash. If Path includes trailing slash the trailing slash
- // will be included in the request for the resource.
- Path string
-}
-
-// GetMetadataOutput provides the output parameters for the GetMetadata
-// operation.
-type GetMetadataOutput struct {
- Content io.ReadCloser
-
- ResultMetadata middleware.Metadata
-}
-
-func addGetMetadataMiddleware(stack *middleware.Stack, options Options) error {
- return addAPIRequestMiddleware(stack,
- options,
- "GetMetadata",
- buildGetMetadataPath,
- buildGetMetadataOutput)
-}
-
-func buildGetMetadataPath(params interface{}) (string, error) {
- p, ok := params.(*GetMetadataInput)
- if !ok {
- return "", fmt.Errorf("unknown parameter type %T", params)
- }
-
- return appendURIPath(getMetadataPath, p.Path), nil
-}
-
-func buildGetMetadataOutput(resp *smithyhttp.Response) (interface{}, error) {
- return &GetMetadataOutput{
- Content: resp.Body,
- }, nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetRegion.go b/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetRegion.go
deleted file mode 100644
index 8c0572bb5..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetRegion.go
+++ /dev/null
@@ -1,73 +0,0 @@
-package imds
-
-import (
- "context"
- "fmt"
-
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// GetRegion retrieves an identity document describing an
-// instance. Error is returned if the request fails or is unable to parse
-// the response.
-func (c *Client) GetRegion(
- ctx context.Context, params *GetRegionInput, optFns ...func(*Options),
-) (
- *GetRegionOutput, error,
-) {
- if params == nil {
- params = &GetRegionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetRegion", params, optFns,
- addGetRegionMiddleware,
- )
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetRegionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// GetRegionInput provides the input parameters for GetRegion operation.
-type GetRegionInput struct{}
-
-// GetRegionOutput provides the output parameters for GetRegion operation.
-type GetRegionOutput struct {
- Region string
-
- ResultMetadata middleware.Metadata
-}
-
-func addGetRegionMiddleware(stack *middleware.Stack, options Options) error {
- return addAPIRequestMiddleware(stack,
- options,
- "GetRegion",
- buildGetInstanceIdentityDocumentPath,
- buildGetRegionOutput,
- )
-}
-
-func buildGetRegionOutput(resp *smithyhttp.Response) (interface{}, error) {
- out, err := buildGetInstanceIdentityDocumentOutput(resp)
- if err != nil {
- return nil, err
- }
-
- result, ok := out.(*GetInstanceIdentityDocumentOutput)
- if !ok {
- return nil, fmt.Errorf("unexpected instance identity document type, %T", out)
- }
-
- region := result.Region
- if len(region) == 0 {
- return "", fmt.Errorf("instance metadata did not return a region value")
- }
-
- return &GetRegionOutput{
- Region: region,
- }, nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetToken.go b/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetToken.go
deleted file mode 100644
index 1f9ee97a5..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetToken.go
+++ /dev/null
@@ -1,119 +0,0 @@
-package imds
-
-import (
- "context"
- "fmt"
- "io"
- "strconv"
- "strings"
- "time"
-
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-const getTokenPath = "/latest/api/token"
-const tokenTTLHeader = "X-Aws-Ec2-Metadata-Token-Ttl-Seconds"
-
-// getToken uses the duration to return a token for EC2 IMDS, or an error if
-// the request failed.
-func (c *Client) getToken(ctx context.Context, params *getTokenInput, optFns ...func(*Options)) (*getTokenOutput, error) {
- if params == nil {
- params = &getTokenInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "getToken", params, optFns,
- addGetTokenMiddleware,
- )
- if err != nil {
- return nil, err
- }
-
- out := result.(*getTokenOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type getTokenInput struct {
- TokenTTL time.Duration
-}
-
-type getTokenOutput struct {
- Token string
- TokenTTL time.Duration
-
- ResultMetadata middleware.Metadata
-}
-
-func addGetTokenMiddleware(stack *middleware.Stack, options Options) error {
- err := addRequestMiddleware(stack,
- options,
- "PUT",
- "GetToken",
- buildGetTokenPath,
- buildGetTokenOutput)
- if err != nil {
- return err
- }
-
- err = stack.Serialize.Add(&tokenTTLRequestHeader{}, middleware.After)
- if err != nil {
- return err
- }
-
- return nil
-}
-
-func buildGetTokenPath(interface{}) (string, error) {
- return getTokenPath, nil
-}
-
-func buildGetTokenOutput(resp *smithyhttp.Response) (v interface{}, err error) {
- defer func() {
- closeErr := resp.Body.Close()
- if err == nil {
- err = closeErr
- } else if closeErr != nil {
- err = fmt.Errorf("response body close error: %v, original error: %w", closeErr, err)
- }
- }()
-
- ttlHeader := resp.Header.Get(tokenTTLHeader)
- tokenTTL, err := strconv.ParseInt(ttlHeader, 10, 64)
- if err != nil {
- return nil, fmt.Errorf("unable to parse API token, %w", err)
- }
-
- var token strings.Builder
- if _, err = io.Copy(&token, resp.Body); err != nil {
- return nil, fmt.Errorf("unable to read API token, %w", err)
- }
-
- return &getTokenOutput{
- Token: token.String(),
- TokenTTL: time.Duration(tokenTTL) * time.Second,
- }, nil
-}
-
-type tokenTTLRequestHeader struct{}
-
-func (*tokenTTLRequestHeader) ID() string { return "tokenTTLRequestHeader" }
-func (*tokenTTLRequestHeader) HandleSerialize(
- ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler,
-) (
- out middleware.SerializeOutput, metadata middleware.Metadata, err error,
-) {
- req, ok := in.Request.(*smithyhttp.Request)
- if !ok {
- return out, metadata, fmt.Errorf("expect HTTP transport, got %T", in.Request)
- }
-
- input, ok := in.Parameters.(*getTokenInput)
- if !ok {
- return out, metadata, fmt.Errorf("expect getTokenInput, got %T", in.Parameters)
- }
-
- req.Header.Set(tokenTTLHeader, strconv.Itoa(int(input.TokenTTL/time.Second)))
-
- return next.HandleSerialize(ctx, in)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetUserData.go b/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetUserData.go
deleted file mode 100644
index 890369724..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/api_op_GetUserData.go
+++ /dev/null
@@ -1,61 +0,0 @@
-package imds
-
-import (
- "context"
- "io"
-
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-const getUserDataPath = "/latest/user-data"
-
-// GetUserData uses the path provided to request information from the EC2
-// instance metadata service for dynamic data. The content will be returned
-// as a string, or error if the request failed.
-func (c *Client) GetUserData(ctx context.Context, params *GetUserDataInput, optFns ...func(*Options)) (*GetUserDataOutput, error) {
- if params == nil {
- params = &GetUserDataInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetUserData", params, optFns,
- addGetUserDataMiddleware,
- )
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetUserDataOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// GetUserDataInput provides the input parameters for the GetUserData
-// operation.
-type GetUserDataInput struct{}
-
-// GetUserDataOutput provides the output parameters for the GetUserData
-// operation.
-type GetUserDataOutput struct {
- Content io.ReadCloser
-
- ResultMetadata middleware.Metadata
-}
-
-func addGetUserDataMiddleware(stack *middleware.Stack, options Options) error {
- return addAPIRequestMiddleware(stack,
- options,
- "GetUserData",
- buildGetUserDataPath,
- buildGetUserDataOutput)
-}
-
-func buildGetUserDataPath(params interface{}) (string, error) {
- return getUserDataPath, nil
-}
-
-func buildGetUserDataOutput(resp *smithyhttp.Response) (interface{}, error) {
- return &GetUserDataOutput{
- Content: resp.Body,
- }, nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/auth.go b/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/auth.go
deleted file mode 100644
index ad283cf82..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/auth.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package imds
-
-import (
- "context"
- "github.com/aws/smithy-go/middleware"
-)
-
-type getIdentityMiddleware struct {
- options Options
-}
-
-func (*getIdentityMiddleware) ID() string {
- return "GetIdentity"
-}
-
-func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
- out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
-) {
- return next.HandleFinalize(ctx, in)
-}
-
-type signRequestMiddleware struct {
-}
-
-func (*signRequestMiddleware) ID() string {
- return "Signing"
-}
-
-func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
- out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
-) {
- return next.HandleFinalize(ctx, in)
-}
-
-type resolveAuthSchemeMiddleware struct {
- operation string
- options Options
-}
-
-func (*resolveAuthSchemeMiddleware) ID() string {
- return "ResolveAuthScheme"
-}
-
-func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
- out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
-) {
- return next.HandleFinalize(ctx, in)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/doc.go b/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/doc.go
deleted file mode 100644
index d5765c36b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/doc.go
+++ /dev/null
@@ -1,12 +0,0 @@
-// Package imds provides the API client for interacting with the Amazon EC2
-// Instance Metadata Service.
-//
-// All Client operation calls have a default timeout. If the operation is not
-// completed before this timeout expires, the operation will be canceled. This
-// timeout can be overridden through the following:
-// - Set the options flag DisableDefaultTimeout
-// - Provide a Context with a timeout or deadline with calling the client's operations.
-//
-// See the EC2 IMDS user guide for more information on using the API.
-// https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
-package imds
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/endpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/endpoints.go
deleted file mode 100644
index d7540da34..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/endpoints.go
+++ /dev/null
@@ -1,20 +0,0 @@
-package imds
-
-import (
- "context"
- "github.com/aws/smithy-go/middleware"
-)
-
-type resolveEndpointV2Middleware struct {
- options Options
-}
-
-func (*resolveEndpointV2Middleware) ID() string {
- return "ResolveEndpointV2"
-}
-
-func (m *resolveEndpointV2Middleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
- out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
-) {
- return next.HandleFinalize(ctx, in)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/go_module_metadata.go
deleted file mode 100644
index ce89f5829..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/go_module_metadata.go
+++ /dev/null
@@ -1,6 +0,0 @@
-// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
-
-package imds
-
-// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.18.9"
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/internal/config/resolvers.go b/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/internal/config/resolvers.go
deleted file mode 100644
index ce7745589..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/internal/config/resolvers.go
+++ /dev/null
@@ -1,114 +0,0 @@
-package config
-
-import (
- "fmt"
- "strings"
-)
-
-// ClientEnableState provides an enumeration if the client is enabled,
-// disabled, or default behavior.
-type ClientEnableState uint
-
-// Enumeration values for ClientEnableState
-const (
- ClientDefaultEnableState ClientEnableState = iota
- ClientDisabled
- ClientEnabled
-)
-
-// EndpointModeState is the EC2 IMDS Endpoint Configuration Mode
-type EndpointModeState uint
-
-// Enumeration values for ClientEnableState
-const (
- EndpointModeStateUnset EndpointModeState = iota
- EndpointModeStateIPv4
- EndpointModeStateIPv6
-)
-
-// SetFromString sets the EndpointModeState based on the provided string value. Unknown values will default to EndpointModeStateUnset
-func (e *EndpointModeState) SetFromString(v string) error {
- v = strings.TrimSpace(v)
-
- switch {
- case len(v) == 0:
- *e = EndpointModeStateUnset
- case strings.EqualFold(v, "IPv6"):
- *e = EndpointModeStateIPv6
- case strings.EqualFold(v, "IPv4"):
- *e = EndpointModeStateIPv4
- default:
- return fmt.Errorf("unknown EC2 IMDS endpoint mode, must be either IPv6 or IPv4")
- }
- return nil
-}
-
-// ClientEnableStateResolver is a config resolver interface for retrieving whether the IMDS client is disabled.
-type ClientEnableStateResolver interface {
- GetEC2IMDSClientEnableState() (ClientEnableState, bool, error)
-}
-
-// EndpointModeResolver is a config resolver interface for retrieving the EndpointModeState configuration.
-type EndpointModeResolver interface {
- GetEC2IMDSEndpointMode() (EndpointModeState, bool, error)
-}
-
-// EndpointResolver is a config resolver interface for retrieving the endpoint.
-type EndpointResolver interface {
- GetEC2IMDSEndpoint() (string, bool, error)
-}
-
-type v1FallbackDisabledResolver interface {
- GetEC2IMDSV1FallbackDisabled() (bool, bool)
-}
-
-// ResolveClientEnableState resolves the ClientEnableState from a list of configuration sources.
-func ResolveClientEnableState(sources []interface{}) (value ClientEnableState, found bool, err error) {
- for _, source := range sources {
- if resolver, ok := source.(ClientEnableStateResolver); ok {
- value, found, err = resolver.GetEC2IMDSClientEnableState()
- if err != nil || found {
- return value, found, err
- }
- }
- }
- return value, found, err
-}
-
-// ResolveEndpointModeConfig resolves the EndpointModeState from a list of configuration sources.
-func ResolveEndpointModeConfig(sources []interface{}) (value EndpointModeState, found bool, err error) {
- for _, source := range sources {
- if resolver, ok := source.(EndpointModeResolver); ok {
- value, found, err = resolver.GetEC2IMDSEndpointMode()
- if err != nil || found {
- return value, found, err
- }
- }
- }
- return value, found, err
-}
-
-// ResolveEndpointConfig resolves the endpoint from a list of configuration sources.
-func ResolveEndpointConfig(sources []interface{}) (value string, found bool, err error) {
- for _, source := range sources {
- if resolver, ok := source.(EndpointResolver); ok {
- value, found, err = resolver.GetEC2IMDSEndpoint()
- if err != nil || found {
- return value, found, err
- }
- }
- }
- return value, found, err
-}
-
-// ResolveV1FallbackDisabled ...
-func ResolveV1FallbackDisabled(sources []interface{}) (bool, bool) {
- for _, source := range sources {
- if resolver, ok := source.(v1FallbackDisabledResolver); ok {
- if v, found := resolver.GetEC2IMDSV1FallbackDisabled(); found {
- return v, true
- }
- }
- }
- return false, false
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/request_middleware.go b/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/request_middleware.go
deleted file mode 100644
index 90cf4aeb3..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/request_middleware.go
+++ /dev/null
@@ -1,313 +0,0 @@
-package imds
-
-import (
- "bytes"
- "context"
- "fmt"
- "io/ioutil"
- "net/url"
- "path"
- "time"
-
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/aws/retry"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-func addAPIRequestMiddleware(stack *middleware.Stack,
- options Options,
- operation string,
- getPath func(interface{}) (string, error),
- getOutput func(*smithyhttp.Response) (interface{}, error),
-) (err error) {
- err = addRequestMiddleware(stack, options, "GET", operation, getPath, getOutput)
- if err != nil {
- return err
- }
-
- // Token Serializer build and state management.
- if !options.disableAPIToken {
- err = stack.Finalize.Insert(options.tokenProvider, (*retry.Attempt)(nil).ID(), middleware.After)
- if err != nil {
- return err
- }
-
- err = stack.Deserialize.Insert(options.tokenProvider, "OperationDeserializer", middleware.Before)
- if err != nil {
- return err
- }
- }
-
- return nil
-}
-
-func addRequestMiddleware(stack *middleware.Stack,
- options Options,
- method string,
- operation string,
- getPath func(interface{}) (string, error),
- getOutput func(*smithyhttp.Response) (interface{}, error),
-) (err error) {
- err = awsmiddleware.AddSDKAgentKey(awsmiddleware.FeatureMetadata, "ec2-imds")(stack)
- if err != nil {
- return err
- }
-
- // Operation timeout
- err = stack.Initialize.Add(&operationTimeout{
- Disabled: options.DisableDefaultTimeout,
- DefaultTimeout: defaultOperationTimeout,
- }, middleware.Before)
- if err != nil {
- return err
- }
-
- // Operation Serializer
- err = stack.Serialize.Add(&serializeRequest{
- GetPath: getPath,
- Method: method,
- }, middleware.After)
- if err != nil {
- return err
- }
-
- // Operation endpoint resolver
- err = stack.Serialize.Insert(&resolveEndpoint{
- Endpoint: options.Endpoint,
- EndpointMode: options.EndpointMode,
- }, "OperationSerializer", middleware.Before)
- if err != nil {
- return err
- }
-
- // Operation Deserializer
- err = stack.Deserialize.Add(&deserializeResponse{
- GetOutput: getOutput,
- }, middleware.After)
- if err != nil {
- return err
- }
-
- err = stack.Deserialize.Add(&smithyhttp.RequestResponseLogger{
- LogRequest: options.ClientLogMode.IsRequest(),
- LogRequestWithBody: options.ClientLogMode.IsRequestWithBody(),
- LogResponse: options.ClientLogMode.IsResponse(),
- LogResponseWithBody: options.ClientLogMode.IsResponseWithBody(),
- }, middleware.After)
- if err != nil {
- return err
- }
-
- err = addSetLoggerMiddleware(stack, options)
- if err != nil {
- return err
- }
-
- if err := addProtocolFinalizerMiddlewares(stack, options, operation); err != nil {
- return fmt.Errorf("add protocol finalizers: %w", err)
- }
-
- // Retry support
- return retry.AddRetryMiddlewares(stack, retry.AddRetryMiddlewaresOptions{
- Retryer: options.Retryer,
- LogRetryAttempts: options.ClientLogMode.IsRetries(),
- })
-}
-
-func addSetLoggerMiddleware(stack *middleware.Stack, o Options) error {
- return middleware.AddSetLoggerMiddleware(stack, o.Logger)
-}
-
-type serializeRequest struct {
- GetPath func(interface{}) (string, error)
- Method string
-}
-
-func (*serializeRequest) ID() string {
- return "OperationSerializer"
-}
-
-func (m *serializeRequest) HandleSerialize(
- ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler,
-) (
- out middleware.SerializeOutput, metadata middleware.Metadata, err error,
-) {
- request, ok := in.Request.(*smithyhttp.Request)
- if !ok {
- return out, metadata, fmt.Errorf("unknown transport type %T", in.Request)
- }
-
- reqPath, err := m.GetPath(in.Parameters)
- if err != nil {
- return out, metadata, fmt.Errorf("unable to get request URL path, %w", err)
- }
-
- request.Request.URL.Path = reqPath
- request.Request.Method = m.Method
-
- return next.HandleSerialize(ctx, in)
-}
-
-type deserializeResponse struct {
- GetOutput func(*smithyhttp.Response) (interface{}, error)
-}
-
-func (*deserializeResponse) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *deserializeResponse) 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)
- if err != nil {
- return out, metadata, err
- }
-
- resp, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, fmt.Errorf(
- "unexpected transport response type, %T, want %T", out.RawResponse, resp)
- }
- defer resp.Body.Close()
-
- // read the full body so that any operation timeouts cleanup will not race
- // the body being read.
- body, err := ioutil.ReadAll(resp.Body)
- if err != nil {
- return out, metadata, fmt.Errorf("read response body failed, %w", err)
- }
- resp.Body = ioutil.NopCloser(bytes.NewReader(body))
-
- // Anything that's not 200 |< 300 is error
- if resp.StatusCode < 200 || resp.StatusCode >= 300 {
- return out, metadata, &smithyhttp.ResponseError{
- Response: resp,
- Err: fmt.Errorf("request to EC2 IMDS failed"),
- }
- }
-
- result, err := m.GetOutput(resp)
- if err != nil {
- return out, metadata, fmt.Errorf(
- "unable to get deserialized result for response, %w", err,
- )
- }
- out.Result = result
-
- return out, metadata, err
-}
-
-type resolveEndpoint struct {
- Endpoint string
- EndpointMode EndpointModeState
-}
-
-func (*resolveEndpoint) ID() string {
- return "ResolveEndpoint"
-}
-
-func (m *resolveEndpoint) HandleSerialize(
- ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler,
-) (
- out middleware.SerializeOutput, metadata middleware.Metadata, err error,
-) {
-
- req, ok := in.Request.(*smithyhttp.Request)
- if !ok {
- return out, metadata, fmt.Errorf("unknown transport type %T", in.Request)
- }
-
- var endpoint string
- if len(m.Endpoint) > 0 {
- endpoint = m.Endpoint
- } else {
- switch m.EndpointMode {
- case EndpointModeStateIPv6:
- endpoint = defaultIPv6Endpoint
- case EndpointModeStateIPv4:
- fallthrough
- case EndpointModeStateUnset:
- endpoint = defaultIPv4Endpoint
- default:
- return out, metadata, fmt.Errorf("unsupported IMDS endpoint mode")
- }
- }
-
- req.URL, err = url.Parse(endpoint)
- if err != nil {
- return out, metadata, fmt.Errorf("failed to parse endpoint URL: %w", err)
- }
-
- return next.HandleSerialize(ctx, in)
-}
-
-const (
- defaultOperationTimeout = 5 * time.Second
-)
-
-// operationTimeout adds a timeout on the middleware stack if the Context the
-// stack was called with does not have a deadline. The next middleware must
-// complete before the timeout, or the context will be canceled.
-//
-// If DefaultTimeout is zero, no default timeout will be used if the Context
-// does not have a timeout.
-//
-// The next middleware must also ensure that any resources that are also
-// canceled by the stack's context are completely consumed before returning.
-// Otherwise the timeout cleanup will race the resource being consumed
-// upstream.
-type operationTimeout struct {
- Disabled bool
- DefaultTimeout time.Duration
-}
-
-func (*operationTimeout) ID() string { return "OperationTimeout" }
-
-func (m *operationTimeout) HandleInitialize(
- ctx context.Context, input middleware.InitializeInput, next middleware.InitializeHandler,
-) (
- output middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.Disabled {
- return next.HandleInitialize(ctx, input)
- }
-
- if _, ok := ctx.Deadline(); !ok && m.DefaultTimeout != 0 {
- var cancelFn func()
- ctx, cancelFn = context.WithTimeout(ctx, m.DefaultTimeout)
- defer cancelFn()
- }
-
- return next.HandleInitialize(ctx, input)
-}
-
-// appendURIPath joins a URI path component to the existing path with `/`
-// separators between the path components. If the path being added ends with a
-// trailing `/` that slash will be maintained.
-func appendURIPath(base, add string) string {
- reqPath := path.Join(base, add)
- if len(add) != 0 && add[len(add)-1] == '/' {
- reqPath += "/"
- }
- return reqPath
-}
-
-func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error {
- if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil {
- return fmt.Errorf("add ResolveAuthScheme: %w", err)
- }
- if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil {
- return fmt.Errorf("add GetIdentity: %w", err)
- }
- if err := stack.Finalize.Insert(&resolveEndpointV2Middleware{options: options}, "GetIdentity", middleware.After); err != nil {
- return fmt.Errorf("add ResolveEndpointV2: %w", err)
- }
- if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil {
- return fmt.Errorf("add Signing: %w", err)
- }
- return nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/token_provider.go b/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/token_provider.go
deleted file mode 100644
index 5703c6e16..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/token_provider.go
+++ /dev/null
@@ -1,261 +0,0 @@
-package imds
-
-import (
- "context"
- "errors"
- "fmt"
- "github.com/aws/aws-sdk-go-v2/aws"
- "github.com/aws/smithy-go"
- "github.com/aws/smithy-go/logging"
- "net/http"
- "sync"
- "sync/atomic"
- "time"
-
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-const (
- // Headers for Token and TTL
- tokenHeader = "x-aws-ec2-metadata-token"
- defaultTokenTTL = 5 * time.Minute
-)
-
-type tokenProvider struct {
- client *Client
- tokenTTL time.Duration
-
- token *apiToken
- tokenMux sync.RWMutex
-
- disabled uint32 // Atomic updated
-}
-
-func newTokenProvider(client *Client, ttl time.Duration) *tokenProvider {
- return &tokenProvider{
- client: client,
- tokenTTL: ttl,
- }
-}
-
-// apiToken provides the API token used by all operation calls for th EC2
-// Instance metadata service.
-type apiToken struct {
- token string
- expires time.Time
-}
-
-var timeNow = time.Now
-
-// Expired returns if the token is expired.
-func (t *apiToken) Expired() bool {
- // Calling Round(0) on the current time will truncate the monotonic reading only. Ensures credential expiry
- // time is always based on reported wall-clock time.
- return timeNow().Round(0).After(t.expires)
-}
-
-func (t *tokenProvider) ID() string { return "APITokenProvider" }
-
-// HandleFinalize is the finalize stack middleware, that if the token provider is
-// enabled, will attempt to add the cached API token to the request. If the API
-// token is not cached, it will be retrieved in a separate API call, getToken.
-//
-// For retry attempts, handler must be added after attempt retryer.
-//
-// If request for getToken fails the token provider may be disabled from future
-// requests, depending on the response status code.
-func (t *tokenProvider) HandleFinalize(
- ctx context.Context, input middleware.FinalizeInput, next middleware.FinalizeHandler,
-) (
- out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
-) {
- if t.fallbackEnabled() && !t.enabled() {
- // short-circuits to insecure data flow if token provider is disabled.
- return next.HandleFinalize(ctx, input)
- }
-
- req, ok := input.Request.(*smithyhttp.Request)
- if !ok {
- return out, metadata, fmt.Errorf("unexpected transport request type %T", input.Request)
- }
-
- tok, err := t.getToken(ctx)
- if err != nil {
- // If the error allows the token to downgrade to insecure flow allow that.
- var bypassErr *bypassTokenRetrievalError
- if errors.As(err, &bypassErr) {
- return next.HandleFinalize(ctx, input)
- }
-
- return out, metadata, fmt.Errorf("failed to get API token, %w", err)
- }
-
- req.Header.Set(tokenHeader, tok.token)
-
- return next.HandleFinalize(ctx, input)
-}
-
-// HandleDeserialize is the deserialize stack middleware for determining if the
-// operation the token provider is decorating failed because of a 401
-// unauthorized status code. If the operation failed for that reason the token
-// provider needs to be re-enabled so that it can start adding the API token to
-// operation calls.
-func (t *tokenProvider) HandleDeserialize(
- ctx context.Context, input middleware.DeserializeInput, next middleware.DeserializeHandler,
-) (
- out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
-) {
- out, metadata, err = next.HandleDeserialize(ctx, input)
- if err == nil {
- return out, metadata, err
- }
-
- resp, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, fmt.Errorf("expect HTTP transport, got %T", out.RawResponse)
- }
-
- if resp.StatusCode == http.StatusUnauthorized { // unauthorized
- t.enable()
- err = &retryableError{Err: err, isRetryable: true}
- }
-
- return out, metadata, err
-}
-
-func (t *tokenProvider) getToken(ctx context.Context) (tok *apiToken, err error) {
- if t.fallbackEnabled() && !t.enabled() {
- return nil, &bypassTokenRetrievalError{
- Err: fmt.Errorf("cannot get API token, provider disabled"),
- }
- }
-
- t.tokenMux.RLock()
- tok = t.token
- t.tokenMux.RUnlock()
-
- if tok != nil && !tok.Expired() {
- return tok, nil
- }
-
- tok, err = t.updateToken(ctx)
- if err != nil {
- return nil, err
- }
-
- return tok, nil
-}
-
-func (t *tokenProvider) updateToken(ctx context.Context) (*apiToken, error) {
- t.tokenMux.Lock()
- defer t.tokenMux.Unlock()
-
- // Prevent multiple requests to update retrieving the token.
- if t.token != nil && !t.token.Expired() {
- tok := t.token
- return tok, nil
- }
-
- result, err := t.client.getToken(ctx, &getTokenInput{
- TokenTTL: t.tokenTTL,
- })
- if err != nil {
- var statusErr interface{ HTTPStatusCode() int }
- if errors.As(err, &statusErr) {
- switch statusErr.HTTPStatusCode() {
- // Disable future get token if failed because of 403, 404, or 405
- case http.StatusForbidden,
- http.StatusNotFound,
- http.StatusMethodNotAllowed:
-
- if t.fallbackEnabled() {
- logger := middleware.GetLogger(ctx)
- logger.Logf(logging.Warn, "falling back to IMDSv1: %v", err)
- t.disable()
- }
-
- // 400 errors are terminal, and need to be upstreamed
- case http.StatusBadRequest:
- return nil, err
- }
- }
-
- // Disable if request send failed or timed out getting response
- var re *smithyhttp.RequestSendError
- var ce *smithy.CanceledError
- if errors.As(err, &re) || errors.As(err, &ce) {
- atomic.StoreUint32(&t.disabled, 1)
- }
-
- if !t.fallbackEnabled() {
- // NOTE: getToken() is an implementation detail of some outer operation
- // (e.g. GetMetadata). It has its own retries that have already been exhausted.
- // Mark the underlying error as a terminal error.
- err = &retryableError{Err: err, isRetryable: false}
- return nil, err
- }
-
- // Token couldn't be retrieved, fallback to IMDSv1 insecure flow for this request
- // and allow the request to proceed. Future requests _may_ re-attempt fetching a
- // token if not disabled.
- return nil, &bypassTokenRetrievalError{Err: err}
- }
-
- tok := &apiToken{
- token: result.Token,
- expires: timeNow().Add(result.TokenTTL),
- }
- t.token = tok
-
- return tok, nil
-}
-
-// enabled returns if the token provider is current enabled or not.
-func (t *tokenProvider) enabled() bool {
- return atomic.LoadUint32(&t.disabled) == 0
-}
-
-// fallbackEnabled returns false if EnableFallback is [aws.FalseTernary], true otherwise
-func (t *tokenProvider) fallbackEnabled() bool {
- switch t.client.options.EnableFallback {
- case aws.FalseTernary:
- return false
- default:
- return true
- }
-}
-
-// disable disables the token provider and it will no longer attempt to inject
-// the token, nor request updates.
-func (t *tokenProvider) disable() {
- atomic.StoreUint32(&t.disabled, 1)
-}
-
-// enable enables the token provide to start refreshing tokens, and adding them
-// to the pending request.
-func (t *tokenProvider) enable() {
- t.tokenMux.Lock()
- t.token = nil
- t.tokenMux.Unlock()
- atomic.StoreUint32(&t.disabled, 0)
-}
-
-type bypassTokenRetrievalError struct {
- Err error
-}
-
-func (e *bypassTokenRetrievalError) Error() string {
- return fmt.Sprintf("bypass token retrieval, %v", e.Err)
-}
-
-func (e *bypassTokenRetrievalError) Unwrap() error { return e.Err }
-
-type retryableError struct {
- Err error
- isRetryable bool
-}
-
-func (e *retryableError) RetryableError() bool { return e.isRetryable }
-
-func (e *retryableError) Error() string { return e.Err.Error() }
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/auth/auth.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/auth/auth.go
deleted file mode 100644
index 0b81db548..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/auth/auth.go
+++ /dev/null
@@ -1,45 +0,0 @@
-package auth
-
-import (
- "github.com/aws/smithy-go/auth"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// HTTPAuthScheme is the SDK's internal implementation of smithyhttp.AuthScheme
-// for pre-existing implementations where the signer was added to client
-// config. SDK clients will key off of this type and ensure per-operation
-// updates to those signers persist on the scheme itself.
-type HTTPAuthScheme struct {
- schemeID string
- signer smithyhttp.Signer
-}
-
-var _ smithyhttp.AuthScheme = (*HTTPAuthScheme)(nil)
-
-// NewHTTPAuthScheme returns an auth scheme instance with the given config.
-func NewHTTPAuthScheme(schemeID string, signer smithyhttp.Signer) *HTTPAuthScheme {
- return &HTTPAuthScheme{
- schemeID: schemeID,
- signer: signer,
- }
-}
-
-// SchemeID identifies the auth scheme.
-func (s *HTTPAuthScheme) SchemeID() string {
- return s.schemeID
-}
-
-// IdentityResolver gets the identity resolver for the auth scheme.
-func (s *HTTPAuthScheme) IdentityResolver(o auth.IdentityResolverOptions) auth.IdentityResolver {
- return o.GetIdentityResolver(s.schemeID)
-}
-
-// Signer gets the signer for the auth scheme.
-func (s *HTTPAuthScheme) Signer() smithyhttp.Signer {
- return s.signer
-}
-
-// WithSigner returns a new instance of the auth scheme with the updated signer.
-func (s *HTTPAuthScheme) WithSigner(signer smithyhttp.Signer) *HTTPAuthScheme {
- return NewHTTPAuthScheme(s.schemeID, signer)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/auth/scheme.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/auth/scheme.go
deleted file mode 100644
index bbc2ec06e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/auth/scheme.go
+++ /dev/null
@@ -1,191 +0,0 @@
-package auth
-
-import (
- "context"
- "fmt"
-
- smithy "github.com/aws/smithy-go"
- "github.com/aws/smithy-go/middleware"
-)
-
-// SigV4 is a constant representing
-// Authentication Scheme Signature Version 4
-const SigV4 = "sigv4"
-
-// SigV4A is a constant representing
-// Authentication Scheme Signature Version 4A
-const SigV4A = "sigv4a"
-
-// SigV4S3Express identifies the S3 S3Express auth scheme.
-const SigV4S3Express = "sigv4-s3express"
-
-// None is a constant representing the
-// None Authentication Scheme
-const None = "none"
-
-// SupportedSchemes is a data structure
-// that indicates the list of supported AWS
-// authentication schemes
-var SupportedSchemes = map[string]bool{
- SigV4: true,
- SigV4A: true,
- SigV4S3Express: true,
- None: true,
-}
-
-// AuthenticationScheme is a representation of
-// AWS authentication schemes
-type AuthenticationScheme interface {
- isAuthenticationScheme()
-}
-
-// AuthenticationSchemeV4 is a AWS SigV4 representation
-type AuthenticationSchemeV4 struct {
- Name string
- SigningName *string
- SigningRegion *string
- DisableDoubleEncoding *bool
-}
-
-func (a *AuthenticationSchemeV4) isAuthenticationScheme() {}
-
-// AuthenticationSchemeV4A is a AWS SigV4A representation
-type AuthenticationSchemeV4A struct {
- Name string
- SigningName *string
- SigningRegionSet []string
- DisableDoubleEncoding *bool
-}
-
-func (a *AuthenticationSchemeV4A) isAuthenticationScheme() {}
-
-// AuthenticationSchemeNone is a representation for the none auth scheme
-type AuthenticationSchemeNone struct{}
-
-func (a *AuthenticationSchemeNone) isAuthenticationScheme() {}
-
-// NoAuthenticationSchemesFoundError is used in signaling
-// that no authentication schemes have been specified.
-type NoAuthenticationSchemesFoundError struct{}
-
-func (e *NoAuthenticationSchemesFoundError) Error() string {
- return fmt.Sprint("No authentication schemes specified.")
-}
-
-// UnSupportedAuthenticationSchemeSpecifiedError is used in
-// signaling that only unsupported authentication schemes
-// were specified.
-type UnSupportedAuthenticationSchemeSpecifiedError struct {
- UnsupportedSchemes []string
-}
-
-func (e *UnSupportedAuthenticationSchemeSpecifiedError) Error() string {
- return fmt.Sprint("Unsupported authentication scheme specified.")
-}
-
-// GetAuthenticationSchemes extracts the relevant authentication scheme data
-// into a custom strongly typed Go data structure.
-func GetAuthenticationSchemes(p *smithy.Properties) ([]AuthenticationScheme, error) {
- var result []AuthenticationScheme
- if !p.Has("authSchemes") {
- return nil, &NoAuthenticationSchemesFoundError{}
- }
-
- authSchemes, _ := p.Get("authSchemes").([]interface{})
-
- var unsupportedSchemes []string
- for _, scheme := range authSchemes {
- authScheme, _ := scheme.(map[string]interface{})
-
- version := authScheme["name"].(string)
- switch version {
- case SigV4, SigV4S3Express:
- v4Scheme := AuthenticationSchemeV4{
- Name: version,
- SigningName: getSigningName(authScheme),
- SigningRegion: getSigningRegion(authScheme),
- DisableDoubleEncoding: getDisableDoubleEncoding(authScheme),
- }
- result = append(result, AuthenticationScheme(&v4Scheme))
- case SigV4A:
- v4aScheme := AuthenticationSchemeV4A{
- Name: SigV4A,
- SigningName: getSigningName(authScheme),
- SigningRegionSet: getSigningRegionSet(authScheme),
- DisableDoubleEncoding: getDisableDoubleEncoding(authScheme),
- }
- result = append(result, AuthenticationScheme(&v4aScheme))
- case None:
- noneScheme := AuthenticationSchemeNone{}
- result = append(result, AuthenticationScheme(&noneScheme))
- default:
- unsupportedSchemes = append(unsupportedSchemes, authScheme["name"].(string))
- continue
- }
- }
-
- if len(result) == 0 {
- return nil, &UnSupportedAuthenticationSchemeSpecifiedError{
- UnsupportedSchemes: unsupportedSchemes,
- }
- }
-
- return result, nil
-}
-
-type disableDoubleEncoding struct{}
-
-// SetDisableDoubleEncoding sets or modifies the disable double encoding option
-// on the context.
-//
-// Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues
-// to clear all stack values.
-func SetDisableDoubleEncoding(ctx context.Context, value bool) context.Context {
- return middleware.WithStackValue(ctx, disableDoubleEncoding{}, value)
-}
-
-// GetDisableDoubleEncoding retrieves the disable double encoding option
-// from the context.
-//
-// Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues
-// to clear all stack values.
-func GetDisableDoubleEncoding(ctx context.Context) (value bool, ok bool) {
- value, ok = middleware.GetStackValue(ctx, disableDoubleEncoding{}).(bool)
- return value, ok
-}
-
-func getSigningName(authScheme map[string]interface{}) *string {
- signingName, ok := authScheme["signingName"].(string)
- if !ok || signingName == "" {
- return nil
- }
- return &signingName
-}
-
-func getSigningRegionSet(authScheme map[string]interface{}) []string {
- untypedSigningRegionSet, ok := authScheme["signingRegionSet"].([]interface{})
- if !ok {
- return nil
- }
- signingRegionSet := []string{}
- for _, item := range untypedSigningRegionSet {
- signingRegionSet = append(signingRegionSet, item.(string))
- }
- return signingRegionSet
-}
-
-func getSigningRegion(authScheme map[string]interface{}) *string {
- signingRegion, ok := authScheme["signingRegion"].(string)
- if !ok || signingRegion == "" {
- return nil
- }
- return &signingRegion
-}
-
-func getDisableDoubleEncoding(authScheme map[string]interface{}) *bool {
- disableDoubleEncoding, ok := authScheme["disableDoubleEncoding"].(bool)
- if !ok {
- return nil
- }
- return &disableDoubleEncoding
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/bearer_token_adapter.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/bearer_token_adapter.go
deleted file mode 100644
index f059b5d39..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/bearer_token_adapter.go
+++ /dev/null
@@ -1,43 +0,0 @@
-package smithy
-
-import (
- "context"
- "fmt"
- "time"
-
- "github.com/aws/smithy-go"
- "github.com/aws/smithy-go/auth"
- "github.com/aws/smithy-go/auth/bearer"
-)
-
-// BearerTokenAdapter adapts smithy bearer.Token to smithy auth.Identity.
-type BearerTokenAdapter struct {
- Token bearer.Token
-}
-
-var _ auth.Identity = (*BearerTokenAdapter)(nil)
-
-// Expiration returns the time of expiration for the token.
-func (v *BearerTokenAdapter) Expiration() time.Time {
- return v.Token.Expires
-}
-
-// BearerTokenProviderAdapter adapts smithy bearer.TokenProvider to smithy
-// auth.IdentityResolver.
-type BearerTokenProviderAdapter struct {
- Provider bearer.TokenProvider
-}
-
-var _ (auth.IdentityResolver) = (*BearerTokenProviderAdapter)(nil)
-
-// GetIdentity retrieves a bearer token using the underlying provider.
-func (v *BearerTokenProviderAdapter) GetIdentity(ctx context.Context, _ smithy.Properties) (
- auth.Identity, error,
-) {
- token, err := v.Provider.RetrieveBearerToken(ctx)
- if err != nil {
- return nil, fmt.Errorf("get token: %w", err)
- }
-
- return &BearerTokenAdapter{Token: token}, nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/bearer_token_signer_adapter.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/bearer_token_signer_adapter.go
deleted file mode 100644
index a88281527..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/bearer_token_signer_adapter.go
+++ /dev/null
@@ -1,35 +0,0 @@
-package smithy
-
-import (
- "context"
- "fmt"
-
- "github.com/aws/smithy-go"
- "github.com/aws/smithy-go/auth"
- "github.com/aws/smithy-go/auth/bearer"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// BearerTokenSignerAdapter adapts smithy bearer.Signer to smithy http
-// auth.Signer.
-type BearerTokenSignerAdapter struct {
- Signer bearer.Signer
-}
-
-var _ (smithyhttp.Signer) = (*BearerTokenSignerAdapter)(nil)
-
-// SignRequest signs the request with the provided bearer token.
-func (v *BearerTokenSignerAdapter) SignRequest(ctx context.Context, r *smithyhttp.Request, identity auth.Identity, _ smithy.Properties) error {
- ca, ok := identity.(*BearerTokenAdapter)
- if !ok {
- return fmt.Errorf("unexpected identity type: %T", identity)
- }
-
- signed, err := v.Signer.SignWithBearerToken(ctx, ca.Token, r)
- if err != nil {
- return fmt.Errorf("sign request: %w", err)
- }
-
- *r = *signed.(*smithyhttp.Request)
- return nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/credentials_adapter.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/credentials_adapter.go
deleted file mode 100644
index f926c4aaa..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/credentials_adapter.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package smithy
-
-import (
- "context"
- "fmt"
- "time"
-
- "github.com/aws/aws-sdk-go-v2/aws"
- "github.com/aws/smithy-go"
- "github.com/aws/smithy-go/auth"
-)
-
-// CredentialsAdapter adapts aws.Credentials to auth.Identity.
-type CredentialsAdapter struct {
- Credentials aws.Credentials
-}
-
-var _ auth.Identity = (*CredentialsAdapter)(nil)
-
-// Expiration returns the time of expiration for the credentials.
-func (v *CredentialsAdapter) Expiration() time.Time {
- return v.Credentials.Expires
-}
-
-// CredentialsProviderAdapter adapts aws.CredentialsProvider to auth.IdentityResolver.
-type CredentialsProviderAdapter struct {
- Provider aws.CredentialsProvider
-}
-
-var _ (auth.IdentityResolver) = (*CredentialsProviderAdapter)(nil)
-
-// GetIdentity retrieves AWS credentials using the underlying provider.
-func (v *CredentialsProviderAdapter) GetIdentity(ctx context.Context, _ smithy.Properties) (
- auth.Identity, error,
-) {
- if v.Provider == nil {
- return &CredentialsAdapter{Credentials: aws.Credentials{}}, nil
- }
-
- creds, err := v.Provider.Retrieve(ctx)
- if err != nil {
- return nil, fmt.Errorf("get credentials: %w", err)
- }
-
- return &CredentialsAdapter{Credentials: creds}, nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/smithy.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/smithy.go
deleted file mode 100644
index 42b458673..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/smithy.go
+++ /dev/null
@@ -1,2 +0,0 @@
-// Package smithy adapts concrete AWS auth and signing types to the generic smithy versions.
-package smithy
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/v4signer_adapter.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/v4signer_adapter.go
deleted file mode 100644
index 24db8e144..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/v4signer_adapter.go
+++ /dev/null
@@ -1,57 +0,0 @@
-package smithy
-
-import (
- "context"
- "fmt"
-
- v4 "github.com/aws/aws-sdk-go-v2/aws/signer/v4"
- internalcontext "github.com/aws/aws-sdk-go-v2/internal/context"
- "github.com/aws/aws-sdk-go-v2/internal/sdk"
- "github.com/aws/smithy-go"
- "github.com/aws/smithy-go/auth"
- "github.com/aws/smithy-go/logging"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// V4SignerAdapter adapts v4.HTTPSigner to smithy http.Signer.
-type V4SignerAdapter struct {
- Signer v4.HTTPSigner
- Logger logging.Logger
- LogSigning bool
-}
-
-var _ (smithyhttp.Signer) = (*V4SignerAdapter)(nil)
-
-// SignRequest signs the request with the provided identity.
-func (v *V4SignerAdapter) SignRequest(ctx context.Context, r *smithyhttp.Request, identity auth.Identity, props smithy.Properties) error {
- ca, ok := identity.(*CredentialsAdapter)
- if !ok {
- return fmt.Errorf("unexpected identity type: %T", identity)
- }
-
- name, ok := smithyhttp.GetSigV4SigningName(&props)
- if !ok {
- return fmt.Errorf("sigv4 signing name is required")
- }
-
- region, ok := smithyhttp.GetSigV4SigningRegion(&props)
- if !ok {
- return fmt.Errorf("sigv4 signing region is required")
- }
-
- hash := v4.GetPayloadHash(ctx)
- signingTime := sdk.NowTime()
- skew := internalcontext.GetAttemptSkewContext(ctx)
- signingTime = signingTime.Add(skew)
- err := v.Signer.SignHTTP(ctx, ca.Credentials, r.Request, hash, name, region, signingTime, func(o *v4.SignerOptions) {
- o.DisableURIPathEscaping, _ = smithyhttp.GetDisableDoubleEncoding(&props)
-
- o.Logger = v.Logger
- o.LogSigning = v.LogSigning
- })
- if err != nil {
- return fmt.Errorf("sign http: %w", err)
- }
-
- return nil
-}
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
deleted file mode 100644
index b34f47c91..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/CHANGELOG.md
+++ /dev/null
@@ -1,455 +0,0 @@
-# v1.4.9 (2025-09-26)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.4.8 (2025-09-23)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.4.7 (2025-09-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.4.6 (2025-08-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.4.5 (2025-08-27)
-
-* **Dependency Update**: Update to smithy-go v1.23.0.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.4.4 (2025-08-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.4.3 (2025-08-11)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.4.2 (2025-08-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.4.1 (2025-07-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.4.0 (2025-07-28)
-
-* **Feature**: Add support for HTTP interceptors.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.37 (2025-07-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.36 (2025-06-17)
-
-* **Dependency Update**: Update to smithy-go v1.22.4.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.35 (2025-06-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.34 (2025-02-27)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.33 (2025-02-18)
-
-* **Bug Fix**: Bump go version to 1.22
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.32 (2025-02-05)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.31 (2025-01-31)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.30 (2025-01-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.29 (2025-01-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-* **Dependency Update**: Upgrade to smithy-go v1.22.2.
-
-# v1.3.28 (2025-01-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.27 (2025-01-09)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.26 (2024-12-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.25 (2024-12-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.24 (2024-11-18)
-
-* **Dependency Update**: Update to smithy-go v1.22.1.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.23 (2024-11-06)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.22 (2024-10-28)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.21 (2024-10-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.20 (2024-10-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.19 (2024-10-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.18 (2024-09-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.17 (2024-09-03)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.16 (2024-08-15)
-
-* **Dependency Update**: Bump minimum Go version to 1.21.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.15 (2024-07-10.2)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.14 (2024-07-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.13 (2024-06-28)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.12 (2024-06-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.11 (2024-06-18)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.10 (2024-06-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.9 (2024-06-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.8 (2024-06-03)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.7 (2024-05-16)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.6 (2024-05-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.5 (2024-03-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.4 (2024-03-18)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.3 (2024-03-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.2 (2024-02-23)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.1 (2024-02-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.0 (2024-02-13)
-
-* **Feature**: Bump minimum Go version to 1.20 per our language support policy.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.2.10 (2024-01-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.2.9 (2023-12-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.2.8 (2023-12-01)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.2.7 (2023-11-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.2.6 (2023-11-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.2.5 (2023-11-28.2)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.2.4 (2023-11-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.2.3 (2023-11-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.2.2 (2023-11-09)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.2.1 (2023-11-01)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.2.0 (2023-10-31)
-
-* **Feature**: **BREAKING CHANGE**: Bump minimum go version to 1.19 per the revised [go version support policy](https://aws.amazon.com/blogs/developer/aws-sdk-for-go-aligns-with-go-release-policy-on-supported-runtimes/).
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.43 (2023-10-12)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.42 (2023-10-06)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.41 (2023-08-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.40 (2023-08-18)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.39 (2023-08-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.38 (2023-08-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.37 (2023-07-31)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.36 (2023-07-28)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.35 (2023-07-13)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.34 (2023-06-13)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.33 (2023-04-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.32 (2023-04-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.31 (2023-03-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.30 (2023-03-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.29 (2023-02-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.28 (2023-02-03)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.27 (2022-12-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.26 (2022-12-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.25 (2022-10-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.24 (2022-10-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.23 (2022-09-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.22 (2022-09-14)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.21 (2022-09-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.20 (2022-08-31)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.19 (2022-08-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.18 (2022-08-11)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.17 (2022-08-09)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.16 (2022-08-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.15 (2022-08-01)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.14 (2022-07-05)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.13 (2022-06-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.12 (2022-06-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.11 (2022-05-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.10 (2022-04-25)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.9 (2022-03-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.8 (2022-03-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.7 (2022-03-23)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.6 (2022-03-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.5 (2022-02-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.4 (2022-01-14)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.3 (2022-01-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.2 (2021-12-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.1 (2021-11-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.0 (2021-11-06)
-
-* **Feature**: The SDK now supports configuration of FIPS and DualStack endpoints using environment variables, shared configuration, or programmatically.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.0.7 (2021-10-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.0.6 (2021-10-11)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.0.5 (2021-09-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.0.4 (2021-08-27)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.0.3 (2021-08-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.0.2 (2021-08-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.0.1 (2021-07-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.0.0 (2021-06-25)
-
-* **Release**: Release new modules
-* **Dependency Update**: Updated to the latest SDK module versions
-
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/LICENSE.txt b/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/LICENSE.txt
deleted file mode 100644
index d64569567..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/config.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/config.go
deleted file mode 100644
index cd4d19b89..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/config.go
+++ /dev/null
@@ -1,65 +0,0 @@
-package configsources
-
-import (
- "context"
- "github.com/aws/aws-sdk-go-v2/aws"
-)
-
-// EnableEndpointDiscoveryProvider is an interface for retrieving external configuration value
-// for Enable Endpoint Discovery
-type EnableEndpointDiscoveryProvider interface {
- GetEnableEndpointDiscovery(ctx context.Context) (value aws.EndpointDiscoveryEnableState, found bool, err error)
-}
-
-// ResolveEnableEndpointDiscovery extracts the first instance of a EnableEndpointDiscoveryProvider from the config slice.
-// Additionally returns a aws.EndpointDiscoveryEnableState to indicate if the value was found in provided configs,
-// and error if one is encountered.
-func ResolveEnableEndpointDiscovery(ctx context.Context, configs []interface{}) (value aws.EndpointDiscoveryEnableState, found bool, err error) {
- for _, cfg := range configs {
- if p, ok := cfg.(EnableEndpointDiscoveryProvider); ok {
- value, found, err = p.GetEnableEndpointDiscovery(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// UseDualStackEndpointProvider is an interface for retrieving external configuration values for UseDualStackEndpoint
-type UseDualStackEndpointProvider interface {
- GetUseDualStackEndpoint(context.Context) (value aws.DualStackEndpointState, found bool, err error)
-}
-
-// ResolveUseDualStackEndpoint extracts the first instance of a UseDualStackEndpoint from the config slice.
-// Additionally returns a boolean to indicate if the value was found in provided configs, and error if one is encountered.
-func ResolveUseDualStackEndpoint(ctx context.Context, configs []interface{}) (value aws.DualStackEndpointState, found bool, err error) {
- for _, cfg := range configs {
- if p, ok := cfg.(UseDualStackEndpointProvider); ok {
- value, found, err = p.GetUseDualStackEndpoint(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// UseFIPSEndpointProvider is an interface for retrieving external configuration values for UseFIPSEndpoint
-type UseFIPSEndpointProvider interface {
- GetUseFIPSEndpoint(context.Context) (value aws.FIPSEndpointState, found bool, err error)
-}
-
-// ResolveUseFIPSEndpoint extracts the first instance of a UseFIPSEndpointProvider from the config slice.
-// Additionally, returns a boolean to indicate if the value was found in provided configs, and error if one is encountered.
-func ResolveUseFIPSEndpoint(ctx context.Context, configs []interface{}) (value aws.FIPSEndpointState, found bool, err error) {
- for _, cfg := range configs {
- if p, ok := cfg.(UseFIPSEndpointProvider); ok {
- value, found, err = p.GetUseFIPSEndpoint(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/endpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/endpoints.go
deleted file mode 100644
index e7835f852..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/endpoints.go
+++ /dev/null
@@ -1,57 +0,0 @@
-package configsources
-
-import (
- "context"
-)
-
-// ServiceBaseEndpointProvider is needed to search for all providers
-// that provide a configured service endpoint
-type ServiceBaseEndpointProvider interface {
- GetServiceBaseEndpoint(ctx context.Context, sdkID string) (string, bool, error)
-}
-
-// IgnoreConfiguredEndpointsProvider is needed to search for all providers
-// that provide a flag to disable configured endpoints.
-//
-// Currently duplicated from github.com/aws/aws-sdk-go-v2/config because
-// service packages cannot import github.com/aws/aws-sdk-go-v2/config
-// due to result import cycle error.
-type IgnoreConfiguredEndpointsProvider interface {
- GetIgnoreConfiguredEndpoints(ctx context.Context) (bool, bool, error)
-}
-
-// GetIgnoreConfiguredEndpoints is used in knowing when to disable configured
-// endpoints feature.
-//
-// Currently duplicated from github.com/aws/aws-sdk-go-v2/config because
-// service packages cannot import github.com/aws/aws-sdk-go-v2/config
-// due to result import cycle error.
-func GetIgnoreConfiguredEndpoints(ctx context.Context, configs []interface{}) (value bool, found bool, err error) {
- for _, cfg := range configs {
- if p, ok := cfg.(IgnoreConfiguredEndpointsProvider); ok {
- value, found, err = p.GetIgnoreConfiguredEndpoints(ctx)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
-
-// ResolveServiceBaseEndpoint is used to retrieve service endpoints from configured sources
-// while allowing for configured endpoints to be disabled
-func ResolveServiceBaseEndpoint(ctx context.Context, sdkID string, configs []interface{}) (value string, found bool, err error) {
- if val, found, _ := GetIgnoreConfiguredEndpoints(ctx, configs); found && val {
- return "", false, nil
- }
-
- for _, cs := range configs {
- if p, ok := cs.(ServiceBaseEndpointProvider); ok {
- value, found, err = p.GetServiceBaseEndpoint(context.Background(), sdkID)
- if err != nil || found {
- break
- }
- }
- }
- return
-}
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
deleted file mode 100644
index ebc2f6a76..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/go_module_metadata.go
+++ /dev/null
@@ -1,6 +0,0 @@
-// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
-
-package configsources
-
-// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.4.9"
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/context/context.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/context/context.go
deleted file mode 100644
index f0c283d39..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/context/context.go
+++ /dev/null
@@ -1,52 +0,0 @@
-package context
-
-import (
- "context"
- "time"
-
- "github.com/aws/smithy-go/middleware"
-)
-
-type s3BackendKey struct{}
-type checksumInputAlgorithmKey struct{}
-type clockSkew struct{}
-
-const (
- // S3BackendS3Express identifies the S3Express backend
- S3BackendS3Express = "S3Express"
-)
-
-// SetS3Backend stores the resolved endpoint backend within the request
-// context, which is required for a variety of custom S3 behaviors.
-func SetS3Backend(ctx context.Context, typ string) context.Context {
- return middleware.WithStackValue(ctx, s3BackendKey{}, typ)
-}
-
-// GetS3Backend retrieves the stored endpoint backend within the context.
-func GetS3Backend(ctx context.Context) string {
- v, _ := middleware.GetStackValue(ctx, s3BackendKey{}).(string)
- return v
-}
-
-// SetChecksumInputAlgorithm sets the request checksum algorithm on the
-// context.
-func SetChecksumInputAlgorithm(ctx context.Context, value string) context.Context {
- return middleware.WithStackValue(ctx, checksumInputAlgorithmKey{}, value)
-}
-
-// GetChecksumInputAlgorithm returns the checksum algorithm from the context.
-func GetChecksumInputAlgorithm(ctx context.Context) string {
- v, _ := middleware.GetStackValue(ctx, checksumInputAlgorithmKey{}).(string)
- return v
-}
-
-// SetAttemptSkewContext sets the clock skew value on the context
-func SetAttemptSkewContext(ctx context.Context, v time.Duration) context.Context {
- return middleware.WithStackValue(ctx, clockSkew{}, v)
-}
-
-// GetAttemptSkewContext gets the clock skew value from the context
-func GetAttemptSkewContext(ctx context.Context) time.Duration {
- x, _ := middleware.GetStackValue(ctx, clockSkew{}).(time.Duration)
- return x
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/arn.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/arn.go
deleted file mode 100644
index e6223dd3b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/arn.go
+++ /dev/null
@@ -1,94 +0,0 @@
-package awsrulesfn
-
-import (
- "strings"
-)
-
-// ARN provides AWS ARN components broken out into a data structure.
-type ARN struct {
- Partition string
- Service string
- Region string
- AccountId string
- ResourceId OptionalStringSlice
-}
-
-const (
- arnDelimiters = ":"
- resourceDelimiters = "/:"
- arnSections = 6
- arnPrefix = "arn:"
-
- // zero-indexed
- sectionPartition = 1
- sectionService = 2
- sectionRegion = 3
- sectionAccountID = 4
- sectionResource = 5
-)
-
-// ParseARN returns an [ARN] value parsed from the input string provided. If
-// the ARN cannot be parsed nil will be returned, and error added to
-// [ErrorCollector].
-func ParseARN(input string) *ARN {
- if !strings.HasPrefix(input, arnPrefix) {
- return nil
- }
-
- sections := strings.SplitN(input, arnDelimiters, arnSections)
- if numSections := len(sections); numSections != arnSections {
- return nil
- }
-
- if sections[sectionPartition] == "" {
- return nil
- }
- if sections[sectionService] == "" {
- return nil
- }
- if sections[sectionResource] == "" {
- return nil
- }
-
- return &ARN{
- Partition: sections[sectionPartition],
- Service: sections[sectionService],
- Region: sections[sectionRegion],
- AccountId: sections[sectionAccountID],
- ResourceId: splitResource(sections[sectionResource]),
- }
-}
-
-// splitResource splits the resource components by the ARN resource delimiters.
-func splitResource(v string) []string {
- var parts []string
- var offset int
-
- for offset <= len(v) {
- idx := strings.IndexAny(v[offset:], "/:")
- if idx < 0 {
- parts = append(parts, v[offset:])
- break
- }
- parts = append(parts, v[offset:idx+offset])
- offset += idx + 1
- }
-
- return parts
-}
-
-// OptionalStringSlice provides a helper to safely get the index of a string
-// slice that may be out of bounds. Returns pointer to string if index is
-// valid. Otherwise returns nil.
-type OptionalStringSlice []string
-
-// Get returns a string pointer of the string at index i if the index is valid.
-// Otherwise returns nil.
-func (s OptionalStringSlice) Get(i int) *string {
- if i < 0 || i >= len(s) {
- return nil
- }
-
- v := s[i]
- return &v
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/doc.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/doc.go
deleted file mode 100644
index d5a365853..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/doc.go
+++ /dev/null
@@ -1,3 +0,0 @@
-// Package awsrulesfn provides AWS focused endpoint rule functions for
-// evaluating endpoint resolution rules.
-package awsrulesfn
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/generate.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/generate.go
deleted file mode 100644
index df72da97c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/generate.go
+++ /dev/null
@@ -1,7 +0,0 @@
-//go:build codegen
-// +build codegen
-
-package awsrulesfn
-
-//go:generate go run -tags codegen ./internal/partition/codegen.go -model partitions.json -output partitions.go
-//go:generate gofmt -w -s .
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/host.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/host.go
deleted file mode 100644
index 637e5fc18..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/host.go
+++ /dev/null
@@ -1,51 +0,0 @@
-package awsrulesfn
-
-import (
- "net"
- "strings"
-
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// IsVirtualHostableS3Bucket returns if the input is a DNS compatible bucket
-// name and can be used with Amazon S3 virtual hosted style addressing. Similar
-// to [rulesfn.IsValidHostLabel] with the added restriction that the length of label
-// must be [3:63] characters long, all lowercase, and not formatted as an IP
-// address.
-func IsVirtualHostableS3Bucket(input string, allowSubDomains bool) bool {
- // input should not be formatted as an IP address
- // NOTE: this will technically trip up on IPv6 hosts with zone IDs, but
- // validation further down will catch that anyway (it's guaranteed to have
- // unfriendly characters % and : if that's the case)
- if net.ParseIP(input) != nil {
- return false
- }
-
- var labels []string
- if allowSubDomains {
- labels = strings.Split(input, ".")
- } else {
- labels = []string{input}
- }
-
- for _, label := range labels {
- // validate special length constraints
- if l := len(label); l < 3 || l > 63 {
- return false
- }
-
- // Validate no capital letters
- for _, r := range label {
- if r >= 'A' && r <= 'Z' {
- return false
- }
- }
-
- // Validate valid host label
- if !smithyhttp.ValidHostLabel(label) {
- return false
- }
- }
-
- return true
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partition.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partition.go
deleted file mode 100644
index 91414afe8..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partition.go
+++ /dev/null
@@ -1,76 +0,0 @@
-package awsrulesfn
-
-import "regexp"
-
-// Partition provides the metadata describing an AWS partition.
-type Partition struct {
- ID string `json:"id"`
- Regions map[string]RegionOverrides `json:"regions"`
- RegionRegex string `json:"regionRegex"`
- DefaultConfig PartitionConfig `json:"outputs"`
-}
-
-// PartitionConfig provides the endpoint metadata for an AWS region or partition.
-type PartitionConfig struct {
- Name string `json:"name"`
- DnsSuffix string `json:"dnsSuffix"`
- DualStackDnsSuffix string `json:"dualStackDnsSuffix"`
- SupportsFIPS bool `json:"supportsFIPS"`
- SupportsDualStack bool `json:"supportsDualStack"`
- ImplicitGlobalRegion string `json:"implicitGlobalRegion"`
-}
-
-type RegionOverrides struct {
- Name *string `json:"name"`
- DnsSuffix *string `json:"dnsSuffix"`
- DualStackDnsSuffix *string `json:"dualStackDnsSuffix"`
- SupportsFIPS *bool `json:"supportsFIPS"`
- SupportsDualStack *bool `json:"supportsDualStack"`
-}
-
-const defaultPartition = "aws"
-
-func getPartition(partitions []Partition, region string) *PartitionConfig {
- for _, partition := range partitions {
- if v, ok := partition.Regions[region]; ok {
- p := mergeOverrides(partition.DefaultConfig, v)
- return &p
- }
- }
-
- for _, partition := range partitions {
- regionRegex := regexp.MustCompile(partition.RegionRegex)
- if regionRegex.MatchString(region) {
- v := partition.DefaultConfig
- return &v
- }
- }
-
- for _, partition := range partitions {
- if partition.ID == defaultPartition {
- v := partition.DefaultConfig
- return &v
- }
- }
-
- return nil
-}
-
-func mergeOverrides(into PartitionConfig, from RegionOverrides) PartitionConfig {
- if from.Name != nil {
- into.Name = *from.Name
- }
- if from.DnsSuffix != nil {
- into.DnsSuffix = *from.DnsSuffix
- }
- if from.DualStackDnsSuffix != nil {
- into.DualStackDnsSuffix = *from.DualStackDnsSuffix
- }
- if from.SupportsFIPS != nil {
- into.SupportsFIPS = *from.SupportsFIPS
- }
- if from.SupportsDualStack != nil {
- into.SupportsDualStack = *from.SupportsDualStack
- }
- return into
-}
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
deleted file mode 100644
index 6ad5df646..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partitions.go
+++ /dev/null
@@ -1,489 +0,0 @@
-// Code generated by endpoint/awsrulesfn/internal/partition. DO NOT EDIT.
-
-package awsrulesfn
-
-// GetPartition returns an AWS [Partition] for the region provided. If the
-// partition cannot be determined then the default partition (AWS commercial)
-// will be returned.
-func GetPartition(region string) *PartitionConfig {
- return getPartition(partitions, region)
-}
-
-var partitions = []Partition{
- {
- ID: "aws",
- RegionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
- DefaultConfig: PartitionConfig{
- Name: "aws",
- DnsSuffix: "amazonaws.com",
- DualStackDnsSuffix: "api.aws",
- SupportsFIPS: true,
- SupportsDualStack: true,
- ImplicitGlobalRegion: "us-east-1",
- },
- Regions: map[string]RegionOverrides{
- "af-south-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "ap-east-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "ap-east-2": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "ap-northeast-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "ap-northeast-2": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "ap-northeast-3": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "ap-south-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "ap-south-2": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "ap-southeast-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "ap-southeast-2": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "ap-southeast-3": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "ap-southeast-4": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "ap-southeast-5": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "ap-southeast-6": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "ap-southeast-7": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "aws-global": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "ca-central-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "ca-west-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "eu-central-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "eu-central-2": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "eu-north-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "eu-south-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "eu-south-2": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "eu-west-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "eu-west-2": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "eu-west-3": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "il-central-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "me-central-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "me-south-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "mx-central-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "sa-east-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "us-east-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "us-east-2": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "us-west-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "us-west-2": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- },
- },
- {
- ID: "aws-cn",
- RegionRegex: "^cn\\-\\w+\\-\\d+$",
- DefaultConfig: PartitionConfig{
- Name: "aws-cn",
- DnsSuffix: "amazonaws.com.cn",
- DualStackDnsSuffix: "api.amazonwebservices.com.cn",
- SupportsFIPS: true,
- SupportsDualStack: true,
- ImplicitGlobalRegion: "cn-northwest-1",
- },
- Regions: map[string]RegionOverrides{
- "aws-cn-global": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "cn-north-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "cn-northwest-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- },
- },
- {
- ID: "aws-eusc",
- RegionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
- DefaultConfig: PartitionConfig{
- Name: "aws-eusc",
- DnsSuffix: "amazonaws.eu",
- DualStackDnsSuffix: "api.amazonwebservices.eu",
- SupportsFIPS: true,
- SupportsDualStack: true,
- ImplicitGlobalRegion: "eusc-de-east-1",
- },
- Regions: map[string]RegionOverrides{
- "eusc-de-east-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- },
- },
- {
- ID: "aws-iso",
- RegionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
- DefaultConfig: PartitionConfig{
- Name: "aws-iso",
- DnsSuffix: "c2s.ic.gov",
- DualStackDnsSuffix: "api.aws.ic.gov",
- SupportsFIPS: true,
- SupportsDualStack: true,
- ImplicitGlobalRegion: "us-iso-east-1",
- },
- Regions: map[string]RegionOverrides{
- "aws-iso-global": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "us-iso-east-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "us-iso-west-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- },
- },
- {
- ID: "aws-iso-b",
- RegionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
- DefaultConfig: PartitionConfig{
- Name: "aws-iso-b",
- DnsSuffix: "sc2s.sgov.gov",
- DualStackDnsSuffix: "api.aws.scloud",
- SupportsFIPS: true,
- SupportsDualStack: true,
- ImplicitGlobalRegion: "us-isob-east-1",
- },
- Regions: map[string]RegionOverrides{
- "aws-iso-b-global": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "us-isob-east-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- },
- },
- {
- ID: "aws-iso-e",
- RegionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$",
- DefaultConfig: PartitionConfig{
- Name: "aws-iso-e",
- DnsSuffix: "cloud.adc-e.uk",
- DualStackDnsSuffix: "api.cloud-aws.adc-e.uk",
- SupportsFIPS: true,
- SupportsDualStack: true,
- ImplicitGlobalRegion: "eu-isoe-west-1",
- },
- Regions: map[string]RegionOverrides{
- "aws-iso-e-global": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "eu-isoe-west-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- },
- },
- {
- ID: "aws-iso-f",
- RegionRegex: "^us\\-isof\\-\\w+\\-\\d+$",
- DefaultConfig: PartitionConfig{
- Name: "aws-iso-f",
- DnsSuffix: "csp.hci.ic.gov",
- DualStackDnsSuffix: "api.aws.hci.ic.gov",
- SupportsFIPS: true,
- SupportsDualStack: true,
- ImplicitGlobalRegion: "us-isof-south-1",
- },
- Regions: map[string]RegionOverrides{
- "aws-iso-f-global": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "us-isof-east-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "us-isof-south-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- },
- },
- {
- ID: "aws-us-gov",
- RegionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
- DefaultConfig: PartitionConfig{
- Name: "aws-us-gov",
- DnsSuffix: "amazonaws.com",
- DualStackDnsSuffix: "api.aws",
- SupportsFIPS: true,
- SupportsDualStack: true,
- ImplicitGlobalRegion: "us-gov-west-1",
- },
- Regions: map[string]RegionOverrides{
- "aws-us-gov-global": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "us-gov-east-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: nil,
- },
- "us-gov-west-1": {
- Name: nil,
- DnsSuffix: nil,
- DualStackDnsSuffix: nil,
- SupportsFIPS: nil,
- SupportsDualStack: 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
deleted file mode 100644
index b346b0be9..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partitions.json
+++ /dev/null
@@ -1,264 +0,0 @@
-{
- "partitions" : [ {
- "id" : "aws",
- "outputs" : {
- "dnsSuffix" : "amazonaws.com",
- "dualStackDnsSuffix" : "api.aws",
- "implicitGlobalRegion" : "us-east-1",
- "name" : "aws",
- "supportsDualStack" : true,
- "supportsFIPS" : true
- },
- "regionRegex" : "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",
- "regions" : {
- "af-south-1" : {
- "description" : "Africa (Cape Town)"
- },
- "ap-east-1" : {
- "description" : "Asia Pacific (Hong Kong)"
- },
- "ap-east-2" : {
- "description" : "Asia Pacific (Taipei)"
- },
- "ap-northeast-1" : {
- "description" : "Asia Pacific (Tokyo)"
- },
- "ap-northeast-2" : {
- "description" : "Asia Pacific (Seoul)"
- },
- "ap-northeast-3" : {
- "description" : "Asia Pacific (Osaka)"
- },
- "ap-south-1" : {
- "description" : "Asia Pacific (Mumbai)"
- },
- "ap-south-2" : {
- "description" : "Asia Pacific (Hyderabad)"
- },
- "ap-southeast-1" : {
- "description" : "Asia Pacific (Singapore)"
- },
- "ap-southeast-2" : {
- "description" : "Asia Pacific (Sydney)"
- },
- "ap-southeast-3" : {
- "description" : "Asia Pacific (Jakarta)"
- },
- "ap-southeast-4" : {
- "description" : "Asia Pacific (Melbourne)"
- },
- "ap-southeast-5" : {
- "description" : "Asia Pacific (Malaysia)"
- },
- "ap-southeast-6" : {
- "description" : "Asia Pacific (New Zealand)"
- },
- "ap-southeast-7" : {
- "description" : "Asia Pacific (Thailand)"
- },
- "aws-global" : {
- "description" : "aws global region"
- },
- "ca-central-1" : {
- "description" : "Canada (Central)"
- },
- "ca-west-1" : {
- "description" : "Canada West (Calgary)"
- },
- "eu-central-1" : {
- "description" : "Europe (Frankfurt)"
- },
- "eu-central-2" : {
- "description" : "Europe (Zurich)"
- },
- "eu-north-1" : {
- "description" : "Europe (Stockholm)"
- },
- "eu-south-1" : {
- "description" : "Europe (Milan)"
- },
- "eu-south-2" : {
- "description" : "Europe (Spain)"
- },
- "eu-west-1" : {
- "description" : "Europe (Ireland)"
- },
- "eu-west-2" : {
- "description" : "Europe (London)"
- },
- "eu-west-3" : {
- "description" : "Europe (Paris)"
- },
- "il-central-1" : {
- "description" : "Israel (Tel Aviv)"
- },
- "me-central-1" : {
- "description" : "Middle East (UAE)"
- },
- "me-south-1" : {
- "description" : "Middle East (Bahrain)"
- },
- "mx-central-1" : {
- "description" : "Mexico (Central)"
- },
- "sa-east-1" : {
- "description" : "South America (Sao Paulo)"
- },
- "us-east-1" : {
- "description" : "US East (N. Virginia)"
- },
- "us-east-2" : {
- "description" : "US East (Ohio)"
- },
- "us-west-1" : {
- "description" : "US West (N. California)"
- },
- "us-west-2" : {
- "description" : "US West (Oregon)"
- }
- }
- }, {
- "id" : "aws-cn",
- "outputs" : {
- "dnsSuffix" : "amazonaws.com.cn",
- "dualStackDnsSuffix" : "api.amazonwebservices.com.cn",
- "implicitGlobalRegion" : "cn-northwest-1",
- "name" : "aws-cn",
- "supportsDualStack" : true,
- "supportsFIPS" : true
- },
- "regionRegex" : "^cn\\-\\w+\\-\\d+$",
- "regions" : {
- "aws-cn-global" : {
- "description" : "aws-cn global region"
- },
- "cn-north-1" : {
- "description" : "China (Beijing)"
- },
- "cn-northwest-1" : {
- "description" : "China (Ningxia)"
- }
- }
- }, {
- "id" : "aws-eusc",
- "outputs" : {
- "dnsSuffix" : "amazonaws.eu",
- "dualStackDnsSuffix" : "api.amazonwebservices.eu",
- "implicitGlobalRegion" : "eusc-de-east-1",
- "name" : "aws-eusc",
- "supportsDualStack" : true,
- "supportsFIPS" : true
- },
- "regionRegex" : "^eusc\\-(de)\\-\\w+\\-\\d+$",
- "regions" : {
- "eusc-de-east-1" : {
- "description" : "EU (Germany)"
- }
- }
- }, {
- "id" : "aws-iso",
- "outputs" : {
- "dnsSuffix" : "c2s.ic.gov",
- "dualStackDnsSuffix" : "api.aws.ic.gov",
- "implicitGlobalRegion" : "us-iso-east-1",
- "name" : "aws-iso",
- "supportsDualStack" : true,
- "supportsFIPS" : true
- },
- "regionRegex" : "^us\\-iso\\-\\w+\\-\\d+$",
- "regions" : {
- "aws-iso-global" : {
- "description" : "aws-iso global region"
- },
- "us-iso-east-1" : {
- "description" : "US ISO East"
- },
- "us-iso-west-1" : {
- "description" : "US ISO WEST"
- }
- }
- }, {
- "id" : "aws-iso-b",
- "outputs" : {
- "dnsSuffix" : "sc2s.sgov.gov",
- "dualStackDnsSuffix" : "api.aws.scloud",
- "implicitGlobalRegion" : "us-isob-east-1",
- "name" : "aws-iso-b",
- "supportsDualStack" : true,
- "supportsFIPS" : true
- },
- "regionRegex" : "^us\\-isob\\-\\w+\\-\\d+$",
- "regions" : {
- "aws-iso-b-global" : {
- "description" : "aws-iso-b global region"
- },
- "us-isob-east-1" : {
- "description" : "US ISOB East (Ohio)"
- }
- }
- }, {
- "id" : "aws-iso-e",
- "outputs" : {
- "dnsSuffix" : "cloud.adc-e.uk",
- "dualStackDnsSuffix" : "api.cloud-aws.adc-e.uk",
- "implicitGlobalRegion" : "eu-isoe-west-1",
- "name" : "aws-iso-e",
- "supportsDualStack" : true,
- "supportsFIPS" : true
- },
- "regionRegex" : "^eu\\-isoe\\-\\w+\\-\\d+$",
- "regions" : {
- "aws-iso-e-global" : {
- "description" : "aws-iso-e global region"
- },
- "eu-isoe-west-1" : {
- "description" : "EU ISOE West"
- }
- }
- }, {
- "id" : "aws-iso-f",
- "outputs" : {
- "dnsSuffix" : "csp.hci.ic.gov",
- "dualStackDnsSuffix" : "api.aws.hci.ic.gov",
- "implicitGlobalRegion" : "us-isof-south-1",
- "name" : "aws-iso-f",
- "supportsDualStack" : true,
- "supportsFIPS" : true
- },
- "regionRegex" : "^us\\-isof\\-\\w+\\-\\d+$",
- "regions" : {
- "aws-iso-f-global" : {
- "description" : "aws-iso-f global region"
- },
- "us-isof-east-1" : {
- "description" : "US ISOF EAST"
- },
- "us-isof-south-1" : {
- "description" : "US ISOF SOUTH"
- }
- }
- }, {
- "id" : "aws-us-gov",
- "outputs" : {
- "dnsSuffix" : "amazonaws.com",
- "dualStackDnsSuffix" : "api.aws",
- "implicitGlobalRegion" : "us-gov-west-1",
- "name" : "aws-us-gov",
- "supportsDualStack" : true,
- "supportsFIPS" : true
- },
- "regionRegex" : "^us\\-gov\\-\\w+\\-\\d+$",
- "regions" : {
- "aws-us-gov-global" : {
- "description" : "aws-us-gov global region"
- },
- "us-gov-east-1" : {
- "description" : "AWS GovCloud (US-East)"
- },
- "us-gov-west-1" : {
- "description" : "AWS GovCloud (US-West)"
- }
- }
- } ],
- "version" : "1.1"
-}
\ No newline at end of file
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/endpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/endpoints.go
deleted file mode 100644
index 67950ca36..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/endpoints.go
+++ /dev/null
@@ -1,201 +0,0 @@
-package endpoints
-
-import (
- "fmt"
- "regexp"
- "strings"
-
- "github.com/aws/aws-sdk-go-v2/aws"
-)
-
-const (
- defaultProtocol = "https"
- defaultSigner = "v4"
-)
-
-var (
- protocolPriority = []string{"https", "http"}
- signerPriority = []string{"v4"}
-)
-
-// Options provide configuration needed to direct how endpoints are resolved.
-type Options struct {
- // Disable usage of HTTPS (TLS / SSL)
- DisableHTTPS bool
-}
-
-// Partitions is a slice of partition
-type Partitions []Partition
-
-// ResolveEndpoint resolves a service endpoint for the given region and options.
-func (ps Partitions) ResolveEndpoint(region string, opts Options) (aws.Endpoint, error) {
- if len(ps) == 0 {
- return aws.Endpoint{}, fmt.Errorf("no partitions found")
- }
-
- for i := 0; i < len(ps); i++ {
- if !ps[i].canResolveEndpoint(region) {
- continue
- }
-
- return ps[i].ResolveEndpoint(region, opts)
- }
-
- // fallback to first partition format to use when resolving the endpoint.
- return ps[0].ResolveEndpoint(region, opts)
-}
-
-// Partition is an AWS partition description for a service and its' region endpoints.
-type Partition struct {
- ID string
- RegionRegex *regexp.Regexp
- PartitionEndpoint string
- IsRegionalized bool
- Defaults Endpoint
- Endpoints Endpoints
-}
-
-func (p Partition) canResolveEndpoint(region string) bool {
- _, ok := p.Endpoints[region]
- return ok || p.RegionRegex.MatchString(region)
-}
-
-// ResolveEndpoint resolves and service endpoint for the given region and options.
-func (p Partition) ResolveEndpoint(region string, options Options) (resolved aws.Endpoint, err error) {
- if len(region) == 0 && len(p.PartitionEndpoint) != 0 {
- region = p.PartitionEndpoint
- }
-
- e, _ := p.endpointForRegion(region)
-
- return e.resolve(p.ID, region, p.Defaults, options), nil
-}
-
-func (p Partition) endpointForRegion(region string) (Endpoint, bool) {
- if e, ok := p.Endpoints[region]; ok {
- return e, true
- }
-
- if !p.IsRegionalized {
- return p.Endpoints[p.PartitionEndpoint], region == p.PartitionEndpoint
- }
-
- // Unable to find any matching endpoint, return
- // blank that will be used for generic endpoint creation.
- return Endpoint{}, false
-}
-
-// Endpoints is a map of service config regions to endpoints
-type Endpoints map[string]Endpoint
-
-// CredentialScope is the credential scope of a region and service
-type CredentialScope struct {
- Region string
- Service string
-}
-
-// Endpoint is a service endpoint description
-type Endpoint struct {
- // True if the endpoint cannot be resolved for this partition/region/service
- Unresolveable aws.Ternary
-
- Hostname string
- Protocols []string
-
- CredentialScope CredentialScope
-
- SignatureVersions []string `json:"signatureVersions"`
-}
-
-func (e Endpoint) resolve(partition, region string, def Endpoint, options Options) aws.Endpoint {
- var merged Endpoint
- merged.mergeIn(def)
- merged.mergeIn(e)
- e = merged
-
- var u string
- if e.Unresolveable != aws.TrueTernary {
- // Only attempt to resolve the endpoint if it can be resolved.
- hostname := strings.Replace(e.Hostname, "{region}", region, 1)
-
- scheme := getEndpointScheme(e.Protocols, options.DisableHTTPS)
- u = scheme + "://" + hostname
- }
-
- signingRegion := e.CredentialScope.Region
- if len(signingRegion) == 0 {
- signingRegion = region
- }
- signingName := e.CredentialScope.Service
-
- return aws.Endpoint{
- URL: u,
- PartitionID: partition,
- SigningRegion: signingRegion,
- SigningName: signingName,
- SigningMethod: getByPriority(e.SignatureVersions, signerPriority, defaultSigner),
- }
-}
-
-func (e *Endpoint) mergeIn(other Endpoint) {
- if other.Unresolveable != aws.UnknownTernary {
- e.Unresolveable = other.Unresolveable
- }
- if len(other.Hostname) > 0 {
- e.Hostname = other.Hostname
- }
- if len(other.Protocols) > 0 {
- e.Protocols = other.Protocols
- }
- if len(other.CredentialScope.Region) > 0 {
- e.CredentialScope.Region = other.CredentialScope.Region
- }
- if len(other.CredentialScope.Service) > 0 {
- e.CredentialScope.Service = other.CredentialScope.Service
- }
- if len(other.SignatureVersions) > 0 {
- e.SignatureVersions = other.SignatureVersions
- }
-}
-
-func getEndpointScheme(protocols []string, disableHTTPS bool) string {
- if disableHTTPS {
- return "http"
- }
-
- return getByPriority(protocols, protocolPriority, defaultProtocol)
-}
-
-func getByPriority(s []string, p []string, def string) string {
- if len(s) == 0 {
- return def
- }
-
- for i := 0; i < len(p); i++ {
- for j := 0; j < len(s); j++ {
- if s[j] == p[i] {
- return s[j]
- }
- }
- }
-
- return s[0]
-}
-
-// MapFIPSRegion extracts the intrinsic AWS region from one that may have an
-// embedded FIPS microformat.
-func MapFIPSRegion(region string) string {
- const fipsInfix = "-fips-"
- const fipsPrefix = "fips-"
- const fipsSuffix = "-fips"
-
- if strings.Contains(region, fipsInfix) ||
- strings.Contains(region, fipsPrefix) ||
- strings.Contains(region, fipsSuffix) {
- region = strings.ReplaceAll(region, fipsInfix, "-")
- region = strings.ReplaceAll(region, fipsPrefix, "")
- region = strings.ReplaceAll(region, fipsSuffix, "")
- }
-
- return region
-}
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
deleted file mode 100644
index 8de3bfec8..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/CHANGELOG.md
+++ /dev/null
@@ -1,430 +0,0 @@
-# v2.7.9 (2025-09-26)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.7.8 (2025-09-23)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.7.7 (2025-09-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.7.6 (2025-08-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.7.5 (2025-08-27)
-
-* **Dependency Update**: Update to smithy-go v1.23.0.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.7.4 (2025-08-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.7.3 (2025-08-11)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.7.2 (2025-08-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.7.1 (2025-07-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.7.0 (2025-07-28)
-
-* **Feature**: Add support for HTTP interceptors.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.37 (2025-07-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.36 (2025-06-17)
-
-* **Dependency Update**: Update to smithy-go v1.22.4.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.35 (2025-06-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.34 (2025-02-27)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.33 (2025-02-18)
-
-* **Bug Fix**: Bump go version to 1.22
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.32 (2025-02-05)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.31 (2025-01-31)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.30 (2025-01-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.29 (2025-01-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-* **Dependency Update**: Upgrade to smithy-go v1.22.2.
-
-# v2.6.28 (2025-01-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.27 (2025-01-09)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.26 (2024-12-19)
-
-* **Bug Fix**: Fix improper use of printf-style functions.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.25 (2024-12-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.24 (2024-11-18)
-
-* **Dependency Update**: Update to smithy-go v1.22.1.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.23 (2024-11-06)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.22 (2024-10-28)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.21 (2024-10-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.20 (2024-10-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.19 (2024-10-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.18 (2024-09-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.17 (2024-09-03)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.16 (2024-08-15)
-
-* **Dependency Update**: Bump minimum Go version to 1.21.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.15 (2024-07-10.2)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.14 (2024-07-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.13 (2024-06-28)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.12 (2024-06-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.11 (2024-06-18)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.10 (2024-06-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.9 (2024-06-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.8 (2024-06-03)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.7 (2024-05-16)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.6 (2024-05-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.5 (2024-03-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.4 (2024-03-18)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.3 (2024-03-07)
-
-* **Bug Fix**: Remove dependency on go-cmp.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.2 (2024-02-23)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.1 (2024-02-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.6.0 (2024-02-13)
-
-* **Feature**: Bump minimum Go version to 1.20 per our language support policy.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.5.10 (2024-01-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.5.9 (2023-12-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.5.8 (2023-12-01)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.5.7 (2023-11-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.5.6 (2023-11-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.5.5 (2023-11-28.2)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.5.4 (2023-11-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.5.3 (2023-11-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.5.2 (2023-11-09)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.5.1 (2023-11-01)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.5.0 (2023-10-31)
-
-* **Feature**: **BREAKING CHANGE**: Bump minimum go version to 1.19 per the revised [go version support policy](https://aws.amazon.com/blogs/developer/aws-sdk-for-go-aligns-with-go-release-policy-on-supported-runtimes/).
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.37 (2023-10-12)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.36 (2023-10-06)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.35 (2023-08-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.34 (2023-08-18)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.33 (2023-08-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.32 (2023-08-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.31 (2023-07-31)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.30 (2023-07-28)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.29 (2023-07-13)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.28 (2023-06-13)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.27 (2023-04-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.26 (2023-04-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.25 (2023-03-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.24 (2023-03-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.23 (2023-02-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.22 (2023-02-03)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.21 (2022-12-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.20 (2022-12-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.19 (2022-10-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.18 (2022-10-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.17 (2022-09-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.16 (2022-09-14)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.15 (2022-09-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.14 (2022-08-31)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.13 (2022-08-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.12 (2022-08-11)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.11 (2022-08-09)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.10 (2022-08-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.9 (2022-08-01)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.8 (2022-07-05)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.7 (2022-06-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.6 (2022-06-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.5 (2022-05-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.4 (2022-04-25)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.3 (2022-03-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.2 (2022-03-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.1 (2022-03-23)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.4.0 (2022-03-08)
-
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.3.0 (2022-02-24)
-
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.2.0 (2022-01-14)
-
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.1.0 (2022-01-07)
-
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.0.2 (2021-12-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.0.1 (2021-11-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v2.0.0 (2021-11-06)
-
-* **Release**: Endpoint Variant Model Support
-* **Feature**: The SDK now supports configuration of FIPS and DualStack endpoints using environment variables, shared configuration, or programmatically.
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/LICENSE.txt b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/LICENSE.txt
deleted file mode 100644
index d64569567..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/endpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/endpoints.go
deleted file mode 100644
index 32251a7e3..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/endpoints.go
+++ /dev/null
@@ -1,302 +0,0 @@
-package endpoints
-
-import (
- "fmt"
- "github.com/aws/smithy-go/logging"
- "regexp"
- "strings"
-
- "github.com/aws/aws-sdk-go-v2/aws"
-)
-
-// DefaultKey is a compound map key of a variant and other values.
-type DefaultKey struct {
- Variant EndpointVariant
- ServiceVariant ServiceVariant
-}
-
-// EndpointKey is a compound map key of a region and associated variant value.
-type EndpointKey struct {
- Region string
- Variant EndpointVariant
- ServiceVariant ServiceVariant
-}
-
-// EndpointVariant is a bit field to describe the endpoints attributes.
-type EndpointVariant uint64
-
-const (
- // FIPSVariant indicates that the endpoint is FIPS capable.
- FIPSVariant EndpointVariant = 1 << (64 - 1 - iota)
-
- // DualStackVariant indicates that the endpoint is DualStack capable.
- DualStackVariant
-)
-
-// ServiceVariant is a bit field to describe the service endpoint attributes.
-type ServiceVariant uint64
-
-const (
- defaultProtocol = "https"
- defaultSigner = "v4"
-)
-
-var (
- protocolPriority = []string{"https", "http"}
- signerPriority = []string{"v4", "s3v4"}
-)
-
-// Options provide configuration needed to direct how endpoints are resolved.
-type Options struct {
- // Logger is a logging implementation that log events should be sent to.
- Logger logging.Logger
-
- // LogDeprecated indicates that deprecated endpoints should be logged to the provided logger.
- LogDeprecated bool
-
- // ResolvedRegion is the resolved region string. If provided (non-zero length) it takes priority
- // over the region name passed to the ResolveEndpoint call.
- ResolvedRegion string
-
- // Disable usage of HTTPS (TLS / SSL)
- DisableHTTPS bool
-
- // Instruct the resolver to use a service endpoint that supports dual-stack.
- // If a service does not have a dual-stack endpoint an error will be returned by the resolver.
- UseDualStackEndpoint aws.DualStackEndpointState
-
- // Instruct the resolver to use a service endpoint that supports FIPS.
- // If a service does not have a FIPS endpoint an error will be returned by the resolver.
- UseFIPSEndpoint aws.FIPSEndpointState
-
- // ServiceVariant is a bitfield of service specified endpoint variant data.
- ServiceVariant ServiceVariant
-}
-
-// GetEndpointVariant returns the EndpointVariant for the variant associated options.
-func (o Options) GetEndpointVariant() (v EndpointVariant) {
- if o.UseDualStackEndpoint == aws.DualStackEndpointStateEnabled {
- v |= DualStackVariant
- }
- if o.UseFIPSEndpoint == aws.FIPSEndpointStateEnabled {
- v |= FIPSVariant
- }
- return v
-}
-
-// Partitions is a slice of partition
-type Partitions []Partition
-
-// ResolveEndpoint resolves a service endpoint for the given region and options.
-func (ps Partitions) ResolveEndpoint(region string, opts Options) (aws.Endpoint, error) {
- if len(ps) == 0 {
- return aws.Endpoint{}, fmt.Errorf("no partitions found")
- }
-
- if opts.Logger == nil {
- opts.Logger = logging.Nop{}
- }
-
- if len(opts.ResolvedRegion) > 0 {
- region = opts.ResolvedRegion
- }
-
- for i := 0; i < len(ps); i++ {
- if !ps[i].canResolveEndpoint(region, opts) {
- continue
- }
-
- return ps[i].ResolveEndpoint(region, opts)
- }
-
- // fallback to first partition format to use when resolving the endpoint.
- return ps[0].ResolveEndpoint(region, opts)
-}
-
-// Partition is an AWS partition description for a service and its' region endpoints.
-type Partition struct {
- ID string
- RegionRegex *regexp.Regexp
- PartitionEndpoint string
- IsRegionalized bool
- Defaults map[DefaultKey]Endpoint
- Endpoints Endpoints
-}
-
-func (p Partition) canResolveEndpoint(region string, opts Options) bool {
- _, ok := p.Endpoints[EndpointKey{
- Region: region,
- Variant: opts.GetEndpointVariant(),
- }]
- return ok || p.RegionRegex.MatchString(region)
-}
-
-// ResolveEndpoint resolves and service endpoint for the given region and options.
-func (p Partition) ResolveEndpoint(region string, options Options) (resolved aws.Endpoint, err error) {
- if len(region) == 0 && len(p.PartitionEndpoint) != 0 {
- region = p.PartitionEndpoint
- }
-
- endpoints := p.Endpoints
-
- variant := options.GetEndpointVariant()
- serviceVariant := options.ServiceVariant
-
- defaults := p.Defaults[DefaultKey{
- Variant: variant,
- ServiceVariant: serviceVariant,
- }]
-
- return p.endpointForRegion(region, variant, serviceVariant, endpoints).resolve(p.ID, region, defaults, options)
-}
-
-func (p Partition) endpointForRegion(region string, variant EndpointVariant, serviceVariant ServiceVariant, endpoints Endpoints) Endpoint {
- key := EndpointKey{
- Region: region,
- Variant: variant,
- }
-
- if e, ok := endpoints[key]; ok {
- return e
- }
-
- if !p.IsRegionalized {
- return endpoints[EndpointKey{
- Region: p.PartitionEndpoint,
- Variant: variant,
- ServiceVariant: serviceVariant,
- }]
- }
-
- // Unable to find any matching endpoint, return
- // blank that will be used for generic endpoint creation.
- return Endpoint{}
-}
-
-// Endpoints is a map of service config regions to endpoints
-type Endpoints map[EndpointKey]Endpoint
-
-// CredentialScope is the credential scope of a region and service
-type CredentialScope struct {
- Region string
- Service string
-}
-
-// Endpoint is a service endpoint description
-type Endpoint struct {
- // True if the endpoint cannot be resolved for this partition/region/service
- Unresolveable aws.Ternary
-
- Hostname string
- Protocols []string
-
- CredentialScope CredentialScope
-
- SignatureVersions []string
-
- // Indicates that this endpoint is deprecated.
- Deprecated aws.Ternary
-}
-
-// IsZero returns whether the endpoint structure is an empty (zero) value.
-func (e Endpoint) IsZero() bool {
- switch {
- case e.Unresolveable != aws.UnknownTernary:
- return false
- case len(e.Hostname) != 0:
- return false
- case len(e.Protocols) != 0:
- return false
- case e.CredentialScope != (CredentialScope{}):
- return false
- case len(e.SignatureVersions) != 0:
- return false
- }
- return true
-}
-
-func (e Endpoint) resolve(partition, region string, def Endpoint, options Options) (aws.Endpoint, error) {
- var merged Endpoint
- merged.mergeIn(def)
- merged.mergeIn(e)
- e = merged
-
- if e.IsZero() {
- return aws.Endpoint{}, fmt.Errorf("unable to resolve endpoint for region: %v", region)
- }
-
- var u string
- if e.Unresolveable != aws.TrueTernary {
- // Only attempt to resolve the endpoint if it can be resolved.
- hostname := strings.Replace(e.Hostname, "{region}", region, 1)
-
- scheme := getEndpointScheme(e.Protocols, options.DisableHTTPS)
- u = scheme + "://" + hostname
- }
-
- signingRegion := e.CredentialScope.Region
- if len(signingRegion) == 0 {
- signingRegion = region
- }
- signingName := e.CredentialScope.Service
-
- if e.Deprecated == aws.TrueTernary && options.LogDeprecated {
- options.Logger.Logf(logging.Warn, "endpoint identifier %q, url %q marked as deprecated", region, u)
- }
-
- return aws.Endpoint{
- URL: u,
- PartitionID: partition,
- SigningRegion: signingRegion,
- SigningName: signingName,
- SigningMethod: getByPriority(e.SignatureVersions, signerPriority, defaultSigner),
- }, nil
-}
-
-func (e *Endpoint) mergeIn(other Endpoint) {
- if other.Unresolveable != aws.UnknownTernary {
- e.Unresolveable = other.Unresolveable
- }
- if len(other.Hostname) > 0 {
- e.Hostname = other.Hostname
- }
- if len(other.Protocols) > 0 {
- e.Protocols = other.Protocols
- }
- if len(other.CredentialScope.Region) > 0 {
- e.CredentialScope.Region = other.CredentialScope.Region
- }
- if len(other.CredentialScope.Service) > 0 {
- e.CredentialScope.Service = other.CredentialScope.Service
- }
- if len(other.SignatureVersions) > 0 {
- e.SignatureVersions = other.SignatureVersions
- }
- if other.Deprecated != aws.UnknownTernary {
- e.Deprecated = other.Deprecated
- }
-}
-
-func getEndpointScheme(protocols []string, disableHTTPS bool) string {
- if disableHTTPS {
- return "http"
- }
-
- return getByPriority(protocols, protocolPriority, defaultProtocol)
-}
-
-func getByPriority(s []string, p []string, def string) string {
- if len(s) == 0 {
- return def
- }
-
- for i := 0; i < len(p); i++ {
- for j := 0; j < len(s); j++ {
- if s[j] == p[i] {
- return s[j]
- }
- }
- }
-
- return s[0]
-}
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
deleted file mode 100644
index c5168da33..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/go_module_metadata.go
+++ /dev/null
@@ -1,6 +0,0 @@
-// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
-
-package endpoints
-
-// goModuleVersion is the tagged release for this module
-const goModuleVersion = "2.7.9"
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/CHANGELOG.md
deleted file mode 100644
index f729db535..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/CHANGELOG.md
+++ /dev/null
@@ -1,283 +0,0 @@
-# v1.8.3 (2025-02-18)
-
-* **Bug Fix**: Bump go version to 1.22
-
-# v1.8.2 (2025-01-24)
-
-* **Bug Fix**: Refactor filepath.Walk to filepath.WalkDir
-
-# v1.8.1 (2024-08-15)
-
-* **Dependency Update**: Bump minimum Go version to 1.21.
-
-# v1.8.0 (2024-02-13)
-
-* **Feature**: Bump minimum Go version to 1.20 per our language support policy.
-
-# v1.7.3 (2024-01-22)
-
-* **Bug Fix**: Remove invalid escaping of shared config values. All values in the shared config file will now be interpreted literally, save for fully-quoted strings which are unwrapped for legacy reasons.
-
-# v1.7.2 (2023-12-08)
-
-* **Bug Fix**: Correct loading of [services *] sections into shared config.
-
-# v1.7.1 (2023-11-16)
-
-* **Bug Fix**: Fix recognition of trailing comments in shared config properties. # or ; separators that aren't preceded by whitespace at the end of a property value should be considered part of it.
-
-# v1.7.0 (2023-11-13)
-
-* **Feature**: Replace the legacy config parser with a modern, less-strict implementation. Parsing failures within a section will now simply ignore the invalid line rather than silently drop the entire section.
-
-# v1.6.0 (2023-11-09.2)
-
-* **Feature**: BREAKFIX: In order to support subproperty parsing, invalid property definitions must not be ignored
-
-# v1.5.2 (2023-11-09)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.5.1 (2023-11-07)
-
-* **Bug Fix**: Fix subproperty performance regression
-
-# v1.5.0 (2023-11-01)
-
-* **Feature**: Adds support for configured endpoints via environment variables and the AWS shared configuration file.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.4.0 (2023-10-31)
-
-* **Feature**: **BREAKING CHANGE**: Bump minimum go version to 1.19 per the revised [go version support policy](https://aws.amazon.com/blogs/developer/aws-sdk-for-go-aligns-with-go-release-policy-on-supported-runtimes/).
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.45 (2023-10-12)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.44 (2023-10-06)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.43 (2023-09-22)
-
-* **Bug Fix**: Fixed a bug where merging `max_attempts` or `duration_seconds` fields across shared config files with invalid values would silently default them to 0.
-* **Bug Fix**: Move type assertion of config values out of the parsing stage, which resolves an issue where the contents of a profile would silently be dropped with certain numeric formats.
-
-# v1.3.42 (2023-08-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.41 (2023-08-18)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.40 (2023-08-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.39 (2023-08-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.38 (2023-07-31)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.37 (2023-07-28)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.36 (2023-07-13)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.35 (2023-06-13)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.34 (2023-04-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.33 (2023-04-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.32 (2023-03-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.31 (2023-03-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.30 (2023-02-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.29 (2023-02-03)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.28 (2022-12-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.27 (2022-12-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.26 (2022-10-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.25 (2022-10-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.24 (2022-09-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.23 (2022-09-14)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.22 (2022-09-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.21 (2022-08-31)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.20 (2022-08-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.19 (2022-08-11)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.18 (2022-08-09)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.17 (2022-08-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.16 (2022-08-01)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.15 (2022-07-05)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.14 (2022-06-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.13 (2022-06-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.12 (2022-05-17)
-
-* **Bug Fix**: Removes the fuzz testing files from the module, as they are invalid and not used.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.11 (2022-04-25)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.10 (2022-03-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.9 (2022-03-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.8 (2022-03-23)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.7 (2022-03-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.6 (2022-02-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.5 (2022-01-28)
-
-* **Bug Fix**: Fixes the SDK's handling of `duration_sections` in the shared credentials file or specified in multiple shared config and shared credentials files under the same profile. [#1568](https://github.com/aws/aws-sdk-go-v2/pull/1568). Thanks to [Amir Szekely](https://github.com/kichik) for help reproduce this bug.
-
-# v1.3.4 (2022-01-14)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.3 (2022-01-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.2 (2021-12-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.1 (2021-11-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.3.0 (2021-11-06)
-
-* **Feature**: The SDK now supports configuration of FIPS and DualStack endpoints using environment variables, shared configuration, or programmatically.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.2.5 (2021-10-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.2.4 (2021-10-11)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.2.3 (2021-09-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.2.2 (2021-08-27)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.2.1 (2021-08-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.2.0 (2021-08-04)
-
-* **Feature**: adds error handling for defered close calls
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.1 (2021-07-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.1.0 (2021-07-01)
-
-* **Feature**: Support for `:`, `=`, `[`, `]` being present in expression values.
-
-# v1.0.1 (2021-06-25)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.0.0 (2021-05-20)
-
-* **Release**: The `github.com/aws/aws-sdk-go-v2/internal/ini` package is now a Go Module.
-* **Dependency Update**: Updated to the latest SDK module versions
-
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/LICENSE.txt b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/LICENSE.txt
deleted file mode 100644
index d64569567..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/errors.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/errors.go
deleted file mode 100644
index 0f278d55e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/errors.go
+++ /dev/null
@@ -1,22 +0,0 @@
-package ini
-
-import "fmt"
-
-// UnableToReadFile is an error indicating that a ini file could not be read
-type UnableToReadFile struct {
- Err error
-}
-
-// Error returns an error message and the underlying error message if present
-func (e *UnableToReadFile) Error() string {
- base := "unable to read file"
- if e.Err == nil {
- return base
- }
- return fmt.Sprintf("%s: %v", base, e.Err)
-}
-
-// Unwrap returns the underlying error
-func (e *UnableToReadFile) Unwrap() error {
- return e.Err
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/go_module_metadata.go
deleted file mode 100644
index 00df0e3cb..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/go_module_metadata.go
+++ /dev/null
@@ -1,6 +0,0 @@
-// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
-
-package ini
-
-// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.8.3"
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/ini.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/ini.go
deleted file mode 100644
index cefcce91e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/ini.go
+++ /dev/null
@@ -1,56 +0,0 @@
-// Package ini implements parsing of the AWS shared config file.
-//
-// Example:
-// sections, err := ini.OpenFile("/path/to/file")
-// if err != nil {
-// panic(err)
-// }
-//
-// profile := "foo"
-// section, ok := sections.GetSection(profile)
-// if !ok {
-// fmt.Printf("section %q could not be found", profile)
-// }
-package ini
-
-import (
- "fmt"
- "io"
- "os"
- "strings"
-)
-
-// OpenFile parses shared config from the given file path.
-func OpenFile(path string) (sections Sections, err error) {
- f, oerr := os.Open(path)
- if oerr != nil {
- return Sections{}, &UnableToReadFile{Err: oerr}
- }
-
- defer func() {
- closeErr := f.Close()
- if err == nil {
- err = closeErr
- } else if closeErr != nil {
- err = fmt.Errorf("close error: %v, original error: %w", closeErr, err)
- }
- }()
-
- return Parse(f, path)
-}
-
-// Parse parses shared config from the given reader.
-func Parse(r io.Reader, path string) (Sections, error) {
- contents, err := io.ReadAll(r)
- if err != nil {
- return Sections{}, fmt.Errorf("read all: %v", err)
- }
-
- lines := strings.Split(string(contents), "\n")
- tokens, err := tokenize(lines)
- if err != nil {
- return Sections{}, fmt.Errorf("tokenize: %v", err)
- }
-
- return parse(tokens, path), nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/parse.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/parse.go
deleted file mode 100644
index 2422d9046..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/parse.go
+++ /dev/null
@@ -1,109 +0,0 @@
-package ini
-
-import (
- "fmt"
- "strings"
-)
-
-func parse(tokens []lineToken, path string) Sections {
- parser := &parser{
- path: path,
- sections: NewSections(),
- }
- parser.parse(tokens)
- return parser.sections
-}
-
-type parser struct {
- csection, ckey string // current state
- path string // source file path
- sections Sections // parse result
-}
-
-func (p *parser) parse(tokens []lineToken) {
- for _, otok := range tokens {
- switch tok := otok.(type) {
- case *lineTokenProfile:
- p.handleProfile(tok)
- case *lineTokenProperty:
- p.handleProperty(tok)
- case *lineTokenSubProperty:
- p.handleSubProperty(tok)
- case *lineTokenContinuation:
- p.handleContinuation(tok)
- }
- }
-}
-
-func (p *parser) handleProfile(tok *lineTokenProfile) {
- name := tok.Name
- if tok.Type != "" {
- name = fmt.Sprintf("%s %s", tok.Type, tok.Name)
- }
- p.ckey = ""
- p.csection = name
- if _, ok := p.sections.container[name]; !ok {
- p.sections.container[name] = NewSection(name)
- }
-}
-
-func (p *parser) handleProperty(tok *lineTokenProperty) {
- if p.csection == "" {
- return // LEGACY: don't error on "global" properties
- }
-
- p.ckey = tok.Key
- if _, ok := p.sections.container[p.csection].values[tok.Key]; ok {
- section := p.sections.container[p.csection]
- section.Logs = append(p.sections.container[p.csection].Logs,
- fmt.Sprintf(
- "For profile: %v, overriding %v value, with a %v value found in a duplicate profile defined later in the same file %v. \n",
- p.csection, tok.Key, tok.Key, p.path,
- ),
- )
- p.sections.container[p.csection] = section
- }
-
- p.sections.container[p.csection].values[tok.Key] = Value{
- str: tok.Value,
- }
- p.sections.container[p.csection].SourceFile[tok.Key] = p.path
-}
-
-func (p *parser) handleSubProperty(tok *lineTokenSubProperty) {
- if p.csection == "" {
- return // LEGACY: don't error on "global" properties
- }
-
- if p.ckey == "" || p.sections.container[p.csection].values[p.ckey].str != "" {
- // This is an "orphaned" subproperty, either because it's at
- // the beginning of a section or because the last property's
- // value isn't empty. Either way we're lenient here and
- // "promote" this to a normal property.
- p.handleProperty(&lineTokenProperty{
- Key: tok.Key,
- Value: strings.TrimSpace(trimPropertyComment(tok.Value)),
- })
- return
- }
-
- if p.sections.container[p.csection].values[p.ckey].mp == nil {
- p.sections.container[p.csection].values[p.ckey] = Value{
- mp: map[string]string{},
- }
- }
- p.sections.container[p.csection].values[p.ckey].mp[tok.Key] = tok.Value
-}
-
-func (p *parser) handleContinuation(tok *lineTokenContinuation) {
- if p.ckey == "" {
- return
- }
-
- value, _ := p.sections.container[p.csection].values[p.ckey]
- if value.str != "" && value.mp == nil {
- value.str = fmt.Sprintf("%s\n%s", value.str, tok.Value)
- }
-
- p.sections.container[p.csection].values[p.ckey] = value
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/sections.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/sections.go
deleted file mode 100644
index dd89848e6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/sections.go
+++ /dev/null
@@ -1,157 +0,0 @@
-package ini
-
-import (
- "sort"
-)
-
-// Sections is a map of Section structures that represent
-// a configuration.
-type Sections struct {
- container map[string]Section
-}
-
-// NewSections returns empty ini Sections
-func NewSections() Sections {
- return Sections{
- container: make(map[string]Section, 0),
- }
-}
-
-// GetSection will return section p. If section p does not exist,
-// false will be returned in the second parameter.
-func (t Sections) GetSection(p string) (Section, bool) {
- v, ok := t.container[p]
- return v, ok
-}
-
-// HasSection denotes if Sections consist of a section with
-// provided name.
-func (t Sections) HasSection(p string) bool {
- _, ok := t.container[p]
- return ok
-}
-
-// SetSection sets a section value for provided section name.
-func (t Sections) SetSection(p string, v Section) Sections {
- t.container[p] = v
- return t
-}
-
-// DeleteSection deletes a section entry/value for provided section name./
-func (t Sections) DeleteSection(p string) {
- delete(t.container, p)
-}
-
-// values represents a map of union values.
-type values map[string]Value
-
-// List will return a list of all sections that were successfully
-// parsed.
-func (t Sections) List() []string {
- keys := make([]string, len(t.container))
- i := 0
- for k := range t.container {
- keys[i] = k
- i++
- }
-
- sort.Strings(keys)
- return keys
-}
-
-// Section contains a name and values. This represent
-// a sectioned entry in a configuration file.
-type Section struct {
- // Name is the Section profile name
- Name string
-
- // values are the values within parsed profile
- values values
-
- // Errors is the list of errors
- Errors []error
-
- // Logs is the list of logs
- Logs []string
-
- // SourceFile is the INI Source file from where this section
- // was retrieved. They key is the property, value is the
- // source file the property was retrieved from.
- SourceFile map[string]string
-}
-
-// NewSection returns an initialize section for the name
-func NewSection(name string) Section {
- return Section{
- Name: name,
- values: values{},
- SourceFile: map[string]string{},
- }
-}
-
-// List will return a list of all
-// services in values
-func (t Section) List() []string {
- keys := make([]string, len(t.values))
- i := 0
- for k := range t.values {
- keys[i] = k
- i++
- }
-
- sort.Strings(keys)
- return keys
-}
-
-// UpdateSourceFile updates source file for a property to provided filepath.
-func (t Section) UpdateSourceFile(property string, filepath string) {
- t.SourceFile[property] = filepath
-}
-
-// UpdateValue updates value for a provided key with provided value
-func (t Section) UpdateValue(k string, v Value) error {
- t.values[k] = v
- return nil
-}
-
-// Has will return whether or not an entry exists in a given section
-func (t Section) Has(k string) bool {
- _, ok := t.values[k]
- return ok
-}
-
-// ValueType will returned what type the union is set to. If
-// k was not found, the NoneType will be returned.
-func (t Section) ValueType(k string) (ValueType, bool) {
- v, ok := t.values[k]
- return v.Type, ok
-}
-
-// Bool returns a bool value at k
-func (t Section) Bool(k string) (bool, bool) {
- return t.values[k].BoolValue()
-}
-
-// Int returns an integer value at k
-func (t Section) Int(k string) (int64, bool) {
- return t.values[k].IntValue()
-}
-
-// Map returns a map value at k
-func (t Section) Map(k string) map[string]string {
- return t.values[k].MapValue()
-}
-
-// Float64 returns a float value at k
-func (t Section) Float64(k string) (float64, bool) {
- return t.values[k].FloatValue()
-}
-
-// String returns the string value at k
-func (t Section) String(k string) string {
- _, ok := t.values[k]
- if !ok {
- return ""
- }
- return t.values[k].StringValue()
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/strings.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/strings.go
deleted file mode 100644
index ed77d0835..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/strings.go
+++ /dev/null
@@ -1,89 +0,0 @@
-package ini
-
-import (
- "strings"
-)
-
-func trimProfileComment(s string) string {
- r, _, _ := strings.Cut(s, "#")
- r, _, _ = strings.Cut(r, ";")
- return r
-}
-
-func trimPropertyComment(s string) string {
- r, _, _ := strings.Cut(s, " #")
- r, _, _ = strings.Cut(r, " ;")
- r, _, _ = strings.Cut(r, "\t#")
- r, _, _ = strings.Cut(r, "\t;")
- return r
-}
-
-// assumes no surrounding comment
-func splitProperty(s string) (string, string, bool) {
- equalsi := strings.Index(s, "=")
- coloni := strings.Index(s, ":") // LEGACY: also supported for property assignment
- sep := "="
- if equalsi == -1 || coloni != -1 && coloni < equalsi {
- sep = ":"
- }
-
- k, v, ok := strings.Cut(s, sep)
- if !ok {
- return "", "", false
- }
- return strings.TrimSpace(k), strings.TrimSpace(v), true
-}
-
-// assumes no surrounding comment, whitespace, or profile brackets
-func splitProfile(s string) (string, string) {
- var first int
- for i, r := range s {
- if isLineSpace(r) {
- if first == 0 {
- first = i
- }
- } else {
- if first != 0 {
- return s[:first], s[i:]
- }
- }
- }
- if first == 0 {
- return "", s // type component is effectively blank
- }
- return "", ""
-}
-
-func isLineSpace(r rune) bool {
- return r == ' ' || r == '\t'
-}
-
-func unquote(s string) string {
- if isSingleQuoted(s) || isDoubleQuoted(s) {
- return s[1 : len(s)-1]
- }
- return s
-}
-
-// applies various legacy conversions to property values:
-// - remote wrapping single/doublequotes
-func legacyStrconv(s string) string {
- s = unquote(s)
- return s
-}
-
-func isSingleQuoted(s string) bool {
- return hasAffixes(s, "'", "'")
-}
-
-func isDoubleQuoted(s string) bool {
- return hasAffixes(s, `"`, `"`)
-}
-
-func isBracketed(s string) bool {
- return hasAffixes(s, "[", "]")
-}
-
-func hasAffixes(s, left, right string) bool {
- return strings.HasPrefix(s, left) && strings.HasSuffix(s, right)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/token.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/token.go
deleted file mode 100644
index 6e9a03744..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/token.go
+++ /dev/null
@@ -1,32 +0,0 @@
-package ini
-
-type lineToken interface {
- isLineToken()
-}
-
-type lineTokenProfile struct {
- Type string
- Name string
-}
-
-func (*lineTokenProfile) isLineToken() {}
-
-type lineTokenProperty struct {
- Key string
- Value string
-}
-
-func (*lineTokenProperty) isLineToken() {}
-
-type lineTokenContinuation struct {
- Value string
-}
-
-func (*lineTokenContinuation) isLineToken() {}
-
-type lineTokenSubProperty struct {
- Key string
- Value string
-}
-
-func (*lineTokenSubProperty) isLineToken() {}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/tokenize.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/tokenize.go
deleted file mode 100644
index 89a773684..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/tokenize.go
+++ /dev/null
@@ -1,92 +0,0 @@
-package ini
-
-import (
- "strings"
-)
-
-func tokenize(lines []string) ([]lineToken, error) {
- tokens := make([]lineToken, 0, len(lines))
- for _, line := range lines {
- if len(strings.TrimSpace(line)) == 0 || isLineComment(line) {
- continue
- }
-
- if tok := asProfile(line); tok != nil {
- tokens = append(tokens, tok)
- } else if tok := asProperty(line); tok != nil {
- tokens = append(tokens, tok)
- } else if tok := asSubProperty(line); tok != nil {
- tokens = append(tokens, tok)
- } else if tok := asContinuation(line); tok != nil {
- tokens = append(tokens, tok)
- } // unrecognized tokens are effectively ignored
- }
- return tokens, nil
-}
-
-func isLineComment(line string) bool {
- trimmed := strings.TrimLeft(line, " \t")
- return strings.HasPrefix(trimmed, "#") || strings.HasPrefix(trimmed, ";")
-}
-
-func asProfile(line string) *lineTokenProfile { // " [ type name ] ; comment"
- trimmed := strings.TrimSpace(trimProfileComment(line)) // "[ type name ]"
- if !isBracketed(trimmed) {
- return nil
- }
- trimmed = trimmed[1 : len(trimmed)-1] // " type name " (or just " name ")
- trimmed = strings.TrimSpace(trimmed) // "type name" / "name"
- typ, name := splitProfile(trimmed)
- return &lineTokenProfile{
- Type: typ,
- Name: name,
- }
-}
-
-func asProperty(line string) *lineTokenProperty {
- if isLineSpace(rune(line[0])) {
- return nil
- }
-
- trimmed := trimPropertyComment(line)
- trimmed = strings.TrimRight(trimmed, " \t")
- k, v, ok := splitProperty(trimmed)
- if !ok {
- return nil
- }
-
- return &lineTokenProperty{
- Key: strings.ToLower(k), // LEGACY: normalize key case
- Value: legacyStrconv(v), // LEGACY: see func docs
- }
-}
-
-func asSubProperty(line string) *lineTokenSubProperty {
- if !isLineSpace(rune(line[0])) {
- return nil
- }
-
- // comments on sub-properties are included in the value
- trimmed := strings.TrimLeft(line, " \t")
- k, v, ok := splitProperty(trimmed)
- if !ok {
- return nil
- }
-
- return &lineTokenSubProperty{ // same LEGACY constraints as in normal property
- Key: strings.ToLower(k),
- Value: legacyStrconv(v),
- }
-}
-
-func asContinuation(line string) *lineTokenContinuation {
- if !isLineSpace(rune(line[0])) {
- return nil
- }
-
- // includes comments like sub-properties
- trimmed := strings.TrimLeft(line, " \t")
- return &lineTokenContinuation{
- Value: trimmed,
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/value.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/value.go
deleted file mode 100644
index e3706b3c3..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/value.go
+++ /dev/null
@@ -1,93 +0,0 @@
-package ini
-
-import (
- "fmt"
- "strconv"
- "strings"
-)
-
-// ValueType is an enum that will signify what type
-// the Value is
-type ValueType int
-
-func (v ValueType) String() string {
- switch v {
- case NoneType:
- return "NONE"
- case StringType:
- return "STRING"
- }
-
- return ""
-}
-
-// ValueType enums
-const (
- NoneType = ValueType(iota)
- StringType
- QuotedStringType
-)
-
-// Value is a union container
-type Value struct {
- Type ValueType
-
- str string
- mp map[string]string
-}
-
-// NewStringValue returns a Value type generated using a string input.
-func NewStringValue(str string) (Value, error) {
- return Value{str: str}, nil
-}
-
-func (v Value) String() string {
- switch v.Type {
- case StringType:
- return fmt.Sprintf("string: %s", string(v.str))
- case QuotedStringType:
- return fmt.Sprintf("quoted string: %s", string(v.str))
- default:
- return "union not set"
- }
-}
-
-// MapValue returns a map value for sub properties
-func (v Value) MapValue() map[string]string {
- return v.mp
-}
-
-// IntValue returns an integer value
-func (v Value) IntValue() (int64, bool) {
- i, err := strconv.ParseInt(string(v.str), 0, 64)
- if err != nil {
- return 0, false
- }
- return i, true
-}
-
-// FloatValue returns a float value
-func (v Value) FloatValue() (float64, bool) {
- f, err := strconv.ParseFloat(string(v.str), 64)
- if err != nil {
- return 0, false
- }
- return f, true
-}
-
-// BoolValue returns a bool value
-func (v Value) BoolValue() (bool, bool) {
- // we don't use ParseBool as it recognizes more than what we've
- // historically supported
- if strings.EqualFold(v.str, "true") {
- return true, true
- } else if strings.EqualFold(v.str, "false") {
- return false, true
- }
- return false, false
-}
-
-// StringValue returns the string value
-func (v Value) StringValue() string {
- return v.str
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/middleware/middleware.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/middleware/middleware.go
deleted file mode 100644
index 8e24a3f0a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/middleware/middleware.go
+++ /dev/null
@@ -1,42 +0,0 @@
-package middleware
-
-import (
- "context"
- "sync/atomic"
- "time"
-
- internalcontext "github.com/aws/aws-sdk-go-v2/internal/context"
- "github.com/aws/smithy-go/middleware"
-)
-
-// AddTimeOffsetMiddleware sets a value representing clock skew on the request context.
-// This can be read by other operations (such as signing) to correct the date value they send
-// on the request
-type AddTimeOffsetMiddleware struct {
- Offset *atomic.Int64
-}
-
-// ID the identifier for AddTimeOffsetMiddleware
-func (m *AddTimeOffsetMiddleware) ID() string { return "AddTimeOffsetMiddleware" }
-
-// HandleBuild sets a value for attemptSkew on the request context if one is set on the client.
-func (m AddTimeOffsetMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) (
- out middleware.BuildOutput, metadata middleware.Metadata, err error,
-) {
- if m.Offset != nil {
- offset := time.Duration(m.Offset.Load())
- ctx = internalcontext.SetAttemptSkewContext(ctx, offset)
- }
- return next.HandleBuild(ctx, in)
-}
-
-// HandleDeserialize gets the clock skew context from the context, and if set, sets it on the pointer
-// held by AddTimeOffsetMiddleware
-func (m *AddTimeOffsetMiddleware) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
- out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
-) {
- if v := internalcontext.GetAttemptSkewContext(ctx); v != 0 {
- m.Offset.Store(v.Nanoseconds())
- }
- return next.HandleDeserialize(ctx, in)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/rand/rand.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/rand/rand.go
deleted file mode 100644
index c8484dcd7..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/rand/rand.go
+++ /dev/null
@@ -1,33 +0,0 @@
-package rand
-
-import (
- "crypto/rand"
- "fmt"
- "io"
- "math/big"
-)
-
-func init() {
- Reader = rand.Reader
-}
-
-// Reader provides a random reader that can reset during testing.
-var Reader io.Reader
-
-var floatMaxBigInt = big.NewInt(1 << 53)
-
-// Float64 returns a float64 read from an io.Reader source. The returned float will be between [0.0, 1.0).
-func Float64(reader io.Reader) (float64, error) {
- bi, err := rand.Int(reader, floatMaxBigInt)
- if err != nil {
- return 0, fmt.Errorf("failed to read random value, %v", err)
- }
-
- return float64(bi.Int64()) / (1 << 53), nil
-}
-
-// CryptoRandFloat64 returns a random float64 obtained from the crypto rand
-// source.
-func CryptoRandFloat64() (float64, error) {
- return Float64(Reader)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/sdk/interfaces.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/sdk/interfaces.go
deleted file mode 100644
index 2b42cbe64..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/sdk/interfaces.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package sdk
-
-// Invalidator provides access to a type's invalidate method to make it
-// invalidate it cache.
-//
-// e.g aws.SafeCredentialsProvider's Invalidate method.
-type Invalidator interface {
- Invalidate()
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/sdk/time.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/sdk/time.go
deleted file mode 100644
index 8e8dabad5..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/sdk/time.go
+++ /dev/null
@@ -1,74 +0,0 @@
-package sdk
-
-import (
- "context"
- "time"
-)
-
-func init() {
- NowTime = time.Now
- Sleep = time.Sleep
- SleepWithContext = sleepWithContext
-}
-
-// NowTime is a value for getting the current time. This value can be overridden
-// for testing mocking out current time.
-var NowTime func() time.Time
-
-// Sleep is a value for sleeping for a duration. This value can be overridden
-// for testing and mocking out sleep duration.
-var Sleep func(time.Duration)
-
-// SleepWithContext will wait for the timer duration to expire, or the context
-// is canceled. Which ever happens first. If the context is canceled the Context's
-// error will be returned.
-//
-// This value can be overridden for testing and mocking out sleep duration.
-var SleepWithContext func(context.Context, time.Duration) error
-
-// sleepWithContext will wait for the timer duration to expire, or the context
-// is canceled. Which ever happens first. If the context is canceled the
-// Context's error will be returned.
-func sleepWithContext(ctx context.Context, dur time.Duration) error {
- t := time.NewTimer(dur)
- defer t.Stop()
-
- select {
- case <-t.C:
- break
- case <-ctx.Done():
- return ctx.Err()
- }
-
- return nil
-}
-
-// noOpSleepWithContext does nothing, returns immediately.
-func noOpSleepWithContext(context.Context, time.Duration) error {
- return nil
-}
-
-func noOpSleep(time.Duration) {}
-
-// TestingUseNopSleep is a utility for disabling sleep across the SDK for
-// testing.
-func TestingUseNopSleep() func() {
- SleepWithContext = noOpSleepWithContext
- Sleep = noOpSleep
-
- return func() {
- SleepWithContext = sleepWithContext
- Sleep = time.Sleep
- }
-}
-
-// TestingUseReferenceTime is a utility for swapping the time function across the SDK to return a specific reference time
-// for testing purposes.
-func TestingUseReferenceTime(referenceTime time.Time) func() {
- NowTime = func() time.Time {
- return referenceTime
- }
- return func() {
- NowTime = time.Now
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/sdkio/byte.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/sdkio/byte.go
deleted file mode 100644
index 6c443988b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/sdkio/byte.go
+++ /dev/null
@@ -1,12 +0,0 @@
-package sdkio
-
-const (
- // Byte is 8 bits
- Byte int64 = 1
- // KibiByte (KiB) is 1024 Bytes
- KibiByte = Byte * 1024
- // MebiByte (MiB) is 1024 KiB
- MebiByte = KibiByte * 1024
- // GibiByte (GiB) is 1024 MiB
- GibiByte = MebiByte * 1024
-)
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/shareddefaults/shared_config.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/shareddefaults/shared_config.go
deleted file mode 100644
index c96b717e0..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/shareddefaults/shared_config.go
+++ /dev/null
@@ -1,47 +0,0 @@
-package shareddefaults
-
-import (
- "os"
- "os/user"
- "path/filepath"
-)
-
-// SharedCredentialsFilename returns the SDK's default file path
-// for the shared credentials file.
-//
-// Builds the shared config file path based on the OS's platform.
-//
-// - Linux/Unix: $HOME/.aws/credentials
-// - Windows: %USERPROFILE%\.aws\credentials
-func SharedCredentialsFilename() string {
- return filepath.Join(UserHomeDir(), ".aws", "credentials")
-}
-
-// SharedConfigFilename returns the SDK's default file path for
-// the shared config file.
-//
-// Builds the shared config file path based on the OS's platform.
-//
-// - Linux/Unix: $HOME/.aws/config
-// - Windows: %USERPROFILE%\.aws\config
-func SharedConfigFilename() string {
- return filepath.Join(UserHomeDir(), ".aws", "config")
-}
-
-// UserHomeDir returns the home directory for the user the process is
-// running under.
-func UserHomeDir() string {
- // Ignore errors since we only care about Windows and *nix.
- home, _ := os.UserHomeDir()
-
- if len(home) > 0 {
- return home
- }
-
- currUser, _ := user.Current()
- if currUser != nil {
- home = currUser.HomeDir
- }
-
- return home
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/strings/strings.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/strings/strings.go
deleted file mode 100644
index d008ae27c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/strings/strings.go
+++ /dev/null
@@ -1,11 +0,0 @@
-package strings
-
-import (
- "strings"
-)
-
-// HasPrefixFold tests whether the string s begins with prefix, interpreted as UTF-8 strings,
-// under Unicode case-folding.
-func HasPrefixFold(s, prefix string) bool {
- return len(s) >= len(prefix) && strings.EqualFold(s[0:len(prefix)], prefix)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/sync/singleflight/LICENSE b/vendor/github.com/aws/aws-sdk-go-v2/internal/sync/singleflight/LICENSE
deleted file mode 100644
index fe6a62006..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/sync/singleflight/LICENSE
+++ /dev/null
@@ -1,28 +0,0 @@
-Copyright (c) 2009 The Go Authors. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
-
- * Redistributions of source code must retain the above copyright
-notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
-copyright notice, this list of conditions and the following disclaimer
-in the documentation and/or other materials provided with the
-distribution.
- * Neither the name of Google Inc. nor the names of its
-contributors may be used to endorse or promote products derived from
-this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/sync/singleflight/docs.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/sync/singleflight/docs.go
deleted file mode 100644
index cb70616e8..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/sync/singleflight/docs.go
+++ /dev/null
@@ -1,7 +0,0 @@
-// Package singleflight provides a duplicate function call suppression
-// mechanism. This package is a fork of the Go golang.org/x/sync/singleflight
-// package. The package is forked, because the package a part of the unstable
-// and unversioned golang.org/x/sync module.
-//
-// https://github.com/golang/sync/tree/67f06af15bc961c363a7260195bcd53487529a21/singleflight
-package singleflight
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/sync/singleflight/singleflight.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/sync/singleflight/singleflight.go
deleted file mode 100644
index e8a1b17d5..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/sync/singleflight/singleflight.go
+++ /dev/null
@@ -1,210 +0,0 @@
-// Copyright 2013 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package singleflight
-
-import (
- "bytes"
- "errors"
- "fmt"
- "runtime"
- "runtime/debug"
- "sync"
-)
-
-// errGoexit indicates the runtime.Goexit was called in
-// the user given function.
-var errGoexit = errors.New("runtime.Goexit was called")
-
-// A panicError is an arbitrary value recovered from a panic
-// with the stack trace during the execution of given function.
-type panicError struct {
- value interface{}
- stack []byte
-}
-
-// Error implements error interface.
-func (p *panicError) Error() string {
- return fmt.Sprintf("%v\n\n%s", p.value, p.stack)
-}
-
-func newPanicError(v interface{}) error {
- stack := debug.Stack()
-
- // The first line of the stack trace is of the form "goroutine N [status]:"
- // but by the time the panic reaches Do the goroutine may no longer exist
- // and its status will have changed. Trim out the misleading line.
- if line := bytes.IndexByte(stack[:], '\n'); line >= 0 {
- stack = stack[line+1:]
- }
- return &panicError{value: v, stack: stack}
-}
-
-// call is an in-flight or completed singleflight.Do call
-type call struct {
- wg sync.WaitGroup
-
- // These fields are written once before the WaitGroup is done
- // and are only read after the WaitGroup is done.
- val interface{}
- err error
-
- // forgotten indicates whether Forget was called with this call's key
- // while the call was still in flight.
- forgotten bool
-
- // These fields are read and written with the singleflight
- // mutex held before the WaitGroup is done, and are read but
- // not written after the WaitGroup is done.
- dups int
- chans []chan<- Result
-}
-
-// Group represents a class of work and forms a namespace in
-// which units of work can be executed with duplicate suppression.
-type Group struct {
- mu sync.Mutex // protects m
- m map[string]*call // lazily initialized
-}
-
-// Result holds the results of Do, so they can be passed
-// on a channel.
-type Result struct {
- Val interface{}
- Err error
- Shared bool
-}
-
-// Do executes and returns the results of the given function, making
-// sure that only one execution is in-flight for a given key at a
-// time. If a duplicate comes in, the duplicate caller waits for the
-// original to complete and receives the same results.
-// The return value shared indicates whether v was given to multiple callers.
-func (g *Group) Do(key string, fn func() (interface{}, error)) (v interface{}, err error, shared bool) {
- g.mu.Lock()
- if g.m == nil {
- g.m = make(map[string]*call)
- }
- if c, ok := g.m[key]; ok {
- c.dups++
- g.mu.Unlock()
- c.wg.Wait()
-
- if e, ok := c.err.(*panicError); ok {
- panic(e)
- } else if c.err == errGoexit {
- runtime.Goexit()
- }
- return c.val, c.err, true
- }
- c := new(call)
- c.wg.Add(1)
- g.m[key] = c
- g.mu.Unlock()
-
- g.doCall(c, key, fn)
- return c.val, c.err, c.dups > 0
-}
-
-// DoChan is like Do but returns a channel that will receive the
-// results when they are ready.
-//
-// The returned channel will not be closed.
-func (g *Group) DoChan(key string, fn func() (interface{}, error)) <-chan Result {
- ch := make(chan Result, 1)
- g.mu.Lock()
- if g.m == nil {
- g.m = make(map[string]*call)
- }
- if c, ok := g.m[key]; ok {
- c.dups++
- c.chans = append(c.chans, ch)
- g.mu.Unlock()
- return ch
- }
- c := &call{chans: []chan<- Result{ch}}
- c.wg.Add(1)
- g.m[key] = c
- g.mu.Unlock()
-
- go g.doCall(c, key, fn)
-
- return ch
-}
-
-// doCall handles the single call for a key.
-func (g *Group) doCall(c *call, key string, fn func() (interface{}, error)) {
- normalReturn := false
- recovered := false
-
- // use double-defer to distinguish panic from runtime.Goexit,
- // more details see https://golang.org/cl/134395
- defer func() {
- // the given function invoked runtime.Goexit
- if !normalReturn && !recovered {
- c.err = errGoexit
- }
-
- c.wg.Done()
- g.mu.Lock()
- defer g.mu.Unlock()
- if !c.forgotten {
- delete(g.m, key)
- }
-
- if e, ok := c.err.(*panicError); ok {
- // In order to prevent the waiting channels from being blocked forever,
- // needs to ensure that this panic cannot be recovered.
- if len(c.chans) > 0 {
- go panic(e)
- select {} // Keep this goroutine around so that it will appear in the crash dump.
- } else {
- panic(e)
- }
- } else if c.err == errGoexit {
- // Already in the process of goexit, no need to call again
- } else {
- // Normal return
- for _, ch := range c.chans {
- ch <- Result{c.val, c.err, c.dups > 0}
- }
- }
- }()
-
- func() {
- defer func() {
- if !normalReturn {
- // Ideally, we would wait to take a stack trace until we've determined
- // whether this is a panic or a runtime.Goexit.
- //
- // Unfortunately, the only way we can distinguish the two is to see
- // whether the recover stopped the goroutine from terminating, and by
- // the time we know that, the part of the stack trace relevant to the
- // panic has been discarded.
- if r := recover(); r != nil {
- c.err = newPanicError(r)
- }
- }
- }()
-
- c.val, c.err = fn()
- normalReturn = true
- }()
-
- if !normalReturn {
- recovered = true
- }
-}
-
-// Forget tells the singleflight to forget about a key. Future calls
-// to Do for this key will call the function rather than waiting for
-// an earlier call to complete.
-func (g *Group) Forget(key string) {
- g.mu.Lock()
- if c, ok := g.m[key]; ok {
- c.forgotten = true
- }
- delete(g.m, key)
- g.mu.Unlock()
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/timeconv/duration.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/timeconv/duration.go
deleted file mode 100644
index 5d69db5f2..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/internal/timeconv/duration.go
+++ /dev/null
@@ -1,13 +0,0 @@
-package timeconv
-
-import "time"
-
-// FloatSecondsDur converts a fractional seconds to duration.
-func FloatSecondsDur(v float64) time.Duration {
- return time.Duration(v * float64(time.Second))
-}
-
-// DurSecondsFloat converts a duration into fractional seconds.
-func DurSecondsFloat(d time.Duration) float64 {
- return float64(d) / float64(time.Second)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/CHANGELOG.md
deleted file mode 100644
index 10faf8ca3..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/CHANGELOG.md
+++ /dev/null
@@ -1,1387 +0,0 @@
-# v1.233.0 (2025-07-17)
-
-* **Feature**: AWS Free Tier Version2 Support
-
-# v1.232.0 (2025-07-15)
-
-* **Feature**: This release adds support for volume initialization status, which enables you to monitor when the initialization process for an EBS volume is completed. This release also adds IPv6 support to EC2 Instance Connect Endpoints, allowing you to connect to your EC2 Instance via a private IPv6 address.
-
-# v1.231.0 (2025-07-09)
-
-* **Feature**: Adds support to Capacity Blocks for ML for purchasing EC2 P6e-GB200 UltraServers. Customers can now purchase u-p6e-gb200x72 and u-p6e-gb200x36 UltraServers. Adds new DescribeCapacityBlocks andDescribeCapacityBlockStatus APIs. Adds support for CapacityBlockId to DescribeInstanceTopology.
-
-# v1.230.0 (2025-07-03)
-
-* **Feature**: This release adds GroupOwnerId as a response member to the DescribeSecurityGroupVpcAssociations API and also adds waiters for SecurityGroupVpcAssociations (SecurityGroupVpcAssociationAssociated and SecurityGroupVpcAssociationDisassociated).
-
-# v1.229.0 (2025-07-02)
-
-* **Feature**: AWS Site-to-Site VPN now supports IPv6 addresses on outer tunnel IPs, making it easier for customers to build or transition to IPv6-only networks.
-
-# v1.228.0 (2025-07-01)
-
-* **Feature**: Add Context to GetInstanceTypesFromInstanceRequirements API
-
-# v1.227.0 (2025-06-26)
-
-* **Feature**: This release adds support for OdbNetworkArn as a target in VPC Route Tables
-
-# v1.226.0 (2025-06-24)
-
-* **Feature**: This release allows you to create and register AMIs while maintaining their underlying EBS snapshots within Local Zones.
-
-# v1.225.2 (2025-06-17)
-
-* **Dependency Update**: Update to smithy-go v1.22.4.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.225.1 (2025-06-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.225.0 (2025-06-09)
-
-* **Feature**: Release to support Elastic VMware Service (Amazon EVS) Subnet and Amazon EVS Network Interface Types.
-
-# v1.224.1 (2025-06-06)
-
-* No change notes available for this release.
-
-# v1.224.0 (2025-05-28)
-
-* **Feature**: Enable the option to automatically delete underlying Amazon EBS snapshots when deregistering Amazon Machine Images (AMIs)
-
-# v1.223.0 (2025-05-27)
-
-* **Feature**: This release adds three features - option to store AWS Site-to-Site VPN pre-shared keys in AWS Secrets Manager, GetActiveVpnTunnelStatus API to check the in-use VPN algorithms, and SampleType option in GetVpnConnectionDeviceSampleConfiguration API to get recommended sample configs for VPN devices.
-
-# v1.222.0 (2025-05-23)
-
-* **Feature**: This release adds support for the C7i-flex, M7i-flex, I7i, I7ie, I8g, P6-b200, Trn2, C8gd, M8gd and R8gd instances
-
-# v1.221.0 (2025-05-21)
-
-* **Feature**: Release of Dualstack and Ipv6-only EC2 Public DNS hostnames
-
-# v1.220.0 (2025-05-20)
-
-* **Feature**: This release expands the ModifyInstanceMaintenanceOptions API to enable or disable instance migration during customer-initiated reboots for EC2 Scheduled Reboot Events.
-
-# v1.219.0 (2025-05-19)
-
-* **Feature**: This release includes new APIs for System Integrity Protection (SIP) configuration and automated root volume ownership delegation for EC2 Mac instances.
-
-# v1.218.0 (2025-05-12)
-
-* **Feature**: EC2 - Adding support for AvailabilityZoneId
-
-# v1.217.0 (2025-05-08)
-
-* **Feature**: Launching the feature to support ENA queues offering flexibility to support multiple queues per Enhanced Network Interface (ENI)
-
-# v1.216.0 (2025-05-07)
-
-* **Feature**: This release adds API support for Path Component Exclusion (Filter Out ARN) for Reachability Analyzer
-
-# v1.215.0 (2025-05-06)
-
-* **Feature**: This release adds support for Amazon EBS Provisioned Rate for Volume Initialization, which lets you specify a volume initialization rate to ensure that your EBS volumes are initialized in a predictable amount of time.
-
-# v1.214.0 (2025-05-05)
-
-* **Feature**: This update introduces API operations to manage and create local gateway VIF and VIF groups. It also includes API operations to describe Outpost LAGs and service link VIFs.
-
-# v1.213.0 (2025-04-30)
-
-* **Feature**: Launch of cost distribution feature for IPAM owners to distribute costs to internal teams.
-
-# v1.212.0 (2025-04-22)
-
-* **Feature**: Added support for ClientRouteEnforcementOptions flag in CreateClientVpnEndpoint and ModifyClientVpnEndpoint requests and DescribeClientVpnEndpoints responses
-
-# v1.211.3 (2025-04-10)
-
-* No change notes available for this release.
-
-# v1.211.2 (2025-04-04)
-
-* **Documentation**: Doc-only updates for Amazon EC2
-
-# v1.211.1 (2025-04-03)
-
-* No change notes available for this release.
-
-# v1.211.0 (2025-03-31)
-
-* **Feature**: Release VPC Route Server, a new feature allowing dynamic routing in VPCs.
-
-# v1.210.1 (2025-03-19)
-
-* **Documentation**: Doc-only updates for EC2 for March 2025.
-
-# v1.210.0 (2025-03-13)
-
-* **Feature**: This release changes the CreateLaunchTemplate, CreateLaunchTemplateVersion, ModifyLaunchTemplate CLI and SDKs such that if you do not specify a client token, a randomly generated token is used for the request to ensure idempotency.
-
-# v1.209.0 (2025-03-11)
-
-* **Feature**: This release adds the GroupLongName field to the response of the DescribeAvailabilityZones API.
-
-# v1.208.0 (2025-03-07)
-
-* **Feature**: Add serviceManaged field to DescribeAddresses API response.
-
-# v1.207.1 (2025-03-04.2)
-
-* **Bug Fix**: Add assurance test for operation order.
-
-# v1.207.0 (2025-03-04)
-
-* **Feature**: Update the DescribeVpcs response
-
-# v1.206.0 (2025-02-27)
-
-* **Feature**: Track credential providers via User-Agent Feature ids
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.205.0 (2025-02-26)
-
-* **Feature**: Amazon EC2 Fleet customers can now override the Block Device Mapping specified in the Launch Template when creating a new Fleet request, saving the effort of creating and associating new Launch Templates to customize the Block Device Mapping.
-
-# v1.204.0 (2025-02-25)
-
-* **Feature**: Adds support for time-based EBS-backed AMI copy operations. Time-based copy ensures that EBS-backed AMIs are copied within and across Regions in a specified timeframe.
-
-# v1.203.1 (2025-02-18)
-
-* **Bug Fix**: Bump go version to 1.22
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.203.0 (2025-02-11)
-
-* **Feature**: Adding support for the new fullSnapshotSizeInBytes field in the response of the EC2 EBS DescribeSnapshots API. This field represents the size of all the blocks that were written to the source volume at the time the snapshot was created.
-
-# v1.202.4 (2025-02-05)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.202.3 (2025-02-04)
-
-* No change notes available for this release.
-
-# v1.202.2 (2025-01-31)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.202.1 (2025-01-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.202.0 (2025-01-28)
-
-* **Feature**: This release changes the CreateFleet CLI and SDK's such that if you do not specify a client token, a randomly generated token is used for the request to ensure idempotency.
-
-# v1.201.1 (2025-01-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-* **Dependency Update**: Upgrade to smithy-go v1.22.2.
-
-# v1.201.0 (2025-01-23)
-
-* **Feature**: Added "future" allocation type for future dated capacity reservation
-
-# v1.200.0 (2025-01-17)
-
-* **Feature**: Release u7i-6tb.112xlarge, u7i-8tb.112xlarge, u7inh-32tb.480xlarge, p5e.48xlarge, p5en.48xlarge, f2.12xlarge, f2.48xlarge, trn2.48xlarge instance types.
-* **Bug Fix**: Fix bug where credentials weren't refreshed during retry loop.
-
-# v1.199.2 (2025-01-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.199.1 (2025-01-14)
-
-* **Bug Fix**: Fix issue where waiters were not failing on unmatched errors as they should. This may have breaking behavioral changes for users in fringe cases. See [this announcement](https://github.com/aws/aws-sdk-go-v2/discussions/2954) for more information.
-* **Bug Fix**: Fix nil dereference panic in certain waiters.
-
-# v1.199.0 (2025-01-13)
-
-* **Feature**: Add support for DisconnectOnSessionTimeout flag in CreateClientVpnEndpoint and ModifyClientVpnEndpoint requests and DescribeClientVpnEndpoints responses
-
-# v1.198.3 (2025-01-09)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.198.2 (2025-01-08)
-
-* No change notes available for this release.
-
-# v1.198.1 (2024-12-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.198.0 (2024-12-16)
-
-* **Feature**: This release adds support for EBS local snapshots in AWS Dedicated Local Zones, which allows you to store snapshots of EBS volumes locally in Dedicated Local Zones.
-
-# v1.197.0 (2024-12-13)
-
-* **Feature**: This release adds GroupId to the response for DeleteSecurityGroup.
-
-# v1.196.0 (2024-12-09)
-
-* **Feature**: This release includes a new API for modifying instance network-performance-options after launch.
-
-# v1.195.0 (2024-12-02)
-
-* **Feature**: Adds support for declarative policies that allow you to enforce desired configuration across an AWS organization through configuring account attributes. Adds support for Allowed AMIs that allows you to limit the use of AMIs in AWS accounts. Adds support for connectivity over non-HTTP protocols.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.194.0 (2024-11-26)
-
-* **Feature**: Adds support for Time-based Copy for EBS Snapshots and Cross Region PrivateLink. Time-based Copy ensures that EBS Snapshots are copied within and across AWS Regions in a specified timeframe. Cross Region PrivateLink enables customers to connect to VPC endpoint services hosted in other AWS Regions.
-
-# v1.193.0 (2024-11-21)
-
-* **Feature**: Adds support for requesting future-dated Capacity Reservations with a minimum commitment duration, enabling IPAM for organizational units within AWS Organizations, reserving EC2 Capacity Blocks that start in 30 minutes, and extending the end date of existing Capacity Blocks.
-
-# v1.192.0 (2024-11-20)
-
-* **Feature**: With this release, customers can express their desire to launch instances only in an ODCR or ODCR group rather than OnDemand capacity. Customers can express their baseline instances' CPU-performance in attribute-based Instance Requirements configuration by referencing an instance family.
-
-# v1.191.0 (2024-11-19)
-
-* **Feature**: This release adds VPC Block Public Access (VPC BPA), a new declarative control which blocks resources in VPCs and subnets that you own in a Region from reaching or being reached from the internet through internet gateways and egress-only internet gateways.
-
-# v1.190.0 (2024-11-18)
-
-* **Feature**: Adding request and response elements for managed resources.
-* **Dependency Update**: Update to smithy-go v1.22.1.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.189.0 (2024-11-15.2)
-
-* **Feature**: Remove non-functional enum variants for FleetCapacityReservationUsageStrategy
-
-# v1.188.0 (2024-11-13)
-
-* **Feature**: This release adds the source AMI details in DescribeImages API
-
-# v1.187.1 (2024-11-06)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.187.0 (2024-10-30)
-
-* **Feature**: This release adds two new capabilities to VPC Security Groups: Security Group VPC Associations and Shared Security Groups.
-
-# v1.186.1 (2024-10-28)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.186.0 (2024-10-24)
-
-* **Feature**: This release includes a new API to describe some details of the Amazon Machine Images (AMIs) that were used to launch EC2 instances, even if those AMIs are no longer available for use.
-
-# v1.185.0 (2024-10-23)
-
-* **Feature**: Amazon EC2 X8g, C8g and M8g instances are powered by AWS Graviton4 processors. X8g provide the lowest cost per GiB of memory among Graviton4 instances. C8g provide the best price performance for compute-intensive workloads. M8g provide the best price performance in for general purpose workloads.
-
-# v1.184.0 (2024-10-21)
-
-* **Feature**: Amazon EC2 now allows you to create network interfaces with just the EFA driver and no ENA driver by specifying the network interface type as efa-only.
-
-# v1.183.0 (2024-10-18)
-
-* **Feature**: RequestSpotInstances and RequestSpotFleet feature release.
-
-# v1.182.0 (2024-10-10)
-
-* **Feature**: This release adds support for assigning the billing of shared Amazon EC2 On-Demand Capacity Reservations.
-
-# v1.181.2 (2024-10-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.181.1 (2024-10-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.181.0 (2024-10-04)
-
-* **Feature**: Add support for HTTP client metrics.
-* **Feature**: Documentation updates for Amazon EC2.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.180.0 (2024-10-03)
-
-* **Feature**: This release includes a new API for modifying instance cpu-options after launch.
-
-# v1.179.2 (2024-09-27)
-
-* No change notes available for this release.
-
-# v1.179.1 (2024-09-25)
-
-* **Documentation**: Updates to documentation for the transit gateway security group referencing feature.
-
-# v1.179.0 (2024-09-23)
-
-* **Feature**: Amazon EC2 G6e instances powered by NVIDIA L40S Tensor Core GPUs are the most cost-efficient GPU instances for deploying generative AI models and the highest performance GPU instances for spatial computing workloads.
-
-# v1.178.0 (2024-09-20)
-
-* **Feature**: Add tracing and metrics support to service clients.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.177.4 (2024-09-17)
-
-* **Bug Fix**: **BREAKFIX**: Only generate AccountIDEndpointMode config for services that use it. This is a compiler break, but removes no actual functionality, as no services currently use the account ID in endpoint resolution.
-
-# v1.177.3 (2024-09-10)
-
-* No change notes available for this release.
-
-# v1.177.2 (2024-09-04)
-
-* No change notes available for this release.
-
-# v1.177.1 (2024-09-03)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.177.0 (2024-08-28)
-
-* **Feature**: Amazon VPC IP Address Manager (IPAM) now allows customers to provision IPv4 CIDR blocks and allocate Elastic IP Addresses directly from IPAM pools with public IPv4 space
-
-# v1.176.0 (2024-08-21)
-
-* **Feature**: DescribeInstanceStatus now returns health information on EBS volumes attached to Nitro instances
-
-# v1.175.1 (2024-08-15)
-
-* **Dependency Update**: Bump minimum Go version to 1.21.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.175.0 (2024-08-12)
-
-* **Feature**: This release adds new capabilities to manage On-Demand Capacity Reservations including the ability to split your reservation, move capacity between reservations, and modify the instance eligibility of your reservation.
-
-# v1.174.0 (2024-08-08)
-
-* **Feature**: Launch of private IPv6 addressing for VPCs and Subnets. VPC IPAM supports the planning and monitoring of private IPv6 usage.
-
-# v1.173.0 (2024-07-25)
-
-* **Feature**: EC2 Fleet now supports using custom identifiers to reference Amazon Machine Images (AMI) in launch requests that are configured to choose from a diversified list of instance types.
-
-# v1.172.0 (2024-07-23)
-
-* **Feature**: Switch to new waiter matching implementation, which conveys a slight performance boost and removes the need for the go-jmespath runtime dependency.
-
-# v1.171.0 (2024-07-18)
-
-* **Feature**: Amazon VPC IP Address Manager (IPAM) now supports Bring-Your-Own-IP (BYOIP) for IP addresses registered with any Internet Registry. This feature uses DNS TXT records to validate ownership of a public IP address range.
-
-# v1.170.0 (2024-07-10.2)
-
-* **Feature**: Add parameters to enable provisioning IPAM BYOIPv4 space at a Local Zone Network Border Group level
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.169.0 (2024-07-10)
-
-* **Feature**: Add parameters to enable provisioning IPAM BYOIPv4 space at a Local Zone Network Border Group level
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.168.0 (2024-07-02)
-
-* **Feature**: Documentation updates for Elastic Compute Cloud (EC2).
-
-# v1.167.1 (2024-06-28)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.167.0 (2024-06-26)
-
-* **Feature**: Support list-of-string endpoint parameter.
-
-# v1.166.0 (2024-06-25)
-
-* **Feature**: This release is for the launch of the new u7ib-12tb.224xlarge, R8g, c7gn.metal and mac2-m1ultra.metal instance types
-
-# v1.165.1 (2024-06-19)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.165.0 (2024-06-18)
-
-* **Feature**: Track usage of various AWS SDK features in user-agent string.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.164.2 (2024-06-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.164.1 (2024-06-14)
-
-* **Documentation**: Documentation updates for Amazon EC2.
-
-# v1.164.0 (2024-06-12)
-
-* **Feature**: Tagging support for Traffic Mirroring FilterRule resource
-
-# v1.163.1 (2024-06-07)
-
-* **Bug Fix**: Add clock skew correction on all service clients
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.163.0 (2024-06-04)
-
-* **Feature**: U7i instances with up to 32 TiB of DDR5 memory and 896 vCPUs are now available. C7i-flex instances are launched and are lower-priced variants of the Amazon EC2 C7i instances that offer a baseline level of CPU performance with the ability to scale up to the full compute performance 95% of the time.
-
-# v1.162.1 (2024-06-03)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.162.0 (2024-05-28)
-
-* **Feature**: Providing support to accept BgpAsnExtended attribute
-
-# v1.161.4 (2024-05-23)
-
-* No change notes available for this release.
-
-# v1.161.3 (2024-05-16)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.161.2 (2024-05-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.161.1 (2024-05-10)
-
-* **Bug Fix**: Fix serialization behavior of empty lists.
-
-# v1.161.0 (2024-05-08)
-
-* **Feature**: Adding Precision Hardware Clock (PHC) to public API DescribeInstanceTypes
-* **Bug Fix**: GoDoc improvement
-
-# v1.160.0 (2024-05-02)
-
-* **Feature**: This release includes a new API for retrieving the public endorsement key of the EC2 instance's Nitro Trusted Platform Module (NitroTPM).
-
-# v1.159.1 (2024-05-01)
-
-* **Documentation**: Documentation updates for Amazon EC2.
-
-# v1.159.0 (2024-04-24)
-
-* **Feature**: Launching capability for customers to enable or disable automatic assignment of public IPv4 addresses to their network interface
-
-# v1.158.0 (2024-04-23)
-
-* **Feature**: This release introduces EC2 AMI Deregistration Protection, a new AMI property that can be enabled by customers to protect an AMI against an unintended deregistration. This release also enables the AMI owners to view the AMI 'LastLaunchedTime' in DescribeImages API.
-
-# v1.157.0 (2024-04-17)
-
-* **Feature**: Documentation updates for Elastic Compute Cloud (EC2).
-
-# v1.156.0 (2024-04-04)
-
-* **Feature**: Amazon EC2 G6 instances powered by NVIDIA L4 Tensor Core GPUs can be used for a wide range of graphics-intensive and machine learning use cases. Gr6 instances also feature NVIDIA L4 GPUs and can be used for graphics workloads with higher memory requirements.
-
-# v1.155.1 (2024-03-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.155.0 (2024-03-28)
-
-* **Feature**: Amazon EC2 C7gd, M7gd and R7gd metal instances with up to 3.8 TB of local NVMe-based SSD block-level storage have up to 45% improved real-time NVMe storage performance than comparable Graviton2-based instances.
-
-# v1.154.0 (2024-03-26)
-
-* **Feature**: Documentation updates for Elastic Compute Cloud (EC2).
-
-# v1.153.0 (2024-03-25)
-
-* **Feature**: Added support for ModifyInstanceMetadataDefaults and GetInstanceMetadataDefaults to set Instance Metadata Service account defaults
-
-# v1.152.0 (2024-03-19)
-
-* **Feature**: This release adds the new DescribeMacHosts API operation for getting information about EC2 Mac Dedicated Hosts. Users can now see the latest macOS versions that their underlying Apple Mac can support without needing to be updated.
-
-# v1.151.1 (2024-03-18)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.151.0 (2024-03-15)
-
-* **Feature**: Add media accelerator and neuron device information on the describe instance types API.
-
-# v1.150.1 (2024-03-12)
-
-* **Documentation**: Documentation updates for Amazon EC2.
-
-# v1.150.0 (2024-03-07)
-
-* **Feature**: This release adds an optional parameter to RegisterImage and CopyImage APIs to support tagging AMIs at the time of creation.
-* **Bug Fix**: Remove dependency on go-cmp.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.149.4 (2024-03-05)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.149.3 (2024-03-04)
-
-* **Bug Fix**: Update internal/presigned-url dependency for corrected API name.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.149.2 (2024-03-01)
-
-* **Documentation**: With this release, Amazon EC2 Auto Scaling groups, EC2 Fleet, and Spot Fleet improve the default price protection behavior of attribute-based instance type selection of Spot Instances, to consistently select from a wide range of instance types.
-
-# v1.149.1 (2024-02-23)
-
-* **Bug Fix**: Move all common, SDK-side middleware stack ops into the service client module to prevent cross-module compatibility issues in the future.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.149.0 (2024-02-22)
-
-* **Feature**: Add middleware stack snapshot tests.
-
-# v1.148.2 (2024-02-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.148.1 (2024-02-20)
-
-* **Bug Fix**: When sourcing values for a service's `EndpointParameters`, the lack of a configured region (i.e. `options.Region == ""`) will now translate to a `nil` value for `EndpointParameters.Region` instead of a pointer to the empty string `""`. This will result in a much more explicit error when calling an operation instead of an obscure hostname lookup failure.
-
-# v1.148.0 (2024-02-16)
-
-* **Feature**: Add new ClientOptions field to waiter config which allows you to extend the config for operation calls made by waiters.
-
-# v1.147.0 (2024-02-13)
-
-* **Feature**: Bump minimum Go version to 1.20 per our language support policy.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.146.0 (2024-01-29)
-
-* **Feature**: EC2 Fleet customers who use attribute based instance-type selection can now intuitively define their Spot instances price protection limit as a percentage of the lowest priced On-Demand instance type.
-
-# v1.145.0 (2024-01-24)
-
-* **Feature**: Introduced a new clientToken request parameter on CreateNetworkAcl and CreateRouteTable APIs. The clientToken parameter allows idempotent operations on the APIs.
-
-# v1.144.1 (2024-01-22)
-
-* **Documentation**: Documentation updates for Amazon EC2.
-
-# v1.144.0 (2024-01-11)
-
-* **Feature**: This release adds support for adding an ElasticBlockStorage volume configurations in ECS RunTask/StartTask/CreateService/UpdateService APIs. The configuration allows for attaching EBS volumes to ECS Tasks.
-
-# v1.143.0 (2024-01-08)
-
-* **Feature**: Amazon EC2 R7iz bare metal instances are powered by custom 4th generation Intel Xeon Scalable processors.
-
-# v1.142.1 (2024-01-04)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.142.0 (2023-12-19)
-
-* **Feature**: Provision BYOIPv4 address ranges and advertise them by specifying the network border groups option in Los Angeles, Phoenix and Dallas AWS Local Zones.
-
-# v1.141.0 (2023-12-08)
-
-* **Feature**: M2 Mac instances are built on Apple M2 Mac mini computers. I4i instances are powered by 3rd generation Intel Xeon Scalable processors. C7i compute optimized, M7i general purpose and R7i memory optimized instances are powered by custom 4th Generation Intel Xeon Scalable processors.
-* **Bug Fix**: Reinstate presence of default Retryer in functional options, but still respect max attempts set therein.
-
-# v1.140.1 (2023-12-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.140.0 (2023-12-06)
-
-* **Feature**: Releasing the new cpuManufacturer attribute within the DescribeInstanceTypes API response which notifies our customers with information on who the Manufacturer is for the processor attached to the instance, for example: Intel.
-* **Bug Fix**: Restore pre-refactor auth behavior where all operations could technically be performed anonymously.
-
-# v1.139.0 (2023-12-05)
-
-* **Feature**: Adds A10G, T4G, and H100 as accelerator name options and Habana as an accelerator manufacturer option for attribute based selection
-
-# v1.138.2 (2023-12-01)
-
-* **Bug Fix**: Correct wrapping of errors in authentication workflow.
-* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.138.1 (2023-11-30)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.138.0 (2023-11-29)
-
-* **Feature**: Expose Options() accessor on service clients.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.137.3 (2023-11-28.2)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.137.2 (2023-11-28)
-
-* **Bug Fix**: Respect setting RetryMaxAttempts in functional options at client construction.
-
-# v1.137.1 (2023-11-21)
-
-* **Documentation**: Documentation updates for Amazon EC2.
-
-# v1.137.0 (2023-11-20)
-
-* **Feature**: This release adds support for Security group referencing over Transit gateways, enabling you to simplify Security group management and control of instance-to-instance traffic across VPCs that are connected by Transit gateway.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.136.0 (2023-11-17)
-
-* **Feature**: This release adds new features for Amazon VPC IP Address Manager (IPAM) Allowing a choice between Free and Advanced Tiers, viewing public IP address insights across regions and in Amazon Cloudwatch, use IPAM to plan your subnet IPs within a VPC and bring your own autonomous system number to IPAM.
-
-# v1.135.0 (2023-11-16)
-
-* **Feature**: Enable use of tenant-specific PublicSigningKeyUrl from device trust providers and onboard jumpcloud as a new device trust provider.
-
-# v1.134.0 (2023-11-15)
-
-* **Feature**: AWS EBS now supports Snapshot Lock, giving users the ability to lock an EBS Snapshot to prohibit deletion of the snapshot. This release introduces the LockSnapshot, UnlockSnapshot & DescribeLockedSnapshots APIs to manage lock configuration for snapshots. The release also includes the dl2q_24xlarge.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.133.0 (2023-11-13)
-
-* **Feature**: Adds the new EC2 DescribeInstanceTopology API, which you can use to retrieve the network topology of your running instances on select platform types to determine their relative proximity to each other.
-
-# v1.132.0 (2023-11-10)
-
-* **Feature**: EC2 adds API updates to enable ENA Express at instance launch time.
-
-# v1.131.0 (2023-11-09.2)
-
-* **Feature**: AWS EBS now supports Block Public Access for EBS Snapshots. This release introduces the EnableSnapshotBlockPublicAccess, DisableSnapshotBlockPublicAccess and GetSnapshotBlockPublicAccessState APIs to manage account-level public access settings for EBS Snapshots in an AWS Region.
-
-# v1.130.1 (2023-11-09)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.130.0 (2023-11-01)
-
-* **Feature**: Adds support for configured endpoints via environment variables and the AWS shared configuration file.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.129.0 (2023-10-31)
-
-* **Feature**: **BREAKING CHANGE**: Bump minimum go version to 1.19 per the revised [go version support policy](https://aws.amazon.com/blogs/developer/aws-sdk-for-go-aligns-with-go-release-policy-on-supported-runtimes/).
-* **Feature**: Capacity Blocks for ML are a new EC2 purchasing option for reserving GPU instances on a future date to support short duration machine learning (ML) workloads. Capacity Blocks automatically place instances close together inside Amazon EC2 UltraClusters for low-latency, high-throughput networking.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.128.0 (2023-10-26)
-
-* **Feature**: Launching GetSecurityGroupsForVpc API. This API gets security groups that can be associated by the AWS account making the request with network interfaces in the specified VPC.
-
-# v1.127.0 (2023-10-24)
-
-* **Feature**: This release updates the documentation for InstanceInterruptionBehavior and HibernationOptionsRequest to more accurately describe the behavior of these two parameters when using Spot hibernation.
-
-# v1.126.0 (2023-10-19)
-
-* **Feature**: Amazon EC2 C7a instances, powered by 4th generation AMD EPYC processors, are ideal for high performance, compute-intensive workloads such as high performance computing. Amazon EC2 R7i instances are next-generation memory optimized and powered by custom 4th Generation Intel Xeon Scalable processors.
-
-# v1.125.0 (2023-10-12)
-
-* **Feature**: This release adds Ubuntu Pro as a supported platform for On-Demand Capacity Reservations and adds support for setting an Amazon Machine Image (AMI) to disabled state. Disabling the AMI makes it private if it was previously shared, and prevents new EC2 instance launches from it.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.124.0 (2023-10-06)
-
-* **Feature**: Documentation updates for Elastic Compute Cloud (EC2).
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.123.0 (2023-10-02)
-
-* **Feature**: Introducing Amazon EC2 R7iz instances with 3.9 GHz sustained all-core turbo frequency and deliver up to 20% better performance than previous generation z1d instances.
-
-# v1.122.0 (2023-09-28)
-
-* **Feature**: Adds support for Customer Managed Key encryption for Amazon Verified Access resources
-
-# v1.121.0 (2023-09-26)
-
-* **Feature**: The release includes AWS verified access to support FIPs compliance in North America regions
-
-# v1.120.0 (2023-09-22)
-
-* **Feature**: EC2 M2 Pro Mac instances are powered by Apple M2 Pro Mac Mini computers featuring 12 core CPU, 19 core GPU, 32 GiB of memory, and 16 core Apple Neural Engine and uniquely enabled by the AWS Nitro System through high-speed Thunderbolt connections.
-
-# v1.119.0 (2023-09-19)
-
-* **Feature**: This release adds support for C7i, and R7a instance types.
-
-# v1.118.0 (2023-09-12)
-
-* **Feature**: This release adds support for restricting public sharing of AMIs through AMI Block Public Access
-
-# v1.117.0 (2023-09-06)
-
-* **Feature**: This release adds 'outpost' location type to the DescribeInstanceTypeOfferings API, allowing customers that have been allowlisted for outpost to query their offerings in the API.
-
-# v1.116.0 (2023-09-05)
-
-* **Feature**: Introducing Amazon EC2 C7gd, M7gd, and R7gd Instances with up to 3.8 TB of local NVMe-based SSD block-level storage. These instances are powered by AWS Graviton3 processors, delivering up to 25% better performance over Graviton2-based instances.
-
-# v1.115.0 (2023-08-24)
-
-* **Feature**: Amazon EC2 M7a instances, powered by 4th generation AMD EPYC processors, deliver up to 50% higher performance compared to M6a instances. Amazon EC2 Hpc7a instances, powered by 4th Gen AMD EPYC processors, deliver up to 2.5x better performance compared to Amazon EC2 Hpc6a instances.
-
-# v1.114.0 (2023-08-21)
-
-* **Feature**: The DeleteKeyPair API has been updated to return the keyPairId when an existing key pair is deleted.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.113.1 (2023-08-18)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.113.0 (2023-08-17)
-
-* **Feature**: Adds support for SubnetConfigurations to allow users to select their own IPv4 and IPv6 addresses for Interface VPC endpoints
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.112.0 (2023-08-15)
-
-* **Feature**: Documentation updates for Elastic Compute Cloud (EC2).
-
-# v1.111.0 (2023-08-11)
-
-* **Feature**: Amazon EC2 P5 instances, powered by the latest NVIDIA H100 Tensor Core GPUs, deliver the highest performance in EC2 for deep learning (DL) and HPC applications. M7i-flex and M7i instances are next-generation general purpose instances powered by custom 4th Generation Intel Xeon Scalable processors.
-
-# v1.110.1 (2023-08-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.110.0 (2023-08-03)
-
-* **Feature**: This release adds new parameter isPrimaryIPv6 to allow assigning an IPv6 address as a primary IPv6 address to a network interface which cannot be changed to give equivalent functionality available for network interfaces with primary IPv4 address.
-
-# v1.109.1 (2023-08-01)
-
-* No change notes available for this release.
-
-# v1.109.0 (2023-07-31)
-
-* **Feature**: Adds support for smithy-modeled endpoint resolution. A new rules-based endpoint resolution will be added to the SDK which will supercede and deprecate existing endpoint resolution. Specifically, EndpointResolver will be deprecated while BaseEndpoint and EndpointResolverV2 will take its place. For more information, please see the Endpoints section in our Developer Guide.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.108.1 (2023-07-28)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.108.0 (2023-07-27)
-
-* **Feature**: SDK and documentation updates for Amazon Elastic Block Store APIs
-
-# v1.107.0 (2023-07-25)
-
-* **Feature**: This release adds an instance's peak and baseline network bandwidth as well as the memory sizes of an instance's inference accelerators to DescribeInstanceTypes.
-
-# v1.106.0 (2023-07-24)
-
-* **Feature**: Add "disabled" enum value to SpotInstanceState.
-
-# v1.105.1 (2023-07-19)
-
-* **Documentation**: Amazon EC2 documentation updates.
-
-# v1.105.0 (2023-07-17)
-
-* **Feature**: Add Nitro TPM support on DescribeInstanceTypes
-
-# v1.104.0 (2023-07-13)
-
-* **Feature**: This release adds support for the C7gn and Hpc7g instances. C7gn instances are powered by AWS Graviton3 processors and the fifth-generation AWS Nitro Cards. Hpc7g instances are powered by AWS Graviton 3E processors and provide up to 200 Gbps network bandwidth.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.103.0 (2023-07-06)
-
-* **Feature**: Add Nitro Enclaves support on DescribeInstanceTypes
-
-# v1.102.0 (2023-06-20)
-
-* **Feature**: Adds support for targeting Dedicated Host allocations by assetIds in AWS Outposts
-
-# v1.101.0 (2023-06-19)
-
-* **Feature**: API changes to AWS Verified Access to include data from trust providers in logs
-
-# v1.100.1 (2023-06-15)
-
-* No change notes available for this release.
-
-# v1.100.0 (2023-06-13)
-
-* **Feature**: This release introduces a new feature, EC2 Instance Connect Endpoint, that enables you to connect to a resource over TCP, without requiring the resource to have a public IPv4 address.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.99.0 (2023-06-05)
-
-* **Feature**: Making InstanceTagAttribute as the required parameter for the DeregisterInstanceEventNotificationAttributes and RegisterInstanceEventNotificationAttributes APIs.
-
-# v1.98.0 (2023-05-18)
-
-* **Feature**: Add support for i4g.large, i4g.xlarge, i4g.2xlarge, i4g.4xlarge, i4g.8xlarge and i4g.16xlarge instances powered by AWS Graviton2 processors that deliver up to 15% better compute performance than our other storage-optimized instances.
-
-# v1.97.0 (2023-05-05)
-
-* **Feature**: This release adds support the inf2 and trn1n instances. inf2 instances are purpose built for deep learning inference while trn1n instances are powered by AWS Trainium accelerators and they build on the capabilities of Trainium-powered trn1 instances.
-
-# v1.96.1 (2023-05-04)
-
-* No change notes available for this release.
-
-# v1.96.0 (2023-05-03)
-
-* **Feature**: Adds an SDK paginator for GetNetworkInsightsAccessScopeAnalysisFindings
-
-# v1.95.0 (2023-04-27)
-
-* **Feature**: This release adds support for AMD SEV-SNP on EC2 instances.
-
-# v1.94.0 (2023-04-24)
-
-* **Feature**: API changes to AWS Verified Access related to identity providers' information.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.93.2 (2023-04-10)
-
-* No change notes available for this release.
-
-# v1.93.1 (2023-04-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.93.0 (2023-04-04)
-
-* **Feature**: C6in, M6in, M6idn, R6in and R6idn bare metal instances are powered by 3rd Generation Intel Xeon Scalable processors and offer up to 200 Gbps of network bandwidth.
-
-# v1.92.1 (2023-03-31)
-
-* **Documentation**: Documentation updates for EC2 On Demand Capacity Reservations
-
-# v1.92.0 (2023-03-30)
-
-* **Feature**: This release adds support for Tunnel Endpoint Lifecycle control, a new feature that provides Site-to-Site VPN customers with better visibility and control of their VPN tunnel maintenance updates.
-
-# v1.91.0 (2023-03-21)
-
-* **Feature**: This release adds support for AWS Network Firewall, AWS PrivateLink, and Gateway Load Balancers to Amazon VPC Reachability Analyzer, and it makes the path destination optional as long as a destination address in the filter at source is provided.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.90.0 (2023-03-14)
-
-* **Feature**: This release adds a new DnsOptions key (PrivateDnsOnlyForInboundResolverEndpoint) to CreateVpcEndpoint and ModifyVpcEndpoint APIs.
-
-# v1.89.1 (2023-03-10)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.89.0 (2023-03-08)
-
-* **Feature**: Introducing Amazon EC2 C7g, M7g and R7g instances, powered by the latest generation AWS Graviton3 processors and deliver up to 25% better performance over Graviton2-based instances.
-
-# v1.88.0 (2023-03-03)
-
-* **Feature**: This release adds support for a new boot mode for EC2 instances called 'UEFI Preferred'.
-
-# v1.87.0 (2023-02-28)
-
-* **Feature**: This release allows IMDS support to be set to v2-only on an existing AMI, so that all future instances launched from that AMI will use IMDSv2 by default.
-
-# v1.86.1 (2023-02-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.86.0 (2023-02-14)
-
-* **Feature**: With this release customers can turn host maintenance on or off when allocating or modifying a supported dedicated host. Host maintenance is turned on by default for supported hosts.
-
-# v1.85.0 (2023-02-10)
-
-* **Feature**: Adds support for waiters that automatically poll for an imported snapshot until it reaches the completed state.
-
-# v1.84.1 (2023-02-03)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-* **Dependency Update**: Upgrade smithy to 1.27.2 and correct empty query list serialization.
-
-# v1.84.0 (2023-02-02)
-
-* **Feature**: Documentation updates for EC2.
-
-# v1.83.0 (2023-01-31)
-
-* **Feature**: This launch allows customers to associate up to 8 IP addresses to their NAT Gateways to increase the limit on concurrent connections to a single destination by eight times from 55K to 440K.
-
-# v1.82.0 (2023-01-30)
-
-* **Feature**: We add Prefix Lists as a new route destination option for LocalGatewayRoutes. This will allow customers to create routes to Prefix Lists. Prefix List routes will allow customers to group individual CIDR routes with the same target into a single route.
-
-# v1.81.0 (2023-01-25)
-
-* **Feature**: This release adds new functionality that allows customers to provision IPv6 CIDR blocks through Amazon VPC IP Address Manager (IPAM) as well as allowing customers to utilize IPAM Resource Discovery APIs.
-
-# v1.80.1 (2023-01-23)
-
-* No change notes available for this release.
-
-# v1.80.0 (2023-01-20)
-
-* **Feature**: C6in, M6in, M6idn, R6in and R6idn instances are powered by 3rd Generation Intel Xeon Scalable processors (code named Ice Lake) with an all-core turbo frequency of 3.5 GHz.
-
-# v1.79.0 (2023-01-19)
-
-* **Feature**: Adds SSM Parameter Resource Aliasing support to EC2 Launch Templates. Launch Templates can now store parameter aliases in place of AMI Resource IDs. CreateLaunchTemplateVersion and DescribeLaunchTemplateVersions now support a convenience flag, ResolveAlias, to return the resolved parameter value.
-
-# v1.78.0 (2023-01-13)
-
-* **Feature**: Documentation updates for EC2.
-
-# v1.77.0 (2022-12-20)
-
-* **Feature**: Adds support for pagination in the EC2 DescribeImages API.
-
-# v1.76.1 (2022-12-15)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.76.0 (2022-12-12)
-
-* **Feature**: This release updates DescribeFpgaImages to show supported instance types of AFIs in its response.
-
-# v1.75.0 (2022-12-05)
-
-* **Feature**: Documentation updates for EC2.
-
-# v1.74.1 (2022-12-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.74.0 (2022-11-29.2)
-
-* **Feature**: This release adds support for AWS Verified Access and the Hpc6id Amazon EC2 compute optimized instance type, which features 3rd generation Intel Xeon Scalable processors.
-
-# v1.73.0 (2022-11-29)
-
-* **Feature**: Introduces ENA Express, which uses AWS SRD and dynamic routing to increase throughput and minimize latency, adds support for trust relationships between Reachability Analyzer and AWS Organizations to enable cross-account analysis, and adds support for Infrastructure Performance metric subscriptions.
-
-# v1.72.1 (2022-11-22)
-
-* No change notes available for this release.
-
-# v1.72.0 (2022-11-18)
-
-* **Feature**: This release adds support for copying an Amazon Machine Image's tags when copying an AMI.
-
-# v1.71.0 (2022-11-17)
-
-* **Feature**: This release adds a new optional parameter "privateIpAddress" for the CreateNatGateway API. PrivateIPAddress will allow customers to select a custom Private IPv4 address instead of having it be auto-assigned.
-
-# v1.70.1 (2022-11-16)
-
-* No change notes available for this release.
-
-# v1.70.0 (2022-11-10)
-
-* **Feature**: This release adds a new price capacity optimized allocation strategy for Spot Instances to help customers optimize provisioning of Spot Instances via EC2 Auto Scaling, EC2 Fleet, and Spot Fleet. It allocates Spot Instances based on both spare capacity availability and Spot Instance price.
-
-# v1.69.0 (2022-11-09)
-
-* **Feature**: Amazon EC2 Trn1 instances, powered by AWS Trainium chips, are purpose built for high-performance deep learning training. u-24tb1.112xlarge and u-18tb1.112xlarge High Memory instances are purpose-built to run large in-memory databases.
-
-# v1.68.0 (2022-11-08)
-
-* **Feature**: This release enables sharing of EC2 Placement Groups across accounts and within AWS Organizations using Resource Access Manager
-
-# v1.67.0 (2022-11-07)
-
-* **Feature**: This release adds support for two new attributes for attribute-based instance type selection - NetworkBandwidthGbps and AllowedInstanceTypes.
-
-# v1.66.0 (2022-11-04)
-
-* **Feature**: This release adds API support for the recipient of an AMI account share to remove shared AMI launch permissions.
-
-# v1.65.0 (2022-10-31)
-
-* **Feature**: Elastic IP transfer is a new Amazon VPC feature that allows you to transfer your Elastic IP addresses from one AWS Account to another.
-
-# v1.64.0 (2022-10-27)
-
-* **Feature**: Feature supports the replacement of instance root volume using an updated AMI without requiring customers to stop their instance.
-
-# v1.63.3 (2022-10-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.63.2 (2022-10-21)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.63.1 (2022-10-06)
-
-* No change notes available for this release.
-
-# v1.63.0 (2022-10-04)
-
-* **Feature**: Added EnableNetworkAddressUsageMetrics flag for ModifyVpcAttribute, DescribeVpcAttribute APIs.
-
-# v1.62.0 (2022-10-03)
-
-* **Feature**: Adding an imdsSupport attribute to EC2 AMIs
-
-# v1.61.0 (2022-09-29)
-
-* **Feature**: u-3tb1 instances are powered by Intel Xeon Platinum 8176M (Skylake) processors and are purpose-built to run large in-memory databases.
-
-# v1.60.0 (2022-09-23)
-
-* **Feature**: Letting external AWS customers provide ImageId as a Launch Template override in FleetLaunchTemplateOverridesRequest
-
-# v1.59.0 (2022-09-22)
-
-* **Feature**: Documentation updates for Amazon EC2.
-
-# v1.58.0 (2022-09-20)
-
-* **Feature**: This release adds support for blocked paths to Amazon VPC Reachability Analyzer.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.57.0 (2022-09-19)
-
-* **Feature**: This release adds CapacityAllocations field to DescribeCapacityReservations
-
-# v1.56.0 (2022-09-15)
-
-* **Feature**: This feature allows customers to create tags for vpc-endpoint-connections and vpc-endpoint-service-permissions.
-
-# v1.55.0 (2022-09-14)
-
-* **Feature**: Documentation updates for Amazon EC2.
-* **Feature**: This release adds support to send VPC Flow Logs to kinesis-data-firehose as new destination type
-* **Feature**: This update introduces API operations to manage and create local gateway route tables, CoIP pools, and VIF group associations.
-* **Feature**: Two new features for local gateway route tables: support for static routes targeting Elastic Network Interfaces and direct VPC routing.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.54.4 (2022-09-02)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.54.3 (2022-08-31)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.54.2 (2022-08-30)
-
-* No change notes available for this release.
-
-# v1.54.1 (2022-08-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.54.0 (2022-08-22)
-
-* **Feature**: R6a instances are powered by 3rd generation AMD EPYC (Milan) processors delivering all-core turbo frequency of 3.6 GHz. C6id, M6id, and R6id instances are powered by 3rd generation Intel Xeon Scalable processor (Ice Lake) delivering all-core turbo frequency of 3.5 GHz.
-
-# v1.53.0 (2022-08-18)
-
-* **Feature**: This release adds support for VPN log options , a new feature allowing S2S VPN connections to send IKE activity logs to CloudWatch Logs
-
-# v1.52.1 (2022-08-11)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.52.0 (2022-08-10)
-
-* **Feature**: This release adds support for excluding specific data (non-root) volumes from multi-volume snapshot sets created from instances.
-
-# v1.51.3 (2022-08-09)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.51.2 (2022-08-08)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.51.1 (2022-08-01)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.51.0 (2022-07-29)
-
-* **Feature**: Documentation updates for Amazon EC2.
-
-# v1.50.1 (2022-07-28)
-
-* **Documentation**: Documentation updates for VM Import/Export.
-
-# v1.50.0 (2022-07-22)
-
-* **Feature**: Added support for EC2 M1 Mac instances. For more information, please visit aws.amazon.com/mac.
-
-# v1.49.1 (2022-07-18)
-
-* **Documentation**: Documentation updates for Amazon EC2.
-
-# v1.49.0 (2022-07-14)
-
-* **Feature**: This release adds flow logs for Transit Gateway to allow customers to gain deeper visibility and insights into network traffic through their Transit Gateways.
-
-# v1.48.0 (2022-07-11)
-
-* **Feature**: Build, manage, and monitor a unified global network that connects resources running across your cloud and on-premises environments using the AWS Cloud WAN APIs.
-
-# v1.47.2 (2022-07-05)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.47.1 (2022-06-29)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.47.0 (2022-06-28)
-
-* **Feature**: This release adds a new spread placement group to EC2 Placement Groups: host level spread, which spread instances between physical hosts, available to Outpost customers only. CreatePlacementGroup and DescribePlacementGroups APIs were updated with a new parameter: SpreadLevel to support this feature.
-
-# v1.46.0 (2022-06-21)
-
-* **Feature**: This release adds support for Private IP VPNs, a new feature allowing S2S VPN connections to use private ip addresses as the tunnel outside ip address over Direct Connect as transport.
-
-# v1.45.1 (2022-06-07)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.45.0 (2022-05-26)
-
-* **Feature**: C7g instances, powered by the latest generation AWS Graviton3 processors, provide the best price performance in Amazon EC2 for compute-intensive workloads.
-
-# v1.44.0 (2022-05-24)
-
-* **Feature**: Stop Protection feature enables customers to protect their instances from accidental stop actions.
-
-# v1.43.1 (2022-05-17)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.43.0 (2022-05-12)
-
-* **Feature**: This release introduces a target type Gateway Load Balancer Endpoint for mirrored traffic. Customers can now specify GatewayLoadBalancerEndpoint option during the creation of a traffic mirror target.
-
-# v1.42.0 (2022-05-11)
-
-* **Feature**: This release updates AWS PrivateLink APIs to support IPv6 for PrivateLink Services and Endpoints of type 'Interface'.
-
-# v1.41.0 (2022-05-10)
-
-* **Feature**: Added support for using NitroTPM and UEFI Secure Boot on EC2 instances.
-
-# v1.40.0 (2022-05-06)
-
-* **Feature**: Add new state values for IPAMs, IPAM Scopes, and IPAM Pools.
-
-# v1.39.0 (2022-05-05)
-
-* **Feature**: Amazon EC2 I4i instances are powered by 3rd generation Intel Xeon Scalable processors and feature up to 30 TB of local AWS Nitro SSD storage
-
-# v1.38.0 (2022-05-03)
-
-* **Feature**: Adds support for allocating Dedicated Hosts on AWS Outposts. The AllocateHosts API now accepts an OutpostArn request parameter, and the DescribeHosts API now includes an OutpostArn response parameter.
-
-# v1.37.0 (2022-04-28)
-
-* **Feature**: This release adds support to query the public key and creation date of EC2 Key Pairs. Additionally, the format (pem or ppk) of a key pair can be specified when creating a new key pair.
-
-# v1.36.1 (2022-04-25)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.36.0 (2022-04-22)
-
-* **Feature**: Adds support for waiters that automatically poll for a deleted NAT Gateway until it reaches the deleted state.
-
-# v1.35.1 (2022-04-14)
-
-* **Documentation**: Documentation updates for Amazon EC2.
-
-# v1.35.0 (2022-04-12)
-
-* **Feature**: X2idn and X2iedn instances are powered by 3rd generation Intel Xeon Scalable processors with an all-core turbo frequency up to 3.5 GHzAmazon EC2. C6a instances are powered by 3rd generation AMD EPYC processors.
-
-# v1.34.0 (2022-03-30)
-
-* **Feature**: This release simplifies the auto-recovery configuration process enabling customers to set the recovery behavior to disabled or default
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.33.0 (2022-03-25)
-
-* **Feature**: This is release adds support for Amazon VPC Reachability Analyzer to analyze path through a Transit Gateway.
-
-# v1.32.2 (2022-03-24)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.32.1 (2022-03-23)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.32.0 (2022-03-15)
-
-* **Feature**: Adds the Cascade parameter to the DeleteIpam API. Customers can use this parameter to automatically delete their IPAM, including non-default scopes, pools, cidrs, and allocations. There mustn't be any pools provisioned in the default public scope to use this parameter.
-
-# v1.31.0 (2022-03-08)
-
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Feature**: Updated service client model to latest release.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.30.0 (2022-02-24)
-
-* **Feature**: API client updated
-* **Feature**: Adds RetryMaxAttempts and RetryMod to API client Options. This allows the API clients' default Retryer to be configured from the shared configuration files or environment variables. Adding a new Retry mode of `Adaptive`. `Adaptive` retry mode is an experimental mode, adding client rate limiting when throttles reponses are received from an API. See [retry.AdaptiveMode](https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/aws/retry#AdaptiveMode) for more details, and configuration options.
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.29.0 (2022-01-28)
-
-* **Feature**: Updated to latest API model.
-
-# v1.28.0 (2022-01-14)
-
-* **Feature**: Updated API models
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.27.0 (2022-01-07)
-
-* **Feature**: API client updated
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.26.0 (2021-12-21)
-
-* **Feature**: API Paginators now support specifying the initial starting token, and support stopping on empty string tokens.
-* **Feature**: API client updated
-* **Feature**: Updated to latest service endpoints
-
-# v1.25.0 (2021-12-02)
-
-* **Feature**: API client updated
-* **Bug Fix**: Fixes a bug that prevented aws.EndpointResolverWithOptions from being used by the service client. ([#1514](https://github.com/aws/aws-sdk-go-v2/pull/1514))
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.24.0 (2021-11-30)
-
-* **Feature**: API client updated
-
-# v1.23.0 (2021-11-19)
-
-* **Feature**: API client updated
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.22.0 (2021-11-12)
-
-* **Feature**: Service clients now support custom endpoints that have an initial URI path defined.
-* **Feature**: Updated service to latest API model.
-* **Feature**: Waiters now have a `WaitForOutput` method, which can be used to retrieve the output of the successful wait operation. Thank you to [Andrew Haines](https://github.com/haines) for contributing this feature.
-
-# v1.21.0 (2021-11-06)
-
-* **Feature**: The SDK now supports configuration of FIPS and DualStack endpoints using environment variables, shared configuration, or programmatically.
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Feature**: Updated service to latest API model.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.20.0 (2021-10-21)
-
-* **Feature**: API client updated
-* **Feature**: Updated to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.19.0 (2021-10-11)
-
-* **Feature**: API client updated
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.18.0 (2021-09-24)
-
-* **Feature**: API client updated
-
-# v1.17.0 (2021-09-17)
-
-* **Feature**: Updated API client and endpoints to latest revision.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.16.0 (2021-09-02)
-
-* **Feature**: API client updated
-
-# v1.15.0 (2021-08-27)
-
-* **Feature**: Updated API model to latest revision.
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.14.0 (2021-08-19)
-
-* **Feature**: API client updated
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.13.0 (2021-08-04)
-
-* **Feature**: Updated to latest API model.
-* **Dependency Update**: Updated `github.com/aws/smithy-go` to latest version.
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.12.0 (2021-07-15)
-
-* **Feature**: Updated service model to latest version.
-* **Dependency Update**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.11.0 (2021-07-01)
-
-* **Feature**: API client updated
-
-# v1.10.0 (2021-06-25)
-
-* **Feature**: API client updated
-* **Feature**: Updated `github.com/aws/smithy-go` to latest version
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.9.0 (2021-06-04)
-
-* **Feature**: Updated service client to latest API model.
-
-# v1.8.0 (2021-05-25)
-
-* **Feature**: API client updated
-
-# v1.7.1 (2021-05-20)
-
-* **Dependency Update**: Updated to the latest SDK module versions
-
-# v1.7.0 (2021-05-14)
-
-* **Feature**: Constant has been added to modules to enable runtime version inspection for reporting.
-* **Feature**: Updated to latest service API model.
-* **Dependency Update**: Updated to the latest SDK module versions
-
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/LICENSE.txt b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/LICENSE.txt
deleted file mode 100644
index d64569567..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/LICENSE.txt
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_client.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_client.go
deleted file mode 100644
index 2a7294485..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_client.go
+++ /dev/null
@@ -1,1111 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- cryptorand "crypto/rand"
- "errors"
- "fmt"
- "github.com/aws/aws-sdk-go-v2/aws"
- "github.com/aws/aws-sdk-go-v2/aws/defaults"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/aws/protocol/query"
- "github.com/aws/aws-sdk-go-v2/aws/retry"
- "github.com/aws/aws-sdk-go-v2/aws/signer/v4"
- awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http"
- internalauth "github.com/aws/aws-sdk-go-v2/internal/auth"
- internalauthsmithy "github.com/aws/aws-sdk-go-v2/internal/auth/smithy"
- internalConfig "github.com/aws/aws-sdk-go-v2/internal/configsources"
- internalmiddleware "github.com/aws/aws-sdk-go-v2/internal/middleware"
- acceptencodingcust "github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding"
- presignedurlcust "github.com/aws/aws-sdk-go-v2/service/internal/presigned-url"
- smithy "github.com/aws/smithy-go"
- smithyauth "github.com/aws/smithy-go/auth"
- smithydocument "github.com/aws/smithy-go/document"
- "github.com/aws/smithy-go/logging"
- "github.com/aws/smithy-go/metrics"
- "github.com/aws/smithy-go/middleware"
- smithyrand "github.com/aws/smithy-go/rand"
- "github.com/aws/smithy-go/tracing"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "net"
- "net/http"
- "sync/atomic"
- "time"
-)
-
-const ServiceID = "EC2"
-const ServiceAPIVersion = "2016-11-15"
-
-type operationMetrics struct {
- Duration metrics.Float64Histogram
- SerializeDuration metrics.Float64Histogram
- ResolveIdentityDuration metrics.Float64Histogram
- ResolveEndpointDuration metrics.Float64Histogram
- SignRequestDuration metrics.Float64Histogram
- DeserializeDuration metrics.Float64Histogram
-}
-
-func (m *operationMetrics) histogramFor(name string) metrics.Float64Histogram {
- switch name {
- case "client.call.duration":
- return m.Duration
- case "client.call.serialization_duration":
- return m.SerializeDuration
- case "client.call.resolve_identity_duration":
- return m.ResolveIdentityDuration
- case "client.call.resolve_endpoint_duration":
- return m.ResolveEndpointDuration
- case "client.call.signing_duration":
- return m.SignRequestDuration
- case "client.call.deserialization_duration":
- return m.DeserializeDuration
- default:
- panic("unrecognized operation metric")
- }
-}
-
-func timeOperationMetric[T any](
- ctx context.Context, metric string, fn func() (T, error),
- opts ...metrics.RecordMetricOption,
-) (T, error) {
- instr := getOperationMetrics(ctx).histogramFor(metric)
- opts = append([]metrics.RecordMetricOption{withOperationMetadata(ctx)}, opts...)
-
- start := time.Now()
- v, err := fn()
- end := time.Now()
-
- elapsed := end.Sub(start)
- instr.Record(ctx, float64(elapsed)/1e9, opts...)
- return v, err
-}
-
-func startMetricTimer(ctx context.Context, metric string, opts ...metrics.RecordMetricOption) func() {
- instr := getOperationMetrics(ctx).histogramFor(metric)
- opts = append([]metrics.RecordMetricOption{withOperationMetadata(ctx)}, opts...)
-
- var ended bool
- start := time.Now()
- return func() {
- if ended {
- return
- }
- ended = true
-
- end := time.Now()
-
- elapsed := end.Sub(start)
- instr.Record(ctx, float64(elapsed)/1e9, opts...)
- }
-}
-
-func withOperationMetadata(ctx context.Context) metrics.RecordMetricOption {
- return func(o *metrics.RecordMetricOptions) {
- o.Properties.Set("rpc.service", middleware.GetServiceID(ctx))
- o.Properties.Set("rpc.method", middleware.GetOperationName(ctx))
- }
-}
-
-type operationMetricsKey struct{}
-
-func withOperationMetrics(parent context.Context, mp metrics.MeterProvider) (context.Context, error) {
- meter := mp.Meter("github.com/aws/aws-sdk-go-v2/service/ec2")
- om := &operationMetrics{}
-
- var err error
-
- om.Duration, err = operationMetricTimer(meter, "client.call.duration",
- "Overall call duration (including retries and time to send or receive request and response body)")
- if err != nil {
- return nil, err
- }
- om.SerializeDuration, err = operationMetricTimer(meter, "client.call.serialization_duration",
- "The time it takes to serialize a message body")
- if err != nil {
- return nil, err
- }
- om.ResolveIdentityDuration, err = operationMetricTimer(meter, "client.call.auth.resolve_identity_duration",
- "The time taken to acquire an identity (AWS credentials, bearer token, etc) from an Identity Provider")
- if err != nil {
- return nil, err
- }
- om.ResolveEndpointDuration, err = operationMetricTimer(meter, "client.call.resolve_endpoint_duration",
- "The time it takes to resolve an endpoint (endpoint resolver, not DNS) for the request")
- if err != nil {
- return nil, err
- }
- om.SignRequestDuration, err = operationMetricTimer(meter, "client.call.auth.signing_duration",
- "The time it takes to sign a request")
- if err != nil {
- return nil, err
- }
- om.DeserializeDuration, err = operationMetricTimer(meter, "client.call.deserialization_duration",
- "The time it takes to deserialize a message body")
- if err != nil {
- return nil, err
- }
-
- return context.WithValue(parent, operationMetricsKey{}, om), nil
-}
-
-func operationMetricTimer(m metrics.Meter, name, desc string) (metrics.Float64Histogram, error) {
- return m.Float64Histogram(name, func(o *metrics.InstrumentOptions) {
- o.UnitLabel = "s"
- o.Description = desc
- })
-}
-
-func getOperationMetrics(ctx context.Context) *operationMetrics {
- return ctx.Value(operationMetricsKey{}).(*operationMetrics)
-}
-
-func operationTracer(p tracing.TracerProvider) tracing.Tracer {
- return p.Tracer("github.com/aws/aws-sdk-go-v2/service/ec2")
-}
-
-// Client provides the API client to make operations call for Amazon Elastic
-// Compute Cloud.
-type Client struct {
- options Options
-
- // Difference between the time reported by the server and the client
- timeOffset *atomic.Int64
-}
-
-// New returns an initialized Client based on the functional options. Provide
-// additional functional options to further configure the behavior of the client,
-// such as changing the client's endpoint or adding custom middleware behavior.
-func New(options Options, optFns ...func(*Options)) *Client {
- options = options.Copy()
-
- resolveDefaultLogger(&options)
-
- setResolvedDefaultsMode(&options)
-
- resolveRetryer(&options)
-
- resolveHTTPClient(&options)
-
- resolveHTTPSignerV4(&options)
-
- resolveIdempotencyTokenProvider(&options)
-
- resolveEndpointResolverV2(&options)
-
- resolveTracerProvider(&options)
-
- resolveMeterProvider(&options)
-
- resolveAuthSchemeResolver(&options)
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- finalizeRetryMaxAttempts(&options)
-
- ignoreAnonymousAuth(&options)
-
- wrapWithAnonymousAuth(&options)
-
- resolveAuthSchemes(&options)
-
- client := &Client{
- options: options,
- }
-
- initializeTimeOffsetResolver(client)
-
- return client
-}
-
-// Options returns a copy of the client configuration.
-//
-// Callers SHOULD NOT perform mutations on any inner structures within client
-// config. Config overrides should instead be made on a per-operation basis through
-// functional options.
-func (c *Client) Options() Options {
- return c.options.Copy()
-}
-
-func (c *Client) invokeOperation(
- ctx context.Context, opID string, params interface{}, optFns []func(*Options), stackFns ...func(*middleware.Stack, Options) error,
-) (
- result interface{}, metadata middleware.Metadata, err error,
-) {
- ctx = middleware.ClearStackValues(ctx)
- ctx = middleware.WithServiceID(ctx, ServiceID)
- ctx = middleware.WithOperationName(ctx, opID)
-
- stack := middleware.NewStack(opID, smithyhttp.NewStackRequest)
- options := c.options.Copy()
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- finalizeOperationRetryMaxAttempts(&options, *c)
-
- finalizeClientEndpointResolverOptions(&options)
-
- for _, fn := range stackFns {
- if err := fn(stack, options); err != nil {
- return nil, metadata, err
- }
- }
-
- for _, fn := range options.APIOptions {
- if err := fn(stack); err != nil {
- return nil, metadata, err
- }
- }
-
- ctx, err = withOperationMetrics(ctx, options.MeterProvider)
- if err != nil {
- return nil, metadata, err
- }
-
- tracer := operationTracer(options.TracerProvider)
- spanName := fmt.Sprintf("%s.%s", ServiceID, opID)
-
- ctx = tracing.WithOperationTracer(ctx, tracer)
-
- ctx, span := tracer.StartSpan(ctx, spanName, func(o *tracing.SpanOptions) {
- o.Kind = tracing.SpanKindClient
- o.Properties.Set("rpc.system", "aws-api")
- o.Properties.Set("rpc.method", opID)
- o.Properties.Set("rpc.service", ServiceID)
- })
- endTimer := startMetricTimer(ctx, "client.call.duration")
- defer endTimer()
- defer span.End()
-
- handler := smithyhttp.NewClientHandlerWithOptions(options.HTTPClient, func(o *smithyhttp.ClientHandler) {
- o.Meter = options.MeterProvider.Meter("github.com/aws/aws-sdk-go-v2/service/ec2")
- })
- decorated := middleware.DecorateHandler(handler, stack)
- result, metadata, err = decorated.Handle(ctx, params)
- if err != nil {
- span.SetProperty("exception.type", fmt.Sprintf("%T", err))
- span.SetProperty("exception.message", err.Error())
-
- var aerr smithy.APIError
- if errors.As(err, &aerr) {
- span.SetProperty("api.error_code", aerr.ErrorCode())
- span.SetProperty("api.error_message", aerr.ErrorMessage())
- span.SetProperty("api.error_fault", aerr.ErrorFault().String())
- }
-
- err = &smithy.OperationError{
- ServiceID: ServiceID,
- OperationName: opID,
- Err: err,
- }
- }
-
- span.SetProperty("error", err != nil)
- if err == nil {
- span.SetStatus(tracing.SpanStatusOK)
- } else {
- span.SetStatus(tracing.SpanStatusError)
- }
-
- return result, metadata, err
-}
-
-type operationInputKey struct{}
-
-func setOperationInput(ctx context.Context, input interface{}) context.Context {
- return middleware.WithStackValue(ctx, operationInputKey{}, input)
-}
-
-func getOperationInput(ctx context.Context) interface{} {
- return middleware.GetStackValue(ctx, operationInputKey{})
-}
-
-type setOperationInputMiddleware struct {
-}
-
-func (*setOperationInputMiddleware) ID() string {
- return "setOperationInput"
-}
-
-func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
- out middleware.SerializeOutput, metadata middleware.Metadata, err error,
-) {
- ctx = setOperationInput(ctx, in.Parameters)
- return next.HandleSerialize(ctx, in)
-}
-
-func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error {
- if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil {
- return fmt.Errorf("add ResolveAuthScheme: %w", err)
- }
- if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil {
- return fmt.Errorf("add GetIdentity: %v", err)
- }
- if err := stack.Finalize.Insert(&resolveEndpointV2Middleware{options: options}, "GetIdentity", middleware.After); err != nil {
- return fmt.Errorf("add ResolveEndpointV2: %v", err)
- }
- if err := stack.Finalize.Insert(&signRequestMiddleware{options: options}, "ResolveEndpointV2", middleware.After); err != nil {
- return fmt.Errorf("add Signing: %w", err)
- }
- return nil
-}
-func resolveAuthSchemeResolver(options *Options) {
- if options.AuthSchemeResolver == nil {
- options.AuthSchemeResolver = &defaultAuthSchemeResolver{}
- }
-}
-
-func resolveAuthSchemes(options *Options) {
- if options.AuthSchemes == nil {
- options.AuthSchemes = []smithyhttp.AuthScheme{
- internalauth.NewHTTPAuthScheme("aws.auth#sigv4", &internalauthsmithy.V4SignerAdapter{
- Signer: options.HTTPSignerV4,
- Logger: options.Logger,
- LogSigning: options.ClientLogMode.IsSigning(),
- }),
- }
- }
-}
-
-type noSmithyDocumentSerde = smithydocument.NoSerde
-
-type legacyEndpointContextSetter struct {
- LegacyResolver EndpointResolver
-}
-
-func (*legacyEndpointContextSetter) ID() string {
- return "legacyEndpointContextSetter"
-}
-
-func (m *legacyEndpointContextSetter) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.LegacyResolver != nil {
- ctx = awsmiddleware.SetRequiresLegacyEndpoints(ctx, true)
- }
-
- return next.HandleInitialize(ctx, in)
-
-}
-func addlegacyEndpointContextSetter(stack *middleware.Stack, o Options) error {
- return stack.Initialize.Add(&legacyEndpointContextSetter{
- LegacyResolver: o.EndpointResolver,
- }, middleware.Before)
-}
-
-func resolveDefaultLogger(o *Options) {
- if o.Logger != nil {
- return
- }
- o.Logger = logging.Nop{}
-}
-
-func addSetLoggerMiddleware(stack *middleware.Stack, o Options) error {
- return middleware.AddSetLoggerMiddleware(stack, o.Logger)
-}
-
-func setResolvedDefaultsMode(o *Options) {
- if len(o.resolvedDefaultsMode) > 0 {
- return
- }
-
- var mode aws.DefaultsMode
- mode.SetFromString(string(o.DefaultsMode))
-
- if mode == aws.DefaultsModeAuto {
- mode = defaults.ResolveDefaultsModeAuto(o.Region, o.RuntimeEnvironment)
- }
-
- o.resolvedDefaultsMode = mode
-}
-
-// NewFromConfig returns a new client from the provided config.
-func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client {
- opts := Options{
- Region: cfg.Region,
- DefaultsMode: cfg.DefaultsMode,
- RuntimeEnvironment: cfg.RuntimeEnvironment,
- HTTPClient: cfg.HTTPClient,
- Credentials: cfg.Credentials,
- APIOptions: cfg.APIOptions,
- Logger: cfg.Logger,
- ClientLogMode: cfg.ClientLogMode,
- AppID: cfg.AppID,
- }
- resolveAWSRetryerProvider(cfg, &opts)
- resolveAWSRetryMaxAttempts(cfg, &opts)
- resolveAWSRetryMode(cfg, &opts)
- resolveAWSEndpointResolver(cfg, &opts)
- resolveUseDualStackEndpoint(cfg, &opts)
- resolveUseFIPSEndpoint(cfg, &opts)
- resolveBaseEndpoint(cfg, &opts)
- return New(opts, optFns...)
-}
-
-func resolveHTTPClient(o *Options) {
- var buildable *awshttp.BuildableClient
-
- if o.HTTPClient != nil {
- var ok bool
- buildable, ok = o.HTTPClient.(*awshttp.BuildableClient)
- if !ok {
- return
- }
- } else {
- buildable = awshttp.NewBuildableClient()
- }
-
- modeConfig, err := defaults.GetModeConfiguration(o.resolvedDefaultsMode)
- if err == nil {
- buildable = buildable.WithDialerOptions(func(dialer *net.Dialer) {
- if dialerTimeout, ok := modeConfig.GetConnectTimeout(); ok {
- dialer.Timeout = dialerTimeout
- }
- })
-
- buildable = buildable.WithTransportOptions(func(transport *http.Transport) {
- if tlsHandshakeTimeout, ok := modeConfig.GetTLSNegotiationTimeout(); ok {
- transport.TLSHandshakeTimeout = tlsHandshakeTimeout
- }
- })
- }
-
- o.HTTPClient = buildable
-}
-
-func resolveRetryer(o *Options) {
- if o.Retryer != nil {
- return
- }
-
- if len(o.RetryMode) == 0 {
- modeConfig, err := defaults.GetModeConfiguration(o.resolvedDefaultsMode)
- if err == nil {
- o.RetryMode = modeConfig.RetryMode
- }
- }
- if len(o.RetryMode) == 0 {
- o.RetryMode = aws.RetryModeStandard
- }
-
- var standardOptions []func(*retry.StandardOptions)
- if v := o.RetryMaxAttempts; v != 0 {
- standardOptions = append(standardOptions, func(so *retry.StandardOptions) {
- so.MaxAttempts = v
- })
- }
-
- switch o.RetryMode {
- case aws.RetryModeAdaptive:
- var adaptiveOptions []func(*retry.AdaptiveModeOptions)
- if len(standardOptions) != 0 {
- adaptiveOptions = append(adaptiveOptions, func(ao *retry.AdaptiveModeOptions) {
- ao.StandardOptions = append(ao.StandardOptions, standardOptions...)
- })
- }
- o.Retryer = retry.NewAdaptiveMode(adaptiveOptions...)
-
- default:
- o.Retryer = retry.NewStandard(standardOptions...)
- }
-}
-
-func resolveAWSRetryerProvider(cfg aws.Config, o *Options) {
- if cfg.Retryer == nil {
- return
- }
- o.Retryer = cfg.Retryer()
-}
-
-func resolveAWSRetryMode(cfg aws.Config, o *Options) {
- if len(cfg.RetryMode) == 0 {
- return
- }
- o.RetryMode = cfg.RetryMode
-}
-func resolveAWSRetryMaxAttempts(cfg aws.Config, o *Options) {
- if cfg.RetryMaxAttempts == 0 {
- return
- }
- o.RetryMaxAttempts = cfg.RetryMaxAttempts
-}
-
-func finalizeRetryMaxAttempts(o *Options) {
- if o.RetryMaxAttempts == 0 {
- return
- }
-
- o.Retryer = retry.AddWithMaxAttempts(o.Retryer, o.RetryMaxAttempts)
-}
-
-func finalizeOperationRetryMaxAttempts(o *Options, client Client) {
- if v := o.RetryMaxAttempts; v == 0 || v == client.options.RetryMaxAttempts {
- return
- }
-
- o.Retryer = retry.AddWithMaxAttempts(o.Retryer, o.RetryMaxAttempts)
-}
-
-func resolveAWSEndpointResolver(cfg aws.Config, o *Options) {
- if cfg.EndpointResolver == nil && cfg.EndpointResolverWithOptions == nil {
- return
- }
- o.EndpointResolver = withEndpointResolver(cfg.EndpointResolver, cfg.EndpointResolverWithOptions)
-}
-
-func addClientUserAgent(stack *middleware.Stack, options Options) error {
- ua, err := getOrAddRequestUserAgent(stack)
- if err != nil {
- return err
- }
-
- ua.AddSDKAgentKeyValue(awsmiddleware.APIMetadata, "ec2", goModuleVersion)
- if len(options.AppID) > 0 {
- ua.AddSDKAgentKey(awsmiddleware.ApplicationIdentifier, options.AppID)
- }
-
- return nil
-}
-
-func getOrAddRequestUserAgent(stack *middleware.Stack) (*awsmiddleware.RequestUserAgent, error) {
- id := (*awsmiddleware.RequestUserAgent)(nil).ID()
- mw, ok := stack.Build.Get(id)
- if !ok {
- mw = awsmiddleware.NewRequestUserAgent()
- if err := stack.Build.Add(mw, middleware.After); err != nil {
- return nil, err
- }
- }
-
- ua, ok := mw.(*awsmiddleware.RequestUserAgent)
- if !ok {
- return nil, fmt.Errorf("%T for %s middleware did not match expected type", mw, id)
- }
-
- return ua, nil
-}
-
-type HTTPSignerV4 interface {
- SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*v4.SignerOptions)) error
-}
-
-func resolveHTTPSignerV4(o *Options) {
- if o.HTTPSignerV4 != nil {
- return
- }
- o.HTTPSignerV4 = newDefaultV4Signer(*o)
-}
-
-func newDefaultV4Signer(o Options) *v4.Signer {
- return v4.NewSigner(func(so *v4.SignerOptions) {
- so.Logger = o.Logger
- so.LogSigning = o.ClientLogMode.IsSigning()
- })
-}
-
-func addClientRequestID(stack *middleware.Stack) error {
- return stack.Build.Add(&awsmiddleware.ClientRequestID{}, middleware.After)
-}
-
-func addComputeContentLength(stack *middleware.Stack) error {
- return stack.Build.Add(&smithyhttp.ComputeContentLength{}, middleware.After)
-}
-
-func addRawResponseToMetadata(stack *middleware.Stack) error {
- return stack.Deserialize.Add(&awsmiddleware.AddRawResponse{}, middleware.Before)
-}
-
-func addRecordResponseTiming(stack *middleware.Stack) error {
- return stack.Deserialize.Add(&awsmiddleware.RecordResponseTiming{}, middleware.After)
-}
-
-func addSpanRetryLoop(stack *middleware.Stack, options Options) error {
- return stack.Finalize.Insert(&spanRetryLoop{options: options}, "Retry", middleware.Before)
-}
-
-type spanRetryLoop struct {
- options Options
-}
-
-func (*spanRetryLoop) ID() string {
- return "spanRetryLoop"
-}
-
-func (m *spanRetryLoop) HandleFinalize(
- ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler,
-) (
- middleware.FinalizeOutput, middleware.Metadata, error,
-) {
- tracer := operationTracer(m.options.TracerProvider)
- ctx, span := tracer.StartSpan(ctx, "RetryLoop")
- defer span.End()
-
- return next.HandleFinalize(ctx, in)
-}
-func addStreamingEventsPayload(stack *middleware.Stack) error {
- return stack.Finalize.Add(&v4.StreamingEventsPayload{}, middleware.Before)
-}
-
-func addUnsignedPayload(stack *middleware.Stack) error {
- return stack.Finalize.Insert(&v4.UnsignedPayload{}, "ResolveEndpointV2", middleware.After)
-}
-
-func addComputePayloadSHA256(stack *middleware.Stack) error {
- return stack.Finalize.Insert(&v4.ComputePayloadSHA256{}, "ResolveEndpointV2", middleware.After)
-}
-
-func addContentSHA256Header(stack *middleware.Stack) error {
- return stack.Finalize.Insert(&v4.ContentSHA256Header{}, (*v4.ComputePayloadSHA256)(nil).ID(), middleware.After)
-}
-
-func addIsWaiterUserAgent(o *Options) {
- o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
- ua, err := getOrAddRequestUserAgent(stack)
- if err != nil {
- return err
- }
-
- ua.AddUserAgentFeature(awsmiddleware.UserAgentFeatureWaiter)
- return nil
- })
-}
-
-func addIsPaginatorUserAgent(o *Options) {
- o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
- ua, err := getOrAddRequestUserAgent(stack)
- if err != nil {
- return err
- }
-
- ua.AddUserAgentFeature(awsmiddleware.UserAgentFeaturePaginator)
- return nil
- })
-}
-
-func resolveIdempotencyTokenProvider(o *Options) {
- if o.IdempotencyTokenProvider != nil {
- return
- }
- o.IdempotencyTokenProvider = smithyrand.NewUUIDIdempotencyToken(cryptorand.Reader)
-}
-
-func addRetry(stack *middleware.Stack, o Options) error {
- attempt := retry.NewAttemptMiddleware(o.Retryer, smithyhttp.RequestCloner, func(m *retry.Attempt) {
- m.LogAttempts = o.ClientLogMode.IsRetries()
- m.OperationMeter = o.MeterProvider.Meter("github.com/aws/aws-sdk-go-v2/service/ec2")
- })
- if err := stack.Finalize.Insert(attempt, "ResolveAuthScheme", middleware.Before); err != nil {
- return err
- }
- if err := stack.Finalize.Insert(&retry.MetricsHeader{}, attempt.ID(), middleware.After); err != nil {
- return err
- }
- return nil
-}
-
-// resolves dual-stack endpoint configuration
-func resolveUseDualStackEndpoint(cfg aws.Config, o *Options) error {
- if len(cfg.ConfigSources) == 0 {
- return nil
- }
- value, found, err := internalConfig.ResolveUseDualStackEndpoint(context.Background(), cfg.ConfigSources)
- if err != nil {
- return err
- }
- if found {
- o.EndpointOptions.UseDualStackEndpoint = value
- }
- return nil
-}
-
-// resolves FIPS endpoint configuration
-func resolveUseFIPSEndpoint(cfg aws.Config, o *Options) error {
- if len(cfg.ConfigSources) == 0 {
- return nil
- }
- value, found, err := internalConfig.ResolveUseFIPSEndpoint(context.Background(), cfg.ConfigSources)
- if err != nil {
- return err
- }
- if found {
- o.EndpointOptions.UseFIPSEndpoint = value
- }
- return nil
-}
-
-func resolveAccountID(identity smithyauth.Identity, mode aws.AccountIDEndpointMode) *string {
- if mode == aws.AccountIDEndpointModeDisabled {
- return nil
- }
-
- if ca, ok := identity.(*internalauthsmithy.CredentialsAdapter); ok && ca.Credentials.AccountID != "" {
- return aws.String(ca.Credentials.AccountID)
- }
-
- return nil
-}
-
-func addTimeOffsetBuild(stack *middleware.Stack, c *Client) error {
- mw := internalmiddleware.AddTimeOffsetMiddleware{Offset: c.timeOffset}
- if err := stack.Build.Add(&mw, middleware.After); err != nil {
- return err
- }
- return stack.Deserialize.Insert(&mw, "RecordResponseTiming", middleware.Before)
-}
-func initializeTimeOffsetResolver(c *Client) {
- c.timeOffset = new(atomic.Int64)
-}
-
-func addUserAgentRetryMode(stack *middleware.Stack, options Options) error {
- ua, err := getOrAddRequestUserAgent(stack)
- if err != nil {
- return err
- }
-
- switch options.Retryer.(type) {
- case *retry.Standard:
- ua.AddUserAgentFeature(awsmiddleware.UserAgentFeatureRetryModeStandard)
- case *retry.AdaptiveMode:
- ua.AddUserAgentFeature(awsmiddleware.UserAgentFeatureRetryModeAdaptive)
- }
- return nil
-}
-
-type setCredentialSourceMiddleware struct {
- ua *awsmiddleware.RequestUserAgent
- options Options
-}
-
-func (m setCredentialSourceMiddleware) ID() string { return "SetCredentialSourceMiddleware" }
-
-func (m setCredentialSourceMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) (
- out middleware.BuildOutput, metadata middleware.Metadata, err error,
-) {
- asProviderSource, ok := m.options.Credentials.(aws.CredentialProviderSource)
- if !ok {
- return next.HandleBuild(ctx, in)
- }
- providerSources := asProviderSource.ProviderSources()
- for _, source := range providerSources {
- m.ua.AddCredentialsSource(source)
- }
- return next.HandleBuild(ctx, in)
-}
-
-func addCredentialSource(stack *middleware.Stack, options Options) error {
- ua, err := getOrAddRequestUserAgent(stack)
- if err != nil {
- return err
- }
-
- mw := setCredentialSourceMiddleware{ua: ua, options: options}
- return stack.Build.Insert(&mw, "UserAgent", middleware.Before)
-}
-
-func resolveTracerProvider(options *Options) {
- if options.TracerProvider == nil {
- options.TracerProvider = &tracing.NopTracerProvider{}
- }
-}
-
-func resolveMeterProvider(options *Options) {
- if options.MeterProvider == nil {
- options.MeterProvider = metrics.NopMeterProvider{}
- }
-}
-
-// IdempotencyTokenProvider interface for providing idempotency token
-type IdempotencyTokenProvider interface {
- GetIdempotencyToken() (string, error)
-}
-
-func addRecursionDetection(stack *middleware.Stack) error {
- return stack.Build.Add(&awsmiddleware.RecursionDetection{}, middleware.After)
-}
-
-func addRequestIDRetrieverMiddleware(stack *middleware.Stack) error {
- return stack.Deserialize.Insert(&awsmiddleware.RequestIDRetriever{}, "OperationDeserializer", middleware.Before)
-
-}
-
-func addResponseErrorMiddleware(stack *middleware.Stack) error {
- return stack.Deserialize.Insert(&awshttp.ResponseErrorWrapper{}, "RequestIDRetriever", middleware.Before)
-
-}
-
-// HTTPPresignerV4 represents presigner interface used by presign url client
-type HTTPPresignerV4 interface {
- PresignHTTP(
- ctx context.Context, credentials aws.Credentials, r *http.Request,
- payloadHash string, service string, region string, signingTime time.Time,
- optFns ...func(*v4.SignerOptions),
- ) (url string, signedHeader http.Header, err error)
-}
-
-// PresignOptions represents the presign client options
-type PresignOptions struct {
-
- // ClientOptions are list of functional options to mutate client options used by
- // the presign client.
- ClientOptions []func(*Options)
-
- // Presigner is the presigner used by the presign url client
- Presigner HTTPPresignerV4
-}
-
-func (o PresignOptions) copy() PresignOptions {
- clientOptions := make([]func(*Options), len(o.ClientOptions))
- copy(clientOptions, o.ClientOptions)
- o.ClientOptions = clientOptions
- return o
-}
-
-// WithPresignClientFromClientOptions is a helper utility to retrieve a function
-// that takes PresignOption as input
-func WithPresignClientFromClientOptions(optFns ...func(*Options)) func(*PresignOptions) {
- return withPresignClientFromClientOptions(optFns).options
-}
-
-type withPresignClientFromClientOptions []func(*Options)
-
-func (w withPresignClientFromClientOptions) options(o *PresignOptions) {
- o.ClientOptions = append(o.ClientOptions, w...)
-}
-
-// PresignClient represents the presign url client
-type PresignClient struct {
- client *Client
- options PresignOptions
-}
-
-// NewPresignClient generates a presign client using provided API Client and
-// presign options
-func NewPresignClient(c *Client, optFns ...func(*PresignOptions)) *PresignClient {
- var options PresignOptions
- for _, fn := range optFns {
- fn(&options)
- }
- if len(options.ClientOptions) != 0 {
- c = New(c.options, options.ClientOptions...)
- }
-
- if options.Presigner == nil {
- options.Presigner = newDefaultV4Signer(c.options)
- }
-
- return &PresignClient{
- client: c,
- options: options,
- }
-}
-
-func withNopHTTPClientAPIOption(o *Options) {
- o.HTTPClient = smithyhttp.NopClient{}
-}
-
-type presignContextPolyfillMiddleware struct {
-}
-
-func (*presignContextPolyfillMiddleware) ID() string {
- return "presignContextPolyfill"
-}
-
-func (m *presignContextPolyfillMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
- out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
-) {
- rscheme := getResolvedAuthScheme(ctx)
- if rscheme == nil {
- return out, metadata, fmt.Errorf("no resolved auth scheme")
- }
-
- schemeID := rscheme.Scheme.SchemeID()
-
- if schemeID == "aws.auth#sigv4" || schemeID == "com.amazonaws.s3#sigv4express" {
- if sn, ok := smithyhttp.GetSigV4SigningName(&rscheme.SignerProperties); ok {
- ctx = awsmiddleware.SetSigningName(ctx, sn)
- }
- if sr, ok := smithyhttp.GetSigV4SigningRegion(&rscheme.SignerProperties); ok {
- ctx = awsmiddleware.SetSigningRegion(ctx, sr)
- }
- } else if schemeID == "aws.auth#sigv4a" {
- if sn, ok := smithyhttp.GetSigV4ASigningName(&rscheme.SignerProperties); ok {
- ctx = awsmiddleware.SetSigningName(ctx, sn)
- }
- if sr, ok := smithyhttp.GetSigV4ASigningRegions(&rscheme.SignerProperties); ok {
- ctx = awsmiddleware.SetSigningRegion(ctx, sr[0])
- }
- }
-
- return next.HandleFinalize(ctx, in)
-}
-
-type presignConverter PresignOptions
-
-func (c presignConverter) convertToPresignMiddleware(stack *middleware.Stack, options Options) (err error) {
- if _, ok := stack.Finalize.Get((*acceptencodingcust.DisableGzip)(nil).ID()); ok {
- stack.Finalize.Remove((*acceptencodingcust.DisableGzip)(nil).ID())
- }
- if _, ok := stack.Finalize.Get((*retry.Attempt)(nil).ID()); ok {
- stack.Finalize.Remove((*retry.Attempt)(nil).ID())
- }
- if _, ok := stack.Finalize.Get((*retry.MetricsHeader)(nil).ID()); ok {
- stack.Finalize.Remove((*retry.MetricsHeader)(nil).ID())
- }
- stack.Deserialize.Clear()
- stack.Build.Remove((*awsmiddleware.ClientRequestID)(nil).ID())
- stack.Build.Remove("UserAgent")
- if err := stack.Finalize.Insert(&presignContextPolyfillMiddleware{}, "Signing", middleware.Before); err != nil {
- return err
- }
-
- pmw := v4.NewPresignHTTPRequestMiddleware(v4.PresignHTTPRequestMiddlewareOptions{
- CredentialsProvider: options.Credentials,
- Presigner: c.Presigner,
- LogSigning: options.ClientLogMode.IsSigning(),
- })
- if _, err := stack.Finalize.Swap("Signing", pmw); err != nil {
- return err
- }
- if err = smithyhttp.AddNoPayloadDefaultContentTypeRemover(stack); err != nil {
- return err
- }
- // convert request to a GET request
- err = query.AddAsGetRequestMiddleware(stack)
- if err != nil {
- return err
- }
- err = presignedurlcust.AddAsIsPresigningMiddleware(stack)
- if err != nil {
- return err
- }
- return nil
-}
-
-func addRequestResponseLogging(stack *middleware.Stack, o Options) error {
- return stack.Deserialize.Add(&smithyhttp.RequestResponseLogger{
- LogRequest: o.ClientLogMode.IsRequest(),
- LogRequestWithBody: o.ClientLogMode.IsRequestWithBody(),
- LogResponse: o.ClientLogMode.IsResponse(),
- LogResponseWithBody: o.ClientLogMode.IsResponseWithBody(),
- }, middleware.After)
-}
-
-type disableHTTPSMiddleware struct {
- DisableHTTPS bool
-}
-
-func (*disableHTTPSMiddleware) ID() string {
- return "disableHTTPS"
-}
-
-func (m *disableHTTPSMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
- out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
-) {
- req, ok := in.Request.(*smithyhttp.Request)
- if !ok {
- return out, metadata, fmt.Errorf("unknown transport type %T", in.Request)
- }
-
- if m.DisableHTTPS && !smithyhttp.GetHostnameImmutable(ctx) {
- req.URL.Scheme = "http"
- }
-
- return next.HandleFinalize(ctx, in)
-}
-
-func addDisableHTTPSMiddleware(stack *middleware.Stack, o Options) error {
- return stack.Finalize.Insert(&disableHTTPSMiddleware{
- DisableHTTPS: o.EndpointOptions.DisableHTTPS,
- }, "ResolveEndpointV2", middleware.After)
-}
-
-type spanInitializeStart struct {
-}
-
-func (*spanInitializeStart) ID() string {
- return "spanInitializeStart"
-}
-
-func (m *spanInitializeStart) HandleInitialize(
- ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler,
-) (
- middleware.InitializeOutput, middleware.Metadata, error,
-) {
- ctx, _ = tracing.StartSpan(ctx, "Initialize")
-
- return next.HandleInitialize(ctx, in)
-}
-
-type spanInitializeEnd struct {
-}
-
-func (*spanInitializeEnd) ID() string {
- return "spanInitializeEnd"
-}
-
-func (m *spanInitializeEnd) HandleInitialize(
- ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler,
-) (
- middleware.InitializeOutput, middleware.Metadata, error,
-) {
- ctx, span := tracing.PopSpan(ctx)
- span.End()
-
- return next.HandleInitialize(ctx, in)
-}
-
-type spanBuildRequestStart struct {
-}
-
-func (*spanBuildRequestStart) ID() string {
- return "spanBuildRequestStart"
-}
-
-func (m *spanBuildRequestStart) HandleSerialize(
- ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler,
-) (
- middleware.SerializeOutput, middleware.Metadata, error,
-) {
- ctx, _ = tracing.StartSpan(ctx, "BuildRequest")
-
- return next.HandleSerialize(ctx, in)
-}
-
-type spanBuildRequestEnd struct {
-}
-
-func (*spanBuildRequestEnd) ID() string {
- return "spanBuildRequestEnd"
-}
-
-func (m *spanBuildRequestEnd) HandleBuild(
- ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler,
-) (
- middleware.BuildOutput, middleware.Metadata, error,
-) {
- ctx, span := tracing.PopSpan(ctx)
- span.End()
-
- return next.HandleBuild(ctx, in)
-}
-
-func addSpanInitializeStart(stack *middleware.Stack) error {
- return stack.Initialize.Add(&spanInitializeStart{}, middleware.Before)
-}
-
-func addSpanInitializeEnd(stack *middleware.Stack) error {
- return stack.Initialize.Add(&spanInitializeEnd{}, middleware.After)
-}
-
-func addSpanBuildRequestStart(stack *middleware.Stack) error {
- return stack.Serialize.Add(&spanBuildRequestStart{}, middleware.Before)
-}
-
-func addSpanBuildRequestEnd(stack *middleware.Stack) error {
- return stack.Build.Add(&spanBuildRequestEnd{}, middleware.After)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptAddressTransfer.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptAddressTransfer.go
deleted file mode 100644
index 4652a6b0c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptAddressTransfer.go
+++ /dev/null
@@ -1,175 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Accepts an Elastic IP address transfer. For more information, see [Accept a transferred Elastic IP address] in the
-// Amazon VPC User Guide.
-//
-// [Accept a transferred Elastic IP address]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-eips.html#using-instance-addressing-eips-transfer-accept
-func (c *Client) AcceptAddressTransfer(ctx context.Context, params *AcceptAddressTransferInput, optFns ...func(*Options)) (*AcceptAddressTransferOutput, error) {
- if params == nil {
- params = &AcceptAddressTransferInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AcceptAddressTransfer", params, optFns, c.addOperationAcceptAddressTransferMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AcceptAddressTransferOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AcceptAddressTransferInput struct {
-
- // The Elastic IP address you are accepting for transfer.
- //
- // This member is required.
- Address *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // tag : - The key/value combination of a tag assigned to the resource. Use the tag
- // key in the filter name and the tag value as the filter value. For example, to
- // find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type AcceptAddressTransferOutput struct {
-
- // An Elastic IP address transfer.
- AddressTransfer *types.AddressTransfer
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAcceptAddressTransferMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAcceptAddressTransfer{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAcceptAddressTransfer{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AcceptAddressTransfer"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAcceptAddressTransferValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAcceptAddressTransfer(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAcceptAddressTransfer(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AcceptAddressTransfer",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptCapacityReservationBillingOwnership.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptCapacityReservationBillingOwnership.go
deleted file mode 100644
index e6f0c2a7b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptCapacityReservationBillingOwnership.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Accepts a request to assign billing of the available capacity of a shared
-// Capacity Reservation to your account. For more information, see [Billing assignment for shared Amazon EC2 Capacity Reservations].
-//
-// [Billing assignment for shared Amazon EC2 Capacity Reservations]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/assign-billing.html
-func (c *Client) AcceptCapacityReservationBillingOwnership(ctx context.Context, params *AcceptCapacityReservationBillingOwnershipInput, optFns ...func(*Options)) (*AcceptCapacityReservationBillingOwnershipOutput, error) {
- if params == nil {
- params = &AcceptCapacityReservationBillingOwnershipInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AcceptCapacityReservationBillingOwnership", params, optFns, c.addOperationAcceptCapacityReservationBillingOwnershipMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AcceptCapacityReservationBillingOwnershipOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AcceptCapacityReservationBillingOwnershipInput struct {
-
- // The ID of the Capacity Reservation for which to accept the request.
- //
- // This member is required.
- CapacityReservationId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type AcceptCapacityReservationBillingOwnershipOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAcceptCapacityReservationBillingOwnershipMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAcceptCapacityReservationBillingOwnership{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAcceptCapacityReservationBillingOwnership{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AcceptCapacityReservationBillingOwnership"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAcceptCapacityReservationBillingOwnershipValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAcceptCapacityReservationBillingOwnership(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAcceptCapacityReservationBillingOwnership(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AcceptCapacityReservationBillingOwnership",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptReservedInstancesExchangeQuote.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptReservedInstancesExchangeQuote.go
deleted file mode 100644
index 8827cfe50..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptReservedInstancesExchangeQuote.go
+++ /dev/null
@@ -1,173 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Accepts the Convertible Reserved Instance exchange quote described in the GetReservedInstancesExchangeQuote call.
-func (c *Client) AcceptReservedInstancesExchangeQuote(ctx context.Context, params *AcceptReservedInstancesExchangeQuoteInput, optFns ...func(*Options)) (*AcceptReservedInstancesExchangeQuoteOutput, error) {
- if params == nil {
- params = &AcceptReservedInstancesExchangeQuoteInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AcceptReservedInstancesExchangeQuote", params, optFns, c.addOperationAcceptReservedInstancesExchangeQuoteMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AcceptReservedInstancesExchangeQuoteOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for accepting the quote.
-type AcceptReservedInstancesExchangeQuoteInput struct {
-
- // The IDs of the Convertible Reserved Instances to exchange for another
- // Convertible Reserved Instance of the same or higher value.
- //
- // This member is required.
- ReservedInstanceIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The configuration of the target Convertible Reserved Instance to exchange for
- // your current Convertible Reserved Instances.
- TargetConfigurations []types.TargetConfigurationRequest
-
- noSmithyDocumentSerde
-}
-
-// The result of the exchange and whether it was successful .
-type AcceptReservedInstancesExchangeQuoteOutput struct {
-
- // The ID of the successful exchange.
- ExchangeId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAcceptReservedInstancesExchangeQuoteMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAcceptReservedInstancesExchangeQuote{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAcceptReservedInstancesExchangeQuote{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AcceptReservedInstancesExchangeQuote"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAcceptReservedInstancesExchangeQuoteValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAcceptReservedInstancesExchangeQuote(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAcceptReservedInstancesExchangeQuote(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AcceptReservedInstancesExchangeQuote",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayMulticastDomainAssociations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayMulticastDomainAssociations.go
deleted file mode 100644
index ddb8e9347..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayMulticastDomainAssociations.go
+++ /dev/null
@@ -1,167 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Accepts a request to associate subnets with a transit gateway multicast domain.
-func (c *Client) AcceptTransitGatewayMulticastDomainAssociations(ctx context.Context, params *AcceptTransitGatewayMulticastDomainAssociationsInput, optFns ...func(*Options)) (*AcceptTransitGatewayMulticastDomainAssociationsOutput, error) {
- if params == nil {
- params = &AcceptTransitGatewayMulticastDomainAssociationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AcceptTransitGatewayMulticastDomainAssociations", params, optFns, c.addOperationAcceptTransitGatewayMulticastDomainAssociationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AcceptTransitGatewayMulticastDomainAssociationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AcceptTransitGatewayMulticastDomainAssociationsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The IDs of the subnets to associate with the transit gateway multicast domain.
- SubnetIds []string
-
- // The ID of the transit gateway attachment.
- TransitGatewayAttachmentId *string
-
- // The ID of the transit gateway multicast domain.
- TransitGatewayMulticastDomainId *string
-
- noSmithyDocumentSerde
-}
-
-type AcceptTransitGatewayMulticastDomainAssociationsOutput struct {
-
- // Information about the multicast domain associations.
- Associations *types.TransitGatewayMulticastDomainAssociations
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAcceptTransitGatewayMulticastDomainAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAcceptTransitGatewayMulticastDomainAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAcceptTransitGatewayMulticastDomainAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AcceptTransitGatewayMulticastDomainAssociations"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAcceptTransitGatewayMulticastDomainAssociations(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAcceptTransitGatewayMulticastDomainAssociations(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AcceptTransitGatewayMulticastDomainAssociations",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayPeeringAttachment.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayPeeringAttachment.go
deleted file mode 100644
index 5ea0d0147..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayPeeringAttachment.go
+++ /dev/null
@@ -1,167 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Accepts a transit gateway peering attachment request. The peering attachment
-// must be in the pendingAcceptance state.
-func (c *Client) AcceptTransitGatewayPeeringAttachment(ctx context.Context, params *AcceptTransitGatewayPeeringAttachmentInput, optFns ...func(*Options)) (*AcceptTransitGatewayPeeringAttachmentOutput, error) {
- if params == nil {
- params = &AcceptTransitGatewayPeeringAttachmentInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AcceptTransitGatewayPeeringAttachment", params, optFns, c.addOperationAcceptTransitGatewayPeeringAttachmentMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AcceptTransitGatewayPeeringAttachmentOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AcceptTransitGatewayPeeringAttachmentInput struct {
-
- // The ID of the transit gateway attachment.
- //
- // This member is required.
- TransitGatewayAttachmentId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type AcceptTransitGatewayPeeringAttachmentOutput struct {
-
- // The transit gateway peering attachment.
- TransitGatewayPeeringAttachment *types.TransitGatewayPeeringAttachment
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAcceptTransitGatewayPeeringAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAcceptTransitGatewayPeeringAttachment{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAcceptTransitGatewayPeeringAttachment{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AcceptTransitGatewayPeeringAttachment"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAcceptTransitGatewayPeeringAttachmentValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAcceptTransitGatewayPeeringAttachment(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAcceptTransitGatewayPeeringAttachment(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AcceptTransitGatewayPeeringAttachment",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayVpcAttachment.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayVpcAttachment.go
deleted file mode 100644
index 6d8077c5a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayVpcAttachment.go
+++ /dev/null
@@ -1,169 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Accepts a request to attach a VPC to a transit gateway.
-//
-// The VPC attachment must be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments to view your
-// pending VPC attachment requests. Use RejectTransitGatewayVpcAttachmentto reject a VPC attachment request.
-func (c *Client) AcceptTransitGatewayVpcAttachment(ctx context.Context, params *AcceptTransitGatewayVpcAttachmentInput, optFns ...func(*Options)) (*AcceptTransitGatewayVpcAttachmentOutput, error) {
- if params == nil {
- params = &AcceptTransitGatewayVpcAttachmentInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AcceptTransitGatewayVpcAttachment", params, optFns, c.addOperationAcceptTransitGatewayVpcAttachmentMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AcceptTransitGatewayVpcAttachmentOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AcceptTransitGatewayVpcAttachmentInput struct {
-
- // The ID of the attachment.
- //
- // This member is required.
- TransitGatewayAttachmentId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type AcceptTransitGatewayVpcAttachmentOutput struct {
-
- // The VPC attachment.
- TransitGatewayVpcAttachment *types.TransitGatewayVpcAttachment
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAcceptTransitGatewayVpcAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAcceptTransitGatewayVpcAttachment{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAcceptTransitGatewayVpcAttachment{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AcceptTransitGatewayVpcAttachment"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAcceptTransitGatewayVpcAttachmentValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAcceptTransitGatewayVpcAttachment(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAcceptTransitGatewayVpcAttachment(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AcceptTransitGatewayVpcAttachment",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptVpcEndpointConnections.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptVpcEndpointConnections.go
deleted file mode 100644
index 52327eb0e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptVpcEndpointConnections.go
+++ /dev/null
@@ -1,171 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Accepts connection requests to your VPC endpoint service.
-func (c *Client) AcceptVpcEndpointConnections(ctx context.Context, params *AcceptVpcEndpointConnectionsInput, optFns ...func(*Options)) (*AcceptVpcEndpointConnectionsOutput, error) {
- if params == nil {
- params = &AcceptVpcEndpointConnectionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AcceptVpcEndpointConnections", params, optFns, c.addOperationAcceptVpcEndpointConnectionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AcceptVpcEndpointConnectionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AcceptVpcEndpointConnectionsInput struct {
-
- // The ID of the VPC endpoint service.
- //
- // This member is required.
- ServiceId *string
-
- // The IDs of the interface VPC endpoints.
- //
- // This member is required.
- VpcEndpointIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type AcceptVpcEndpointConnectionsOutput struct {
-
- // Information about the interface endpoints that were not accepted, if applicable.
- Unsuccessful []types.UnsuccessfulItem
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAcceptVpcEndpointConnectionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAcceptVpcEndpointConnections{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAcceptVpcEndpointConnections{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AcceptVpcEndpointConnections"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAcceptVpcEndpointConnectionsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAcceptVpcEndpointConnections(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAcceptVpcEndpointConnections(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AcceptVpcEndpointConnections",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptVpcPeeringConnection.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptVpcPeeringConnection.go
deleted file mode 100644
index 4ca7541cb..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptVpcPeeringConnection.go
+++ /dev/null
@@ -1,172 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Accept a VPC peering connection request. To accept a request, the VPC peering
-// connection must be in the pending-acceptance state, and you must be the owner
-// of the peer VPC. Use DescribeVpcPeeringConnectionsto view your outstanding VPC peering connection requests.
-//
-// For an inter-Region VPC peering connection request, you must accept the VPC
-// peering connection in the Region of the accepter VPC.
-func (c *Client) AcceptVpcPeeringConnection(ctx context.Context, params *AcceptVpcPeeringConnectionInput, optFns ...func(*Options)) (*AcceptVpcPeeringConnectionOutput, error) {
- if params == nil {
- params = &AcceptVpcPeeringConnectionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AcceptVpcPeeringConnection", params, optFns, c.addOperationAcceptVpcPeeringConnectionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AcceptVpcPeeringConnectionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AcceptVpcPeeringConnectionInput struct {
-
- // The ID of the VPC peering connection. You must specify this parameter in the
- // request.
- //
- // This member is required.
- VpcPeeringConnectionId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type AcceptVpcPeeringConnectionOutput struct {
-
- // Information about the VPC peering connection.
- VpcPeeringConnection *types.VpcPeeringConnection
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAcceptVpcPeeringConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAcceptVpcPeeringConnection{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAcceptVpcPeeringConnection{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AcceptVpcPeeringConnection"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAcceptVpcPeeringConnectionValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAcceptVpcPeeringConnection(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAcceptVpcPeeringConnection(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AcceptVpcPeeringConnection",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AdvertiseByoipCidr.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AdvertiseByoipCidr.go
deleted file mode 100644
index 21a166c98..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AdvertiseByoipCidr.go
+++ /dev/null
@@ -1,205 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Advertises an IPv4 or IPv6 address range that is provisioned for use with your
-// Amazon Web Services resources through bring your own IP addresses (BYOIP).
-//
-// You can perform this operation at most once every 10 seconds, even if you
-// specify different address ranges each time.
-//
-// We recommend that you stop advertising the BYOIP CIDR from other locations when
-// you advertise it from Amazon Web Services. To minimize down time, you can
-// configure your Amazon Web Services resources to use an address from a BYOIP CIDR
-// before it is advertised, and then simultaneously stop advertising it from the
-// current location and start advertising it through Amazon Web Services.
-//
-// It can take a few minutes before traffic to the specified addresses starts
-// routing to Amazon Web Services because of BGP propagation delays.
-//
-// To stop advertising the BYOIP CIDR, use WithdrawByoipCidr.
-func (c *Client) AdvertiseByoipCidr(ctx context.Context, params *AdvertiseByoipCidrInput, optFns ...func(*Options)) (*AdvertiseByoipCidrOutput, error) {
- if params == nil {
- params = &AdvertiseByoipCidrInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AdvertiseByoipCidr", params, optFns, c.addOperationAdvertiseByoipCidrMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AdvertiseByoipCidrOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AdvertiseByoipCidrInput struct {
-
- // The address range, in CIDR notation. This must be the exact range that you
- // provisioned. You can't advertise only a portion of the provisioned range.
- //
- // This member is required.
- Cidr *string
-
- // The public 2-byte or 4-byte ASN that you want to advertise.
- Asn *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // If you have [Local Zones] enabled, you can choose a network border group for Local Zones
- // when you provision and advertise a BYOIPv4 CIDR. Choose the network border group
- // carefully as the EIP and the Amazon Web Services resource it is associated with
- // must reside in the same network border group.
- //
- // You can provision BYOIP address ranges to and advertise them in the following
- // Local Zone network border groups:
- //
- // - us-east-1-dfw-2
- //
- // - us-west-2-lax-1
- //
- // - us-west-2-phx-2
- //
- // You cannot provision or advertise BYOIPv6 address ranges in Local Zones at this
- // time.
- //
- // [Local Zones]: https://docs.aws.amazon.com/local-zones/latest/ug/how-local-zones-work.html
- NetworkBorderGroup *string
-
- noSmithyDocumentSerde
-}
-
-type AdvertiseByoipCidrOutput struct {
-
- // Information about the address range.
- ByoipCidr *types.ByoipCidr
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAdvertiseByoipCidrMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAdvertiseByoipCidr{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAdvertiseByoipCidr{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AdvertiseByoipCidr"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAdvertiseByoipCidrValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAdvertiseByoipCidr(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAdvertiseByoipCidr(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AdvertiseByoipCidr",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AllocateAddress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AllocateAddress.go
deleted file mode 100644
index 2e5b63915..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AllocateAddress.go
+++ /dev/null
@@ -1,235 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Allocates an Elastic IP address to your Amazon Web Services account. After you
-// allocate the Elastic IP address you can associate it with an instance or network
-// interface. After you release an Elastic IP address, it is released to the IP
-// address pool and can be allocated to a different Amazon Web Services account.
-//
-// You can allocate an Elastic IP address from an address pool owned by Amazon Web
-// Services or from an address pool created from a public IPv4 address range that
-// you have brought to Amazon Web Services for use with your Amazon Web Services
-// resources using bring your own IP addresses (BYOIP). For more information, see [Bring Your Own IP Addresses (BYOIP)]
-// in the Amazon EC2 User Guide.
-//
-// If you release an Elastic IP address, you might be able to recover it. You
-// cannot recover an Elastic IP address that you released after it is allocated to
-// another Amazon Web Services account. To attempt to recover an Elastic IP address
-// that you released, specify it in this operation.
-//
-// For more information, see [Elastic IP Addresses] in the Amazon EC2 User Guide.
-//
-// You can allocate a carrier IP address which is a public IP address from a
-// telecommunication carrier, to a network interface which resides in a subnet in a
-// Wavelength Zone (for example an EC2 instance).
-//
-// [Bring Your Own IP Addresses (BYOIP)]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html
-// [Elastic IP Addresses]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html
-func (c *Client) AllocateAddress(ctx context.Context, params *AllocateAddressInput, optFns ...func(*Options)) (*AllocateAddressOutput, error) {
- if params == nil {
- params = &AllocateAddressInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AllocateAddress", params, optFns, c.addOperationAllocateAddressMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AllocateAddressOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AllocateAddressInput struct {
-
- // The Elastic IP address to recover or an IPv4 address from an address pool.
- Address *string
-
- // The ID of a customer-owned address pool. Use this parameter to let Amazon EC2
- // select an address from the address pool. Alternatively, specify a specific
- // address from the address pool.
- CustomerOwnedIpv4Pool *string
-
- // The network ( vpc ).
- Domain types.DomainType
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of an IPAM pool which has an Amazon-provided or BYOIP public IPv4 CIDR
- // provisioned to it. For more information, see [Allocate sequential Elastic IP addresses from an IPAM pool]in the Amazon VPC IPAM User Guide.
- //
- // [Allocate sequential Elastic IP addresses from an IPAM pool]: https://docs.aws.amazon.com/vpc/latest/ipam/tutorials-eip-pool.html
- IpamPoolId *string
-
- // A unique set of Availability Zones, Local Zones, or Wavelength Zones from
- // which Amazon Web Services advertises IP addresses. Use this parameter to limit
- // the IP address to this location. IP addresses cannot move between network border
- // groups.
- NetworkBorderGroup *string
-
- // The ID of an address pool that you own. Use this parameter to let Amazon EC2
- // select an address from the address pool. To specify a specific address from the
- // address pool, use the Address parameter instead.
- PublicIpv4Pool *string
-
- // The tags to assign to the Elastic IP address.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type AllocateAddressOutput struct {
-
- // The ID that represents the allocation of the Elastic IP address.
- AllocationId *string
-
- // The carrier IP address. This option is only available for network interfaces
- // that reside in a subnet in a Wavelength Zone.
- CarrierIp *string
-
- // The customer-owned IP address.
- CustomerOwnedIp *string
-
- // The ID of the customer-owned address pool.
- CustomerOwnedIpv4Pool *string
-
- // The network ( vpc ).
- Domain types.DomainType
-
- // The set of Availability Zones, Local Zones, or Wavelength Zones from which
- // Amazon Web Services advertises IP addresses.
- NetworkBorderGroup *string
-
- // The Elastic IP address.
- PublicIp *string
-
- // The ID of an address pool.
- PublicIpv4Pool *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAllocateAddressMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAllocateAddress{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAllocateAddress{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AllocateAddress"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAllocateAddress(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAllocateAddress(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AllocateAddress",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AllocateHosts.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AllocateHosts.go
deleted file mode 100644
index b8385eb3f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AllocateHosts.go
+++ /dev/null
@@ -1,242 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Allocates a Dedicated Host to your account. At a minimum, specify the supported
-// instance type or instance family, the Availability Zone in which to allocate the
-// host, and the number of hosts to allocate.
-func (c *Client) AllocateHosts(ctx context.Context, params *AllocateHostsInput, optFns ...func(*Options)) (*AllocateHostsOutput, error) {
- if params == nil {
- params = &AllocateHostsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AllocateHosts", params, optFns, c.addOperationAllocateHostsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AllocateHostsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AllocateHostsInput struct {
-
- // The IDs of the Outpost hardware assets on which to allocate the Dedicated
- // Hosts. Targeting specific hardware assets on an Outpost can help to minimize
- // latency between your workloads. This parameter is supported only if you specify
- // OutpostArn. If you are allocating the Dedicated Hosts in a Region, omit this
- // parameter.
- //
- // - If you specify this parameter, you can omit Quantity. In this case, Amazon
- // EC2 allocates a Dedicated Host on each specified hardware asset.
- //
- // - If you specify both AssetIds and Quantity, then the value for Quantity must
- // be equal to the number of asset IDs specified.
- AssetIds []string
-
- // Indicates whether the host accepts any untargeted instance launches that match
- // its instance type configuration, or if it only accepts Host tenancy instance
- // launches that specify its unique host ID. For more information, see [Understanding auto-placement and affinity]in the
- // Amazon EC2 User Guide.
- //
- // Default: off
- //
- // [Understanding auto-placement and affinity]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/how-dedicated-hosts-work.html#dedicated-hosts-understanding
- AutoPlacement types.AutoPlacement
-
- // The Availability Zone in which to allocate the Dedicated Host.
- AvailabilityZone *string
-
- // The ID of the Availability Zone.
- AvailabilityZoneId *string
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensuring Idempotency].
- //
- // [Ensuring Idempotency]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
- ClientToken *string
-
- // Indicates whether to enable or disable host maintenance for the Dedicated Host.
- // For more information, see [Host maintenance]in the Amazon EC2 User Guide.
- //
- // [Host maintenance]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-maintenance.html
- HostMaintenance types.HostMaintenance
-
- // Indicates whether to enable or disable host recovery for the Dedicated Host.
- // Host recovery is disabled by default. For more information, see [Host recovery]in the Amazon
- // EC2 User Guide.
- //
- // Default: off
- //
- // [Host recovery]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-recovery.html
- HostRecovery types.HostRecovery
-
- // Specifies the instance family to be supported by the Dedicated Hosts. If you
- // specify an instance family, the Dedicated Hosts support multiple instance types
- // within that instance family.
- //
- // If you want the Dedicated Hosts to support a specific instance type only, omit
- // this parameter and specify InstanceType instead. You cannot specify
- // InstanceFamily and InstanceType in the same request.
- InstanceFamily *string
-
- // Specifies the instance type to be supported by the Dedicated Hosts. If you
- // specify an instance type, the Dedicated Hosts support instances of the specified
- // instance type only.
- //
- // If you want the Dedicated Hosts to support multiple instance types in a
- // specific instance family, omit this parameter and specify InstanceFamily
- // instead. You cannot specify InstanceType and InstanceFamily in the same request.
- InstanceType *string
-
- // The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which to
- // allocate the Dedicated Host. If you specify OutpostArn, you can optionally
- // specify AssetIds.
- //
- // If you are allocating the Dedicated Host in a Region, omit this parameter.
- OutpostArn *string
-
- // The number of Dedicated Hosts to allocate to your account with these
- // parameters. If you are allocating the Dedicated Hosts on an Outpost, and you
- // specify AssetIds, you can omit this parameter. In this case, Amazon EC2
- // allocates a Dedicated Host on each specified hardware asset. If you specify both
- // AssetIds and Quantity, then the value that you specify for Quantity must be
- // equal to the number of asset IDs specified.
- Quantity *int32
-
- // The tags to apply to the Dedicated Host during creation.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of AllocateHosts.
-type AllocateHostsOutput struct {
-
- // The ID of the allocated Dedicated Host. This is used to launch an instance onto
- // a specific host.
- HostIds []string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAllocateHostsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAllocateHosts{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAllocateHosts{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AllocateHosts"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAllocateHosts(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAllocateHosts(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AllocateHosts",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AllocateIpamPoolCidr.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AllocateIpamPoolCidr.go
deleted file mode 100644
index 933d56278..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AllocateIpamPoolCidr.go
+++ /dev/null
@@ -1,259 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Allocate a CIDR from an IPAM pool. The Region you use should be the IPAM pool
-// locale. The locale is the Amazon Web Services Region where this IPAM pool is
-// available for allocations.
-//
-// In IPAM, an allocation is a CIDR assignment from an IPAM pool to another IPAM
-// pool or to a resource. For more information, see [Allocate CIDRs]in the Amazon VPC IPAM User
-// Guide.
-//
-// This action creates an allocation with strong consistency. The returned CIDR
-// will not overlap with any other allocations from the same pool.
-//
-// [Allocate CIDRs]: https://docs.aws.amazon.com/vpc/latest/ipam/allocate-cidrs-ipam.html
-func (c *Client) AllocateIpamPoolCidr(ctx context.Context, params *AllocateIpamPoolCidrInput, optFns ...func(*Options)) (*AllocateIpamPoolCidrOutput, error) {
- if params == nil {
- params = &AllocateIpamPoolCidrInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AllocateIpamPoolCidr", params, optFns, c.addOperationAllocateIpamPoolCidrMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AllocateIpamPoolCidrOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AllocateIpamPoolCidrInput struct {
-
- // The ID of the IPAM pool from which you would like to allocate a CIDR.
- //
- // This member is required.
- IpamPoolId *string
-
- // Include a particular CIDR range that can be returned by the pool. Allowed CIDRs
- // are only allowed if using netmask length for allocation.
- AllowedCidrs []string
-
- // The CIDR you would like to allocate from the IPAM pool. Note the following:
- //
- // - If there is no DefaultNetmaskLength allocation rule set on the pool, you
- // must specify either the NetmaskLength or the CIDR.
- //
- // - If the DefaultNetmaskLength allocation rule is set on the pool, you can
- // specify either the NetmaskLength or the CIDR and the DefaultNetmaskLength
- // allocation rule will be ignored.
- //
- // Possible values: Any available IPv4 or IPv6 CIDR.
- Cidr *string
-
- // A unique, case-sensitive identifier that you provide to ensure the idempotency
- // of the request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // A description for the allocation.
- Description *string
-
- // Exclude a particular CIDR range from being returned by the pool. Disallowed
- // CIDRs are only allowed if using netmask length for allocation.
- DisallowedCidrs []string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The netmask length of the CIDR you would like to allocate from the IPAM pool.
- // Note the following:
- //
- // - If there is no DefaultNetmaskLength allocation rule set on the pool, you
- // must specify either the NetmaskLength or the CIDR.
- //
- // - If the DefaultNetmaskLength allocation rule is set on the pool, you can
- // specify either the NetmaskLength or the CIDR and the DefaultNetmaskLength
- // allocation rule will be ignored.
- //
- // Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask
- // lengths for IPv6 addresses are 0 - 128.
- NetmaskLength *int32
-
- // A preview of the next available CIDR in a pool.
- PreviewNextCidr *bool
-
- noSmithyDocumentSerde
-}
-
-type AllocateIpamPoolCidrOutput struct {
-
- // Information about the allocation created.
- IpamPoolAllocation *types.IpamPoolAllocation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAllocateIpamPoolCidrMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAllocateIpamPoolCidr{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAllocateIpamPoolCidr{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AllocateIpamPoolCidr"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opAllocateIpamPoolCidrMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpAllocateIpamPoolCidrValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAllocateIpamPoolCidr(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpAllocateIpamPoolCidr struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpAllocateIpamPoolCidr) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpAllocateIpamPoolCidr) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*AllocateIpamPoolCidrInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *AllocateIpamPoolCidrInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opAllocateIpamPoolCidrMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpAllocateIpamPoolCidr{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opAllocateIpamPoolCidr(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AllocateIpamPoolCidr",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ApplySecurityGroupsToClientVpnTargetNetwork.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ApplySecurityGroupsToClientVpnTargetNetwork.go
deleted file mode 100644
index 93999d67a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ApplySecurityGroupsToClientVpnTargetNetwork.go
+++ /dev/null
@@ -1,178 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Applies a security group to the association between the target network and the
-// Client VPN endpoint. This action replaces the existing security groups with the
-// specified security groups.
-func (c *Client) ApplySecurityGroupsToClientVpnTargetNetwork(ctx context.Context, params *ApplySecurityGroupsToClientVpnTargetNetworkInput, optFns ...func(*Options)) (*ApplySecurityGroupsToClientVpnTargetNetworkOutput, error) {
- if params == nil {
- params = &ApplySecurityGroupsToClientVpnTargetNetworkInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ApplySecurityGroupsToClientVpnTargetNetwork", params, optFns, c.addOperationApplySecurityGroupsToClientVpnTargetNetworkMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ApplySecurityGroupsToClientVpnTargetNetworkOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ApplySecurityGroupsToClientVpnTargetNetworkInput struct {
-
- // The ID of the Client VPN endpoint.
- //
- // This member is required.
- ClientVpnEndpointId *string
-
- // The IDs of the security groups to apply to the associated target network. Up to
- // 5 security groups can be applied to an associated target network.
- //
- // This member is required.
- SecurityGroupIds []string
-
- // The ID of the VPC in which the associated target network is located.
- //
- // This member is required.
- VpcId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ApplySecurityGroupsToClientVpnTargetNetworkOutput struct {
-
- // The IDs of the applied security groups.
- SecurityGroupIds []string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationApplySecurityGroupsToClientVpnTargetNetworkMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpApplySecurityGroupsToClientVpnTargetNetwork{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpApplySecurityGroupsToClientVpnTargetNetwork{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ApplySecurityGroupsToClientVpnTargetNetwork"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpApplySecurityGroupsToClientVpnTargetNetworkValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opApplySecurityGroupsToClientVpnTargetNetwork(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opApplySecurityGroupsToClientVpnTargetNetwork(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ApplySecurityGroupsToClientVpnTargetNetwork",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssignIpv6Addresses.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssignIpv6Addresses.go
deleted file mode 100644
index 6323f310e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssignIpv6Addresses.go
+++ /dev/null
@@ -1,200 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Assigns the specified IPv6 addresses to the specified network interface. You
-// can specify specific IPv6 addresses, or you can specify the number of IPv6
-// addresses to be automatically assigned from the subnet's IPv6 CIDR block range.
-// You can assign as many IPv6 addresses to a network interface as you can assign
-// private IPv4 addresses, and the limit varies by instance type.
-//
-// You must specify either the IPv6 addresses or the IPv6 address count in the
-// request.
-//
-// You can optionally use Prefix Delegation on the network interface. You must
-// specify either the IPV6 Prefix Delegation prefixes, or the IPv6 Prefix
-// Delegation count. For information, see [Assigning prefixes to network interfaces]in the Amazon EC2 User Guide.
-//
-// [Assigning prefixes to network interfaces]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-eni.html
-func (c *Client) AssignIpv6Addresses(ctx context.Context, params *AssignIpv6AddressesInput, optFns ...func(*Options)) (*AssignIpv6AddressesOutput, error) {
- if params == nil {
- params = &AssignIpv6AddressesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AssignIpv6Addresses", params, optFns, c.addOperationAssignIpv6AddressesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AssignIpv6AddressesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AssignIpv6AddressesInput struct {
-
- // The ID of the network interface.
- //
- // This member is required.
- NetworkInterfaceId *string
-
- // The number of additional IPv6 addresses to assign to the network interface. The
- // specified number of IPv6 addresses are assigned in addition to the existing IPv6
- // addresses that are already assigned to the network interface. Amazon EC2
- // automatically selects the IPv6 addresses from the subnet range. You can't use
- // this option if specifying specific IPv6 addresses.
- Ipv6AddressCount *int32
-
- // The IPv6 addresses to be assigned to the network interface. You can't use this
- // option if you're specifying a number of IPv6 addresses.
- Ipv6Addresses []string
-
- // The number of IPv6 prefixes that Amazon Web Services automatically assigns to
- // the network interface. You cannot use this option if you use the Ipv6Prefixes
- // option.
- Ipv6PrefixCount *int32
-
- // One or more IPv6 prefixes assigned to the network interface. You can't use this
- // option if you use the Ipv6PrefixCount option.
- Ipv6Prefixes []string
-
- noSmithyDocumentSerde
-}
-
-type AssignIpv6AddressesOutput struct {
-
- // The new IPv6 addresses assigned to the network interface. Existing IPv6
- // addresses that were assigned to the network interface before the request are not
- // included.
- AssignedIpv6Addresses []string
-
- // The IPv6 prefixes that are assigned to the network interface.
- AssignedIpv6Prefixes []string
-
- // The ID of the network interface.
- NetworkInterfaceId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAssignIpv6AddressesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAssignIpv6Addresses{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssignIpv6Addresses{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AssignIpv6Addresses"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAssignIpv6AddressesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssignIpv6Addresses(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAssignIpv6Addresses(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AssignIpv6Addresses",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssignPrivateIpAddresses.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssignPrivateIpAddresses.go
deleted file mode 100644
index 72df0d701..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssignPrivateIpAddresses.go
+++ /dev/null
@@ -1,217 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Assigns the specified secondary private IP addresses to the specified network
-// interface.
-//
-// You can specify specific secondary IP addresses, or you can specify the number
-// of secondary IP addresses to be automatically assigned from the subnet's CIDR
-// block range. The number of secondary IP addresses that you can assign to an
-// instance varies by instance type. For more information about Elastic IP
-// addresses, see [Elastic IP Addresses]in the Amazon EC2 User Guide.
-//
-// When you move a secondary private IP address to another network interface, any
-// Elastic IP address that is associated with the IP address is also moved.
-//
-// Remapping an IP address is an asynchronous operation. When you move an IP
-// address from one network interface to another, check
-// network/interfaces/macs/mac/local-ipv4s in the instance metadata to confirm that
-// the remapping is complete.
-//
-// You must specify either the IP addresses or the IP address count in the request.
-//
-// You can optionally use Prefix Delegation on the network interface. You must
-// specify either the IPv4 Prefix Delegation prefixes, or the IPv4 Prefix
-// Delegation count. For information, see [Assigning prefixes to network interfaces]in the Amazon EC2 User Guide.
-//
-// [Elastic IP Addresses]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html
-// [Assigning prefixes to network interfaces]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-eni.html
-func (c *Client) AssignPrivateIpAddresses(ctx context.Context, params *AssignPrivateIpAddressesInput, optFns ...func(*Options)) (*AssignPrivateIpAddressesOutput, error) {
- if params == nil {
- params = &AssignPrivateIpAddressesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AssignPrivateIpAddresses", params, optFns, c.addOperationAssignPrivateIpAddressesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AssignPrivateIpAddressesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for AssignPrivateIpAddresses.
-type AssignPrivateIpAddressesInput struct {
-
- // The ID of the network interface.
- //
- // This member is required.
- NetworkInterfaceId *string
-
- // Indicates whether to allow an IP address that is already assigned to another
- // network interface or instance to be reassigned to the specified network
- // interface.
- AllowReassignment *bool
-
- // The number of IPv4 prefixes that Amazon Web Services automatically assigns to
- // the network interface. You can't use this option if you use the Ipv4 Prefixes
- // option.
- Ipv4PrefixCount *int32
-
- // One or more IPv4 prefixes assigned to the network interface. You can't use this
- // option if you use the Ipv4PrefixCount option.
- Ipv4Prefixes []string
-
- // The IP addresses to be assigned as a secondary private IP address to the
- // network interface. You can't specify this parameter when also specifying a
- // number of secondary IP addresses.
- //
- // If you don't specify an IP address, Amazon EC2 automatically selects an IP
- // address within the subnet range.
- PrivateIpAddresses []string
-
- // The number of secondary IP addresses to assign to the network interface. You
- // can't specify this parameter when also specifying private IP addresses.
- SecondaryPrivateIpAddressCount *int32
-
- noSmithyDocumentSerde
-}
-
-type AssignPrivateIpAddressesOutput struct {
-
- // The IPv4 prefixes that are assigned to the network interface.
- AssignedIpv4Prefixes []types.Ipv4PrefixSpecification
-
- // The private IP addresses assigned to the network interface.
- AssignedPrivateIpAddresses []types.AssignedPrivateIpAddress
-
- // The ID of the network interface.
- NetworkInterfaceId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAssignPrivateIpAddressesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAssignPrivateIpAddresses{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssignPrivateIpAddresses{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AssignPrivateIpAddresses"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAssignPrivateIpAddressesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssignPrivateIpAddresses(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAssignPrivateIpAddresses(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AssignPrivateIpAddresses",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssignPrivateNatGatewayAddress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssignPrivateNatGatewayAddress.go
deleted file mode 100644
index 08d17ad10..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssignPrivateNatGatewayAddress.go
+++ /dev/null
@@ -1,179 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Assigns private IPv4 addresses to a private NAT gateway. For more information,
-// see [Work with NAT gateways]in the Amazon VPC User Guide.
-//
-// [Work with NAT gateways]: https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-working-with.html
-func (c *Client) AssignPrivateNatGatewayAddress(ctx context.Context, params *AssignPrivateNatGatewayAddressInput, optFns ...func(*Options)) (*AssignPrivateNatGatewayAddressOutput, error) {
- if params == nil {
- params = &AssignPrivateNatGatewayAddressInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AssignPrivateNatGatewayAddress", params, optFns, c.addOperationAssignPrivateNatGatewayAddressMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AssignPrivateNatGatewayAddressOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AssignPrivateNatGatewayAddressInput struct {
-
- // The ID of the NAT gateway.
- //
- // This member is required.
- NatGatewayId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The number of private IP addresses to assign to the NAT gateway. You can't
- // specify this parameter when also specifying private IP addresses.
- PrivateIpAddressCount *int32
-
- // The private IPv4 addresses you want to assign to the private NAT gateway.
- PrivateIpAddresses []string
-
- noSmithyDocumentSerde
-}
-
-type AssignPrivateNatGatewayAddressOutput struct {
-
- // NAT gateway IP addresses.
- NatGatewayAddresses []types.NatGatewayAddress
-
- // The ID of the NAT gateway.
- NatGatewayId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAssignPrivateNatGatewayAddressMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAssignPrivateNatGatewayAddress{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssignPrivateNatGatewayAddress{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AssignPrivateNatGatewayAddress"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAssignPrivateNatGatewayAddressValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssignPrivateNatGatewayAddress(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAssignPrivateNatGatewayAddress(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AssignPrivateNatGatewayAddress",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateAddress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateAddress.go
deleted file mode 100644
index cd8bcb78b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateAddress.go
+++ /dev/null
@@ -1,206 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Associates an Elastic IP address, or carrier IP address (for instances that are
-// in subnets in Wavelength Zones) with an instance or a network interface. Before
-// you can use an Elastic IP address, you must allocate it to your account.
-//
-// If the Elastic IP address is already associated with a different instance, it
-// is disassociated from that instance and associated with the specified instance.
-// If you associate an Elastic IP address with an instance that has an existing
-// Elastic IP address, the existing address is disassociated from the instance, but
-// remains allocated to your account.
-//
-// [Subnets in Wavelength Zones] You can associate an IP address from the
-// telecommunication carrier to the instance or network interface.
-//
-// You cannot associate an Elastic IP address with an interface in a different
-// network border group.
-//
-// This is an idempotent operation. If you perform the operation more than once,
-// Amazon EC2 doesn't return an error, and you may be charged for each time the
-// Elastic IP address is remapped to the same instance. For more information, see
-// the Elastic IP Addresses section of [Amazon EC2 Pricing].
-//
-// [Amazon EC2 Pricing]: http://aws.amazon.com/ec2/pricing/
-func (c *Client) AssociateAddress(ctx context.Context, params *AssociateAddressInput, optFns ...func(*Options)) (*AssociateAddressOutput, error) {
- if params == nil {
- params = &AssociateAddressInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AssociateAddress", params, optFns, c.addOperationAssociateAddressMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AssociateAddressOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AssociateAddressInput struct {
-
- // The allocation ID. This is required.
- AllocationId *string
-
- // Reassociation is automatic, but you can specify false to ensure the operation
- // fails if the Elastic IP address is already associated with another resource.
- AllowReassociation *bool
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the instance. The instance must have exactly one attached network
- // interface. You can specify either the instance ID or the network interface ID,
- // but not both.
- InstanceId *string
-
- // The ID of the network interface. If the instance has more than one network
- // interface, you must specify a network interface ID.
- //
- // You can specify either the instance ID or the network interface ID, but not
- // both.
- NetworkInterfaceId *string
-
- // The primary or secondary private IP address to associate with the Elastic IP
- // address. If no private IP address is specified, the Elastic IP address is
- // associated with the primary private IP address.
- PrivateIpAddress *string
-
- // Deprecated.
- PublicIp *string
-
- noSmithyDocumentSerde
-}
-
-type AssociateAddressOutput struct {
-
- // The ID that represents the association of the Elastic IP address with an
- // instance.
- AssociationId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAssociateAddressMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateAddress{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssociateAddress{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateAddress"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateAddress(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAssociateAddress(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AssociateAddress",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateCapacityReservationBillingOwner.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateCapacityReservationBillingOwner.go
deleted file mode 100644
index d4145916e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateCapacityReservationBillingOwner.go
+++ /dev/null
@@ -1,174 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Initiates a request to assign billing of the unused capacity of a shared
-// Capacity Reservation to a consumer account that is consolidated under the same
-// Amazon Web Services organizations payer account. For more information, see [Billing assignment for shared Amazon EC2 Capacity Reservations].
-//
-// [Billing assignment for shared Amazon EC2 Capacity Reservations]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/assign-billing.html
-func (c *Client) AssociateCapacityReservationBillingOwner(ctx context.Context, params *AssociateCapacityReservationBillingOwnerInput, optFns ...func(*Options)) (*AssociateCapacityReservationBillingOwnerOutput, error) {
- if params == nil {
- params = &AssociateCapacityReservationBillingOwnerInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AssociateCapacityReservationBillingOwner", params, optFns, c.addOperationAssociateCapacityReservationBillingOwnerMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AssociateCapacityReservationBillingOwnerOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AssociateCapacityReservationBillingOwnerInput struct {
-
- // The ID of the Capacity Reservation.
- //
- // This member is required.
- CapacityReservationId *string
-
- // The ID of the consumer account to which to assign billing.
- //
- // This member is required.
- UnusedReservationBillingOwnerId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type AssociateCapacityReservationBillingOwnerOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAssociateCapacityReservationBillingOwnerMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateCapacityReservationBillingOwner{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssociateCapacityReservationBillingOwner{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateCapacityReservationBillingOwner"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAssociateCapacityReservationBillingOwnerValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateCapacityReservationBillingOwner(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAssociateCapacityReservationBillingOwner(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AssociateCapacityReservationBillingOwner",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateClientVpnTargetNetwork.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateClientVpnTargetNetwork.go
deleted file mode 100644
index 3edf2cca0..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateClientVpnTargetNetwork.go
+++ /dev/null
@@ -1,225 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Associates a target network with a Client VPN endpoint. A target network is a
-// subnet in a VPC. You can associate multiple subnets from the same VPC with a
-// Client VPN endpoint. You can associate only one subnet in each Availability
-// Zone. We recommend that you associate at least two subnets to provide
-// Availability Zone redundancy.
-//
-// If you specified a VPC when you created the Client VPN endpoint or if you have
-// previous subnet associations, the specified subnet must be in the same VPC. To
-// specify a subnet that's in a different VPC, you must first modify the Client VPN
-// endpoint (ModifyClientVpnEndpoint ) and change the VPC that's associated with it.
-func (c *Client) AssociateClientVpnTargetNetwork(ctx context.Context, params *AssociateClientVpnTargetNetworkInput, optFns ...func(*Options)) (*AssociateClientVpnTargetNetworkOutput, error) {
- if params == nil {
- params = &AssociateClientVpnTargetNetworkInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AssociateClientVpnTargetNetwork", params, optFns, c.addOperationAssociateClientVpnTargetNetworkMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AssociateClientVpnTargetNetworkOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AssociateClientVpnTargetNetworkInput struct {
-
- // The ID of the Client VPN endpoint.
- //
- // This member is required.
- ClientVpnEndpointId *string
-
- // The ID of the subnet to associate with the Client VPN endpoint.
- //
- // This member is required.
- SubnetId *string
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type AssociateClientVpnTargetNetworkOutput struct {
-
- // The unique ID of the target network association.
- AssociationId *string
-
- // The current state of the target network association.
- Status *types.AssociationStatus
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAssociateClientVpnTargetNetworkMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateClientVpnTargetNetwork{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssociateClientVpnTargetNetwork{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateClientVpnTargetNetwork"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opAssociateClientVpnTargetNetworkMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpAssociateClientVpnTargetNetworkValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateClientVpnTargetNetwork(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpAssociateClientVpnTargetNetwork struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpAssociateClientVpnTargetNetwork) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpAssociateClientVpnTargetNetwork) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*AssociateClientVpnTargetNetworkInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *AssociateClientVpnTargetNetworkInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opAssociateClientVpnTargetNetworkMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpAssociateClientVpnTargetNetwork{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opAssociateClientVpnTargetNetwork(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AssociateClientVpnTargetNetwork",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateDhcpOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateDhcpOptions.go
deleted file mode 100644
index 1b04c25a9..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateDhcpOptions.go
+++ /dev/null
@@ -1,178 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Associates a set of DHCP options (that you've previously created) with the
-// specified VPC, or associates no DHCP options with the VPC.
-//
-// After you associate the options with the VPC, any existing instances and all
-// new instances that you launch in that VPC use the options. You don't need to
-// restart or relaunch the instances. They automatically pick up the changes within
-// a few hours, depending on how frequently the instance renews its DHCP lease. You
-// can explicitly renew the lease using the operating system on the instance.
-//
-// For more information, see [DHCP option sets] in the Amazon VPC User Guide.
-//
-// [DHCP option sets]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html
-func (c *Client) AssociateDhcpOptions(ctx context.Context, params *AssociateDhcpOptionsInput, optFns ...func(*Options)) (*AssociateDhcpOptionsOutput, error) {
- if params == nil {
- params = &AssociateDhcpOptionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AssociateDhcpOptions", params, optFns, c.addOperationAssociateDhcpOptionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AssociateDhcpOptionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AssociateDhcpOptionsInput struct {
-
- // The ID of the DHCP options set, or default to associate no DHCP options with
- // the VPC.
- //
- // This member is required.
- DhcpOptionsId *string
-
- // The ID of the VPC.
- //
- // This member is required.
- VpcId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type AssociateDhcpOptionsOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAssociateDhcpOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateDhcpOptions{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssociateDhcpOptions{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateDhcpOptions"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAssociateDhcpOptionsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateDhcpOptions(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAssociateDhcpOptions(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AssociateDhcpOptions",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateEnclaveCertificateIamRole.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateEnclaveCertificateIamRole.go
deleted file mode 100644
index c3e3e1ada..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateEnclaveCertificateIamRole.go
+++ /dev/null
@@ -1,197 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Associates an Identity and Access Management (IAM) role with an Certificate
-// Manager (ACM) certificate. This enables the certificate to be used by the ACM
-// for Nitro Enclaves application inside an enclave. For more information, see [Certificate Manager for Nitro Enclaves]in
-// the Amazon Web Services Nitro Enclaves User Guide.
-//
-// When the IAM role is associated with the ACM certificate, the certificate,
-// certificate chain, and encrypted private key are placed in an Amazon S3 location
-// that only the associated IAM role can access. The private key of the certificate
-// is encrypted with an Amazon Web Services managed key that has an attached
-// attestation-based key policy.
-//
-// To enable the IAM role to access the Amazon S3 object, you must grant it
-// permission to call s3:GetObject on the Amazon S3 bucket returned by the
-// command. To enable the IAM role to access the KMS key, you must grant it
-// permission to call kms:Decrypt on the KMS key returned by the command. For more
-// information, see [Grant the role permission to access the certificate and encryption key]in the Amazon Web Services Nitro Enclaves User Guide.
-//
-// [Certificate Manager for Nitro Enclaves]: https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave-refapp.html
-// [Grant the role permission to access the certificate and encryption key]: https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave-refapp.html#add-policy
-func (c *Client) AssociateEnclaveCertificateIamRole(ctx context.Context, params *AssociateEnclaveCertificateIamRoleInput, optFns ...func(*Options)) (*AssociateEnclaveCertificateIamRoleOutput, error) {
- if params == nil {
- params = &AssociateEnclaveCertificateIamRoleInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AssociateEnclaveCertificateIamRole", params, optFns, c.addOperationAssociateEnclaveCertificateIamRoleMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AssociateEnclaveCertificateIamRoleOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AssociateEnclaveCertificateIamRoleInput struct {
-
- // The ARN of the ACM certificate with which to associate the IAM role.
- //
- // This member is required.
- CertificateArn *string
-
- // The ARN of the IAM role to associate with the ACM certificate. You can
- // associate up to 16 IAM roles with an ACM certificate.
- //
- // This member is required.
- RoleArn *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type AssociateEnclaveCertificateIamRoleOutput struct {
-
- // The name of the Amazon S3 bucket to which the certificate was uploaded.
- CertificateS3BucketName *string
-
- // The Amazon S3 object key where the certificate, certificate chain, and
- // encrypted private key bundle are stored. The object key is formatted as follows:
- // role_arn / certificate_arn .
- CertificateS3ObjectKey *string
-
- // The ID of the KMS key used to encrypt the private key of the certificate.
- EncryptionKmsKeyId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAssociateEnclaveCertificateIamRoleMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateEnclaveCertificateIamRole{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssociateEnclaveCertificateIamRole{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateEnclaveCertificateIamRole"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAssociateEnclaveCertificateIamRoleValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateEnclaveCertificateIamRole(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAssociateEnclaveCertificateIamRole(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AssociateEnclaveCertificateIamRole",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateIamInstanceProfile.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateIamInstanceProfile.go
deleted file mode 100644
index 885ccab24..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateIamInstanceProfile.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Associates an IAM instance profile with a running or stopped instance. You
-// cannot associate more than one IAM instance profile with an instance.
-func (c *Client) AssociateIamInstanceProfile(ctx context.Context, params *AssociateIamInstanceProfileInput, optFns ...func(*Options)) (*AssociateIamInstanceProfileOutput, error) {
- if params == nil {
- params = &AssociateIamInstanceProfileInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AssociateIamInstanceProfile", params, optFns, c.addOperationAssociateIamInstanceProfileMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AssociateIamInstanceProfileOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AssociateIamInstanceProfileInput struct {
-
- // The IAM instance profile.
- //
- // This member is required.
- IamInstanceProfile *types.IamInstanceProfileSpecification
-
- // The ID of the instance.
- //
- // This member is required.
- InstanceId *string
-
- noSmithyDocumentSerde
-}
-
-type AssociateIamInstanceProfileOutput struct {
-
- // Information about the IAM instance profile association.
- IamInstanceProfileAssociation *types.IamInstanceProfileAssociation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAssociateIamInstanceProfileMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateIamInstanceProfile{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssociateIamInstanceProfile{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateIamInstanceProfile"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAssociateIamInstanceProfileValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateIamInstanceProfile(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAssociateIamInstanceProfile(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AssociateIamInstanceProfile",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateInstanceEventWindow.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateInstanceEventWindow.go
deleted file mode 100644
index 9fb87f544..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateInstanceEventWindow.go
+++ /dev/null
@@ -1,177 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Associates one or more targets with an event window. Only one type of target
-// (instance IDs, Dedicated Host IDs, or tags) can be specified with an event
-// window.
-//
-// For more information, see [Define event windows for scheduled events] in the Amazon EC2 User Guide.
-//
-// [Define event windows for scheduled events]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html
-func (c *Client) AssociateInstanceEventWindow(ctx context.Context, params *AssociateInstanceEventWindowInput, optFns ...func(*Options)) (*AssociateInstanceEventWindowOutput, error) {
- if params == nil {
- params = &AssociateInstanceEventWindowInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AssociateInstanceEventWindow", params, optFns, c.addOperationAssociateInstanceEventWindowMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AssociateInstanceEventWindowOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AssociateInstanceEventWindowInput struct {
-
- // One or more targets associated with the specified event window.
- //
- // This member is required.
- AssociationTarget *types.InstanceEventWindowAssociationRequest
-
- // The ID of the event window.
- //
- // This member is required.
- InstanceEventWindowId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type AssociateInstanceEventWindowOutput struct {
-
- // Information about the event window.
- InstanceEventWindow *types.InstanceEventWindow
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAssociateInstanceEventWindowMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateInstanceEventWindow{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssociateInstanceEventWindow{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateInstanceEventWindow"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAssociateInstanceEventWindowValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateInstanceEventWindow(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAssociateInstanceEventWindow(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AssociateInstanceEventWindow",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateIpamByoasn.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateIpamByoasn.go
deleted file mode 100644
index afe7a72e1..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateIpamByoasn.go
+++ /dev/null
@@ -1,180 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Associates your Autonomous System Number (ASN) with a BYOIP CIDR that you own
-// in the same Amazon Web Services Region. For more information, see [Tutorial: Bring your ASN to IPAM]in the Amazon
-// VPC IPAM guide.
-//
-// After the association succeeds, the ASN is eligible for advertisement. You can
-// view the association with [DescribeByoipCidrs]. You can advertise the CIDR with [AdvertiseByoipCidr].
-//
-// [DescribeByoipCidrs]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeByoipCidrs.html
-// [AdvertiseByoipCidr]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_AdvertiseByoipCidr.html
-// [Tutorial: Bring your ASN to IPAM]: https://docs.aws.amazon.com/vpc/latest/ipam/tutorials-byoasn.html
-func (c *Client) AssociateIpamByoasn(ctx context.Context, params *AssociateIpamByoasnInput, optFns ...func(*Options)) (*AssociateIpamByoasnOutput, error) {
- if params == nil {
- params = &AssociateIpamByoasnInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AssociateIpamByoasn", params, optFns, c.addOperationAssociateIpamByoasnMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AssociateIpamByoasnOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AssociateIpamByoasnInput struct {
-
- // A public 2-byte or 4-byte ASN.
- //
- // This member is required.
- Asn *string
-
- // The BYOIP CIDR you want to associate with an ASN.
- //
- // This member is required.
- Cidr *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type AssociateIpamByoasnOutput struct {
-
- // The ASN and BYOIP CIDR association.
- AsnAssociation *types.AsnAssociation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAssociateIpamByoasnMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateIpamByoasn{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssociateIpamByoasn{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateIpamByoasn"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAssociateIpamByoasnValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateIpamByoasn(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAssociateIpamByoasn(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AssociateIpamByoasn",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateIpamResourceDiscovery.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateIpamResourceDiscovery.go
deleted file mode 100644
index 24d328e46..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateIpamResourceDiscovery.go
+++ /dev/null
@@ -1,216 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Associates an IPAM resource discovery with an Amazon VPC IPAM. A resource
-// discovery is an IPAM component that enables IPAM to manage and monitor resources
-// that belong to the owning account.
-func (c *Client) AssociateIpamResourceDiscovery(ctx context.Context, params *AssociateIpamResourceDiscoveryInput, optFns ...func(*Options)) (*AssociateIpamResourceDiscoveryOutput, error) {
- if params == nil {
- params = &AssociateIpamResourceDiscoveryInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AssociateIpamResourceDiscovery", params, optFns, c.addOperationAssociateIpamResourceDiscoveryMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AssociateIpamResourceDiscoveryOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AssociateIpamResourceDiscoveryInput struct {
-
- // An IPAM ID.
- //
- // This member is required.
- IpamId *string
-
- // A resource discovery ID.
- //
- // This member is required.
- IpamResourceDiscoveryId *string
-
- // A client token.
- ClientToken *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Tag specifications.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type AssociateIpamResourceDiscoveryOutput struct {
-
- // A resource discovery association. An associated resource discovery is a
- // resource discovery that has been associated with an IPAM.
- IpamResourceDiscoveryAssociation *types.IpamResourceDiscoveryAssociation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAssociateIpamResourceDiscoveryMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateIpamResourceDiscovery{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssociateIpamResourceDiscovery{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateIpamResourceDiscovery"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opAssociateIpamResourceDiscoveryMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpAssociateIpamResourceDiscoveryValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateIpamResourceDiscovery(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpAssociateIpamResourceDiscovery struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpAssociateIpamResourceDiscovery) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpAssociateIpamResourceDiscovery) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*AssociateIpamResourceDiscoveryInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *AssociateIpamResourceDiscoveryInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opAssociateIpamResourceDiscoveryMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpAssociateIpamResourceDiscovery{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opAssociateIpamResourceDiscovery(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AssociateIpamResourceDiscovery",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateNatGatewayAddress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateNatGatewayAddress.go
deleted file mode 100644
index 3c87b06be..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateNatGatewayAddress.go
+++ /dev/null
@@ -1,195 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Associates Elastic IP addresses (EIPs) and private IPv4 addresses with a public
-// NAT gateway. For more information, see [Work with NAT gateways]in the Amazon VPC User Guide.
-//
-// By default, you can associate up to 2 Elastic IP addresses per public NAT
-// gateway. You can increase the limit by requesting a quota adjustment. For more
-// information, see [Elastic IP address quotas]in the Amazon VPC User Guide.
-//
-// When you associate an EIP or secondary EIPs with a public NAT gateway, the
-// network border group of the EIPs must match the network border group of the
-// Availability Zone (AZ) that the public NAT gateway is in. If it's not the same,
-// the EIP will fail to associate. You can see the network border group for the
-// subnet's AZ by viewing the details of the subnet. Similarly, you can view the
-// network border group of an EIP by viewing the details of the EIP address. For
-// more information about network border groups and EIPs, see [Allocate an Elastic IP address]in the Amazon VPC
-// User Guide.
-//
-// [Elastic IP address quotas]: https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html#vpc-limits-eips
-// [Work with NAT gateways]: https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-working-with.html
-// [Allocate an Elastic IP address]: https://docs.aws.amazon.com/vpc/latest/userguide/WorkWithEIPs.html
-func (c *Client) AssociateNatGatewayAddress(ctx context.Context, params *AssociateNatGatewayAddressInput, optFns ...func(*Options)) (*AssociateNatGatewayAddressOutput, error) {
- if params == nil {
- params = &AssociateNatGatewayAddressInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AssociateNatGatewayAddress", params, optFns, c.addOperationAssociateNatGatewayAddressMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AssociateNatGatewayAddressOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AssociateNatGatewayAddressInput struct {
-
- // The allocation IDs of EIPs that you want to associate with your NAT gateway.
- //
- // This member is required.
- AllocationIds []string
-
- // The ID of the NAT gateway.
- //
- // This member is required.
- NatGatewayId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The private IPv4 addresses that you want to assign to the NAT gateway.
- PrivateIpAddresses []string
-
- noSmithyDocumentSerde
-}
-
-type AssociateNatGatewayAddressOutput struct {
-
- // The IP addresses.
- NatGatewayAddresses []types.NatGatewayAddress
-
- // The ID of the NAT gateway.
- NatGatewayId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAssociateNatGatewayAddressMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateNatGatewayAddress{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssociateNatGatewayAddress{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateNatGatewayAddress"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAssociateNatGatewayAddressValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateNatGatewayAddress(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAssociateNatGatewayAddress(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AssociateNatGatewayAddress",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateRouteServer.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateRouteServer.go
deleted file mode 100644
index d12c44aab..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateRouteServer.go
+++ /dev/null
@@ -1,178 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Associates a route server with a VPC to enable dynamic route updates.
-//
-// A route server association is the connection established between a route server
-// and a VPC.
-//
-// For more information see [Dynamic routing in your VPC with VPC Route Server] in the Amazon VPC User Guide.
-//
-// [Dynamic routing in your VPC with VPC Route Server]: https://docs.aws.amazon.com/vpc/latest/userguide/dynamic-routing-route-server.html
-func (c *Client) AssociateRouteServer(ctx context.Context, params *AssociateRouteServerInput, optFns ...func(*Options)) (*AssociateRouteServerOutput, error) {
- if params == nil {
- params = &AssociateRouteServerInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AssociateRouteServer", params, optFns, c.addOperationAssociateRouteServerMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AssociateRouteServerOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AssociateRouteServerInput struct {
-
- // The unique identifier for the route server to be associated.
- //
- // This member is required.
- RouteServerId *string
-
- // The ID of the VPC to associate with the route server.
- //
- // This member is required.
- VpcId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type AssociateRouteServerOutput struct {
-
- // Information about the association between the route server and the VPC.
- RouteServerAssociation *types.RouteServerAssociation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAssociateRouteServerMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateRouteServer{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssociateRouteServer{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateRouteServer"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAssociateRouteServerValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateRouteServer(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAssociateRouteServer(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AssociateRouteServer",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateRouteTable.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateRouteTable.go
deleted file mode 100644
index a4c5941c9..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateRouteTable.go
+++ /dev/null
@@ -1,185 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Associates a subnet in your VPC or an internet gateway or virtual private
-// gateway attached to your VPC with a route table in your VPC. This association
-// causes traffic from the subnet or gateway to be routed according to the routes
-// in the route table. The action returns an association ID, which you need in
-// order to disassociate the route table later. A route table can be associated
-// with multiple subnets.
-//
-// For more information, see [Route tables] in the Amazon VPC User Guide.
-//
-// [Route tables]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html
-func (c *Client) AssociateRouteTable(ctx context.Context, params *AssociateRouteTableInput, optFns ...func(*Options)) (*AssociateRouteTableOutput, error) {
- if params == nil {
- params = &AssociateRouteTableInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AssociateRouteTable", params, optFns, c.addOperationAssociateRouteTableMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AssociateRouteTableOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AssociateRouteTableInput struct {
-
- // The ID of the route table.
- //
- // This member is required.
- RouteTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the internet gateway or virtual private gateway.
- GatewayId *string
-
- // The ID of the subnet.
- SubnetId *string
-
- noSmithyDocumentSerde
-}
-
-type AssociateRouteTableOutput struct {
-
- // The route table association ID. This ID is required for disassociating the
- // route table.
- AssociationId *string
-
- // The state of the association.
- AssociationState *types.RouteTableAssociationState
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAssociateRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateRouteTable{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssociateRouteTable{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateRouteTable"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAssociateRouteTableValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateRouteTable(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAssociateRouteTable(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AssociateRouteTable",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateSecurityGroupVpc.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateSecurityGroupVpc.go
deleted file mode 100644
index 58e8b6f05..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateSecurityGroupVpc.go
+++ /dev/null
@@ -1,185 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Associates a security group with another VPC in the same Region. This enables
-// you to use the same security group with network interfaces and instances in the
-// specified VPC.
-//
-// - The VPC you want to associate the security group with must be in the same
-// Region.
-//
-// - You can associate the security group with another VPC if your account owns
-// the VPC or if the VPC was shared with you.
-//
-// - You must own the security group.
-//
-// - You cannot use this feature with default security groups.
-//
-// - You cannot use this feature with the default VPC.
-func (c *Client) AssociateSecurityGroupVpc(ctx context.Context, params *AssociateSecurityGroupVpcInput, optFns ...func(*Options)) (*AssociateSecurityGroupVpcOutput, error) {
- if params == nil {
- params = &AssociateSecurityGroupVpcInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AssociateSecurityGroupVpc", params, optFns, c.addOperationAssociateSecurityGroupVpcMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AssociateSecurityGroupVpcOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AssociateSecurityGroupVpcInput struct {
-
- // A security group ID.
- //
- // This member is required.
- GroupId *string
-
- // A VPC ID.
- //
- // This member is required.
- VpcId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type AssociateSecurityGroupVpcOutput struct {
-
- // The state of the association.
- State types.SecurityGroupVpcAssociationState
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAssociateSecurityGroupVpcMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateSecurityGroupVpc{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssociateSecurityGroupVpc{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateSecurityGroupVpc"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAssociateSecurityGroupVpcValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateSecurityGroupVpc(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAssociateSecurityGroupVpc(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AssociateSecurityGroupVpc",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateSubnetCidrBlock.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateSubnetCidrBlock.go
deleted file mode 100644
index f14b485fa..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateSubnetCidrBlock.go
+++ /dev/null
@@ -1,173 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Associates a CIDR block with your subnet. You can only associate a single IPv6
-// CIDR block with your subnet.
-func (c *Client) AssociateSubnetCidrBlock(ctx context.Context, params *AssociateSubnetCidrBlockInput, optFns ...func(*Options)) (*AssociateSubnetCidrBlockOutput, error) {
- if params == nil {
- params = &AssociateSubnetCidrBlockInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AssociateSubnetCidrBlock", params, optFns, c.addOperationAssociateSubnetCidrBlockMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AssociateSubnetCidrBlockOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AssociateSubnetCidrBlockInput struct {
-
- // The ID of your subnet.
- //
- // This member is required.
- SubnetId *string
-
- // The IPv6 CIDR block for your subnet.
- Ipv6CidrBlock *string
-
- // An IPv6 IPAM pool ID.
- Ipv6IpamPoolId *string
-
- // An IPv6 netmask length.
- Ipv6NetmaskLength *int32
-
- noSmithyDocumentSerde
-}
-
-type AssociateSubnetCidrBlockOutput struct {
-
- // Information about the IPv6 association.
- Ipv6CidrBlockAssociation *types.SubnetIpv6CidrBlockAssociation
-
- // The ID of the subnet.
- SubnetId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAssociateSubnetCidrBlockMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateSubnetCidrBlock{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssociateSubnetCidrBlock{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateSubnetCidrBlock"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAssociateSubnetCidrBlockValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateSubnetCidrBlock(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAssociateSubnetCidrBlock(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AssociateSubnetCidrBlock",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTransitGatewayMulticastDomain.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTransitGatewayMulticastDomain.go
deleted file mode 100644
index 50f8329f9..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTransitGatewayMulticastDomain.go
+++ /dev/null
@@ -1,183 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Associates the specified subnets and transit gateway attachments with the
-// specified transit gateway multicast domain.
-//
-// The transit gateway attachment must be in the available state before you can
-// add a resource. Use [DescribeTransitGatewayAttachments]to see the state of the attachment.
-//
-// [DescribeTransitGatewayAttachments]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTransitGatewayAttachments.html
-func (c *Client) AssociateTransitGatewayMulticastDomain(ctx context.Context, params *AssociateTransitGatewayMulticastDomainInput, optFns ...func(*Options)) (*AssociateTransitGatewayMulticastDomainOutput, error) {
- if params == nil {
- params = &AssociateTransitGatewayMulticastDomainInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AssociateTransitGatewayMulticastDomain", params, optFns, c.addOperationAssociateTransitGatewayMulticastDomainMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AssociateTransitGatewayMulticastDomainOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AssociateTransitGatewayMulticastDomainInput struct {
-
- // The IDs of the subnets to associate with the transit gateway multicast domain.
- //
- // This member is required.
- SubnetIds []string
-
- // The ID of the transit gateway attachment to associate with the transit gateway
- // multicast domain.
- //
- // This member is required.
- TransitGatewayAttachmentId *string
-
- // The ID of the transit gateway multicast domain.
- //
- // This member is required.
- TransitGatewayMulticastDomainId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type AssociateTransitGatewayMulticastDomainOutput struct {
-
- // Information about the transit gateway multicast domain associations.
- Associations *types.TransitGatewayMulticastDomainAssociations
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAssociateTransitGatewayMulticastDomainMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateTransitGatewayMulticastDomain{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssociateTransitGatewayMulticastDomain{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateTransitGatewayMulticastDomain"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAssociateTransitGatewayMulticastDomainValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateTransitGatewayMulticastDomain(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAssociateTransitGatewayMulticastDomain(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AssociateTransitGatewayMulticastDomain",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTransitGatewayPolicyTable.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTransitGatewayPolicyTable.go
deleted file mode 100644
index 1629c934e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTransitGatewayPolicyTable.go
+++ /dev/null
@@ -1,174 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Associates the specified transit gateway attachment with a transit gateway
-// policy table.
-func (c *Client) AssociateTransitGatewayPolicyTable(ctx context.Context, params *AssociateTransitGatewayPolicyTableInput, optFns ...func(*Options)) (*AssociateTransitGatewayPolicyTableOutput, error) {
- if params == nil {
- params = &AssociateTransitGatewayPolicyTableInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AssociateTransitGatewayPolicyTable", params, optFns, c.addOperationAssociateTransitGatewayPolicyTableMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AssociateTransitGatewayPolicyTableOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AssociateTransitGatewayPolicyTableInput struct {
-
- // The ID of the transit gateway attachment to associate with the policy table.
- //
- // This member is required.
- TransitGatewayAttachmentId *string
-
- // The ID of the transit gateway policy table to associate with the transit
- // gateway attachment.
- //
- // This member is required.
- TransitGatewayPolicyTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type AssociateTransitGatewayPolicyTableOutput struct {
-
- // Describes the association of a transit gateway and a transit gateway policy
- // table.
- Association *types.TransitGatewayPolicyTableAssociation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAssociateTransitGatewayPolicyTableMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateTransitGatewayPolicyTable{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssociateTransitGatewayPolicyTable{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateTransitGatewayPolicyTable"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAssociateTransitGatewayPolicyTableValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateTransitGatewayPolicyTable(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAssociateTransitGatewayPolicyTable(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AssociateTransitGatewayPolicyTable",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTransitGatewayRouteTable.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTransitGatewayRouteTable.go
deleted file mode 100644
index e90872100..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTransitGatewayRouteTable.go
+++ /dev/null
@@ -1,172 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Associates the specified attachment with the specified transit gateway route
-// table. You can associate only one route table with an attachment.
-func (c *Client) AssociateTransitGatewayRouteTable(ctx context.Context, params *AssociateTransitGatewayRouteTableInput, optFns ...func(*Options)) (*AssociateTransitGatewayRouteTableOutput, error) {
- if params == nil {
- params = &AssociateTransitGatewayRouteTableInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AssociateTransitGatewayRouteTable", params, optFns, c.addOperationAssociateTransitGatewayRouteTableMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AssociateTransitGatewayRouteTableOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AssociateTransitGatewayRouteTableInput struct {
-
- // The ID of the attachment.
- //
- // This member is required.
- TransitGatewayAttachmentId *string
-
- // The ID of the transit gateway route table.
- //
- // This member is required.
- TransitGatewayRouteTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type AssociateTransitGatewayRouteTableOutput struct {
-
- // The ID of the association.
- Association *types.TransitGatewayAssociation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAssociateTransitGatewayRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateTransitGatewayRouteTable{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssociateTransitGatewayRouteTable{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateTransitGatewayRouteTable"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAssociateTransitGatewayRouteTableValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateTransitGatewayRouteTable(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAssociateTransitGatewayRouteTable(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AssociateTransitGatewayRouteTable",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTrunkInterface.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTrunkInterface.go
deleted file mode 100644
index cd0feeebb..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTrunkInterface.go
+++ /dev/null
@@ -1,232 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Associates a branch network interface with a trunk network interface.
-//
-// Before you create the association, use [CreateNetworkInterface] command and set the interface type to
-// trunk . You must also create a network interface for each branch network
-// interface that you want to associate with the trunk network interface.
-//
-// [CreateNetworkInterface]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateNetworkInterface.html
-func (c *Client) AssociateTrunkInterface(ctx context.Context, params *AssociateTrunkInterfaceInput, optFns ...func(*Options)) (*AssociateTrunkInterfaceOutput, error) {
- if params == nil {
- params = &AssociateTrunkInterfaceInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AssociateTrunkInterface", params, optFns, c.addOperationAssociateTrunkInterfaceMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AssociateTrunkInterfaceOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AssociateTrunkInterfaceInput struct {
-
- // The ID of the branch network interface.
- //
- // This member is required.
- BranchInterfaceId *string
-
- // The ID of the trunk network interface.
- //
- // This member is required.
- TrunkInterfaceId *string
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The application key. This applies to the GRE protocol.
- GreKey *int32
-
- // The ID of the VLAN. This applies to the VLAN protocol.
- VlanId *int32
-
- noSmithyDocumentSerde
-}
-
-type AssociateTrunkInterfaceOutput struct {
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Information about the association between the trunk network interface and
- // branch network interface.
- InterfaceAssociation *types.TrunkInterfaceAssociation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAssociateTrunkInterfaceMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateTrunkInterface{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssociateTrunkInterface{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateTrunkInterface"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opAssociateTrunkInterfaceMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpAssociateTrunkInterfaceValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateTrunkInterface(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpAssociateTrunkInterface struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpAssociateTrunkInterface) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpAssociateTrunkInterface) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*AssociateTrunkInterfaceInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *AssociateTrunkInterfaceInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opAssociateTrunkInterfaceMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpAssociateTrunkInterface{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opAssociateTrunkInterface(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AssociateTrunkInterface",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateVpcCidrBlock.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateVpcCidrBlock.go
deleted file mode 100644
index fe239aac7..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateVpcCidrBlock.go
+++ /dev/null
@@ -1,230 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Associates a CIDR block with your VPC. You can associate a secondary IPv4 CIDR
-// block, an Amazon-provided IPv6 CIDR block, or an IPv6 CIDR block from an IPv6
-// address pool that you provisioned through bring your own IP addresses ([BYOIP] ).
-//
-// You must specify one of the following in the request: an IPv4 CIDR block, an
-// IPv6 pool, or an Amazon-provided IPv6 CIDR block.
-//
-// For more information about associating CIDR blocks with your VPC and applicable
-// restrictions, see [IP addressing for your VPCs and subnets]in the Amazon VPC User Guide.
-//
-// [BYOIP]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html
-// [IP addressing for your VPCs and subnets]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-ip-addressing.html
-func (c *Client) AssociateVpcCidrBlock(ctx context.Context, params *AssociateVpcCidrBlockInput, optFns ...func(*Options)) (*AssociateVpcCidrBlockOutput, error) {
- if params == nil {
- params = &AssociateVpcCidrBlockInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AssociateVpcCidrBlock", params, optFns, c.addOperationAssociateVpcCidrBlockMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AssociateVpcCidrBlockOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AssociateVpcCidrBlockInput struct {
-
- // The ID of the VPC.
- //
- // This member is required.
- VpcId *string
-
- // Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the
- // VPC. You cannot specify the range of IPv6 addresses or the size of the CIDR
- // block.
- AmazonProvidedIpv6CidrBlock *bool
-
- // An IPv4 CIDR block to associate with the VPC.
- CidrBlock *string
-
- // Associate a CIDR allocated from an IPv4 IPAM pool to a VPC. For more
- // information about Amazon VPC IP Address Manager (IPAM), see [What is IPAM?]in the Amazon VPC
- // IPAM User Guide.
- //
- // [What is IPAM?]: https://docs.aws.amazon.com/vpc/latest/ipam/what-is-it-ipam.html
- Ipv4IpamPoolId *string
-
- // The netmask length of the IPv4 CIDR you would like to associate from an Amazon
- // VPC IP Address Manager (IPAM) pool. For more information about IPAM, see [What is IPAM?]in the
- // Amazon VPC IPAM User Guide.
- //
- // [What is IPAM?]: https://docs.aws.amazon.com/vpc/latest/ipam/what-is-it-ipam.html
- Ipv4NetmaskLength *int32
-
- // An IPv6 CIDR block from the IPv6 address pool. You must also specify Ipv6Pool
- // in the request.
- //
- // To let Amazon choose the IPv6 CIDR block for you, omit this parameter.
- Ipv6CidrBlock *string
-
- // The name of the location from which we advertise the IPV6 CIDR block. Use this
- // parameter to limit the CIDR block to this location.
- //
- // You must set AmazonProvidedIpv6CidrBlock to true to use this parameter.
- //
- // You can have one IPv6 CIDR block association per network border group.
- Ipv6CidrBlockNetworkBorderGroup *string
-
- // Associates a CIDR allocated from an IPv6 IPAM pool to a VPC. For more
- // information about Amazon VPC IP Address Manager (IPAM), see [What is IPAM?]in the Amazon VPC
- // IPAM User Guide.
- //
- // [What is IPAM?]: https://docs.aws.amazon.com/vpc/latest/ipam/what-is-it-ipam.html
- Ipv6IpamPoolId *string
-
- // The netmask length of the IPv6 CIDR you would like to associate from an Amazon
- // VPC IP Address Manager (IPAM) pool. For more information about IPAM, see [What is IPAM?]in the
- // Amazon VPC IPAM User Guide.
- //
- // [What is IPAM?]: https://docs.aws.amazon.com/vpc/latest/ipam/what-is-it-ipam.html
- Ipv6NetmaskLength *int32
-
- // The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block.
- Ipv6Pool *string
-
- noSmithyDocumentSerde
-}
-
-type AssociateVpcCidrBlockOutput struct {
-
- // Information about the IPv4 CIDR block association.
- CidrBlockAssociation *types.VpcCidrBlockAssociation
-
- // Information about the IPv6 CIDR block association.
- Ipv6CidrBlockAssociation *types.VpcIpv6CidrBlockAssociation
-
- // The ID of the VPC.
- VpcId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAssociateVpcCidrBlockMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateVpcCidrBlock{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssociateVpcCidrBlock{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateVpcCidrBlock"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAssociateVpcCidrBlockValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateVpcCidrBlock(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAssociateVpcCidrBlock(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AssociateVpcCidrBlock",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachClassicLinkVpc.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachClassicLinkVpc.go
deleted file mode 100644
index 8ca899fc0..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachClassicLinkVpc.go
+++ /dev/null
@@ -1,189 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// This action is deprecated.
-//
-// Links an EC2-Classic instance to a ClassicLink-enabled VPC through one or more
-// of the VPC security groups. You cannot link an EC2-Classic instance to more than
-// one VPC at a time. You can only link an instance that's in the running state.
-// An instance is automatically unlinked from a VPC when it's stopped - you can
-// link it to the VPC again when you restart it.
-//
-// After you've linked an instance, you cannot change the VPC security groups that
-// are associated with it. To change the security groups, you must first unlink the
-// instance, and then link it again.
-//
-// Linking your instance to a VPC is sometimes referred to as attaching your
-// instance.
-func (c *Client) AttachClassicLinkVpc(ctx context.Context, params *AttachClassicLinkVpcInput, optFns ...func(*Options)) (*AttachClassicLinkVpcOutput, error) {
- if params == nil {
- params = &AttachClassicLinkVpcInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AttachClassicLinkVpc", params, optFns, c.addOperationAttachClassicLinkVpcMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AttachClassicLinkVpcOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AttachClassicLinkVpcInput struct {
-
- // The IDs of the security groups. You cannot specify security groups from a
- // different VPC.
- //
- // This member is required.
- Groups []string
-
- // The ID of the EC2-Classic instance.
- //
- // This member is required.
- InstanceId *string
-
- // The ID of the ClassicLink-enabled VPC.
- //
- // This member is required.
- VpcId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type AttachClassicLinkVpcOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAttachClassicLinkVpcMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAttachClassicLinkVpc{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAttachClassicLinkVpc{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AttachClassicLinkVpc"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAttachClassicLinkVpcValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAttachClassicLinkVpc(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAttachClassicLinkVpc(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AttachClassicLinkVpc",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachInternetGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachInternetGateway.go
deleted file mode 100644
index e6ff7ecb2..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachInternetGateway.go
+++ /dev/null
@@ -1,170 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Attaches an internet gateway or a virtual private gateway to a VPC, enabling
-// connectivity between the internet and the VPC. For more information, see [Internet gateways]in the
-// Amazon VPC User Guide.
-//
-// [Internet gateways]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Internet_Gateway.html
-func (c *Client) AttachInternetGateway(ctx context.Context, params *AttachInternetGatewayInput, optFns ...func(*Options)) (*AttachInternetGatewayOutput, error) {
- if params == nil {
- params = &AttachInternetGatewayInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AttachInternetGateway", params, optFns, c.addOperationAttachInternetGatewayMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AttachInternetGatewayOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AttachInternetGatewayInput struct {
-
- // The ID of the internet gateway.
- //
- // This member is required.
- InternetGatewayId *string
-
- // The ID of the VPC.
- //
- // This member is required.
- VpcId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type AttachInternetGatewayOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAttachInternetGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAttachInternetGateway{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAttachInternetGateway{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AttachInternetGateway"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAttachInternetGatewayValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAttachInternetGateway(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAttachInternetGateway(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AttachInternetGateway",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachNetworkInterface.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachNetworkInterface.go
deleted file mode 100644
index 6f8f18a70..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachNetworkInterface.go
+++ /dev/null
@@ -1,193 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Attaches a network interface to an instance.
-func (c *Client) AttachNetworkInterface(ctx context.Context, params *AttachNetworkInterfaceInput, optFns ...func(*Options)) (*AttachNetworkInterfaceOutput, error) {
- if params == nil {
- params = &AttachNetworkInterfaceInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AttachNetworkInterface", params, optFns, c.addOperationAttachNetworkInterfaceMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AttachNetworkInterfaceOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for AttachNetworkInterface.
-type AttachNetworkInterfaceInput struct {
-
- // The index of the device for the network interface attachment.
- //
- // This member is required.
- DeviceIndex *int32
-
- // The ID of the instance.
- //
- // This member is required.
- InstanceId *string
-
- // The ID of the network interface.
- //
- // This member is required.
- NetworkInterfaceId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The number of ENA queues to be created with the instance.
- EnaQueueCount *int32
-
- // Configures ENA Express for the network interface that this action attaches to
- // the instance.
- EnaSrdSpecification *types.EnaSrdSpecification
-
- // The index of the network card. Some instance types support multiple network
- // cards. The primary network interface must be assigned to network card index 0.
- // The default is network card index 0.
- NetworkCardIndex *int32
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of AttachNetworkInterface.
-type AttachNetworkInterfaceOutput struct {
-
- // The ID of the network interface attachment.
- AttachmentId *string
-
- // The index of the network card.
- NetworkCardIndex *int32
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAttachNetworkInterfaceMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAttachNetworkInterface{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAttachNetworkInterface{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AttachNetworkInterface"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAttachNetworkInterfaceValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAttachNetworkInterface(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAttachNetworkInterface(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AttachNetworkInterface",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachVerifiedAccessTrustProvider.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachVerifiedAccessTrustProvider.go
deleted file mode 100644
index 9e32f0ce6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachVerifiedAccessTrustProvider.go
+++ /dev/null
@@ -1,217 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Attaches the specified Amazon Web Services Verified Access trust provider to
-// the specified Amazon Web Services Verified Access instance.
-func (c *Client) AttachVerifiedAccessTrustProvider(ctx context.Context, params *AttachVerifiedAccessTrustProviderInput, optFns ...func(*Options)) (*AttachVerifiedAccessTrustProviderOutput, error) {
- if params == nil {
- params = &AttachVerifiedAccessTrustProviderInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AttachVerifiedAccessTrustProvider", params, optFns, c.addOperationAttachVerifiedAccessTrustProviderMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AttachVerifiedAccessTrustProviderOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AttachVerifiedAccessTrustProviderInput struct {
-
- // The ID of the Verified Access instance.
- //
- // This member is required.
- VerifiedAccessInstanceId *string
-
- // The ID of the Verified Access trust provider.
- //
- // This member is required.
- VerifiedAccessTrustProviderId *string
-
- // A unique, case-sensitive token that you provide to ensure idempotency of your
- // modification request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type AttachVerifiedAccessTrustProviderOutput struct {
-
- // Details about the Verified Access instance.
- VerifiedAccessInstance *types.VerifiedAccessInstance
-
- // Details about the Verified Access trust provider.
- VerifiedAccessTrustProvider *types.VerifiedAccessTrustProvider
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAttachVerifiedAccessTrustProviderMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAttachVerifiedAccessTrustProvider{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAttachVerifiedAccessTrustProvider{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AttachVerifiedAccessTrustProvider"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opAttachVerifiedAccessTrustProviderMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpAttachVerifiedAccessTrustProviderValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAttachVerifiedAccessTrustProvider(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpAttachVerifiedAccessTrustProvider struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpAttachVerifiedAccessTrustProvider) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpAttachVerifiedAccessTrustProvider) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*AttachVerifiedAccessTrustProviderInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *AttachVerifiedAccessTrustProviderInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opAttachVerifiedAccessTrustProviderMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpAttachVerifiedAccessTrustProvider{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opAttachVerifiedAccessTrustProvider(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AttachVerifiedAccessTrustProvider",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachVolume.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachVolume.go
deleted file mode 100644
index 406566994..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachVolume.go
+++ /dev/null
@@ -1,239 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Attaches an Amazon EBS volume to a running or stopped instance, and exposes it
-// to the instance with the specified device name.
-//
-// The maximum number of Amazon EBS volumes that you can attach to an instance
-// depends on the instance type. If you exceed the volume attachment limit for an
-// instance type, the attachment request fails with the AttachmentLimitExceeded
-// error. For more information, see [Instance volume limits].
-//
-// After you attach an EBS volume, you must make it available for use. For more
-// information, see [Make an EBS volume available for use].
-//
-// If a volume has an Amazon Web Services Marketplace product code:
-//
-// - The volume can be attached only to a stopped instance.
-//
-// - Amazon Web Services Marketplace product codes are copied from the volume to
-// the instance.
-//
-// - You must be subscribed to the product.
-//
-// - The instance type and operating system of the instance must support the
-// product. For example, you can't detach a volume from a Windows instance and
-// attach it to a Linux instance.
-//
-// For more information, see [Attach an Amazon EBS volume to an instance] in the Amazon EBS User Guide.
-//
-// [Make an EBS volume available for use]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-using-volumes.html
-// [Attach an Amazon EBS volume to an instance]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-attaching-volume.html
-// [Instance volume limits]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/volume_limits.html
-func (c *Client) AttachVolume(ctx context.Context, params *AttachVolumeInput, optFns ...func(*Options)) (*AttachVolumeOutput, error) {
- if params == nil {
- params = &AttachVolumeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AttachVolume", params, optFns, c.addOperationAttachVolumeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AttachVolumeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AttachVolumeInput struct {
-
- // The device name (for example, /dev/sdh or xvdh ).
- //
- // This member is required.
- Device *string
-
- // The ID of the instance.
- //
- // This member is required.
- InstanceId *string
-
- // The ID of the EBS volume. The volume and instance must be within the same
- // Availability Zone.
- //
- // This member is required.
- VolumeId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-// Describes volume attachment details.
-type AttachVolumeOutput struct {
-
- // The ARN of the Amazon Web Services-managed resource to which the volume is
- // attached.
- AssociatedResource *string
-
- // The time stamp when the attachment initiated.
- AttachTime *time.Time
-
- // Indicates whether the EBS volume is deleted on instance termination.
- DeleteOnTermination *bool
-
- // The device name.
- //
- // If the volume is attached to an Amazon Web Services-managed resource, this
- // parameter returns null .
- Device *string
-
- // The ID of the instance.
- //
- // If the volume is attached to an Amazon Web Services-managed resource, this
- // parameter returns null .
- InstanceId *string
-
- // The service principal of the Amazon Web Services service that owns the
- // underlying resource to which the volume is attached.
- //
- // This parameter is returned only for volumes that are attached to Amazon Web
- // Services-managed resources.
- InstanceOwningService *string
-
- // The attachment state of the volume.
- State types.VolumeAttachmentState
-
- // The ID of the volume.
- VolumeId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAttachVolumeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAttachVolume{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAttachVolume{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AttachVolume"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAttachVolumeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAttachVolume(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAttachVolume(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AttachVolume",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachVpnGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachVpnGateway.go
deleted file mode 100644
index 12b106367..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachVpnGateway.go
+++ /dev/null
@@ -1,179 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Attaches an available virtual private gateway to a VPC. You can attach one
-// virtual private gateway to one VPC at a time.
-//
-// For more information, see [Amazon Web Services Site-to-Site VPN] in the Amazon Web Services Site-to-Site VPN User
-// Guide.
-//
-// [Amazon Web Services Site-to-Site VPN]: https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html
-func (c *Client) AttachVpnGateway(ctx context.Context, params *AttachVpnGatewayInput, optFns ...func(*Options)) (*AttachVpnGatewayOutput, error) {
- if params == nil {
- params = &AttachVpnGatewayInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AttachVpnGateway", params, optFns, c.addOperationAttachVpnGatewayMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AttachVpnGatewayOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for AttachVpnGateway.
-type AttachVpnGatewayInput struct {
-
- // The ID of the VPC.
- //
- // This member is required.
- VpcId *string
-
- // The ID of the virtual private gateway.
- //
- // This member is required.
- VpnGatewayId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of AttachVpnGateway.
-type AttachVpnGatewayOutput struct {
-
- // Information about the attachment.
- VpcAttachment *types.VpcAttachment
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAttachVpnGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAttachVpnGateway{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAttachVpnGateway{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AttachVpnGateway"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAttachVpnGatewayValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAttachVpnGateway(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAttachVpnGateway(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AttachVpnGateway",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeClientVpnIngress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeClientVpnIngress.go
deleted file mode 100644
index 66d3cbf1f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeClientVpnIngress.go
+++ /dev/null
@@ -1,230 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Adds an ingress authorization rule to a Client VPN endpoint. Ingress
-// authorization rules act as firewall rules that grant access to networks. You
-// must configure ingress authorization rules to enable clients to access resources
-// in Amazon Web Services or on-premises networks.
-func (c *Client) AuthorizeClientVpnIngress(ctx context.Context, params *AuthorizeClientVpnIngressInput, optFns ...func(*Options)) (*AuthorizeClientVpnIngressOutput, error) {
- if params == nil {
- params = &AuthorizeClientVpnIngressInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AuthorizeClientVpnIngress", params, optFns, c.addOperationAuthorizeClientVpnIngressMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AuthorizeClientVpnIngressOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AuthorizeClientVpnIngressInput struct {
-
- // The ID of the Client VPN endpoint.
- //
- // This member is required.
- ClientVpnEndpointId *string
-
- // The IPv4 address range, in CIDR notation, of the network for which access is
- // being authorized.
- //
- // This member is required.
- TargetNetworkCidr *string
-
- // The ID of the group to grant access to, for example, the Active Directory group
- // or identity provider (IdP) group. Required if AuthorizeAllGroups is false or
- // not specified.
- AccessGroupId *string
-
- // Indicates whether to grant access to all clients. Specify true to grant all
- // clients who successfully establish a VPN connection access to the network. Must
- // be set to true if AccessGroupId is not specified.
- AuthorizeAllGroups *bool
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // A brief description of the authorization rule.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type AuthorizeClientVpnIngressOutput struct {
-
- // The current state of the authorization rule.
- Status *types.ClientVpnAuthorizationRuleStatus
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAuthorizeClientVpnIngressMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAuthorizeClientVpnIngress{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAuthorizeClientVpnIngress{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AuthorizeClientVpnIngress"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opAuthorizeClientVpnIngressMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpAuthorizeClientVpnIngressValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAuthorizeClientVpnIngress(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpAuthorizeClientVpnIngress struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpAuthorizeClientVpnIngress) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpAuthorizeClientVpnIngress) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*AuthorizeClientVpnIngressInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *AuthorizeClientVpnIngressInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opAuthorizeClientVpnIngressMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpAuthorizeClientVpnIngress{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opAuthorizeClientVpnIngress(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AuthorizeClientVpnIngress",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeSecurityGroupEgress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeSecurityGroupEgress.go
deleted file mode 100644
index 4519480d0..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeSecurityGroupEgress.go
+++ /dev/null
@@ -1,216 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Adds the specified outbound (egress) rules to a security group.
-//
-// An outbound rule permits instances to send traffic to the specified IPv4 or
-// IPv6 address ranges, the IP address ranges specified by a prefix list, or the
-// instances that are associated with a source security group. For more
-// information, see [Security group rules].
-//
-// You must specify exactly one of the following destinations: an IPv4 or IPv6
-// address range, a prefix list, or a security group. You must specify a protocol
-// for each rule (for example, TCP). If the protocol is TCP or UDP, you must also
-// specify a port or port range. If the protocol is ICMP or ICMPv6, you must also
-// specify the ICMP type and code.
-//
-// Rule changes are propagated to instances associated with the security group as
-// quickly as possible. However, a small delay might occur.
-//
-// For examples of rules that you can add to security groups for specific access
-// scenarios, see [Security group rules for different use cases]in the Amazon EC2 User Guide.
-//
-// For information about security group quotas, see [Amazon VPC quotas] in the Amazon VPC User Guide.
-//
-// [Amazon VPC quotas]: https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html
-// [Security group rules]: https://docs.aws.amazon.com/vpc/latest/userguide/security-group-rules.html
-// [Security group rules for different use cases]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/security-group-rules-reference.html
-func (c *Client) AuthorizeSecurityGroupEgress(ctx context.Context, params *AuthorizeSecurityGroupEgressInput, optFns ...func(*Options)) (*AuthorizeSecurityGroupEgressOutput, error) {
- if params == nil {
- params = &AuthorizeSecurityGroupEgressInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AuthorizeSecurityGroupEgress", params, optFns, c.addOperationAuthorizeSecurityGroupEgressMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AuthorizeSecurityGroupEgressOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AuthorizeSecurityGroupEgressInput struct {
-
- // The ID of the security group.
- //
- // This member is required.
- GroupId *string
-
- // Not supported. Use IP permissions instead.
- CidrIp *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Not supported. Use IP permissions instead.
- FromPort *int32
-
- // The permissions for the security group rules.
- IpPermissions []types.IpPermission
-
- // Not supported. Use IP permissions instead.
- IpProtocol *string
-
- // Not supported. Use IP permissions instead.
- SourceSecurityGroupName *string
-
- // Not supported. Use IP permissions instead.
- SourceSecurityGroupOwnerId *string
-
- // The tags applied to the security group rule.
- TagSpecifications []types.TagSpecification
-
- // Not supported. Use IP permissions instead.
- ToPort *int32
-
- noSmithyDocumentSerde
-}
-
-type AuthorizeSecurityGroupEgressOutput struct {
-
- // Returns true if the request succeeds; otherwise, returns an error.
- Return *bool
-
- // Information about the outbound (egress) security group rules that were added.
- SecurityGroupRules []types.SecurityGroupRule
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAuthorizeSecurityGroupEgressMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAuthorizeSecurityGroupEgress{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAuthorizeSecurityGroupEgress{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AuthorizeSecurityGroupEgress"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpAuthorizeSecurityGroupEgressValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAuthorizeSecurityGroupEgress(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAuthorizeSecurityGroupEgress(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AuthorizeSecurityGroupEgress",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeSecurityGroupIngress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeSecurityGroupIngress.go
deleted file mode 100644
index a0ebe5ede..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeSecurityGroupIngress.go
+++ /dev/null
@@ -1,261 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Adds the specified inbound (ingress) rules to a security group.
-//
-// An inbound rule permits instances to receive traffic from the specified IPv4 or
-// IPv6 address range, the IP address ranges that are specified by a prefix list,
-// or the instances that are associated with a destination security group. For more
-// information, see [Security group rules].
-//
-// You must specify exactly one of the following sources: an IPv4 or IPv6 address
-// range, a prefix list, or a security group. You must specify a protocol for each
-// rule (for example, TCP). If the protocol is TCP or UDP, you must also specify a
-// port or port range. If the protocol is ICMP or ICMPv6, you must also specify the
-// ICMP/ICMPv6 type and code.
-//
-// Rule changes are propagated to instances associated with the security group as
-// quickly as possible. However, a small delay might occur.
-//
-// For examples of rules that you can add to security groups for specific access
-// scenarios, see [Security group rules for different use cases]in the Amazon EC2 User Guide.
-//
-// For more information about security group quotas, see [Amazon VPC quotas] in the Amazon VPC User
-// Guide.
-//
-// [Amazon VPC quotas]: https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html
-// [Security group rules]: https://docs.aws.amazon.com/vpc/latest/userguide/security-group-rules.html
-// [Security group rules for different use cases]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/security-group-rules-reference.html
-func (c *Client) AuthorizeSecurityGroupIngress(ctx context.Context, params *AuthorizeSecurityGroupIngressInput, optFns ...func(*Options)) (*AuthorizeSecurityGroupIngressOutput, error) {
- if params == nil {
- params = &AuthorizeSecurityGroupIngressInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "AuthorizeSecurityGroupIngress", params, optFns, c.addOperationAuthorizeSecurityGroupIngressMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*AuthorizeSecurityGroupIngressOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type AuthorizeSecurityGroupIngressInput struct {
-
- // The IPv4 address range, in CIDR format.
- //
- // Amazon Web Services [canonicalizes] IPv4 and IPv6 CIDRs. For example, if you specify
- // 100.68.0.18/18 for the CIDR block, Amazon Web Services canonicalizes the CIDR
- // block to 100.68.0.0/18. Any subsequent DescribeSecurityGroups and
- // DescribeSecurityGroupRules calls will return the canonicalized form of the CIDR
- // block. Additionally, if you attempt to add another rule with the non-canonical
- // form of the CIDR (such as 100.68.0.18/18) and there is already a rule for the
- // canonicalized form of the CIDR block (such as 100.68.0.0/18), the API throws an
- // duplicate rule error.
- //
- // To specify an IPv6 address range, use IP permissions instead.
- //
- // To specify multiple rules and descriptions for the rules, use IP permissions
- // instead.
- //
- // [canonicalizes]: https://en.wikipedia.org/wiki/Canonicalization
- CidrIp *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // If the protocol is TCP or UDP, this is the start of the port range. If the
- // protocol is ICMP, this is the ICMP type or -1 (all ICMP types).
- //
- // To specify multiple rules and descriptions for the rules, use IP permissions
- // instead.
- FromPort *int32
-
- // The ID of the security group.
- GroupId *string
-
- // [Default VPC] The name of the security group. For security groups for a default
- // VPC you can specify either the ID or the name of the security group. For
- // security groups for a nondefault VPC, you must specify the ID of the security
- // group.
- GroupName *string
-
- // The permissions for the security group rules.
- IpPermissions []types.IpPermission
-
- // The IP protocol name ( tcp , udp , icmp ) or number (see [Protocol Numbers]). To specify all
- // protocols, use -1 .
- //
- // To specify icmpv6 , use IP permissions instead.
- //
- // If you specify a protocol other than one of the supported values, traffic is
- // allowed on all ports, regardless of any ports that you specify.
- //
- // To specify multiple rules and descriptions for the rules, use IP permissions
- // instead.
- //
- // [Protocol Numbers]: http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
- IpProtocol *string
-
- // [Default VPC] The name of the source security group.
- //
- // The rule grants full ICMP, UDP, and TCP access. To create a rule with a
- // specific protocol and port range, specify a set of IP permissions instead.
- SourceSecurityGroupName *string
-
- // The Amazon Web Services account ID for the source security group, if the source
- // security group is in a different account.
- //
- // The rule grants full ICMP, UDP, and TCP access. To create a rule with a
- // specific protocol and port range, use IP permissions instead.
- SourceSecurityGroupOwnerId *string
-
- // The tags applied to the security group rule.
- TagSpecifications []types.TagSpecification
-
- // If the protocol is TCP or UDP, this is the end of the port range. If the
- // protocol is ICMP, this is the ICMP code or -1 (all ICMP codes). If the start
- // port is -1 (all ICMP types), then the end port must be -1 (all ICMP codes).
- //
- // To specify multiple rules and descriptions for the rules, use IP permissions
- // instead.
- ToPort *int32
-
- noSmithyDocumentSerde
-}
-
-type AuthorizeSecurityGroupIngressOutput struct {
-
- // Returns true if the request succeeds; otherwise, returns an error.
- Return *bool
-
- // Information about the inbound (ingress) security group rules that were added.
- SecurityGroupRules []types.SecurityGroupRule
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationAuthorizeSecurityGroupIngressMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpAuthorizeSecurityGroupIngress{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpAuthorizeSecurityGroupIngress{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "AuthorizeSecurityGroupIngress"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAuthorizeSecurityGroupIngress(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opAuthorizeSecurityGroupIngress(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "AuthorizeSecurityGroupIngress",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_BundleInstance.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_BundleInstance.go
deleted file mode 100644
index 532ab269f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_BundleInstance.go
+++ /dev/null
@@ -1,183 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Bundles an Amazon instance store-backed Windows instance.
-//
-// During bundling, only the root device volume (C:\) is bundled. Data on other
-// instance store volumes is not preserved.
-//
-// This action is not applicable for Linux/Unix instances or Windows instances
-// that are backed by Amazon EBS.
-func (c *Client) BundleInstance(ctx context.Context, params *BundleInstanceInput, optFns ...func(*Options)) (*BundleInstanceOutput, error) {
- if params == nil {
- params = &BundleInstanceInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "BundleInstance", params, optFns, c.addOperationBundleInstanceMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*BundleInstanceOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for BundleInstance.
-type BundleInstanceInput struct {
-
- // The ID of the instance to bundle.
- //
- // Default: None
- //
- // This member is required.
- InstanceId *string
-
- // The bucket in which to store the AMI. You can specify a bucket that you already
- // own or a new bucket that Amazon EC2 creates on your behalf. If you specify a
- // bucket that belongs to someone else, Amazon EC2 returns an error.
- //
- // This member is required.
- Storage *types.Storage
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of BundleInstance.
-type BundleInstanceOutput struct {
-
- // Information about the bundle task.
- BundleTask *types.BundleTask
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationBundleInstanceMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpBundleInstance{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpBundleInstance{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "BundleInstance"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpBundleInstanceValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opBundleInstance(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opBundleInstance(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "BundleInstance",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelBundleTask.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelBundleTask.go
deleted file mode 100644
index 7393864c1..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelBundleTask.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Cancels a bundling operation for an instance store-backed Windows instance.
-func (c *Client) CancelBundleTask(ctx context.Context, params *CancelBundleTaskInput, optFns ...func(*Options)) (*CancelBundleTaskOutput, error) {
- if params == nil {
- params = &CancelBundleTaskInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CancelBundleTask", params, optFns, c.addOperationCancelBundleTaskMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CancelBundleTaskOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for CancelBundleTask.
-type CancelBundleTaskInput struct {
-
- // The ID of the bundle task.
- //
- // This member is required.
- BundleId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of CancelBundleTask.
-type CancelBundleTaskOutput struct {
-
- // Information about the bundle task.
- BundleTask *types.BundleTask
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCancelBundleTaskMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCancelBundleTask{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCancelBundleTask{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CancelBundleTask"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCancelBundleTaskValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCancelBundleTask(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCancelBundleTask(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CancelBundleTask",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelCapacityReservation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelCapacityReservation.go
deleted file mode 100644
index ae5819686..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelCapacityReservation.go
+++ /dev/null
@@ -1,187 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Cancels the specified Capacity Reservation, releases the reserved capacity, and
-// changes the Capacity Reservation's state to cancelled .
-//
-// You can cancel a Capacity Reservation that is in the following states:
-//
-// - assessing
-//
-// - active and there is no commitment duration or the commitment duration has
-// elapsed. You can't cancel a future-dated Capacity Reservation during the
-// commitment duration.
-//
-// You can't modify or cancel a Capacity Block. For more information, see [Capacity Blocks for ML].
-//
-// If a future-dated Capacity Reservation enters the delayed state, the commitment
-// duration is waived, and you can cancel it as soon as it enters the active state.
-//
-// Instances running in the reserved capacity continue running until you stop
-// them. Stopped instances that target the Capacity Reservation can no longer
-// launch. Modify these instances to either target a different Capacity
-// Reservation, launch On-Demand Instance capacity, or run in any open Capacity
-// Reservation that has matching attributes and sufficient capacity.
-//
-// [Capacity Blocks for ML]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-blocks.html
-func (c *Client) CancelCapacityReservation(ctx context.Context, params *CancelCapacityReservationInput, optFns ...func(*Options)) (*CancelCapacityReservationOutput, error) {
- if params == nil {
- params = &CancelCapacityReservationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CancelCapacityReservation", params, optFns, c.addOperationCancelCapacityReservationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CancelCapacityReservationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CancelCapacityReservationInput struct {
-
- // The ID of the Capacity Reservation to be cancelled.
- //
- // This member is required.
- CapacityReservationId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type CancelCapacityReservationOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCancelCapacityReservationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCancelCapacityReservation{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCancelCapacityReservation{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CancelCapacityReservation"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCancelCapacityReservationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCancelCapacityReservation(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCancelCapacityReservation(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CancelCapacityReservation",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelCapacityReservationFleets.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelCapacityReservationFleets.go
deleted file mode 100644
index 9e9a61dc2..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelCapacityReservationFleets.go
+++ /dev/null
@@ -1,179 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Cancels one or more Capacity Reservation Fleets. When you cancel a Capacity
-// Reservation Fleet, the following happens:
-//
-// - The Capacity Reservation Fleet's status changes to cancelled .
-//
-// - The individual Capacity Reservations in the Fleet are cancelled. Instances
-// running in the Capacity Reservations at the time of cancelling the Fleet
-// continue to run in shared capacity.
-//
-// - The Fleet stops creating new Capacity Reservations.
-func (c *Client) CancelCapacityReservationFleets(ctx context.Context, params *CancelCapacityReservationFleetsInput, optFns ...func(*Options)) (*CancelCapacityReservationFleetsOutput, error) {
- if params == nil {
- params = &CancelCapacityReservationFleetsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CancelCapacityReservationFleets", params, optFns, c.addOperationCancelCapacityReservationFleetsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CancelCapacityReservationFleetsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CancelCapacityReservationFleetsInput struct {
-
- // The IDs of the Capacity Reservation Fleets to cancel.
- //
- // This member is required.
- CapacityReservationFleetIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type CancelCapacityReservationFleetsOutput struct {
-
- // Information about the Capacity Reservation Fleets that could not be cancelled.
- FailedFleetCancellations []types.FailedCapacityReservationFleetCancellationResult
-
- // Information about the Capacity Reservation Fleets that were successfully
- // cancelled.
- SuccessfulFleetCancellations []types.CapacityReservationFleetCancellationState
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCancelCapacityReservationFleetsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCancelCapacityReservationFleets{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCancelCapacityReservationFleets{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CancelCapacityReservationFleets"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCancelCapacityReservationFleetsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCancelCapacityReservationFleets(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCancelCapacityReservationFleets(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CancelCapacityReservationFleets",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelConversionTask.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelConversionTask.go
deleted file mode 100644
index 663dfefff..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelConversionTask.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Cancels an active conversion task. The task can be the import of an instance or
-// volume. The action removes all artifacts of the conversion, including a
-// partially uploaded volume or instance. If the conversion is complete or is in
-// the process of transferring the final disk image, the command fails and returns
-// an exception.
-func (c *Client) CancelConversionTask(ctx context.Context, params *CancelConversionTaskInput, optFns ...func(*Options)) (*CancelConversionTaskOutput, error) {
- if params == nil {
- params = &CancelConversionTaskInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CancelConversionTask", params, optFns, c.addOperationCancelConversionTaskMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CancelConversionTaskOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CancelConversionTaskInput struct {
-
- // The ID of the conversion task.
- //
- // This member is required.
- ConversionTaskId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The reason for canceling the conversion task.
- ReasonMessage *string
-
- noSmithyDocumentSerde
-}
-
-type CancelConversionTaskOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCancelConversionTaskMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCancelConversionTask{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCancelConversionTask{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CancelConversionTask"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCancelConversionTaskValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCancelConversionTask(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCancelConversionTask(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CancelConversionTask",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelDeclarativePoliciesReport.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelDeclarativePoliciesReport.go
deleted file mode 100644
index f720038a4..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelDeclarativePoliciesReport.go
+++ /dev/null
@@ -1,172 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Cancels the generation of an account status report.
-//
-// You can only cancel a report while it has the running status. Reports with
-// other statuses ( complete , cancelled , or error ) can't be canceled.
-//
-// For more information, see [Generating the account status report for declarative policies] in the Amazon Web Services Organizations User Guide.
-//
-// [Generating the account status report for declarative policies]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative_status-report.html
-func (c *Client) CancelDeclarativePoliciesReport(ctx context.Context, params *CancelDeclarativePoliciesReportInput, optFns ...func(*Options)) (*CancelDeclarativePoliciesReportOutput, error) {
- if params == nil {
- params = &CancelDeclarativePoliciesReportInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CancelDeclarativePoliciesReport", params, optFns, c.addOperationCancelDeclarativePoliciesReportMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CancelDeclarativePoliciesReportOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CancelDeclarativePoliciesReportInput struct {
-
- // The ID of the report.
- //
- // This member is required.
- ReportId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type CancelDeclarativePoliciesReportOutput struct {
-
- // Is true if the request succeeds, and an error otherwise.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCancelDeclarativePoliciesReportMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCancelDeclarativePoliciesReport{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCancelDeclarativePoliciesReport{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CancelDeclarativePoliciesReport"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCancelDeclarativePoliciesReportValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCancelDeclarativePoliciesReport(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCancelDeclarativePoliciesReport(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CancelDeclarativePoliciesReport",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelExportTask.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelExportTask.go
deleted file mode 100644
index 7be8de075..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelExportTask.go
+++ /dev/null
@@ -1,159 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Cancels an active export task. The request removes all artifacts of the export,
-// including any partially-created Amazon S3 objects. If the export task is
-// complete or is in the process of transferring the final disk image, the command
-// fails and returns an error.
-func (c *Client) CancelExportTask(ctx context.Context, params *CancelExportTaskInput, optFns ...func(*Options)) (*CancelExportTaskOutput, error) {
- if params == nil {
- params = &CancelExportTaskInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CancelExportTask", params, optFns, c.addOperationCancelExportTaskMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CancelExportTaskOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CancelExportTaskInput struct {
-
- // The ID of the export task. This is the ID returned by the
- // CreateInstanceExportTask and ExportImage operations.
- //
- // This member is required.
- ExportTaskId *string
-
- noSmithyDocumentSerde
-}
-
-type CancelExportTaskOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCancelExportTaskMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCancelExportTask{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCancelExportTask{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CancelExportTask"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCancelExportTaskValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCancelExportTask(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCancelExportTask(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CancelExportTask",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelImageLaunchPermission.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelImageLaunchPermission.go
deleted file mode 100644
index 6f1767050..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelImageLaunchPermission.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Removes your Amazon Web Services account from the launch permissions for the
-// specified AMI. For more information, see [Cancel having an AMI shared with your Amazon Web Services account]in the Amazon EC2 User Guide.
-//
-// [Cancel having an AMI shared with your Amazon Web Services account]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/cancel-sharing-an-AMI.html
-func (c *Client) CancelImageLaunchPermission(ctx context.Context, params *CancelImageLaunchPermissionInput, optFns ...func(*Options)) (*CancelImageLaunchPermissionOutput, error) {
- if params == nil {
- params = &CancelImageLaunchPermissionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CancelImageLaunchPermission", params, optFns, c.addOperationCancelImageLaunchPermissionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CancelImageLaunchPermissionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CancelImageLaunchPermissionInput struct {
-
- // The ID of the AMI that was shared with your Amazon Web Services account.
- //
- // This member is required.
- ImageId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type CancelImageLaunchPermissionOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCancelImageLaunchPermissionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCancelImageLaunchPermission{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCancelImageLaunchPermission{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CancelImageLaunchPermission"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCancelImageLaunchPermissionValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCancelImageLaunchPermission(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCancelImageLaunchPermission(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CancelImageLaunchPermission",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelImportTask.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelImportTask.go
deleted file mode 100644
index 935fa60e6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelImportTask.go
+++ /dev/null
@@ -1,169 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Cancels an in-process import virtual machine or import snapshot task.
-func (c *Client) CancelImportTask(ctx context.Context, params *CancelImportTaskInput, optFns ...func(*Options)) (*CancelImportTaskOutput, error) {
- if params == nil {
- params = &CancelImportTaskInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CancelImportTask", params, optFns, c.addOperationCancelImportTaskMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CancelImportTaskOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CancelImportTaskInput struct {
-
- // The reason for canceling the task.
- CancelReason *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the import image or import snapshot task to be canceled.
- ImportTaskId *string
-
- noSmithyDocumentSerde
-}
-
-type CancelImportTaskOutput struct {
-
- // The ID of the task being canceled.
- ImportTaskId *string
-
- // The current state of the task being canceled.
- PreviousState *string
-
- // The current state of the task being canceled.
- State *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCancelImportTaskMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCancelImportTask{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCancelImportTask{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CancelImportTask"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCancelImportTask(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCancelImportTask(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CancelImportTask",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelReservedInstancesListing.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelReservedInstancesListing.go
deleted file mode 100644
index 8c410d673..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelReservedInstancesListing.go
+++ /dev/null
@@ -1,167 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Cancels the specified Reserved Instance listing in the Reserved Instance
-// Marketplace.
-//
-// For more information, see [Sell in the Reserved Instance Marketplace] in the Amazon EC2 User Guide.
-//
-// [Sell in the Reserved Instance Marketplace]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html
-func (c *Client) CancelReservedInstancesListing(ctx context.Context, params *CancelReservedInstancesListingInput, optFns ...func(*Options)) (*CancelReservedInstancesListingOutput, error) {
- if params == nil {
- params = &CancelReservedInstancesListingInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CancelReservedInstancesListing", params, optFns, c.addOperationCancelReservedInstancesListingMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CancelReservedInstancesListingOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for CancelReservedInstancesListing.
-type CancelReservedInstancesListingInput struct {
-
- // The ID of the Reserved Instance listing.
- //
- // This member is required.
- ReservedInstancesListingId *string
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of CancelReservedInstancesListing.
-type CancelReservedInstancesListingOutput struct {
-
- // The Reserved Instance listing.
- ReservedInstancesListings []types.ReservedInstancesListing
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCancelReservedInstancesListingMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCancelReservedInstancesListing{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCancelReservedInstancesListing{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CancelReservedInstancesListing"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCancelReservedInstancesListingValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCancelReservedInstancesListing(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCancelReservedInstancesListing(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CancelReservedInstancesListing",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelSpotFleetRequests.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelSpotFleetRequests.go
deleted file mode 100644
index c95478771..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelSpotFleetRequests.go
+++ /dev/null
@@ -1,195 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Cancels the specified Spot Fleet requests.
-//
-// After you cancel a Spot Fleet request, the Spot Fleet launches no new instances.
-//
-// You must also specify whether a canceled Spot Fleet request should terminate
-// its instances. If you choose to terminate the instances, the Spot Fleet request
-// enters the cancelled_terminating state. Otherwise, the Spot Fleet request
-// enters the cancelled_running state and the instances continue to run until they
-// are interrupted or you terminate them manually.
-//
-// Restrictions
-//
-// - You can delete up to 100 fleets in a single request. If you exceed the
-// specified number, no fleets are deleted.
-func (c *Client) CancelSpotFleetRequests(ctx context.Context, params *CancelSpotFleetRequestsInput, optFns ...func(*Options)) (*CancelSpotFleetRequestsOutput, error) {
- if params == nil {
- params = &CancelSpotFleetRequestsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CancelSpotFleetRequests", params, optFns, c.addOperationCancelSpotFleetRequestsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CancelSpotFleetRequestsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for CancelSpotFleetRequests.
-type CancelSpotFleetRequestsInput struct {
-
- // The IDs of the Spot Fleet requests.
- //
- // Constraint: You can specify up to 100 IDs in a single request.
- //
- // This member is required.
- SpotFleetRequestIds []string
-
- // Indicates whether to terminate the associated instances when the Spot Fleet
- // request is canceled. The default is to terminate the instances.
- //
- // To let the instances continue to run after the Spot Fleet request is canceled,
- // specify no-terminate-instances .
- //
- // This member is required.
- TerminateInstances *bool
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of CancelSpotFleetRequests.
-type CancelSpotFleetRequestsOutput struct {
-
- // Information about the Spot Fleet requests that are successfully canceled.
- SuccessfulFleetRequests []types.CancelSpotFleetRequestsSuccessItem
-
- // Information about the Spot Fleet requests that are not successfully canceled.
- UnsuccessfulFleetRequests []types.CancelSpotFleetRequestsErrorItem
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCancelSpotFleetRequestsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCancelSpotFleetRequests{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCancelSpotFleetRequests{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CancelSpotFleetRequests"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCancelSpotFleetRequestsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCancelSpotFleetRequests(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCancelSpotFleetRequests(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CancelSpotFleetRequests",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelSpotInstanceRequests.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelSpotInstanceRequests.go
deleted file mode 100644
index 4212b5803..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelSpotInstanceRequests.go
+++ /dev/null
@@ -1,171 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Cancels one or more Spot Instance requests.
-//
-// Canceling a Spot Instance request does not terminate running Spot Instances
-// associated with the request.
-func (c *Client) CancelSpotInstanceRequests(ctx context.Context, params *CancelSpotInstanceRequestsInput, optFns ...func(*Options)) (*CancelSpotInstanceRequestsOutput, error) {
- if params == nil {
- params = &CancelSpotInstanceRequestsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CancelSpotInstanceRequests", params, optFns, c.addOperationCancelSpotInstanceRequestsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CancelSpotInstanceRequestsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for CancelSpotInstanceRequests.
-type CancelSpotInstanceRequestsInput struct {
-
- // The IDs of the Spot Instance requests.
- //
- // This member is required.
- SpotInstanceRequestIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of CancelSpotInstanceRequests.
-type CancelSpotInstanceRequestsOutput struct {
-
- // The Spot Instance requests.
- CancelledSpotInstanceRequests []types.CancelledSpotInstanceRequest
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCancelSpotInstanceRequestsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCancelSpotInstanceRequests{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCancelSpotInstanceRequests{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CancelSpotInstanceRequests"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCancelSpotInstanceRequestsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCancelSpotInstanceRequests(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCancelSpotInstanceRequests(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CancelSpotInstanceRequests",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ConfirmProductInstance.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ConfirmProductInstance.go
deleted file mode 100644
index 059090583..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ConfirmProductInstance.go
+++ /dev/null
@@ -1,177 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Determines whether a product code is associated with an instance. This action
-// can only be used by the owner of the product code. It is useful when a product
-// code owner must verify whether another user's instance is eligible for support.
-func (c *Client) ConfirmProductInstance(ctx context.Context, params *ConfirmProductInstanceInput, optFns ...func(*Options)) (*ConfirmProductInstanceOutput, error) {
- if params == nil {
- params = &ConfirmProductInstanceInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ConfirmProductInstance", params, optFns, c.addOperationConfirmProductInstanceMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ConfirmProductInstanceOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ConfirmProductInstanceInput struct {
-
- // The ID of the instance.
- //
- // This member is required.
- InstanceId *string
-
- // The product code. This must be a product code that you own.
- //
- // This member is required.
- ProductCode *string
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ConfirmProductInstanceOutput struct {
-
- // The Amazon Web Services account ID of the instance owner. This is only present
- // if the product code is attached to the instance.
- OwnerId *string
-
- // The return value of the request. Returns true if the specified product code is
- // owned by the requester and associated with the specified instance.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationConfirmProductInstanceMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpConfirmProductInstance{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpConfirmProductInstance{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ConfirmProductInstance"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpConfirmProductInstanceValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opConfirmProductInstance(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opConfirmProductInstance(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ConfirmProductInstance",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopyFpgaImage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopyFpgaImage.go
deleted file mode 100644
index 7d227a013..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopyFpgaImage.go
+++ /dev/null
@@ -1,182 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Copies the specified Amazon FPGA Image (AFI) to the current Region.
-func (c *Client) CopyFpgaImage(ctx context.Context, params *CopyFpgaImageInput, optFns ...func(*Options)) (*CopyFpgaImageOutput, error) {
- if params == nil {
- params = &CopyFpgaImageInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CopyFpgaImage", params, optFns, c.addOperationCopyFpgaImageMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CopyFpgaImageOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CopyFpgaImageInput struct {
-
- // The ID of the source AFI.
- //
- // This member is required.
- SourceFpgaImageId *string
-
- // The Region that contains the source AFI.
- //
- // This member is required.
- SourceRegion *string
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // The description for the new AFI.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The name for the new AFI. The default is the name of the source AFI.
- Name *string
-
- noSmithyDocumentSerde
-}
-
-type CopyFpgaImageOutput struct {
-
- // The ID of the new AFI.
- FpgaImageId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCopyFpgaImageMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCopyFpgaImage{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCopyFpgaImage{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CopyFpgaImage"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCopyFpgaImageValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCopyFpgaImage(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCopyFpgaImage(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CopyFpgaImage",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopyImage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopyImage.go
deleted file mode 100644
index 2aa359a6e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopyImage.go
+++ /dev/null
@@ -1,329 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Initiates an AMI copy operation. You can copy an AMI from one Region to
-// another, or from a Region to an Outpost. You can't copy an AMI from an Outpost
-// to a Region, from one Outpost to another, or within the same Outpost. To copy an
-// AMI to another partition, see [CreateStoreImageTask].
-//
-// When you copy an AMI from one Region to another, the destination Region is the
-// current Region.
-//
-// When you copy an AMI from a Region to an Outpost, specify the ARN of the
-// Outpost as the destination. Backing snapshots copied to an Outpost are encrypted
-// by default using the default encryption key for the Region or the key that you
-// specify. Outposts do not support unencrypted snapshots.
-//
-// For information about the prerequisites when copying an AMI, see [Copy an Amazon EC2 AMI] in the Amazon
-// EC2 User Guide.
-//
-// [CreateStoreImageTask]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateStoreImageTask.html
-// [Copy an Amazon EC2 AMI]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html
-func (c *Client) CopyImage(ctx context.Context, params *CopyImageInput, optFns ...func(*Options)) (*CopyImageOutput, error) {
- if params == nil {
- params = &CopyImageInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CopyImage", params, optFns, c.addOperationCopyImageMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CopyImageOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for CopyImage.
-type CopyImageInput struct {
-
- // The name of the new AMI in the destination Region.
- //
- // This member is required.
- Name *string
-
- // The ID of the AMI to copy.
- //
- // This member is required.
- SourceImageId *string
-
- // The name of the Region that contains the AMI to copy.
- //
- // This member is required.
- SourceRegion *string
-
- // Unique, case-sensitive identifier you provide to ensure idempotency of the
- // request. For more information, see [Ensuring idempotency in Amazon EC2 API requests]in the Amazon EC2 API Reference.
- //
- // [Ensuring idempotency in Amazon EC2 API requests]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
- ClientToken *string
-
- // Indicates whether to include your user-defined AMI tags when copying the AMI.
- //
- // The following tags will not be copied:
- //
- // - System tags (prefixed with aws: )
- //
- // - For public and shared AMIs, user-defined tags that are attached by other
- // Amazon Web Services accounts
- //
- // Default: Your user-defined AMI tags are not copied.
- CopyImageTags *bool
-
- // A description for the new AMI in the destination Region.
- Description *string
-
- // The Amazon Resource Name (ARN) of the Outpost to which to copy the AMI. Only
- // specify this parameter when copying an AMI from an Amazon Web Services Region to
- // an Outpost. The AMI must be in the Region of the destination Outpost. You cannot
- // copy an AMI from an Outpost to a Region, from one Outpost to another, or within
- // the same Outpost.
- //
- // For more information, see [Copy AMIs from an Amazon Web Services Region to an Outpost] in the Amazon EBS User Guide.
- //
- // [Copy AMIs from an Amazon Web Services Region to an Outpost]: https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#copy-amis
- DestinationOutpostArn *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Specifies whether the destination snapshots of the copied image should be
- // encrypted. You can encrypt a copy of an unencrypted snapshot, but you cannot
- // create an unencrypted copy of an encrypted snapshot. The default KMS key for
- // Amazon EBS is used unless you specify a non-default Key Management Service (KMS)
- // KMS key using KmsKeyId . For more information, see [Use encryption with EBS-backed AMIs] in the Amazon EC2 User
- // Guide.
- //
- // [Use encryption with EBS-backed AMIs]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIEncryption.html
- Encrypted *bool
-
- // The identifier of the symmetric Key Management Service (KMS) KMS key to use
- // when creating encrypted volumes. If this parameter is not specified, your Amazon
- // Web Services managed KMS key for Amazon EBS is used. If you specify a KMS key,
- // you must also set the encrypted state to true .
- //
- // You can specify a KMS key using any of the following:
- //
- // - Key ID. For example, 1234abcd-12ab-34cd-56ef-1234567890ab.
- //
- // - Key alias. For example, alias/ExampleAlias.
- //
- // - Key ARN. For example,
- // arn:aws:kms:us-east-1:012345678910:key/1234abcd-12ab-34cd-56ef-1234567890ab.
- //
- // - Alias ARN. For example,
- // arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
- //
- // Amazon Web Services authenticates the KMS key asynchronously. Therefore, if you
- // specify an identifier that is not valid, the action can appear to complete, but
- // eventually fails.
- //
- // The specified KMS key must exist in the destination Region.
- //
- // Amazon EBS does not support asymmetric KMS keys.
- KmsKeyId *string
-
- // Specify a completion duration, in 15 minute increments, to initiate a
- // time-based AMI copy. The specified completion duration applies to each of the
- // snapshots associated with the AMI. Each snapshot associated with the AMI will be
- // completed within the specified completion duration, with copy throughput
- // automatically adjusted for each snapshot based on its size to meet the timing
- // target.
- //
- // If you do not specify a value, the AMI copy operation is completed on a
- // best-effort basis.
- //
- // For more information, see [Time-based copies for Amazon EBS snapshots and EBS-backed AMIs].
- //
- // [Time-based copies for Amazon EBS snapshots and EBS-backed AMIs]: https://docs.aws.amazon.com/ebs/latest/userguide/time-based-copies.html
- SnapshotCopyCompletionDurationMinutes *int64
-
- // The tags to apply to the new AMI and new snapshots. You can tag the AMI, the
- // snapshots, or both.
- //
- // - To tag the new AMI, the value for ResourceType must be image .
- //
- // - To tag the new snapshots, the value for ResourceType must be snapshot . The
- // same tag is applied to all the new snapshots.
- //
- // If you specify other values for ResourceType , the request fails.
- //
- // To tag an AMI or snapshot after it has been created, see [CreateTags].
- //
- // [CreateTags]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of CopyImage.
-type CopyImageOutput struct {
-
- // The ID of the new AMI.
- ImageId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCopyImageMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCopyImage{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCopyImage{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CopyImage"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCopyImageMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCopyImageValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCopyImage(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCopyImage struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCopyImage) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCopyImage) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CopyImageInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CopyImageInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCopyImageMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCopyImage{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCopyImage(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CopyImage",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopySnapshot.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopySnapshot.go
deleted file mode 100644
index 463203491..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopySnapshot.go
+++ /dev/null
@@ -1,384 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/aws/signer/v4"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- presignedurlcust "github.com/aws/aws-sdk-go-v2/service/internal/presigned-url"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Copies a point-in-time snapshot of an EBS volume and stores it in Amazon S3.
-// You can copy a snapshot within the same Region, from one Region to another, or
-// from a Region to an Outpost. You can't copy a snapshot from an Outpost to a
-// Region, from one Outpost to another, or within the same Outpost.
-//
-// You can use the snapshot to create EBS volumes or Amazon Machine Images (AMIs).
-//
-// When copying snapshots to a Region, copies of encrypted EBS snapshots remain
-// encrypted. Copies of unencrypted snapshots remain unencrypted, unless you enable
-// encryption for the snapshot copy operation. By default, encrypted snapshot
-// copies use the default KMS key; however, you can specify a different KMS key. To
-// copy an encrypted snapshot that has been shared from another account, you must
-// have permissions for the KMS key used to encrypt the snapshot.
-//
-// Snapshots copied to an Outpost are encrypted by default using the default
-// encryption key for the Region, or a different key that you specify in the
-// request using KmsKeyId. Outposts do not support unencrypted snapshots. For more
-// information, see [Amazon EBS local snapshots on Outposts]in the Amazon EBS User Guide.
-//
-// Snapshots created by copying another snapshot have an arbitrary volume ID that
-// should not be used for any purpose.
-//
-// For more information, see [Copy an Amazon EBS snapshot] in the Amazon EBS User Guide.
-//
-// [Copy an Amazon EBS snapshot]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-copy-snapshot.html
-// [Amazon EBS local snapshots on Outposts]: https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#ami
-func (c *Client) CopySnapshot(ctx context.Context, params *CopySnapshotInput, optFns ...func(*Options)) (*CopySnapshotOutput, error) {
- if params == nil {
- params = &CopySnapshotInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CopySnapshot", params, optFns, c.addOperationCopySnapshotMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CopySnapshotOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CopySnapshotInput struct {
-
- // The ID of the Region that contains the snapshot to be copied.
- //
- // This member is required.
- SourceRegion *string
-
- // The ID of the EBS snapshot to copy.
- //
- // This member is required.
- SourceSnapshotId *string
-
- // Specify a completion duration, in 15 minute increments, to initiate a
- // time-based snapshot copy. Time-based snapshot copy operations complete within
- // the specified duration. For more information, see [Time-based copies].
- //
- // If you do not specify a value, the snapshot copy operation is completed on a
- // best-effort basis.
- //
- // [Time-based copies]: https://docs.aws.amazon.com/ebs/latest/userguide/time-based-copies.html
- CompletionDurationMinutes *int32
-
- // A description for the EBS snapshot.
- Description *string
-
- // The Amazon Resource Name (ARN) of the Outpost to which to copy the snapshot.
- // Only specify this parameter when copying a snapshot from an Amazon Web Services
- // Region to an Outpost. The snapshot must be in the Region for the destination
- // Outpost. You cannot copy a snapshot from an Outpost to a Region, from one
- // Outpost to another, or within the same Outpost.
- //
- // For more information, see [Copy snapshots from an Amazon Web Services Region to an Outpost] in the Amazon EBS User Guide.
- //
- // [Copy snapshots from an Amazon Web Services Region to an Outpost]: https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#copy-snapshots
- DestinationOutpostArn *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // To encrypt a copy of an unencrypted snapshot if encryption by default is not
- // enabled, enable encryption using this parameter. Otherwise, omit this parameter.
- // Encrypted snapshots are encrypted, even if you omit this parameter and
- // encryption by default is not enabled. You cannot set this parameter to false.
- // For more information, see [Amazon EBS encryption]in the Amazon EBS User Guide.
- //
- // [Amazon EBS encryption]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html
- Encrypted *bool
-
- // The identifier of the KMS key to use for Amazon EBS encryption. If this
- // parameter is not specified, your KMS key for Amazon EBS is used. If KmsKeyId is
- // specified, the encrypted state must be true .
- //
- // You can specify the KMS key using any of the following:
- //
- // - Key ID. For example, 1234abcd-12ab-34cd-56ef-1234567890ab.
- //
- // - Key alias. For example, alias/ExampleAlias.
- //
- // - Key ARN. For example,
- // arn:aws:kms:us-east-1:012345678910:key/1234abcd-12ab-34cd-56ef-1234567890ab.
- //
- // - Alias ARN. For example,
- // arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
- //
- // Amazon Web Services authenticates the KMS key asynchronously. Therefore, if you
- // specify an ID, alias, or ARN that is not valid, the action can appear to
- // complete, but eventually fails.
- KmsKeyId *string
-
- // When you copy an encrypted source snapshot using the Amazon EC2 Query API, you
- // must supply a pre-signed URL. This parameter is optional for unencrypted
- // snapshots. For more information, see [Query requests].
- //
- // The PresignedUrl should use the snapshot source endpoint, the CopySnapshot
- // action, and include the SourceRegion , SourceSnapshotId , and DestinationRegion
- // parameters. The PresignedUrl must be signed using Amazon Web Services Signature
- // Version 4. Because EBS snapshots are stored in Amazon S3, the signing algorithm
- // for this parameter uses the same logic that is described in [Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4)]in the Amazon S3
- // API Reference. An invalid or improperly signed PresignedUrl will cause the copy
- // operation to fail asynchronously, and the snapshot will move to an error state.
- //
- // [Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4)]: https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html
- // [Query requests]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html
- PresignedUrl *string
-
- // The tags to apply to the new snapshot.
- TagSpecifications []types.TagSpecification
-
- // Used by the SDK's PresignURL autofill customization to specify the region the
- // of the client's request.
- destinationRegion *string
-
- noSmithyDocumentSerde
-}
-
-type CopySnapshotOutput struct {
-
- // The ID of the new snapshot.
- SnapshotId *string
-
- // Any tags applied to the new snapshot.
- Tags []types.Tag
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCopySnapshotMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCopySnapshot{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCopySnapshot{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CopySnapshot"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addCopySnapshotPresignURLMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCopySnapshotValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCopySnapshot(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func copyCopySnapshotInputForPresign(params interface{}) (interface{}, error) {
- input, ok := params.(*CopySnapshotInput)
- if !ok {
- return nil, fmt.Errorf("expect *CopySnapshotInput type, got %T", params)
- }
- cpy := *input
- return &cpy, nil
-}
-func getCopySnapshotPresignedUrl(params interface{}) (string, bool, error) {
- input, ok := params.(*CopySnapshotInput)
- if !ok {
- return ``, false, fmt.Errorf("expect *CopySnapshotInput type, got %T", params)
- }
- if input.PresignedUrl == nil || len(*input.PresignedUrl) == 0 {
- return ``, false, nil
- }
- return *input.PresignedUrl, true, nil
-}
-func getCopySnapshotSourceRegion(params interface{}) (string, bool, error) {
- input, ok := params.(*CopySnapshotInput)
- if !ok {
- return ``, false, fmt.Errorf("expect *CopySnapshotInput type, got %T", params)
- }
- if input.SourceRegion == nil || len(*input.SourceRegion) == 0 {
- return ``, false, nil
- }
- return *input.SourceRegion, true, nil
-}
-func setCopySnapshotPresignedUrl(params interface{}, value string) error {
- input, ok := params.(*CopySnapshotInput)
- if !ok {
- return fmt.Errorf("expect *CopySnapshotInput type, got %T", params)
- }
- input.PresignedUrl = &value
- return nil
-}
-func setCopySnapshotdestinationRegion(params interface{}, value string) error {
- input, ok := params.(*CopySnapshotInput)
- if !ok {
- return fmt.Errorf("expect *CopySnapshotInput type, got %T", params)
- }
- input.destinationRegion = &value
- return nil
-}
-func addCopySnapshotPresignURLMiddleware(stack *middleware.Stack, options Options) error {
- return presignedurlcust.AddMiddleware(stack, presignedurlcust.Options{
- Accessor: presignedurlcust.ParameterAccessor{
- GetPresignedURL: getCopySnapshotPresignedUrl,
-
- GetSourceRegion: getCopySnapshotSourceRegion,
-
- CopyInput: copyCopySnapshotInputForPresign,
-
- SetDestinationRegion: setCopySnapshotdestinationRegion,
-
- SetPresignedURL: setCopySnapshotPresignedUrl,
- },
- Presigner: &presignAutoFillCopySnapshotClient{client: NewPresignClient(New(options))},
- })
-}
-
-type presignAutoFillCopySnapshotClient struct {
- client *PresignClient
-}
-
-// PresignURL is a middleware accessor that satisfies URLPresigner interface.
-func (c *presignAutoFillCopySnapshotClient) PresignURL(ctx context.Context, srcRegion string, params interface{}) (*v4.PresignedHTTPRequest, error) {
- input, ok := params.(*CopySnapshotInput)
- if !ok {
- return nil, fmt.Errorf("expect *CopySnapshotInput type, got %T", params)
- }
- optFn := func(o *Options) {
- o.Region = srcRegion
- o.APIOptions = append(o.APIOptions, presignedurlcust.RemoveMiddleware)
- }
- presignOptFn := WithPresignClientFromClientOptions(optFn)
- return c.client.PresignCopySnapshot(ctx, input, presignOptFn)
-}
-
-func newServiceMetadataMiddleware_opCopySnapshot(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CopySnapshot",
- }
-}
-
-// PresignCopySnapshot is used to generate a presigned HTTP Request which contains
-// presigned URL, signed headers and HTTP method used.
-func (c *PresignClient) PresignCopySnapshot(ctx context.Context, params *CopySnapshotInput, optFns ...func(*PresignOptions)) (*v4.PresignedHTTPRequest, error) {
- if params == nil {
- params = &CopySnapshotInput{}
- }
- options := c.options.copy()
- for _, fn := range optFns {
- fn(&options)
- }
- clientOptFns := append(options.ClientOptions, withNopHTTPClientAPIOption)
-
- result, _, err := c.client.invokeOperation(ctx, "CopySnapshot", params, clientOptFns,
- c.client.addOperationCopySnapshotMiddlewares,
- presignConverter(options).convertToPresignMiddleware,
- )
- if err != nil {
- return nil, err
- }
-
- out := result.(*v4.PresignedHTTPRequest)
- return out, nil
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCapacityReservation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCapacityReservation.go
deleted file mode 100644
index 5c36aae99..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCapacityReservation.go
+++ /dev/null
@@ -1,346 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Creates a new Capacity Reservation with the specified attributes. Capacity
-// Reservations enable you to reserve capacity for your Amazon EC2 instances in a
-// specific Availability Zone for any duration.
-//
-// You can create a Capacity Reservation at any time, and you can choose when it
-// starts. You can create a Capacity Reservation for immediate use or you can
-// request a Capacity Reservation for a future date.
-//
-// For more information, see [Reserve compute capacity with On-Demand Capacity Reservations] in the Amazon EC2 User Guide.
-//
-// Your request to create a Capacity Reservation could fail if:
-//
-// - Amazon EC2 does not have sufficient capacity. In this case, try again at a
-// later time, try in a different Availability Zone, or request a smaller Capacity
-// Reservation. If your workload is flexible across instance types and sizes, try
-// with different instance attributes.
-//
-// - The requested quantity exceeds your On-Demand Instance quota. In this case,
-// increase your On-Demand Instance quota for the requested instance type and try
-// again. For more information, see [Amazon EC2 Service Quotas]in the Amazon EC2 User Guide.
-//
-// [Amazon EC2 Service Quotas]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html
-// [Reserve compute capacity with On-Demand Capacity Reservations]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.html
-func (c *Client) CreateCapacityReservation(ctx context.Context, params *CreateCapacityReservationInput, optFns ...func(*Options)) (*CreateCapacityReservationOutput, error) {
- if params == nil {
- params = &CreateCapacityReservationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateCapacityReservation", params, optFns, c.addOperationCreateCapacityReservationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateCapacityReservationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateCapacityReservationInput struct {
-
- // The number of instances for which to reserve capacity.
- //
- // You can request future-dated Capacity Reservations for an instance count with a
- // minimum of 100 vCPUs. For example, if you request a future-dated Capacity
- // Reservation for m5.xlarge instances, you must request at least 25 instances (25
- // * m5.xlarge = 100 vCPUs).
- //
- // Valid range: 1 - 1000
- //
- // This member is required.
- InstanceCount *int32
-
- // The type of operating system for which to reserve capacity.
- //
- // This member is required.
- InstancePlatform types.CapacityReservationInstancePlatform
-
- // The instance type for which to reserve capacity.
- //
- // You can request future-dated Capacity Reservations for instance types in the C,
- // M, R, I, and T instance families only.
- //
- // For more information, see [Instance types] in the Amazon EC2 User Guide.
- //
- // [Instance types]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html
- //
- // This member is required.
- InstanceType *string
-
- // The Availability Zone in which to create the Capacity Reservation.
- AvailabilityZone *string
-
- // The ID of the Availability Zone in which to create the Capacity Reservation.
- AvailabilityZoneId *string
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensure Idempotency].
- //
- // [Ensure Idempotency]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
- ClientToken *string
-
- // Required for future-dated Capacity Reservations only. To create a Capacity
- // Reservation for immediate use, omit this parameter.
- //
- // Specify a commitment duration, in seconds, for the future-dated Capacity
- // Reservation.
- //
- // The commitment duration is a minimum duration for which you commit to having
- // the future-dated Capacity Reservation in the active state in your account after
- // it has been delivered.
- //
- // For more information, see [Commitment duration].
- //
- // [Commitment duration]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/cr-concepts.html#cr-commitment-duration
- CommitmentDuration *int64
-
- // Required for future-dated Capacity Reservations only. To create a Capacity
- // Reservation for immediate use, omit this parameter.
- //
- // Indicates that the requested capacity will be delivered in addition to any
- // running instances or reserved capacity that you have in your account at the
- // requested date and time.
- //
- // The only supported value is incremental .
- DeliveryPreference types.CapacityReservationDeliveryPreference
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Indicates whether the Capacity Reservation supports EBS-optimized instances.
- // This optimization provides dedicated throughput to Amazon EBS and an optimized
- // configuration stack to provide optimal I/O performance. This optimization isn't
- // available with all instance types. Additional usage charges apply when using an
- // EBS- optimized instance.
- EbsOptimized *bool
-
- // The date and time at which the Capacity Reservation expires. When a Capacity
- // Reservation expires, the reserved capacity is released and you can no longer
- // launch instances into it. The Capacity Reservation's state changes to expired
- // when it reaches its end date and time.
- //
- // You must provide an EndDate value if EndDateType is limited . Omit EndDate if
- // EndDateType is unlimited .
- //
- // If the EndDateType is limited , the Capacity Reservation is cancelled within an
- // hour from the specified time. For example, if you specify 5/31/2019, 13:30:55,
- // the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on
- // 5/31/2019.
- //
- // If you are requesting a future-dated Capacity Reservation, you can't specify an
- // end date and time that is within the commitment duration.
- EndDate *time.Time
-
- // Indicates the way in which the Capacity Reservation ends. A Capacity
- // Reservation can have one of the following end types:
- //
- // - unlimited - The Capacity Reservation remains active until you explicitly
- // cancel it. Do not provide an EndDate if the EndDateType is unlimited .
- //
- // - limited - The Capacity Reservation expires automatically at a specified date
- // and time. You must provide an EndDate value if the EndDateType value is
- // limited .
- EndDateType types.EndDateType
-
- // Deprecated.
- EphemeralStorage *bool
-
- // Indicates the type of instance launches that the Capacity Reservation accepts.
- // The options include:
- //
- // - open - The Capacity Reservation automatically matches all instances that
- // have matching attributes (instance type, platform, and Availability Zone).
- // Instances that have matching attributes run in the Capacity Reservation
- // automatically without specifying any additional parameters.
- //
- // - targeted - The Capacity Reservation only accepts instances that have
- // matching attributes (instance type, platform, and Availability Zone), and
- // explicitly target the Capacity Reservation. This ensures that only permitted
- // instances can use the reserved capacity.
- //
- // If you are requesting a future-dated Capacity Reservation, you must specify
- // targeted .
- //
- // Default: open
- InstanceMatchCriteria types.InstanceMatchCriteria
-
- // Not supported for future-dated Capacity Reservations.
- //
- // The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity
- // Reservation.
- OutpostArn *string
-
- // Not supported for future-dated Capacity Reservations.
- //
- // The Amazon Resource Name (ARN) of the cluster placement group in which to
- // create the Capacity Reservation. For more information, see [Capacity Reservations for cluster placement groups]in the Amazon EC2
- // User Guide.
- //
- // [Capacity Reservations for cluster placement groups]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/cr-cpg.html
- PlacementGroupArn *string
-
- // Required for future-dated Capacity Reservations only. To create a Capacity
- // Reservation for immediate use, omit this parameter.
- //
- // The date and time at which the future-dated Capacity Reservation should become
- // available for use, in the ISO8601 format in the UTC time zone (
- // YYYY-MM-DDThh:mm:ss.sssZ ).
- //
- // You can request a future-dated Capacity Reservation between 5 and 120 days in
- // advance.
- StartDate *time.Time
-
- // The tags to apply to the Capacity Reservation during launch.
- TagSpecifications []types.TagSpecification
-
- // Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can
- // have one of the following tenancy settings:
- //
- // - default - The Capacity Reservation is created on hardware that is shared
- // with other Amazon Web Services accounts.
- //
- // - dedicated - The Capacity Reservation is created on single-tenant hardware
- // that is dedicated to a single Amazon Web Services account.
- Tenancy types.CapacityReservationTenancy
-
- noSmithyDocumentSerde
-}
-
-type CreateCapacityReservationOutput struct {
-
- // Information about the Capacity Reservation.
- CapacityReservation *types.CapacityReservation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateCapacityReservationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateCapacityReservation{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateCapacityReservation{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateCapacityReservation"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateCapacityReservationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateCapacityReservation(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateCapacityReservation(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateCapacityReservation",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCapacityReservationBySplitting.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCapacityReservationBySplitting.go
deleted file mode 100644
index 8d2918f6e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCapacityReservationBySplitting.go
+++ /dev/null
@@ -1,227 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Create a new Capacity Reservation by splitting the capacity of the source
-//
-// Capacity Reservation. The new Capacity Reservation will have the same attributes
-// as the source Capacity Reservation except for tags. The source Capacity
-// Reservation must be active and owned by your Amazon Web Services account.
-func (c *Client) CreateCapacityReservationBySplitting(ctx context.Context, params *CreateCapacityReservationBySplittingInput, optFns ...func(*Options)) (*CreateCapacityReservationBySplittingOutput, error) {
- if params == nil {
- params = &CreateCapacityReservationBySplittingInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateCapacityReservationBySplitting", params, optFns, c.addOperationCreateCapacityReservationBySplittingMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateCapacityReservationBySplittingOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateCapacityReservationBySplittingInput struct {
-
- // The number of instances to split from the source Capacity Reservation.
- //
- // This member is required.
- InstanceCount *int32
-
- // The ID of the Capacity Reservation from which you want to split the capacity.
- //
- // This member is required.
- SourceCapacityReservationId *string
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensure Idempotency].
- //
- // [Ensure Idempotency]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags to apply to the new Capacity Reservation.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateCapacityReservationBySplittingOutput struct {
-
- // Information about the destination Capacity Reservation.
- DestinationCapacityReservation *types.CapacityReservation
-
- // The number of instances in the new Capacity Reservation. The number of
- // instances in the source Capacity Reservation was reduced by this amount.
- InstanceCount *int32
-
- // Information about the source Capacity Reservation.
- SourceCapacityReservation *types.CapacityReservation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateCapacityReservationBySplittingMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateCapacityReservationBySplitting{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateCapacityReservationBySplitting{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateCapacityReservationBySplitting"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateCapacityReservationBySplittingMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateCapacityReservationBySplittingValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateCapacityReservationBySplitting(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateCapacityReservationBySplitting struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateCapacityReservationBySplitting) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateCapacityReservationBySplitting) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateCapacityReservationBySplittingInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateCapacityReservationBySplittingInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateCapacityReservationBySplittingMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateCapacityReservationBySplitting{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateCapacityReservationBySplitting(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateCapacityReservationBySplitting",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCapacityReservationFleet.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCapacityReservationFleet.go
deleted file mode 100644
index f4a9fbacf..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCapacityReservationFleet.go
+++ /dev/null
@@ -1,299 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Creates a Capacity Reservation Fleet. For more information, see [Create a Capacity Reservation Fleet] in the Amazon
-// EC2 User Guide.
-//
-// [Create a Capacity Reservation Fleet]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/work-with-cr-fleets.html#create-crfleet
-func (c *Client) CreateCapacityReservationFleet(ctx context.Context, params *CreateCapacityReservationFleetInput, optFns ...func(*Options)) (*CreateCapacityReservationFleetOutput, error) {
- if params == nil {
- params = &CreateCapacityReservationFleetInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateCapacityReservationFleet", params, optFns, c.addOperationCreateCapacityReservationFleetMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateCapacityReservationFleetOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateCapacityReservationFleetInput struct {
-
- // Information about the instance types for which to reserve the capacity.
- //
- // This member is required.
- InstanceTypeSpecifications []types.ReservationFleetInstanceSpecification
-
- // The total number of capacity units to be reserved by the Capacity Reservation
- // Fleet. This value, together with the instance type weights that you assign to
- // each instance type used by the Fleet determine the number of instances for which
- // the Fleet reserves capacity. Both values are based on units that make sense for
- // your workload. For more information, see [Total target capacity]in the Amazon EC2 User Guide.
- //
- // [Total target capacity]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#target-capacity
- //
- // This member is required.
- TotalTargetCapacity *int32
-
- // The strategy used by the Capacity Reservation Fleet to determine which of the
- // specified instance types to use. Currently, only the prioritized allocation
- // strategy is supported. For more information, see [Allocation strategy]in the Amazon EC2 User Guide.
- //
- // Valid values: prioritized
- //
- // [Allocation strategy]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#allocation-strategy
- AllocationStrategy *string
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensure Idempotency].
- //
- // [Ensure Idempotency]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The date and time at which the Capacity Reservation Fleet expires. When the
- // Capacity Reservation Fleet expires, its state changes to expired and all of the
- // Capacity Reservations in the Fleet expire.
- //
- // The Capacity Reservation Fleet expires within an hour after the specified time.
- // For example, if you specify 5/31/2019 , 13:30:55 , the Capacity Reservation
- // Fleet is guaranteed to expire between 13:30:55 and 14:30:55 on 5/31/2019 .
- EndDate *time.Time
-
- // Indicates the type of instance launches that the Capacity Reservation Fleet
- // accepts. All Capacity Reservations in the Fleet inherit this instance matching
- // criteria.
- //
- // Currently, Capacity Reservation Fleets support open instance matching criteria
- // only. This means that instances that have matching attributes (instance type,
- // platform, and Availability Zone) run in the Capacity Reservations automatically.
- // Instances do not need to explicitly target a Capacity Reservation Fleet to use
- // its reserved capacity.
- InstanceMatchCriteria types.FleetInstanceMatchCriteria
-
- // The tags to assign to the Capacity Reservation Fleet. The tags are
- // automatically assigned to the Capacity Reservations in the Fleet.
- TagSpecifications []types.TagSpecification
-
- // Indicates the tenancy of the Capacity Reservation Fleet. All Capacity
- // Reservations in the Fleet inherit this tenancy. The Capacity Reservation Fleet
- // can have one of the following tenancy settings:
- //
- // - default - The Capacity Reservation Fleet is created on hardware that is
- // shared with other Amazon Web Services accounts.
- //
- // - dedicated - The Capacity Reservations are created on single-tenant hardware
- // that is dedicated to a single Amazon Web Services account.
- Tenancy types.FleetCapacityReservationTenancy
-
- noSmithyDocumentSerde
-}
-
-type CreateCapacityReservationFleetOutput struct {
-
- // The allocation strategy used by the Capacity Reservation Fleet.
- AllocationStrategy *string
-
- // The ID of the Capacity Reservation Fleet.
- CapacityReservationFleetId *string
-
- // The date and time at which the Capacity Reservation Fleet was created.
- CreateTime *time.Time
-
- // The date and time at which the Capacity Reservation Fleet expires.
- EndDate *time.Time
-
- // Information about the individual Capacity Reservations in the Capacity
- // Reservation Fleet.
- FleetCapacityReservations []types.FleetCapacityReservation
-
- // The instance matching criteria for the Capacity Reservation Fleet.
- InstanceMatchCriteria types.FleetInstanceMatchCriteria
-
- // The status of the Capacity Reservation Fleet.
- State types.CapacityReservationFleetState
-
- // The tags assigned to the Capacity Reservation Fleet.
- Tags []types.Tag
-
- // Indicates the tenancy of Capacity Reservation Fleet.
- Tenancy types.FleetCapacityReservationTenancy
-
- // The requested capacity units that have been successfully reserved.
- TotalFulfilledCapacity *float64
-
- // The total number of capacity units for which the Capacity Reservation Fleet
- // reserves capacity.
- TotalTargetCapacity *int32
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateCapacityReservationFleetMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateCapacityReservationFleet{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateCapacityReservationFleet{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateCapacityReservationFleet"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateCapacityReservationFleetMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateCapacityReservationFleetValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateCapacityReservationFleet(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateCapacityReservationFleet struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateCapacityReservationFleet) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateCapacityReservationFleet) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateCapacityReservationFleetInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateCapacityReservationFleetInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateCapacityReservationFleetMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateCapacityReservationFleet{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateCapacityReservationFleet(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateCapacityReservationFleet",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCarrierGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCarrierGateway.go
deleted file mode 100644
index 9b4d96802..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCarrierGateway.go
+++ /dev/null
@@ -1,214 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a carrier gateway. For more information about carrier gateways, see [Carrier gateways] in
-// the Amazon Web Services Wavelength Developer Guide.
-//
-// [Carrier gateways]: https://docs.aws.amazon.com/wavelength/latest/developerguide/how-wavelengths-work.html#wavelength-carrier-gateway
-func (c *Client) CreateCarrierGateway(ctx context.Context, params *CreateCarrierGatewayInput, optFns ...func(*Options)) (*CreateCarrierGatewayOutput, error) {
- if params == nil {
- params = &CreateCarrierGatewayInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateCarrierGateway", params, optFns, c.addOperationCreateCarrierGatewayMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateCarrierGatewayOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateCarrierGatewayInput struct {
-
- // The ID of the VPC to associate with the carrier gateway.
- //
- // This member is required.
- VpcId *string
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [How to ensure idempotency].
- //
- // [How to ensure idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags to associate with the carrier gateway.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateCarrierGatewayOutput struct {
-
- // Information about the carrier gateway.
- CarrierGateway *types.CarrierGateway
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateCarrierGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateCarrierGateway{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateCarrierGateway{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateCarrierGateway"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateCarrierGatewayMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateCarrierGatewayValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateCarrierGateway(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateCarrierGateway struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateCarrierGateway) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateCarrierGateway) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateCarrierGatewayInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateCarrierGatewayInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateCarrierGatewayMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateCarrierGateway{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateCarrierGateway(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateCarrierGateway",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateClientVpnEndpoint.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateClientVpnEndpoint.go
deleted file mode 100644
index 6704b3517..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateClientVpnEndpoint.go
+++ /dev/null
@@ -1,328 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a Client VPN endpoint. A Client VPN endpoint is the resource you create
-// and configure to enable and manage client VPN sessions. It is the destination
-// endpoint at which all client VPN sessions are terminated.
-func (c *Client) CreateClientVpnEndpoint(ctx context.Context, params *CreateClientVpnEndpointInput, optFns ...func(*Options)) (*CreateClientVpnEndpointOutput, error) {
- if params == nil {
- params = &CreateClientVpnEndpointInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateClientVpnEndpoint", params, optFns, c.addOperationCreateClientVpnEndpointMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateClientVpnEndpointOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateClientVpnEndpointInput struct {
-
- // Information about the authentication method to be used to authenticate clients.
- //
- // This member is required.
- AuthenticationOptions []types.ClientVpnAuthenticationRequest
-
- // The IPv4 address range, in CIDR notation, from which to assign client IP
- // addresses. The address range cannot overlap with the local CIDR of the VPC in
- // which the associated subnet is located, or the routes that you add manually. The
- // address range cannot be changed after the Client VPN endpoint has been created.
- // Client CIDR range must have a size of at least /22 and must not be greater than
- // /12.
- //
- // This member is required.
- ClientCidrBlock *string
-
- // Information about the client connection logging options.
- //
- // If you enable client connection logging, data about client connections is sent
- // to a Cloudwatch Logs log stream. The following information is logged:
- //
- // - Client connection requests
- //
- // - Client connection results (successful and unsuccessful)
- //
- // - Reasons for unsuccessful client connection requests
- //
- // - Client connection termination time
- //
- // This member is required.
- ConnectionLogOptions *types.ConnectionLogOptions
-
- // The ARN of the server certificate. For more information, see the [Certificate Manager User Guide].
- //
- // [Certificate Manager User Guide]: https://docs.aws.amazon.com/acm/latest/userguide/
- //
- // This member is required.
- ServerCertificateArn *string
-
- // The options for managing connection authorization for new client connections.
- ClientConnectOptions *types.ClientConnectOptions
-
- // Options for enabling a customizable text banner that will be displayed on
- // Amazon Web Services provided clients when a VPN session is established.
- ClientLoginBannerOptions *types.ClientLoginBannerOptions
-
- // Client route enforcement is a feature of the Client VPN service that helps
- // enforce administrator defined routes on devices connected through the VPN. T his
- // feature helps improve your security posture by ensuring that network traffic
- // originating from a connected client is not inadvertently sent outside the VPN
- // tunnel.
- //
- // Client route enforcement works by monitoring the route table of a connected
- // device for routing policy changes to the VPN connection. If the feature detects
- // any VPN routing policy modifications, it will automatically force an update to
- // the route table, reverting it back to the expected route configurations.
- ClientRouteEnforcementOptions *types.ClientRouteEnforcementOptions
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // A brief description of the Client VPN endpoint.
- Description *string
-
- // Indicates whether the client VPN session is disconnected after the maximum
- // timeout specified in SessionTimeoutHours is reached. If true , users are
- // prompted to reconnect client VPN. If false , client VPN attempts to reconnect
- // automatically. The default value is true .
- DisconnectOnSessionTimeout *bool
-
- // Information about the DNS servers to be used for DNS resolution. A Client VPN
- // endpoint can have up to two DNS servers. If no DNS server is specified, the DNS
- // address configured on the device is used for the DNS server.
- DnsServers []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The IDs of one or more security groups to apply to the target network. You must
- // also specify the ID of the VPC that contains the security groups.
- SecurityGroupIds []string
-
- // Specify whether to enable the self-service portal for the Client VPN endpoint.
- //
- // Default Value: enabled
- SelfServicePortal types.SelfServicePortal
-
- // The maximum VPN session duration time in hours.
- //
- // Valid values: 8 | 10 | 12 | 24
- //
- // Default value: 24
- SessionTimeoutHours *int32
-
- // Indicates whether split-tunnel is enabled on the Client VPN endpoint.
- //
- // By default, split-tunnel on a VPN endpoint is disabled.
- //
- // For information about split-tunnel VPN endpoints, see [Split-tunnel Client VPN endpoint] in the Client VPN
- // Administrator Guide.
- //
- // [Split-tunnel Client VPN endpoint]: https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html
- SplitTunnel *bool
-
- // The tags to apply to the Client VPN endpoint during creation.
- TagSpecifications []types.TagSpecification
-
- // The transport protocol to be used by the VPN session.
- //
- // Default value: udp
- TransportProtocol types.TransportProtocol
-
- // The ID of the VPC to associate with the Client VPN endpoint. If no security
- // group IDs are specified in the request, the default security group for the VPC
- // is applied.
- VpcId *string
-
- // The port number to assign to the Client VPN endpoint for TCP and UDP traffic.
- //
- // Valid Values: 443 | 1194
- //
- // Default Value: 443
- VpnPort *int32
-
- noSmithyDocumentSerde
-}
-
-type CreateClientVpnEndpointOutput struct {
-
- // The ID of the Client VPN endpoint.
- ClientVpnEndpointId *string
-
- // The DNS name to be used by clients when establishing their VPN session.
- DnsName *string
-
- // The current state of the Client VPN endpoint.
- Status *types.ClientVpnEndpointStatus
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateClientVpnEndpointMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateClientVpnEndpoint{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateClientVpnEndpoint{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateClientVpnEndpoint"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateClientVpnEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateClientVpnEndpointValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateClientVpnEndpoint(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateClientVpnEndpoint struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateClientVpnEndpoint) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateClientVpnEndpoint) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateClientVpnEndpointInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateClientVpnEndpointInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateClientVpnEndpointMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateClientVpnEndpoint{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateClientVpnEndpoint(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateClientVpnEndpoint",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateClientVpnRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateClientVpnRoute.go
deleted file mode 100644
index 39ead32b0..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateClientVpnRoute.go
+++ /dev/null
@@ -1,236 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Adds a route to a network to a Client VPN endpoint. Each Client VPN endpoint
-// has a route table that describes the available destination network routes. Each
-// route in the route table specifies the path for traffic to specific resources or
-// networks.
-func (c *Client) CreateClientVpnRoute(ctx context.Context, params *CreateClientVpnRouteInput, optFns ...func(*Options)) (*CreateClientVpnRouteOutput, error) {
- if params == nil {
- params = &CreateClientVpnRouteInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateClientVpnRoute", params, optFns, c.addOperationCreateClientVpnRouteMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateClientVpnRouteOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateClientVpnRouteInput struct {
-
- // The ID of the Client VPN endpoint to which to add the route.
- //
- // This member is required.
- ClientVpnEndpointId *string
-
- // The IPv4 address range, in CIDR notation, of the route destination. For example:
- //
- // - To add a route for Internet access, enter 0.0.0.0/0
- //
- // - To add a route for a peered VPC, enter the peered VPC's IPv4 CIDR range
- //
- // - To add a route for an on-premises network, enter the Amazon Web Services
- // Site-to-Site VPN connection's IPv4 CIDR range
- //
- // - To add a route for the local network, enter the client CIDR range
- //
- // This member is required.
- DestinationCidrBlock *string
-
- // The ID of the subnet through which you want to route traffic. The specified
- // subnet must be an existing target network of the Client VPN endpoint.
- //
- // Alternatively, if you're adding a route for the local network, specify local .
- //
- // This member is required.
- TargetVpcSubnetId *string
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // A brief description of the route.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type CreateClientVpnRouteOutput struct {
-
- // The current state of the route.
- Status *types.ClientVpnRouteStatus
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateClientVpnRouteMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateClientVpnRoute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateClientVpnRoute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateClientVpnRoute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateClientVpnRouteMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateClientVpnRouteValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateClientVpnRoute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateClientVpnRoute struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateClientVpnRoute) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateClientVpnRoute) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateClientVpnRouteInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateClientVpnRouteInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateClientVpnRouteMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateClientVpnRoute{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateClientVpnRoute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateClientVpnRoute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCoipCidr.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCoipCidr.go
deleted file mode 100644
index bd52562b7..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCoipCidr.go
+++ /dev/null
@@ -1,171 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a range of customer-owned IP addresses.
-func (c *Client) CreateCoipCidr(ctx context.Context, params *CreateCoipCidrInput, optFns ...func(*Options)) (*CreateCoipCidrOutput, error) {
- if params == nil {
- params = &CreateCoipCidrInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateCoipCidr", params, optFns, c.addOperationCreateCoipCidrMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateCoipCidrOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateCoipCidrInput struct {
-
- // A customer-owned IP address range to create.
- //
- // This member is required.
- Cidr *string
-
- // The ID of the address pool.
- //
- // This member is required.
- CoipPoolId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type CreateCoipCidrOutput struct {
-
- // Information about a range of customer-owned IP addresses.
- CoipCidr *types.CoipCidr
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateCoipCidrMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateCoipCidr{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateCoipCidr{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateCoipCidr"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateCoipCidrValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateCoipCidr(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateCoipCidr(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateCoipCidr",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCoipPool.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCoipPool.go
deleted file mode 100644
index 9858dd9e1..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCoipPool.go
+++ /dev/null
@@ -1,169 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a pool of customer-owned IP (CoIP) addresses.
-func (c *Client) CreateCoipPool(ctx context.Context, params *CreateCoipPoolInput, optFns ...func(*Options)) (*CreateCoipPoolOutput, error) {
- if params == nil {
- params = &CreateCoipPoolInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateCoipPool", params, optFns, c.addOperationCreateCoipPoolMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateCoipPoolOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateCoipPoolInput struct {
-
- // The ID of the local gateway route table.
- //
- // This member is required.
- LocalGatewayRouteTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags to assign to the CoIP address pool.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateCoipPoolOutput struct {
-
- // Information about the CoIP address pool.
- CoipPool *types.CoipPool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateCoipPoolMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateCoipPool{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateCoipPool{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateCoipPool"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateCoipPoolValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateCoipPool(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateCoipPool(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateCoipPool",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCustomerGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCustomerGateway.go
deleted file mode 100644
index 8818b500c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCustomerGateway.go
+++ /dev/null
@@ -1,222 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Provides information to Amazon Web Services about your customer gateway device.
-// The customer gateway device is the appliance at your end of the VPN connection.
-// You must provide the IP address of the customer gateway device’s external
-// interface. The IP address must be static and can be behind a device performing
-// network address translation (NAT).
-//
-// For devices that use Border Gateway Protocol (BGP), you can also provide the
-// device's BGP Autonomous System Number (ASN). You can use an existing ASN
-// assigned to your network. If you don't have an ASN already, you can use a
-// private ASN. For more information, see [Customer gateway options for your Site-to-Site VPN connection]in the Amazon Web Services Site-to-Site
-// VPN User Guide.
-//
-// To create more than one customer gateway with the same VPN type, IP address,
-// and BGP ASN, specify a unique device name for each customer gateway. An
-// identical request returns information about the existing customer gateway; it
-// doesn't create a new customer gateway.
-//
-// [Customer gateway options for your Site-to-Site VPN connection]: https://docs.aws.amazon.com/vpn/latest/s2svpn/cgw-options.html
-func (c *Client) CreateCustomerGateway(ctx context.Context, params *CreateCustomerGatewayInput, optFns ...func(*Options)) (*CreateCustomerGatewayOutput, error) {
- if params == nil {
- params = &CreateCustomerGatewayInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateCustomerGateway", params, optFns, c.addOperationCreateCustomerGatewayMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateCustomerGatewayOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for CreateCustomerGateway.
-type CreateCustomerGatewayInput struct {
-
- // The type of VPN connection that this customer gateway supports ( ipsec.1 ).
- //
- // This member is required.
- Type types.GatewayType
-
- // For customer gateway devices that support BGP, specify the device's ASN. You
- // must specify either BgpAsn or BgpAsnExtended when creating the customer
- // gateway. If the ASN is larger than 2,147,483,647 , you must use BgpAsnExtended .
- //
- // Default: 65000
- //
- // Valid values: 1 to 2,147,483,647
- BgpAsn *int32
-
- // For customer gateway devices that support BGP, specify the device's ASN. You
- // must specify either BgpAsn or BgpAsnExtended when creating the customer
- // gateway. If the ASN is larger than 2,147,483,647 , you must use BgpAsnExtended .
- //
- // Valid values: 2,147,483,648 to 4,294,967,295
- BgpAsnExtended *int64
-
- // The Amazon Resource Name (ARN) for the customer gateway certificate.
- CertificateArn *string
-
- // A name for the customer gateway device.
- //
- // Length Constraints: Up to 255 characters.
- DeviceName *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The IP address for the customer gateway device's outside interface. The address
- // must be static. If OutsideIpAddressType in your VPN connection options is set
- // to PrivateIpv4 , you can use an RFC6598 or RFC1918 private IPv4 address. If
- // OutsideIpAddressType is set to Ipv6 , you can use an IPv6 address.
- IpAddress *string
-
- // This member has been deprecated. The Internet-routable IP address for the
- // customer gateway's outside interface. The address must be static.
- PublicIp *string
-
- // The tags to apply to the customer gateway.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of CreateCustomerGateway.
-type CreateCustomerGatewayOutput struct {
-
- // Information about the customer gateway.
- CustomerGateway *types.CustomerGateway
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateCustomerGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateCustomerGateway{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateCustomerGateway{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateCustomerGateway"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateCustomerGatewayValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateCustomerGateway(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateCustomerGateway(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateCustomerGateway",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDefaultSubnet.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDefaultSubnet.go
deleted file mode 100644
index 5d7ef24ec..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDefaultSubnet.go
+++ /dev/null
@@ -1,175 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a default subnet with a size /20 IPv4 CIDR block in the specified
-// Availability Zone in your default VPC. You can have only one default subnet per
-// Availability Zone. For more information, see [Create a default subnet]in the Amazon VPC User Guide.
-//
-// [Create a default subnet]: https://docs.aws.amazon.com/vpc/latest/userguide/work-with-default-vpc.html#create-default-subnet
-func (c *Client) CreateDefaultSubnet(ctx context.Context, params *CreateDefaultSubnetInput, optFns ...func(*Options)) (*CreateDefaultSubnetOutput, error) {
- if params == nil {
- params = &CreateDefaultSubnetInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateDefaultSubnet", params, optFns, c.addOperationCreateDefaultSubnetMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateDefaultSubnetOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateDefaultSubnetInput struct {
-
- // The Availability Zone in which to create the default subnet.
- //
- // This member is required.
- AvailabilityZone *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Indicates whether to create an IPv6 only subnet. If you already have a default
- // subnet for this Availability Zone, you must delete it before you can create an
- // IPv6 only subnet.
- Ipv6Native *bool
-
- noSmithyDocumentSerde
-}
-
-type CreateDefaultSubnetOutput struct {
-
- // Information about the subnet.
- Subnet *types.Subnet
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateDefaultSubnetMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateDefaultSubnet{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateDefaultSubnet{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateDefaultSubnet"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateDefaultSubnetValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateDefaultSubnet(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateDefaultSubnet(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateDefaultSubnet",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDefaultVpc.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDefaultVpc.go
deleted file mode 100644
index 37d297ff1..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDefaultVpc.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet in
-// each Availability Zone. For more information about the components of a default
-// VPC, see [Default VPCs]in the Amazon VPC User Guide. You cannot specify the components of the
-// default VPC yourself.
-//
-// If you deleted your previous default VPC, you can create a default VPC. You
-// cannot have more than one default VPC per Region.
-//
-// [Default VPCs]: https://docs.aws.amazon.com/vpc/latest/userguide/default-vpc.html
-func (c *Client) CreateDefaultVpc(ctx context.Context, params *CreateDefaultVpcInput, optFns ...func(*Options)) (*CreateDefaultVpcOutput, error) {
- if params == nil {
- params = &CreateDefaultVpcInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateDefaultVpc", params, optFns, c.addOperationCreateDefaultVpcMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateDefaultVpcOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateDefaultVpcInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type CreateDefaultVpcOutput struct {
-
- // Information about the VPC.
- Vpc *types.Vpc
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateDefaultVpcMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateDefaultVpc{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateDefaultVpc{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateDefaultVpc"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateDefaultVpc(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateDefaultVpc(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateDefaultVpc",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDelegateMacVolumeOwnershipTask.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDelegateMacVolumeOwnershipTask.go
deleted file mode 100644
index 6be582827..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDelegateMacVolumeOwnershipTask.go
+++ /dev/null
@@ -1,239 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Delegates ownership of the Amazon EBS root volume for an Apple silicon Mac
-// instance to an administrative user.
-func (c *Client) CreateDelegateMacVolumeOwnershipTask(ctx context.Context, params *CreateDelegateMacVolumeOwnershipTaskInput, optFns ...func(*Options)) (*CreateDelegateMacVolumeOwnershipTaskOutput, error) {
- if params == nil {
- params = &CreateDelegateMacVolumeOwnershipTaskInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateDelegateMacVolumeOwnershipTask", params, optFns, c.addOperationCreateDelegateMacVolumeOwnershipTaskMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateDelegateMacVolumeOwnershipTaskOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateDelegateMacVolumeOwnershipTaskInput struct {
-
- // The ID of the Amazon EC2 Mac instance.
- //
- // This member is required.
- InstanceId *string
-
- // Specifies the following credentials:
- //
- // - Internal disk administrative user
- //
- // - Username - Only the default administrative user ( aws-managed-user ) is
- // supported and it is used by default. You can't specify a different
- // administrative user.
- //
- // - Password - If you did not change the default password for aws-managed-user ,
- // specify the default password, which is blank. Otherwise, specify your password.
- //
- // - Amazon EBS root volume administrative user
- //
- // - Username - If you did not change the default administrative user, specify
- // ec2-user . Otherwise, specify the username for your administrative user.
- //
- // - Password - Specify the password for the administrative user.
- //
- // The credentials must be specified in the following JSON format:
- //
- // { "internalDiskPassword":"internal-disk-admin_password",
- // "rootVolumeUsername":"root-volume-admin_username",
- // "rootVolumepassword":"root-volume-admin_password" }
- //
- // This member is required.
- MacCredentials *string
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensuring Idempotency].
- //
- // [Ensuring Idempotency]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags to assign to the volume ownership delegation task.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateDelegateMacVolumeOwnershipTaskOutput struct {
-
- // Information about the volume ownership delegation task.
- MacModificationTask *types.MacModificationTask
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateDelegateMacVolumeOwnershipTaskMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateDelegateMacVolumeOwnershipTask{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateDelegateMacVolumeOwnershipTask{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateDelegateMacVolumeOwnershipTask"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateDelegateMacVolumeOwnershipTaskMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateDelegateMacVolumeOwnershipTaskValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateDelegateMacVolumeOwnershipTask(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateDelegateMacVolumeOwnershipTask struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateDelegateMacVolumeOwnershipTask) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateDelegateMacVolumeOwnershipTask) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateDelegateMacVolumeOwnershipTaskInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateDelegateMacVolumeOwnershipTaskInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateDelegateMacVolumeOwnershipTaskMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateDelegateMacVolumeOwnershipTask{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateDelegateMacVolumeOwnershipTask(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateDelegateMacVolumeOwnershipTask",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDhcpOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDhcpOptions.go
deleted file mode 100644
index 72229495a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDhcpOptions.go
+++ /dev/null
@@ -1,213 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a custom set of DHCP options. After you create a DHCP option set, you
-// associate it with a VPC. After you associate a DHCP option set with a VPC, all
-// existing and newly launched instances in the VPC use this set of DHCP options.
-//
-// The following are the individual DHCP options you can specify. For more
-// information, see [DHCP option sets]in the Amazon VPC User Guide.
-//
-// - domain-name - If you're using AmazonProvidedDNS in us-east-1 , specify
-// ec2.internal . If you're using AmazonProvidedDNS in any other Region, specify
-// region.compute.internal . Otherwise, specify a custom domain name. This value
-// is used to complete unqualified DNS hostnames.
-//
-// Some Linux operating systems accept multiple domain names separated by spaces.
-//
-// However, Windows and other Linux operating systems treat the value as a single
-// domain, which results in unexpected behavior. If your DHCP option set is
-// associated with a VPC that has instances running operating systems that treat
-// the value as a single domain, specify only one domain name.
-//
-// - domain-name-servers - The IP addresses of up to four DNS servers, or
-// AmazonProvidedDNS. To specify multiple domain name servers in a single
-// parameter, separate the IP addresses using commas. To have your instances
-// receive custom DNS hostnames as specified in domain-name , you must specify a
-// custom DNS server.
-//
-// - ntp-servers - The IP addresses of up to eight Network Time Protocol (NTP)
-// servers (four IPv4 addresses and four IPv6 addresses).
-//
-// - netbios-name-servers - The IP addresses of up to four NetBIOS name servers.
-//
-// - netbios-node-type - The NetBIOS node type (1, 2, 4, or 8). We recommend that
-// you specify 2. Broadcast and multicast are not supported. For more information
-// about NetBIOS node types, see [RFC 2132].
-//
-// - ipv6-address-preferred-lease-time - A value (in seconds, minutes, hours, or
-// years) for how frequently a running instance with an IPv6 assigned to it goes
-// through DHCPv6 lease renewal. Acceptable values are between 140 and 2147483647
-// seconds (approximately 68 years). If no value is entered, the default lease time
-// is 140 seconds. If you use long-term addressing for EC2 instances, you can
-// increase the lease time and avoid frequent lease renewal requests. Lease renewal
-// typically occurs when half of the lease time has elapsed.
-//
-// [DHCP option sets]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html
-//
-// [RFC 2132]: https://www.ietf.org/rfc/rfc2132.txt
-func (c *Client) CreateDhcpOptions(ctx context.Context, params *CreateDhcpOptionsInput, optFns ...func(*Options)) (*CreateDhcpOptionsOutput, error) {
- if params == nil {
- params = &CreateDhcpOptionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateDhcpOptions", params, optFns, c.addOperationCreateDhcpOptionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateDhcpOptionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateDhcpOptionsInput struct {
-
- // A DHCP configuration option.
- //
- // This member is required.
- DhcpConfigurations []types.NewDhcpConfiguration
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags to assign to the DHCP option.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateDhcpOptionsOutput struct {
-
- // A set of DHCP options.
- DhcpOptions *types.DhcpOptions
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateDhcpOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateDhcpOptions{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateDhcpOptions{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateDhcpOptions"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateDhcpOptionsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateDhcpOptions(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateDhcpOptions(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateDhcpOptions",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateEgressOnlyInternetGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateEgressOnlyInternetGateway.go
deleted file mode 100644
index c2347e585..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateEgressOnlyInternetGateway.go
+++ /dev/null
@@ -1,182 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// [IPv6 only] Creates an egress-only internet gateway for your VPC. An
-// egress-only internet gateway is used to enable outbound communication over IPv6
-// from instances in your VPC to the internet, and prevents hosts outside of your
-// VPC from initiating an IPv6 connection with your instance.
-func (c *Client) CreateEgressOnlyInternetGateway(ctx context.Context, params *CreateEgressOnlyInternetGatewayInput, optFns ...func(*Options)) (*CreateEgressOnlyInternetGatewayOutput, error) {
- if params == nil {
- params = &CreateEgressOnlyInternetGatewayInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateEgressOnlyInternetGateway", params, optFns, c.addOperationCreateEgressOnlyInternetGatewayMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateEgressOnlyInternetGatewayOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateEgressOnlyInternetGatewayInput struct {
-
- // The ID of the VPC for which to create the egress-only internet gateway.
- //
- // This member is required.
- VpcId *string
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags to assign to the egress-only internet gateway.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateEgressOnlyInternetGatewayOutput struct {
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request.
- ClientToken *string
-
- // Information about the egress-only internet gateway.
- EgressOnlyInternetGateway *types.EgressOnlyInternetGateway
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateEgressOnlyInternetGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateEgressOnlyInternetGateway{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateEgressOnlyInternetGateway{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateEgressOnlyInternetGateway"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateEgressOnlyInternetGatewayValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateEgressOnlyInternetGateway(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateEgressOnlyInternetGateway(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateEgressOnlyInternetGateway",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFleet.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFleet.go
deleted file mode 100644
index 3301784f6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFleet.go
+++ /dev/null
@@ -1,305 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Creates an EC2 Fleet that contains the configuration information for On-Demand
-// Instances and Spot Instances. Instances are launched immediately if there is
-// available capacity.
-//
-// A single EC2 Fleet can include multiple launch specifications that vary by
-// instance type, AMI, Availability Zone, or subnet.
-//
-// For more information, see [EC2 Fleet] in the Amazon EC2 User Guide.
-//
-// [EC2 Fleet]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet.html
-func (c *Client) CreateFleet(ctx context.Context, params *CreateFleetInput, optFns ...func(*Options)) (*CreateFleetOutput, error) {
- if params == nil {
- params = &CreateFleetInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateFleet", params, optFns, c.addOperationCreateFleetMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateFleetOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateFleetInput struct {
-
- // The configuration for the EC2 Fleet.
- //
- // This member is required.
- LaunchTemplateConfigs []types.FleetLaunchTemplateConfigRequest
-
- // The number of units to request.
- //
- // This member is required.
- TargetCapacitySpecification *types.TargetCapacitySpecificationRequest
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. If you do not specify a client token, a randomly generated token is
- // used for the request to ensure idempotency.
- //
- // For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
- ClientToken *string
-
- // Reserved.
- Context *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Indicates whether running instances should be terminated if the total target
- // capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
- //
- // Supported only for fleets of type maintain .
- ExcessCapacityTerminationPolicy types.FleetExcessCapacityTerminationPolicy
-
- // Describes the configuration of On-Demand Instances in an EC2 Fleet.
- OnDemandOptions *types.OnDemandOptionsRequest
-
- // Indicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported
- // only for fleets of type maintain . For more information, see [EC2 Fleet health checks] in the Amazon EC2
- // User Guide.
- //
- // [EC2 Fleet health checks]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-ec2-fleet.html#ec2-fleet-health-checks
- ReplaceUnhealthyInstances *bool
-
- // Describes the configuration of Spot Instances in an EC2 Fleet.
- SpotOptions *types.SpotOptionsRequest
-
- // The key-value pair for tagging the EC2 Fleet request on creation. For more
- // information, see [Tag your resources].
- //
- // If the fleet type is instant , specify a resource type of fleet to tag the
- // fleet or instance to tag the instances at launch.
- //
- // If the fleet type is maintain or request , specify a resource type of fleet to
- // tag the fleet. You cannot specify a resource type of instance . To tag instances
- // at launch, specify the tags in a [launch template].
- //
- // [launch template]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#create-launch-template
- // [Tag your resources]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#tag-resources
- TagSpecifications []types.TagSpecification
-
- // Indicates whether running instances should be terminated when the EC2 Fleet
- // expires.
- TerminateInstancesWithExpiration *bool
-
- // The fleet type. The default value is maintain .
- //
- // - maintain - The EC2 Fleet places an asynchronous request for your desired
- // capacity, and continues to maintain your desired Spot capacity by replenishing
- // interrupted Spot Instances.
- //
- // - request - The EC2 Fleet places an asynchronous one-time request for your
- // desired capacity, but does submit Spot requests in alternative capacity pools if
- // Spot capacity is unavailable, and does not maintain Spot capacity if Spot
- // Instances are interrupted.
- //
- // - instant - The EC2 Fleet places a synchronous one-time request for your
- // desired capacity, and returns errors for any instances that could not be
- // launched.
- //
- // For more information, see [EC2 Fleet request types] in the Amazon EC2 User Guide.
- //
- // [EC2 Fleet request types]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-request-type.html
- Type types.FleetType
-
- // The start date and time of the request, in UTC format (for example,
- // YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request
- // immediately.
- ValidFrom *time.Time
-
- // The end date and time of the request, in UTC format (for example,
- // YYYY-MM-DDTHH:MM:SSZ). At this point, no new EC2 Fleet requests are placed or
- // able to fulfill the request. If no value is specified, the request remains until
- // you cancel it.
- ValidUntil *time.Time
-
- noSmithyDocumentSerde
-}
-
-type CreateFleetOutput struct {
-
- // Information about the instances that could not be launched by the fleet.
- // Supported only for fleets of type instant .
- Errors []types.CreateFleetError
-
- // The ID of the EC2 Fleet.
- FleetId *string
-
- // Information about the instances that were launched by the fleet. Supported only
- // for fleets of type instant .
- Instances []types.CreateFleetInstance
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateFleetMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateFleet{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateFleet{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateFleet"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateFleetMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateFleetValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateFleet(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateFleet struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateFleet) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateFleet) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateFleetInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateFleetInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateFleetMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateFleet{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateFleet(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateFleet",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFlowLogs.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFlowLogs.go
deleted file mode 100644
index 64582576c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFlowLogs.go
+++ /dev/null
@@ -1,285 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates one or more flow logs to capture information about IP traffic for a
-// specific network interface, subnet, or VPC.
-//
-// Flow log data for a monitored network interface is recorded as flow log
-// records, which are log events consisting of fields that describe the traffic
-// flow. For more information, see [Flow log records]in the Amazon VPC User Guide.
-//
-// When publishing to CloudWatch Logs, flow log records are published to a log
-// group, and each network interface has a unique log stream in the log group. When
-// publishing to Amazon S3, flow log records for all of the monitored network
-// interfaces are published to a single log file object that is stored in the
-// specified bucket.
-//
-// For more information, see [VPC Flow Logs] in the Amazon VPC User Guide.
-//
-// [Flow log records]: https://docs.aws.amazon.com/vpc/latest/userguide/flow-log-records.html
-// [VPC Flow Logs]: https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html
-func (c *Client) CreateFlowLogs(ctx context.Context, params *CreateFlowLogsInput, optFns ...func(*Options)) (*CreateFlowLogsOutput, error) {
- if params == nil {
- params = &CreateFlowLogsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateFlowLogs", params, optFns, c.addOperationCreateFlowLogsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateFlowLogsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateFlowLogsInput struct {
-
- // The IDs of the resources to monitor. For example, if the resource type is VPC ,
- // specify the IDs of the VPCs.
- //
- // Constraints: Maximum of 25 for transit gateway resource types. Maximum of 1000
- // for the other resource types.
- //
- // This member is required.
- ResourceIds []string
-
- // The type of resource to monitor.
- //
- // This member is required.
- ResourceType types.FlowLogsResourceType
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [How to ensure idempotency].
- //
- // [How to ensure idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // The ARN of the IAM role that allows Amazon EC2 to publish flow logs across
- // accounts.
- DeliverCrossAccountRole *string
-
- // The ARN of the IAM role that allows Amazon EC2 to publish flow logs to the log
- // destination.
- //
- // This parameter is required if the destination type is cloud-watch-logs , or if
- // the destination type is kinesis-data-firehose and the delivery stream and the
- // resources to monitor are in different accounts.
- DeliverLogsPermissionArn *string
-
- // The destination options.
- DestinationOptions *types.DestinationOptionsRequest
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The destination for the flow log data. The meaning of this parameter depends on
- // the destination type.
- //
- // - If the destination type is cloud-watch-logs , specify the ARN of a
- // CloudWatch Logs log group. For example:
- //
- // arn:aws:logs:region:account_id:log-group:my_group
- //
- // Alternatively, use the LogGroupName parameter.
- //
- // - If the destination type is s3 , specify the ARN of an S3 bucket. For example:
- //
- // arn:aws:s3:::my_bucket/my_subfolder/
- //
- // The subfolder is optional. Note that you can't use AWSLogs as a subfolder name.
- //
- // - If the destination type is kinesis-data-firehose , specify the ARN of a
- // Kinesis Data Firehose delivery stream. For example:
- //
- // arn:aws:firehose:region:account_id:deliverystream:my_stream
- LogDestination *string
-
- // The type of destination for the flow log data.
- //
- // Default: cloud-watch-logs
- LogDestinationType types.LogDestinationType
-
- // The fields to include in the flow log record. List the fields in the order in
- // which they should appear. If you omit this parameter, the flow log is created
- // using the default format. If you specify this parameter, you must include at
- // least one field. For more information about the available fields, see [Flow log records]in the
- // Amazon VPC User Guide or [Transit Gateway Flow Log records]in the Amazon Web Services Transit Gateway Guide.
- //
- // Specify the fields using the ${field-id} format, separated by spaces.
- //
- // [Flow log records]: https://docs.aws.amazon.com/vpc/latest/userguide/flow-log-records.html
- // [Transit Gateway Flow Log records]: https://docs.aws.amazon.com/vpc/latest/tgw/tgw-flow-logs.html#flow-log-records
- LogFormat *string
-
- // The name of a new or existing CloudWatch Logs log group where Amazon EC2
- // publishes your flow logs.
- //
- // This parameter is valid only if the destination type is cloud-watch-logs .
- LogGroupName *string
-
- // The maximum interval of time during which a flow of packets is captured and
- // aggregated into a flow log record. The possible values are 60 seconds (1 minute)
- // or 600 seconds (10 minutes). This parameter must be 60 seconds for transit
- // gateway resource types.
- //
- // When a network interface is attached to a [Nitro-based instance], the aggregation interval is always
- // 60 seconds or less, regardless of the value that you specify.
- //
- // Default: 600
- //
- // [Nitro-based instance]: https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html
- MaxAggregationInterval *int32
-
- // The tags to apply to the flow logs.
- TagSpecifications []types.TagSpecification
-
- // The type of traffic to monitor (accepted traffic, rejected traffic, or all
- // traffic). This parameter is not supported for transit gateway resource types. It
- // is required for the other resource types.
- TrafficType types.TrafficType
-
- noSmithyDocumentSerde
-}
-
-type CreateFlowLogsOutput struct {
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request.
- ClientToken *string
-
- // The IDs of the flow logs.
- FlowLogIds []string
-
- // Information about the flow logs that could not be created successfully.
- Unsuccessful []types.UnsuccessfulItem
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateFlowLogsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateFlowLogs{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateFlowLogs{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateFlowLogs"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateFlowLogsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateFlowLogs(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateFlowLogs(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateFlowLogs",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFpgaImage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFpgaImage.go
deleted file mode 100644
index 764d38bf4..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFpgaImage.go
+++ /dev/null
@@ -1,197 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates an Amazon FPGA Image (AFI) from the specified design checkpoint (DCP).
-//
-// The create operation is asynchronous. To verify that the AFI is ready for use,
-// check the output logs.
-//
-// An AFI contains the FPGA bitstream that is ready to download to an FPGA. You
-// can securely deploy an AFI on multiple FPGA-accelerated instances. For more
-// information, see the [Amazon Web Services FPGA Hardware Development Kit].
-//
-// [Amazon Web Services FPGA Hardware Development Kit]: https://github.com/aws/aws-fpga/
-func (c *Client) CreateFpgaImage(ctx context.Context, params *CreateFpgaImageInput, optFns ...func(*Options)) (*CreateFpgaImageOutput, error) {
- if params == nil {
- params = &CreateFpgaImageInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateFpgaImage", params, optFns, c.addOperationCreateFpgaImageMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateFpgaImageOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateFpgaImageInput struct {
-
- // The location of the encrypted design checkpoint in Amazon S3. The input must be
- // a tarball.
- //
- // This member is required.
- InputStorageLocation *types.StorageLocation
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensuring Idempotency].
- //
- // [Ensuring Idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // A description for the AFI.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The location in Amazon S3 for the output logs.
- LogsStorageLocation *types.StorageLocation
-
- // A name for the AFI.
- Name *string
-
- // The tags to apply to the FPGA image during creation.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateFpgaImageOutput struct {
-
- // The global FPGA image identifier (AGFI ID).
- FpgaImageGlobalId *string
-
- // The FPGA image identifier (AFI ID).
- FpgaImageId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateFpgaImageMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateFpgaImage{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateFpgaImage{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateFpgaImage"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateFpgaImageValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateFpgaImage(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateFpgaImage(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateFpgaImage",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateImage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateImage.go
deleted file mode 100644
index 320fbf5d2..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateImage.go
+++ /dev/null
@@ -1,261 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that is
-// either running or stopped.
-//
-// If you customized your instance with instance store volumes or Amazon EBS
-// volumes in addition to the root device volume, the new AMI contains block device
-// mapping information for those volumes. When you launch an instance from this new
-// AMI, the instance automatically launches with those additional volumes.
-//
-// The location of the source instance determines where you can create the
-// snapshots of the AMI:
-//
-// - If the source instance is in a Region, you must create the snapshots in the
-// same Region as the instance.
-//
-// - If the source instance is in a Local Zone, you can create the snapshots in
-// the same Local Zone or in its parent Region.
-//
-// For more information, see [Create an Amazon EBS-backed AMI] in the Amazon Elastic Compute Cloud User Guide.
-//
-// [Create an Amazon EBS-backed AMI]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html
-func (c *Client) CreateImage(ctx context.Context, params *CreateImageInput, optFns ...func(*Options)) (*CreateImageOutput, error) {
- if params == nil {
- params = &CreateImageInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateImage", params, optFns, c.addOperationCreateImageMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateImageOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateImageInput struct {
-
- // The ID of the instance.
- //
- // This member is required.
- InstanceId *string
-
- // A name for the new image.
- //
- // Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets
- // ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('),
- // at-signs (@), or underscores(_)
- //
- // This member is required.
- Name *string
-
- // The block device mappings.
- //
- // When using the CreateImage action:
- //
- // - You can't change the volume size using the VolumeSize parameter. If you
- // want a different volume size, you must first change the volume size of the
- // source instance.
- //
- // - You can't modify the encryption status of existing volumes or snapshots. To
- // create an AMI with volumes or snapshots that have a different encryption status
- // (for example, where the source volume and snapshots are unencrypted, and you
- // want to create an AMI with encrypted volumes or snapshots), use the CopyImageaction.
- //
- // - The only option that can be changed for existing mappings or snapshots is
- // DeleteOnTermination .
- BlockDeviceMappings []types.BlockDeviceMapping
-
- // A description for the new image.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Indicates whether or not the instance should be automatically rebooted before
- // creating the image. Specify one of the following values:
- //
- // - true - The instance is not rebooted before creating the image. This creates
- // crash-consistent snapshots that include only the data that has been written to
- // the volumes at the time the snapshots are created. Buffered data and data in
- // memory that has not yet been written to the volumes is not included in the
- // snapshots.
- //
- // - false - The instance is rebooted before creating the image. This ensures
- // that all buffered data and data in memory is written to the volumes before the
- // snapshots are created.
- //
- // Default: false
- NoReboot *bool
-
- // Only supported for instances in Local Zones. If the source instance is not in a
- // Local Zone, omit this parameter.
- //
- // The Amazon S3 location where the snapshots will be stored.
- //
- // - To create local snapshots in the same Local Zone as the source instance,
- // specify local .
- //
- // - To create regional snapshots in the parent Region of the Local Zone,
- // specify regional or omit this parameter.
- //
- // Default: regional
- SnapshotLocation types.SnapshotLocationEnum
-
- // The tags to apply to the AMI and snapshots on creation. You can tag the AMI,
- // the snapshots, or both.
- //
- // - To tag the AMI, the value for ResourceType must be image .
- //
- // - To tag the snapshots that are created of the root volume and of other
- // Amazon EBS volumes that are attached to the instance, the value for
- // ResourceType must be snapshot . The same tag is applied to all of the
- // snapshots that are created.
- //
- // If you specify other values for ResourceType , the request fails.
- //
- // To tag an AMI or snapshot after it has been created, see [CreateTags].
- //
- // [CreateTags]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateImageOutput struct {
-
- // The ID of the new AMI.
- ImageId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateImageMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateImage{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateImage{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateImage"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateImageValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateImage(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateImage(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateImage",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInstanceConnectEndpoint.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInstanceConnectEndpoint.go
deleted file mode 100644
index 7929c9c95..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInstanceConnectEndpoint.go
+++ /dev/null
@@ -1,252 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates an EC2 Instance Connect Endpoint.
-//
-// An EC2 Instance Connect Endpoint allows you to connect to an instance, without
-// requiring the instance to have a public IPv4 or public IPv6 address. For more
-// information, see [Connect to your instances using EC2 Instance Connect Endpoint]in the Amazon EC2 User Guide.
-//
-// [Connect to your instances using EC2 Instance Connect Endpoint]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Connect-using-EC2-Instance-Connect-Endpoint.html
-func (c *Client) CreateInstanceConnectEndpoint(ctx context.Context, params *CreateInstanceConnectEndpointInput, optFns ...func(*Options)) (*CreateInstanceConnectEndpointOutput, error) {
- if params == nil {
- params = &CreateInstanceConnectEndpointInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateInstanceConnectEndpoint", params, optFns, c.addOperationCreateInstanceConnectEndpointMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateInstanceConnectEndpointOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateInstanceConnectEndpointInput struct {
-
- // The ID of the subnet in which to create the EC2 Instance Connect Endpoint.
- //
- // This member is required.
- SubnetId *string
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request.
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The IP address type of the endpoint.
- //
- // If no value is specified, the default value is determined by the IP address
- // type of the subnet:
- //
- // - dualstack - If the subnet has both IPv4 and IPv6 CIDRs
- //
- // - ipv4 - If the subnet has only IPv4 CIDRs
- //
- // - ipv6 - If the subnet has only IPv6 CIDRs
- //
- // PreserveClientIp is only supported on IPv4 EC2 Instance Connect Endpoints. To
- // use PreserveClientIp , the value for IpAddressType must be ipv4 .
- IpAddressType types.IpAddressType
-
- // Indicates whether the client IP address is preserved as the source. The
- // following are the possible values.
- //
- // - true - Use the client IP address as the source.
- //
- // - false - Use the network interface IP address as the source.
- //
- // PreserveClientIp is only supported on IPv4 EC2 Instance Connect Endpoints. To
- // use PreserveClientIp , the value for IpAddressType must be ipv4 .
- //
- // Default: false
- PreserveClientIp *bool
-
- // One or more security groups to associate with the endpoint. If you don't
- // specify a security group, the default security group for your VPC will be
- // associated with the endpoint.
- SecurityGroupIds []string
-
- // The tags to apply to the EC2 Instance Connect Endpoint during creation.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateInstanceConnectEndpointOutput struct {
-
- // Unique, case-sensitive idempotency token provided by the client in the the
- // request.
- ClientToken *string
-
- // Information about the EC2 Instance Connect Endpoint.
- InstanceConnectEndpoint *types.Ec2InstanceConnectEndpoint
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateInstanceConnectEndpointMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateInstanceConnectEndpoint{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateInstanceConnectEndpoint{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateInstanceConnectEndpoint"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateInstanceConnectEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateInstanceConnectEndpointValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateInstanceConnectEndpoint(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateInstanceConnectEndpoint struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateInstanceConnectEndpoint) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateInstanceConnectEndpoint) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateInstanceConnectEndpointInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateInstanceConnectEndpointInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateInstanceConnectEndpointMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateInstanceConnectEndpoint{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateInstanceConnectEndpoint(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateInstanceConnectEndpoint",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInstanceEventWindow.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInstanceEventWindow.go
deleted file mode 100644
index de9609807..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInstanceEventWindow.go
+++ /dev/null
@@ -1,216 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates an event window in which scheduled events for the associated Amazon EC2
-// instances can run.
-//
-// You can define either a set of time ranges or a cron expression when creating
-// the event window, but not both. All event window times are in UTC.
-//
-// You can create up to 200 event windows per Amazon Web Services Region.
-//
-// When you create the event window, targets (instance IDs, Dedicated Host IDs, or
-// tags) are not yet associated with it. To ensure that the event window can be
-// used, you must associate one or more targets with it by using the AssociateInstanceEventWindowAPI.
-//
-// Event windows are applicable only for scheduled events that stop, reboot, or
-// terminate instances.
-//
-// Event windows are not applicable for:
-//
-// - Expedited scheduled events and network maintenance events.
-//
-// - Unscheduled maintenance such as AutoRecovery and unplanned reboots.
-//
-// For more information, see [Define event windows for scheduled events] in the Amazon EC2 User Guide.
-//
-// [Define event windows for scheduled events]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html
-func (c *Client) CreateInstanceEventWindow(ctx context.Context, params *CreateInstanceEventWindowInput, optFns ...func(*Options)) (*CreateInstanceEventWindowOutput, error) {
- if params == nil {
- params = &CreateInstanceEventWindowInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateInstanceEventWindow", params, optFns, c.addOperationCreateInstanceEventWindowMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateInstanceEventWindowOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateInstanceEventWindowInput struct {
-
- // The cron expression for the event window, for example, * 0-4,20-23 * * 1,5 . If
- // you specify a cron expression, you can't specify a time range.
- //
- // Constraints:
- //
- // - Only hour and day of the week values are supported.
- //
- // - For day of the week values, you can specify either integers 0 through 6 , or
- // alternative single values SUN through SAT .
- //
- // - The minute, month, and year must be specified by * .
- //
- // - The hour value must be one or a multiple range, for example, 0-4 or
- // 0-4,20-23 .
- //
- // - Each hour range must be >= 2 hours, for example, 0-2 or 20-23 .
- //
- // - The event window must be >= 4 hours. The combined total time ranges in the
- // event window must be >= 4 hours.
- //
- // For more information about cron expressions, see [cron] on the Wikipedia website.
- //
- // [cron]: https://en.wikipedia.org/wiki/Cron
- CronExpression *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The name of the event window.
- Name *string
-
- // The tags to apply to the event window.
- TagSpecifications []types.TagSpecification
-
- // The time range for the event window. If you specify a time range, you can't
- // specify a cron expression.
- TimeRanges []types.InstanceEventWindowTimeRangeRequest
-
- noSmithyDocumentSerde
-}
-
-type CreateInstanceEventWindowOutput struct {
-
- // Information about the event window.
- InstanceEventWindow *types.InstanceEventWindow
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateInstanceEventWindowMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateInstanceEventWindow{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateInstanceEventWindow{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateInstanceEventWindow"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateInstanceEventWindow(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateInstanceEventWindow(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateInstanceEventWindow",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInstanceExportTask.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInstanceExportTask.go
deleted file mode 100644
index b3387ca02..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInstanceExportTask.go
+++ /dev/null
@@ -1,183 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Exports a running or stopped instance to an Amazon S3 bucket.
-//
-// For information about the prerequisites for your Amazon S3 bucket, supported
-// operating systems, image formats, and known limitations for the types of
-// instances you can export, see [Exporting an instance as a VM Using VM Import/Export]in the VM Import/Export User Guide.
-//
-// [Exporting an instance as a VM Using VM Import/Export]: https://docs.aws.amazon.com/vm-import/latest/userguide/vmexport.html
-func (c *Client) CreateInstanceExportTask(ctx context.Context, params *CreateInstanceExportTaskInput, optFns ...func(*Options)) (*CreateInstanceExportTaskOutput, error) {
- if params == nil {
- params = &CreateInstanceExportTaskInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateInstanceExportTask", params, optFns, c.addOperationCreateInstanceExportTaskMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateInstanceExportTaskOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateInstanceExportTaskInput struct {
-
- // The format and location for an export instance task.
- //
- // This member is required.
- ExportToS3Task *types.ExportToS3TaskSpecification
-
- // The ID of the instance.
- //
- // This member is required.
- InstanceId *string
-
- // The target virtualization environment.
- //
- // This member is required.
- TargetEnvironment types.ExportEnvironment
-
- // A description for the conversion task or the resource being exported. The
- // maximum length is 255 characters.
- Description *string
-
- // The tags to apply to the export instance task during creation.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateInstanceExportTaskOutput struct {
-
- // Information about the export instance task.
- ExportTask *types.ExportTask
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateInstanceExportTaskMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateInstanceExportTask{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateInstanceExportTask{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateInstanceExportTask"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateInstanceExportTaskValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateInstanceExportTask(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateInstanceExportTask(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateInstanceExportTask",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInternetGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInternetGateway.go
deleted file mode 100644
index 38aa1c36c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInternetGateway.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates an internet gateway for use with a VPC. After creating the internet
-// gateway, you attach it to a VPC using AttachInternetGateway.
-//
-// For more information, see [Internet gateways] in the Amazon VPC User Guide.
-//
-// [Internet gateways]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Internet_Gateway.html
-func (c *Client) CreateInternetGateway(ctx context.Context, params *CreateInternetGatewayInput, optFns ...func(*Options)) (*CreateInternetGatewayOutput, error) {
- if params == nil {
- params = &CreateInternetGatewayInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateInternetGateway", params, optFns, c.addOperationCreateInternetGatewayMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateInternetGatewayOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateInternetGatewayInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags to assign to the internet gateway.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateInternetGatewayOutput struct {
-
- // Information about the internet gateway.
- InternetGateway *types.InternetGateway
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateInternetGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateInternetGateway{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateInternetGateway{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateInternetGateway"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateInternetGateway(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateInternetGateway(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateInternetGateway",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpam.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpam.go
deleted file mode 100644
index a804b0778..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpam.go
+++ /dev/null
@@ -1,253 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Create an IPAM. Amazon VPC IP Address Manager (IPAM) is a VPC feature that you
-// can use to automate your IP address management workflows including assigning,
-// tracking, troubleshooting, and auditing IP addresses across Amazon Web Services
-// Regions and accounts throughout your Amazon Web Services Organization.
-//
-// For more information, see [Create an IPAM] in the Amazon VPC IPAM User Guide.
-//
-// [Create an IPAM]: https://docs.aws.amazon.com/vpc/latest/ipam/create-ipam.html
-func (c *Client) CreateIpam(ctx context.Context, params *CreateIpamInput, optFns ...func(*Options)) (*CreateIpamOutput, error) {
- if params == nil {
- params = &CreateIpamInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateIpam", params, optFns, c.addOperationCreateIpamMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateIpamOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateIpamInput struct {
-
- // A unique, case-sensitive identifier that you provide to ensure the idempotency
- // of the request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // A description for the IPAM.
- Description *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Enable this option to use your own GUA ranges as private IPv6 addresses. This
- // option is disabled by default.
- EnablePrivateGua *bool
-
- // A metered account is an Amazon Web Services account that is charged for active
- // IP addresses managed in IPAM. For more information, see [Enable cost distribution]in the Amazon VPC IPAM
- // User Guide.
- //
- // Possible values:
- //
- // - ipam-owner (default): The Amazon Web Services account which owns the IPAM is
- // charged for all active IP addresses managed in IPAM.
- //
- // - resource-owner : The Amazon Web Services account that owns the IP address is
- // charged for the active IP address.
- //
- // [Enable cost distribution]: https://docs.aws.amazon.com/vpc/latest/ipam/ipam-enable-cost-distro.html
- MeteredAccount types.IpamMeteredAccount
-
- // The operating Regions for the IPAM. Operating Regions are Amazon Web Services
- // Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only
- // discovers and monitors resources in the Amazon Web Services Regions you select
- // as operating Regions.
- //
- // For more information about operating Regions, see [Create an IPAM] in the Amazon VPC IPAM User
- // Guide.
- //
- // [Create an IPAM]: https://docs.aws.amazon.com/vpc/latest/ipam/create-ipam.html
- OperatingRegions []types.AddIpamOperatingRegion
-
- // The key/value combination of a tag assigned to the resource. Use the tag key in
- // the filter name and the tag value as the filter value. For example, to find all
- // resources that have a tag with the key Owner and the value TeamA , specify
- // tag:Owner for the filter name and TeamA for the filter value.
- TagSpecifications []types.TagSpecification
-
- // IPAM is offered in a Free Tier and an Advanced Tier. For more information about
- // the features available in each tier and the costs associated with the tiers, see
- // [Amazon VPC pricing > IPAM tab].
- //
- // [Amazon VPC pricing > IPAM tab]: http://aws.amazon.com/vpc/pricing/
- Tier types.IpamTier
-
- noSmithyDocumentSerde
-}
-
-type CreateIpamOutput struct {
-
- // Information about the IPAM created.
- Ipam *types.Ipam
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateIpamMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateIpam{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateIpam{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateIpam"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateIpamMiddleware(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateIpam(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateIpam struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateIpam) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateIpam) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateIpamInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateIpamInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateIpamMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateIpam{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateIpam(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateIpam",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpamExternalResourceVerificationToken.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpamExternalResourceVerificationToken.go
deleted file mode 100644
index 69ccb5fd8..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpamExternalResourceVerificationToken.go
+++ /dev/null
@@ -1,215 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Create a verification token. A verification token is an Amazon Web
-// Services-generated random value that you can use to prove ownership of an
-// external resource. For example, you can use a verification token to validate
-// that you control a public IP address range when you bring an IP address range to
-// Amazon Web Services (BYOIP).
-func (c *Client) CreateIpamExternalResourceVerificationToken(ctx context.Context, params *CreateIpamExternalResourceVerificationTokenInput, optFns ...func(*Options)) (*CreateIpamExternalResourceVerificationTokenOutput, error) {
- if params == nil {
- params = &CreateIpamExternalResourceVerificationTokenInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateIpamExternalResourceVerificationToken", params, optFns, c.addOperationCreateIpamExternalResourceVerificationTokenMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateIpamExternalResourceVerificationTokenOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateIpamExternalResourceVerificationTokenInput struct {
-
- // The ID of the IPAM that will create the token.
- //
- // This member is required.
- IpamId *string
-
- // A unique, case-sensitive identifier that you provide to ensure the idempotency
- // of the request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Token tags.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateIpamExternalResourceVerificationTokenOutput struct {
-
- // The verification token.
- IpamExternalResourceVerificationToken *types.IpamExternalResourceVerificationToken
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateIpamExternalResourceVerificationTokenMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateIpamExternalResourceVerificationToken{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateIpamExternalResourceVerificationToken{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateIpamExternalResourceVerificationToken"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateIpamExternalResourceVerificationTokenMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateIpamExternalResourceVerificationTokenValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateIpamExternalResourceVerificationToken(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateIpamExternalResourceVerificationToken struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateIpamExternalResourceVerificationToken) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateIpamExternalResourceVerificationToken) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateIpamExternalResourceVerificationTokenInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateIpamExternalResourceVerificationTokenInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateIpamExternalResourceVerificationTokenMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateIpamExternalResourceVerificationToken{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateIpamExternalResourceVerificationToken(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateIpamExternalResourceVerificationToken",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpamPool.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpamPool.go
deleted file mode 100644
index d03c7cb4f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpamPool.go
+++ /dev/null
@@ -1,310 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Create an IP address pool for Amazon VPC IP Address Manager (IPAM). In IPAM, a
-// pool is a collection of contiguous IP addresses CIDRs. Pools enable you to
-// organize your IP addresses according to your routing and security needs. For
-// example, if you have separate routing and security needs for development and
-// production applications, you can create a pool for each.
-//
-// For more information, see [Create a top-level pool] in the Amazon VPC IPAM User Guide.
-//
-// [Create a top-level pool]: https://docs.aws.amazon.com/vpc/latest/ipam/create-top-ipam.html
-func (c *Client) CreateIpamPool(ctx context.Context, params *CreateIpamPoolInput, optFns ...func(*Options)) (*CreateIpamPoolOutput, error) {
- if params == nil {
- params = &CreateIpamPoolInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateIpamPool", params, optFns, c.addOperationCreateIpamPoolMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateIpamPoolOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateIpamPoolInput struct {
-
- // The IP protocol assigned to this IPAM pool. You must choose either IPv4 or IPv6
- // protocol for a pool.
- //
- // This member is required.
- AddressFamily types.AddressFamily
-
- // The ID of the scope in which you would like to create the IPAM pool.
- //
- // This member is required.
- IpamScopeId *string
-
- // The default netmask length for allocations added to this pool. If, for example,
- // the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new
- // allocations will default to 10.0.0.0/16.
- AllocationDefaultNetmaskLength *int32
-
- // The maximum netmask length possible for CIDR allocations in this IPAM pool to
- // be compliant. The maximum netmask length must be greater than the minimum
- // netmask length. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible
- // netmask lengths for IPv6 addresses are 0 - 128.
- AllocationMaxNetmaskLength *int32
-
- // The minimum netmask length required for CIDR allocations in this IPAM pool to
- // be compliant. The minimum netmask length must be less than the maximum netmask
- // length. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask
- // lengths for IPv6 addresses are 0 - 128.
- AllocationMinNetmaskLength *int32
-
- // Tags that are required for resources that use CIDRs from this IPAM pool.
- // Resources that do not have these tags will not be allowed to allocate space from
- // the pool. If the resources have their tags changed after they have allocated
- // space or if the allocation tagging requirements are changed on the pool, the
- // resource may be marked as noncompliant.
- AllocationResourceTags []types.RequestIpamResourceTag
-
- // If selected, IPAM will continuously look for resources within the CIDR range of
- // this pool and automatically import them as allocations into your IPAM. The CIDRs
- // that will be allocated for these resources must not already be allocated to
- // other resources in order for the import to succeed. IPAM will import a CIDR
- // regardless of its compliance with the pool's allocation rules, so a resource
- // might be imported and subsequently marked as noncompliant. If IPAM discovers
- // multiple CIDRs that overlap, IPAM will import the largest CIDR only. If IPAM
- // discovers multiple CIDRs with matching CIDRs, IPAM will randomly import one of
- // them only.
- //
- // A locale must be set on the pool for this feature to work.
- AutoImport *bool
-
- // Limits which service in Amazon Web Services that the pool can be used in.
- // "ec2", for example, allows users to use space for Elastic IP addresses and VPCs.
- AwsService types.IpamPoolAwsService
-
- // A unique, case-sensitive identifier that you provide to ensure the idempotency
- // of the request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // A description for the IPAM pool.
- Description *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The locale for the pool should be one of the following:
- //
- // - An Amazon Web Services Region where you want this IPAM pool to be available
- // for allocations.
- //
- // - The network border group for an Amazon Web Services Local Zone where you
- // want this IPAM pool to be available for allocations ([supported Local Zones] ). This option is only
- // available for IPAM IPv4 pools in the public scope.
- //
- // Possible values: Any Amazon Web Services Region or supported Amazon Web
- // Services Local Zone. Default is none and means any locale.
- //
- // [supported Local Zones]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#byoip-zone-avail
- Locale *string
-
- // The IP address source for pools in the public scope. Only used for provisioning
- // IP address CIDRs to pools in the public scope. Default is byoip . For more
- // information, see [Create IPv6 pools]in the Amazon VPC IPAM User Guide. By default, you can add
- // only one Amazon-provided IPv6 CIDR block to a top-level IPv6 pool if
- // PublicIpSource is amazon . For information on increasing the default limit, see [Quotas for your IPAM]
- // in the Amazon VPC IPAM User Guide.
- //
- // [Create IPv6 pools]: https://docs.aws.amazon.com/vpc/latest/ipam/intro-create-ipv6-pools.html
- // [Quotas for your IPAM]: https://docs.aws.amazon.com/vpc/latest/ipam/quotas-ipam.html
- PublicIpSource types.IpamPoolPublicIpSource
-
- // Determines if the pool is publicly advertisable. The request can only contain
- // PubliclyAdvertisable if AddressFamily is ipv6 and PublicIpSource is byoip .
- PubliclyAdvertisable *bool
-
- // The ID of the source IPAM pool. Use this option to create a pool within an
- // existing pool. Note that the CIDR you provision for the pool within the source
- // pool must be available in the source pool's CIDR range.
- SourceIpamPoolId *string
-
- // The resource used to provision CIDRs to a resource planning pool.
- SourceResource *types.IpamPoolSourceResourceRequest
-
- // The key/value combination of a tag assigned to the resource. Use the tag key in
- // the filter name and the tag value as the filter value. For example, to find all
- // resources that have a tag with the key Owner and the value TeamA , specify
- // tag:Owner for the filter name and TeamA for the filter value.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateIpamPoolOutput struct {
-
- // Information about the IPAM pool created.
- IpamPool *types.IpamPool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateIpamPoolMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateIpamPool{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateIpamPool{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateIpamPool"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateIpamPoolMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateIpamPoolValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateIpamPool(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateIpamPool struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateIpamPool) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateIpamPool) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateIpamPoolInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateIpamPoolInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateIpamPoolMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateIpamPool{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateIpamPool(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateIpamPool",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpamResourceDiscovery.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpamResourceDiscovery.go
deleted file mode 100644
index dea05d7b6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpamResourceDiscovery.go
+++ /dev/null
@@ -1,211 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates an IPAM resource discovery. A resource discovery is an IPAM component
-// that enables IPAM to manage and monitor resources that belong to the owning
-// account.
-func (c *Client) CreateIpamResourceDiscovery(ctx context.Context, params *CreateIpamResourceDiscoveryInput, optFns ...func(*Options)) (*CreateIpamResourceDiscoveryOutput, error) {
- if params == nil {
- params = &CreateIpamResourceDiscoveryInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateIpamResourceDiscovery", params, optFns, c.addOperationCreateIpamResourceDiscoveryMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateIpamResourceDiscoveryOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateIpamResourceDiscoveryInput struct {
-
- // A client token for the IPAM resource discovery.
- ClientToken *string
-
- // A description for the IPAM resource discovery.
- Description *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Operating Regions for the IPAM resource discovery. Operating Regions are Amazon
- // Web Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM
- // only discovers and monitors resources in the Amazon Web Services Regions you
- // select as operating Regions.
- OperatingRegions []types.AddIpamOperatingRegion
-
- // Tag specifications for the IPAM resource discovery.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateIpamResourceDiscoveryOutput struct {
-
- // An IPAM resource discovery.
- IpamResourceDiscovery *types.IpamResourceDiscovery
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateIpamResourceDiscoveryMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateIpamResourceDiscovery{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateIpamResourceDiscovery{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateIpamResourceDiscovery"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateIpamResourceDiscoveryMiddleware(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateIpamResourceDiscovery(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateIpamResourceDiscovery struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateIpamResourceDiscovery) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateIpamResourceDiscovery) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateIpamResourceDiscoveryInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateIpamResourceDiscoveryInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateIpamResourceDiscoveryMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateIpamResourceDiscovery{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateIpamResourceDiscovery(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateIpamResourceDiscovery",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpamScope.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpamScope.go
deleted file mode 100644
index d8e63b6eb..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpamScope.go
+++ /dev/null
@@ -1,226 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Create an IPAM scope. In IPAM, a scope is the highest-level container within
-// IPAM. An IPAM contains two default scopes. Each scope represents the IP space
-// for a single network. The private scope is intended for all private IP address
-// space. The public scope is intended for all public IP address space. Scopes
-// enable you to reuse IP addresses across multiple unconnected networks without
-// causing IP address overlap or conflict.
-//
-// For more information, see [Add a scope] in the Amazon VPC IPAM User Guide.
-//
-// [Add a scope]: https://docs.aws.amazon.com/vpc/latest/ipam/add-scope-ipam.html
-func (c *Client) CreateIpamScope(ctx context.Context, params *CreateIpamScopeInput, optFns ...func(*Options)) (*CreateIpamScopeOutput, error) {
- if params == nil {
- params = &CreateIpamScopeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateIpamScope", params, optFns, c.addOperationCreateIpamScopeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateIpamScopeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateIpamScopeInput struct {
-
- // The ID of the IPAM for which you're creating this scope.
- //
- // This member is required.
- IpamId *string
-
- // A unique, case-sensitive identifier that you provide to ensure the idempotency
- // of the request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // A description for the scope you're creating.
- Description *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The key/value combination of a tag assigned to the resource. Use the tag key in
- // the filter name and the tag value as the filter value. For example, to find all
- // resources that have a tag with the key Owner and the value TeamA , specify
- // tag:Owner for the filter name and TeamA for the filter value.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateIpamScopeOutput struct {
-
- // Information about the created scope.
- IpamScope *types.IpamScope
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateIpamScopeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateIpamScope{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateIpamScope{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateIpamScope"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateIpamScopeMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateIpamScopeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateIpamScope(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateIpamScope struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateIpamScope) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateIpamScope) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateIpamScopeInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateIpamScopeInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateIpamScopeMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateIpamScope{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateIpamScope(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateIpamScope",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateKeyPair.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateKeyPair.go
deleted file mode 100644
index 15adb7061..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateKeyPair.go
+++ /dev/null
@@ -1,214 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates an ED25519 or 2048-bit RSA key pair with the specified name and in the
-// specified format. Amazon EC2 stores the public key and displays the private key
-// for you to save to a file. The private key is returned as an unencrypted PEM
-// encoded PKCS#1 private key or an unencrypted PPK formatted private key for use
-// with PuTTY. If a key with the specified name already exists, Amazon EC2 returns
-// an error.
-//
-// The key pair returned to you is available only in the Amazon Web Services
-// Region in which you create it. If you prefer, you can create your own key pair
-// using a third-party tool and upload it to any Region using ImportKeyPair.
-//
-// You can have up to 5,000 key pairs per Amazon Web Services Region.
-//
-// For more information, see [Amazon EC2 key pairs] in the Amazon EC2 User Guide.
-//
-// [Amazon EC2 key pairs]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html
-func (c *Client) CreateKeyPair(ctx context.Context, params *CreateKeyPairInput, optFns ...func(*Options)) (*CreateKeyPairOutput, error) {
- if params == nil {
- params = &CreateKeyPairInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateKeyPair", params, optFns, c.addOperationCreateKeyPairMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateKeyPairOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateKeyPairInput struct {
-
- // A unique name for the key pair.
- //
- // Constraints: Up to 255 ASCII characters
- //
- // This member is required.
- KeyName *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The format of the key pair.
- //
- // Default: pem
- KeyFormat types.KeyFormat
-
- // The type of key pair. Note that ED25519 keys are not supported for Windows
- // instances.
- //
- // Default: rsa
- KeyType types.KeyType
-
- // The tags to apply to the new key pair.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-// Describes a key pair.
-type CreateKeyPairOutput struct {
-
- // - For RSA key pairs, the key fingerprint is the SHA-1 digest of the DER
- // encoded private key.
- //
- // - For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256
- // digest, which is the default for OpenSSH, starting with OpenSSH 6.8.
- KeyFingerprint *string
-
- // An unencrypted PEM encoded RSA or ED25519 private key.
- KeyMaterial *string
-
- // The name of the key pair.
- KeyName *string
-
- // The ID of the key pair.
- KeyPairId *string
-
- // Any tags applied to the key pair.
- Tags []types.Tag
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateKeyPairMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateKeyPair{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateKeyPair{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateKeyPair"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateKeyPairValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateKeyPair(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateKeyPair(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateKeyPair",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLaunchTemplate.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLaunchTemplate.go
deleted file mode 100644
index f8b630f75..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLaunchTemplate.go
+++ /dev/null
@@ -1,250 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a launch template.
-//
-// A launch template contains the parameters to launch an instance. When you
-// launch an instance using RunInstances, you can specify a launch template instead of
-// providing the launch parameters in the request. For more information, see [Store instance launch parameters in Amazon EC2 launch templates]in
-// the Amazon EC2 User Guide.
-//
-// To clone an existing launch template as the basis for a new launch template,
-// use the Amazon EC2 console. The API, SDKs, and CLI do not support cloning a
-// template. For more information, see [Create a launch template from an existing launch template]in the Amazon EC2 User Guide.
-//
-// [Create a launch template from an existing launch template]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-launch-template.html#create-launch-template-from-existing-launch-template
-// [Store instance launch parameters in Amazon EC2 launch templates]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html
-func (c *Client) CreateLaunchTemplate(ctx context.Context, params *CreateLaunchTemplateInput, optFns ...func(*Options)) (*CreateLaunchTemplateOutput, error) {
- if params == nil {
- params = &CreateLaunchTemplateInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateLaunchTemplate", params, optFns, c.addOperationCreateLaunchTemplateMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateLaunchTemplateOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateLaunchTemplateInput struct {
-
- // The information for the launch template.
- //
- // This member is required.
- LaunchTemplateData *types.RequestLaunchTemplateData
-
- // A name for the launch template.
- //
- // This member is required.
- LaunchTemplateName *string
-
- // Unique, case-sensitive identifier you provide to ensure the idempotency of the
- // request. If a client token isn't specified, a randomly generated token is used
- // in the request to ensure idempotency.
- //
- // For more information, see [Ensuring idempotency].
- //
- // Constraint: Maximum 128 ASCII characters.
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Reserved for internal use.
- Operator *types.OperatorRequest
-
- // The tags to apply to the launch template on creation. To tag the launch
- // template, the resource type must be launch-template .
- //
- // To specify the tags for the resources that are created when an instance is
- // launched, you must use the TagSpecifications parameter in the [launch template data] structure.
- //
- // [launch template data]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestLaunchTemplateData.html
- TagSpecifications []types.TagSpecification
-
- // A description for the first version of the launch template.
- VersionDescription *string
-
- noSmithyDocumentSerde
-}
-
-type CreateLaunchTemplateOutput struct {
-
- // Information about the launch template.
- LaunchTemplate *types.LaunchTemplate
-
- // If the launch template contains parameters or parameter combinations that are
- // not valid, an error code and an error message are returned for each issue that's
- // found.
- Warning *types.ValidationWarning
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateLaunchTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateLaunchTemplate{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateLaunchTemplate{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateLaunchTemplate"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateLaunchTemplateMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateLaunchTemplateValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateLaunchTemplate(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateLaunchTemplate struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateLaunchTemplate) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateLaunchTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateLaunchTemplateInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateLaunchTemplateInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateLaunchTemplateMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateLaunchTemplate{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateLaunchTemplate(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateLaunchTemplate",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLaunchTemplateVersion.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLaunchTemplateVersion.go
deleted file mode 100644
index 6fc79a0ac..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLaunchTemplateVersion.go
+++ /dev/null
@@ -1,269 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a new version of a launch template. You must specify an existing launch
-// template, either by name or ID. You can determine whether the new version
-// inherits parameters from a source version, and add or overwrite parameters as
-// needed.
-//
-// Launch template versions are numbered in the order in which they are created.
-// You can't specify, change, or replace the numbering of launch template versions.
-//
-// Launch templates are immutable; after you create a launch template, you can't
-// modify it. Instead, you can create a new version of the launch template that
-// includes the changes that you require.
-//
-// For more information, see [Modify a launch template (manage launch template versions)] in the Amazon EC2 User Guide.
-//
-// [Modify a launch template (manage launch template versions)]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-launch-template-versions.html
-func (c *Client) CreateLaunchTemplateVersion(ctx context.Context, params *CreateLaunchTemplateVersionInput, optFns ...func(*Options)) (*CreateLaunchTemplateVersionOutput, error) {
- if params == nil {
- params = &CreateLaunchTemplateVersionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateLaunchTemplateVersion", params, optFns, c.addOperationCreateLaunchTemplateVersionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateLaunchTemplateVersionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateLaunchTemplateVersionInput struct {
-
- // The information for the launch template.
- //
- // This member is required.
- LaunchTemplateData *types.RequestLaunchTemplateData
-
- // Unique, case-sensitive identifier you provide to ensure the idempotency of the
- // request. If a client token isn't specified, a randomly generated token is used
- // in the request to ensure idempotency.
- //
- // For more information, see [Ensuring idempotency].
- //
- // Constraint: Maximum 128 ASCII characters.
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the launch template.
- //
- // You must specify either the launch template ID or the launch template name, but
- // not both.
- LaunchTemplateId *string
-
- // The name of the launch template.
- //
- // You must specify either the launch template ID or the launch template name, but
- // not both.
- LaunchTemplateName *string
-
- // If true , and if a Systems Manager parameter is specified for ImageId , the AMI
- // ID is displayed in the response for imageID . For more information, see [Use a Systems Manager parameter instead of an AMI ID] in the
- // Amazon EC2 User Guide.
- //
- // Default: false
- //
- // [Use a Systems Manager parameter instead of an AMI ID]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-launch-template.html#use-an-ssm-parameter-instead-of-an-ami-id
- ResolveAlias *bool
-
- // The version of the launch template on which to base the new version. Snapshots
- // applied to the block device mapping are ignored when creating a new version
- // unless they are explicitly included.
- //
- // If you specify this parameter, the new version inherits the launch parameters
- // from the source version. If you specify additional launch parameters for the new
- // version, they overwrite any corresponding launch parameters inherited from the
- // source version.
- //
- // If you omit this parameter, the new version contains only the launch parameters
- // that you specify for the new version.
- SourceVersion *string
-
- // A description for the version of the launch template.
- VersionDescription *string
-
- noSmithyDocumentSerde
-}
-
-type CreateLaunchTemplateVersionOutput struct {
-
- // Information about the launch template version.
- LaunchTemplateVersion *types.LaunchTemplateVersion
-
- // If the new version of the launch template contains parameters or parameter
- // combinations that are not valid, an error code and an error message are returned
- // for each issue that's found.
- Warning *types.ValidationWarning
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateLaunchTemplateVersionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateLaunchTemplateVersion{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateLaunchTemplateVersion{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateLaunchTemplateVersion"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateLaunchTemplateVersionMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateLaunchTemplateVersionValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateLaunchTemplateVersion(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateLaunchTemplateVersion struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateLaunchTemplateVersion) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateLaunchTemplateVersion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateLaunchTemplateVersionInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateLaunchTemplateVersionInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateLaunchTemplateVersionMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateLaunchTemplateVersion{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateLaunchTemplateVersion(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateLaunchTemplateVersion",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRoute.go
deleted file mode 100644
index d953f96c3..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRoute.go
+++ /dev/null
@@ -1,186 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a static route for the specified local gateway route table. You must
-// specify one of the following targets:
-//
-// - LocalGatewayVirtualInterfaceGroupId
-//
-// - NetworkInterfaceId
-func (c *Client) CreateLocalGatewayRoute(ctx context.Context, params *CreateLocalGatewayRouteInput, optFns ...func(*Options)) (*CreateLocalGatewayRouteOutput, error) {
- if params == nil {
- params = &CreateLocalGatewayRouteInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateLocalGatewayRoute", params, optFns, c.addOperationCreateLocalGatewayRouteMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateLocalGatewayRouteOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateLocalGatewayRouteInput struct {
-
- // The ID of the local gateway route table.
- //
- // This member is required.
- LocalGatewayRouteTableId *string
-
- // The CIDR range used for destination matches. Routing decisions are based on the
- // most specific match.
- DestinationCidrBlock *string
-
- // The ID of the prefix list. Use a prefix list in place of DestinationCidrBlock .
- // You cannot use DestinationPrefixListId and DestinationCidrBlock in the same
- // request.
- DestinationPrefixListId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the virtual interface group.
- LocalGatewayVirtualInterfaceGroupId *string
-
- // The ID of the network interface.
- NetworkInterfaceId *string
-
- noSmithyDocumentSerde
-}
-
-type CreateLocalGatewayRouteOutput struct {
-
- // Information about the route.
- Route *types.LocalGatewayRoute
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateLocalGatewayRouteMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateLocalGatewayRoute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateLocalGatewayRoute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateLocalGatewayRoute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateLocalGatewayRouteValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateLocalGatewayRoute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateLocalGatewayRoute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateLocalGatewayRoute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRouteTable.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRouteTable.go
deleted file mode 100644
index 870ed9970..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRouteTable.go
+++ /dev/null
@@ -1,172 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a local gateway route table.
-func (c *Client) CreateLocalGatewayRouteTable(ctx context.Context, params *CreateLocalGatewayRouteTableInput, optFns ...func(*Options)) (*CreateLocalGatewayRouteTableOutput, error) {
- if params == nil {
- params = &CreateLocalGatewayRouteTableInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateLocalGatewayRouteTable", params, optFns, c.addOperationCreateLocalGatewayRouteTableMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateLocalGatewayRouteTableOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateLocalGatewayRouteTableInput struct {
-
- // The ID of the local gateway.
- //
- // This member is required.
- LocalGatewayId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The mode of the local gateway route table.
- Mode types.LocalGatewayRouteTableMode
-
- // The tags assigned to the local gateway route table.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateLocalGatewayRouteTableOutput struct {
-
- // Information about the local gateway route table.
- LocalGatewayRouteTable *types.LocalGatewayRouteTable
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateLocalGatewayRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateLocalGatewayRouteTable{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateLocalGatewayRouteTable{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateLocalGatewayRouteTable"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateLocalGatewayRouteTableValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateLocalGatewayRouteTable(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateLocalGatewayRouteTable(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateLocalGatewayRouteTable",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation.go
deleted file mode 100644
index 82be8858a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation.go
+++ /dev/null
@@ -1,176 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a local gateway route table virtual interface group association.
-func (c *Client) CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation(ctx context.Context, params *CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, optFns ...func(*Options)) (*CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, error) {
- if params == nil {
- params = &CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation", params, optFns, c.addOperationCreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput struct {
-
- // The ID of the local gateway route table.
- //
- // This member is required.
- LocalGatewayRouteTableId *string
-
- // The ID of the local gateway route table virtual interface group association.
- //
- // This member is required.
- LocalGatewayVirtualInterfaceGroupId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags assigned to the local gateway route table virtual interface group
- // association.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput struct {
-
- // Information about the local gateway route table virtual interface group
- // association.
- LocalGatewayRouteTableVirtualInterfaceGroupAssociation *types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRouteTableVpcAssociation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRouteTableVpcAssociation.go
deleted file mode 100644
index 31a8a3f9e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRouteTableVpcAssociation.go
+++ /dev/null
@@ -1,174 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Associates the specified VPC with the specified local gateway route table.
-func (c *Client) CreateLocalGatewayRouteTableVpcAssociation(ctx context.Context, params *CreateLocalGatewayRouteTableVpcAssociationInput, optFns ...func(*Options)) (*CreateLocalGatewayRouteTableVpcAssociationOutput, error) {
- if params == nil {
- params = &CreateLocalGatewayRouteTableVpcAssociationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateLocalGatewayRouteTableVpcAssociation", params, optFns, c.addOperationCreateLocalGatewayRouteTableVpcAssociationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateLocalGatewayRouteTableVpcAssociationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateLocalGatewayRouteTableVpcAssociationInput struct {
-
- // The ID of the local gateway route table.
- //
- // This member is required.
- LocalGatewayRouteTableId *string
-
- // The ID of the VPC.
- //
- // This member is required.
- VpcId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags to assign to the local gateway route table VPC association.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateLocalGatewayRouteTableVpcAssociationOutput struct {
-
- // Information about the association.
- LocalGatewayRouteTableVpcAssociation *types.LocalGatewayRouteTableVpcAssociation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateLocalGatewayRouteTableVpcAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateLocalGatewayRouteTableVpcAssociation{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateLocalGatewayRouteTableVpcAssociation{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateLocalGatewayRouteTableVpcAssociation"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateLocalGatewayRouteTableVpcAssociationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateLocalGatewayRouteTableVpcAssociation(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateLocalGatewayRouteTableVpcAssociation(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateLocalGatewayRouteTableVpcAssociation",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayVirtualInterface.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayVirtualInterface.go
deleted file mode 100644
index f0624808f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayVirtualInterface.go
+++ /dev/null
@@ -1,200 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Create a virtual interface for a local gateway.
-func (c *Client) CreateLocalGatewayVirtualInterface(ctx context.Context, params *CreateLocalGatewayVirtualInterfaceInput, optFns ...func(*Options)) (*CreateLocalGatewayVirtualInterfaceOutput, error) {
- if params == nil {
- params = &CreateLocalGatewayVirtualInterfaceInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateLocalGatewayVirtualInterface", params, optFns, c.addOperationCreateLocalGatewayVirtualInterfaceMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateLocalGatewayVirtualInterfaceOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateLocalGatewayVirtualInterfaceInput struct {
-
- // The IP address assigned to the local gateway virtual interface on the Outpost
- // side. Only IPv4 is supported.
- //
- // This member is required.
- LocalAddress *string
-
- // The ID of the local gateway virtual interface group.
- //
- // This member is required.
- LocalGatewayVirtualInterfaceGroupId *string
-
- // References the Link Aggregation Group (LAG) that connects the Outpost to
- // on-premises network devices.
- //
- // This member is required.
- OutpostLagId *string
-
- // The peer IP address for the local gateway virtual interface. Only IPv4 is
- // supported.
- //
- // This member is required.
- PeerAddress *string
-
- // The virtual local area network (VLAN) used for the local gateway virtual
- // interface.
- //
- // This member is required.
- Vlan *int32
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The Autonomous System Number (ASN) of the Border Gateway Protocol (BGP) peer.
- PeerBgpAsn *int32
-
- // The extended 32-bit ASN of the BGP peer for use with larger ASN values.
- PeerBgpAsnExtended *int64
-
- // The tags to apply to a resource when the local gateway virtual interface is
- // being created.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateLocalGatewayVirtualInterfaceOutput struct {
-
- // Information about the local gateway virtual interface.
- LocalGatewayVirtualInterface *types.LocalGatewayVirtualInterface
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateLocalGatewayVirtualInterfaceMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateLocalGatewayVirtualInterface{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateLocalGatewayVirtualInterface{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateLocalGatewayVirtualInterface"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateLocalGatewayVirtualInterfaceValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateLocalGatewayVirtualInterface(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateLocalGatewayVirtualInterface(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateLocalGatewayVirtualInterface",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayVirtualInterfaceGroup.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayVirtualInterfaceGroup.go
deleted file mode 100644
index 245421c79..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayVirtualInterfaceGroup.go
+++ /dev/null
@@ -1,176 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Create a local gateway virtual interface group.
-func (c *Client) CreateLocalGatewayVirtualInterfaceGroup(ctx context.Context, params *CreateLocalGatewayVirtualInterfaceGroupInput, optFns ...func(*Options)) (*CreateLocalGatewayVirtualInterfaceGroupOutput, error) {
- if params == nil {
- params = &CreateLocalGatewayVirtualInterfaceGroupInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateLocalGatewayVirtualInterfaceGroup", params, optFns, c.addOperationCreateLocalGatewayVirtualInterfaceGroupMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateLocalGatewayVirtualInterfaceGroupOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateLocalGatewayVirtualInterfaceGroupInput struct {
-
- // The ID of the local gateway.
- //
- // This member is required.
- LocalGatewayId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The Autonomous System Number(ASN) for the local Border Gateway Protocol (BGP).
- LocalBgpAsn *int32
-
- // The extended 32-bit ASN for the local BGP configuration.
- LocalBgpAsnExtended *int64
-
- // The tags to apply to the local gateway virtual interface group when the
- // resource is being created.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateLocalGatewayVirtualInterfaceGroupOutput struct {
-
- // Information about the created local gateway virtual interface group.
- LocalGatewayVirtualInterfaceGroup *types.LocalGatewayVirtualInterfaceGroup
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateLocalGatewayVirtualInterfaceGroupMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateLocalGatewayVirtualInterfaceGroup{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateLocalGatewayVirtualInterfaceGroup{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateLocalGatewayVirtualInterfaceGroup"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateLocalGatewayVirtualInterfaceGroupValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateLocalGatewayVirtualInterfaceGroup(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateLocalGatewayVirtualInterfaceGroup(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateLocalGatewayVirtualInterfaceGroup",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateMacSystemIntegrityProtectionModificationTask.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateMacSystemIntegrityProtectionModificationTask.go
deleted file mode 100644
index cf7f1974f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateMacSystemIntegrityProtectionModificationTask.go
+++ /dev/null
@@ -1,282 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a System Integrity Protection (SIP) modification task to configure the
-// SIP settings for an x86 Mac instance or Apple silicon Mac instance. For more
-// information, see [Configure SIP for Amazon EC2 instances]in the Amazon EC2 User Guide.
-//
-// When you configure the SIP settings for your instance, you can either enable or
-// disable all SIP settings, or you can specify a custom SIP configuration that
-// selectively enables or disables specific SIP settings.
-//
-// If you implement a custom configuration, [connect to the instance and verify the settings] to ensure that your requirements are
-// properly implemented and functioning as intended.
-//
-// SIP configurations might change with macOS updates. We recommend that you
-// review custom SIP settings after any macOS version upgrade to ensure continued
-// compatibility and proper functionality of your security configurations.
-//
-// To enable or disable all SIP settings, use the
-// MacSystemIntegrityProtectionStatus parameter only. For example, to enable all
-// SIP settings, specify the following:
-//
-// - MacSystemIntegrityProtectionStatus=enabled
-//
-// To specify a custom configuration that selectively enables or disables specific
-// SIP settings, use the MacSystemIntegrityProtectionStatus parameter to enable or
-// disable all SIP settings, and then use the
-// MacSystemIntegrityProtectionConfiguration parameter to specify exceptions. In
-// this case, the exceptions you specify for
-// MacSystemIntegrityProtectionConfiguration override the value you specify for
-// MacSystemIntegrityProtectionStatus. For example, to enable all SIP settings,
-// except NvramProtections , specify the following:
-//
-// - MacSystemIntegrityProtectionStatus=enabled
-//
-// - MacSystemIntegrityProtectionConfigurationRequest "NvramProtections=disabled"
-//
-// [Configure SIP for Amazon EC2 instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/mac-sip-settings.html#mac-sip-configure
-// [connect to the instance and verify the settings]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/mac-sip-settings.html#mac-sip-check-settings
-func (c *Client) CreateMacSystemIntegrityProtectionModificationTask(ctx context.Context, params *CreateMacSystemIntegrityProtectionModificationTaskInput, optFns ...func(*Options)) (*CreateMacSystemIntegrityProtectionModificationTaskOutput, error) {
- if params == nil {
- params = &CreateMacSystemIntegrityProtectionModificationTaskInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateMacSystemIntegrityProtectionModificationTask", params, optFns, c.addOperationCreateMacSystemIntegrityProtectionModificationTaskMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateMacSystemIntegrityProtectionModificationTaskOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateMacSystemIntegrityProtectionModificationTaskInput struct {
-
- // The ID of the Amazon EC2 Mac instance.
- //
- // This member is required.
- InstanceId *string
-
- // Specifies the overall SIP status for the instance. To enable all SIP settings,
- // specify enabled . To disable all SIP settings, specify disabled .
- //
- // This member is required.
- MacSystemIntegrityProtectionStatus types.MacSystemIntegrityProtectionSettingStatus
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensuring Idempotency].
- //
- // [Ensuring Idempotency]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // [Apple silicon Mac instances only] Specifies the following credentials:
- //
- // - Internal disk administrative user
- //
- // - Username - Only the default administrative user ( aws-managed-user ) is
- // supported and it is used by default. You can't specify a different
- // administrative user.
- //
- // - Password - If you did not change the default password for aws-managed-user ,
- // specify the default password, which is blank. Otherwise, specify your password.
- //
- // - Amazon EBS root volume administrative user
- //
- // - Username - If you did not change the default administrative user, specify
- // ec2-user . Otherwise, specify the username for your administrative user.
- //
- // - Password - Specify the password for the administrative user.
- //
- // The credentials must be specified in the following JSON format:
- //
- // { "internalDiskPassword":"internal-disk-admin_password",
- // "rootVolumeUsername":"root-volume-admin_username",
- // "rootVolumepassword":"root-volume-admin_password" }
- MacCredentials *string
-
- // Specifies the overrides to selectively enable or disable individual SIP
- // settings. The individual settings you specify here override the overall SIP
- // status you specify for MacSystemIntegrityProtectionStatus.
- MacSystemIntegrityProtectionConfiguration *types.MacSystemIntegrityProtectionConfigurationRequest
-
- // Specifies tags to apply to the SIP modification task.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateMacSystemIntegrityProtectionModificationTaskOutput struct {
-
- // Information about the SIP modification task.
- MacModificationTask *types.MacModificationTask
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateMacSystemIntegrityProtectionModificationTaskMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateMacSystemIntegrityProtectionModificationTask{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateMacSystemIntegrityProtectionModificationTask{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateMacSystemIntegrityProtectionModificationTask"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateMacSystemIntegrityProtectionModificationTaskMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateMacSystemIntegrityProtectionModificationTaskValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateMacSystemIntegrityProtectionModificationTask(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateMacSystemIntegrityProtectionModificationTask struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateMacSystemIntegrityProtectionModificationTask) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateMacSystemIntegrityProtectionModificationTask) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateMacSystemIntegrityProtectionModificationTaskInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateMacSystemIntegrityProtectionModificationTaskInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateMacSystemIntegrityProtectionModificationTaskMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateMacSystemIntegrityProtectionModificationTask{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateMacSystemIntegrityProtectionModificationTask(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateMacSystemIntegrityProtectionModificationTask",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateManagedPrefixList.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateManagedPrefixList.go
deleted file mode 100644
index 5c44553f4..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateManagedPrefixList.go
+++ /dev/null
@@ -1,232 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a managed prefix list. You can specify entries for the prefix list.
-// Each entry consists of a CIDR block and an optional description.
-func (c *Client) CreateManagedPrefixList(ctx context.Context, params *CreateManagedPrefixListInput, optFns ...func(*Options)) (*CreateManagedPrefixListOutput, error) {
- if params == nil {
- params = &CreateManagedPrefixListInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateManagedPrefixList", params, optFns, c.addOperationCreateManagedPrefixListMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateManagedPrefixListOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateManagedPrefixListInput struct {
-
- // The IP address type.
- //
- // Valid Values: IPv4 | IPv6
- //
- // This member is required.
- AddressFamily *string
-
- // The maximum number of entries for the prefix list.
- //
- // This member is required.
- MaxEntries *int32
-
- // A name for the prefix list.
- //
- // Constraints: Up to 255 characters in length. The name cannot start with
- // com.amazonaws .
- //
- // This member is required.
- PrefixListName *string
-
- // Unique, case-sensitive identifier you provide to ensure the idempotency of the
- // request. For more information, see [Ensuring idempotency].
- //
- // Constraints: Up to 255 UTF-8 characters in length.
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more entries for the prefix list.
- Entries []types.AddPrefixListEntry
-
- // The tags to apply to the prefix list during creation.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateManagedPrefixListOutput struct {
-
- // Information about the prefix list.
- PrefixList *types.ManagedPrefixList
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateManagedPrefixListMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateManagedPrefixList{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateManagedPrefixList{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateManagedPrefixList"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateManagedPrefixListMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateManagedPrefixListValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateManagedPrefixList(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateManagedPrefixList struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateManagedPrefixList) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateManagedPrefixList) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateManagedPrefixListInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateManagedPrefixListInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateManagedPrefixListMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateManagedPrefixList{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateManagedPrefixList(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateManagedPrefixList",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNatGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNatGateway.go
deleted file mode 100644
index 7d566dbcb..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNatGateway.go
+++ /dev/null
@@ -1,277 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a NAT gateway in the specified subnet. This action creates a network
-// interface in the specified subnet with a private IP address from the IP address
-// range of the subnet. You can create either a public NAT gateway or a private NAT
-// gateway.
-//
-// With a public NAT gateway, internet-bound traffic from a private subnet can be
-// routed to the NAT gateway, so that instances in a private subnet can connect to
-// the internet.
-//
-// With a private NAT gateway, private communication is routed across VPCs and
-// on-premises networks through a transit gateway or virtual private gateway.
-// Common use cases include running large workloads behind a small pool of
-// allowlisted IPv4 addresses, preserving private IPv4 addresses, and communicating
-// between overlapping networks.
-//
-// For more information, see [NAT gateways] in the Amazon VPC User Guide.
-//
-// When you create a public NAT gateway and assign it an EIP or secondary EIPs,
-// the network border group of the EIPs must match the network border group of the
-// Availability Zone (AZ) that the public NAT gateway is in. If it's not the same,
-// the NAT gateway will fail to launch. You can see the network border group for
-// the subnet's AZ by viewing the details of the subnet. Similarly, you can view
-// the network border group of an EIP by viewing the details of the EIP address.
-// For more information about network border groups and EIPs, see [Allocate an Elastic IP address]in the Amazon
-// VPC User Guide.
-//
-// [NAT gateways]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html
-// [Allocate an Elastic IP address]: https://docs.aws.amazon.com/vpc/latest/userguide/WorkWithEIPs.html
-func (c *Client) CreateNatGateway(ctx context.Context, params *CreateNatGatewayInput, optFns ...func(*Options)) (*CreateNatGatewayOutput, error) {
- if params == nil {
- params = &CreateNatGatewayInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateNatGateway", params, optFns, c.addOperationCreateNatGatewayMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateNatGatewayOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateNatGatewayInput struct {
-
- // The ID of the subnet in which to create the NAT gateway.
- //
- // This member is required.
- SubnetId *string
-
- // [Public NAT gateways only] The allocation ID of an Elastic IP address to
- // associate with the NAT gateway. You cannot specify an Elastic IP address with a
- // private NAT gateway. If the Elastic IP address is associated with another
- // resource, you must first disassociate it.
- AllocationId *string
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensuring idempotency].
- //
- // Constraint: Maximum 64 ASCII characters.
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Indicates whether the NAT gateway supports public or private connectivity. The
- // default is public connectivity.
- ConnectivityType types.ConnectivityType
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The private IPv4 address to assign to the NAT gateway. If you don't provide an
- // address, a private IPv4 address will be automatically assigned.
- PrivateIpAddress *string
-
- // Secondary EIP allocation IDs. For more information, see [Create a NAT gateway] in the Amazon VPC User
- // Guide.
- //
- // [Create a NAT gateway]: https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-working-with.html
- SecondaryAllocationIds []string
-
- // [Private NAT gateway only] The number of secondary private IPv4 addresses you
- // want to assign to the NAT gateway. For more information about secondary
- // addresses, see [Create a NAT gateway]in the Amazon VPC User Guide.
- //
- // [Create a NAT gateway]: https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-working-with.html
- SecondaryPrivateIpAddressCount *int32
-
- // Secondary private IPv4 addresses. For more information about secondary
- // addresses, see [Create a NAT gateway]in the Amazon VPC User Guide.
- //
- // [Create a NAT gateway]: https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-working-with.html
- SecondaryPrivateIpAddresses []string
-
- // The tags to assign to the NAT gateway.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateNatGatewayOutput struct {
-
- // Unique, case-sensitive identifier to ensure the idempotency of the request.
- // Only returned if a client token was provided in the request.
- ClientToken *string
-
- // Information about the NAT gateway.
- NatGateway *types.NatGateway
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateNatGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateNatGateway{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateNatGateway{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateNatGateway"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateNatGatewayMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateNatGatewayValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateNatGateway(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateNatGateway struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateNatGateway) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateNatGateway) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateNatGatewayInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateNatGatewayInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateNatGatewayMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateNatGateway{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateNatGateway(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateNatGateway",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkAcl.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkAcl.go
deleted file mode 100644
index ed5637d43..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkAcl.go
+++ /dev/null
@@ -1,220 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a network ACL in a VPC. Network ACLs provide an optional layer of
-// security (in addition to security groups) for the instances in your VPC.
-//
-// For more information, see [Network ACLs] in the Amazon VPC User Guide.
-//
-// [Network ACLs]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-network-acls.html
-func (c *Client) CreateNetworkAcl(ctx context.Context, params *CreateNetworkAclInput, optFns ...func(*Options)) (*CreateNetworkAclOutput, error) {
- if params == nil {
- params = &CreateNetworkAclInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateNetworkAcl", params, optFns, c.addOperationCreateNetworkAclMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateNetworkAclOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateNetworkAclInput struct {
-
- // The ID of the VPC.
- //
- // This member is required.
- VpcId *string
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags to assign to the network ACL.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateNetworkAclOutput struct {
-
- // Unique, case-sensitive identifier to ensure the idempotency of the request.
- // Only returned if a client token was provided in the request.
- ClientToken *string
-
- // Information about the network ACL.
- NetworkAcl *types.NetworkAcl
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateNetworkAclMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateNetworkAcl{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateNetworkAcl{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateNetworkAcl"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateNetworkAclMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateNetworkAclValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateNetworkAcl(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateNetworkAcl struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateNetworkAcl) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateNetworkAcl) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateNetworkAclInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateNetworkAclInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateNetworkAclMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateNetworkAcl{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateNetworkAcl(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateNetworkAcl",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkAclEntry.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkAclEntry.go
deleted file mode 100644
index 314441d87..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkAclEntry.go
+++ /dev/null
@@ -1,227 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates an entry (a rule) in a network ACL with the specified rule number. Each
-// network ACL has a set of numbered ingress rules and a separate set of numbered
-// egress rules. When determining whether a packet should be allowed in or out of a
-// subnet associated with the ACL, we process the entries in the ACL according to
-// the rule numbers, in ascending order. Each network ACL has a set of ingress
-// rules and a separate set of egress rules.
-//
-// We recommend that you leave room between the rule numbers (for example, 100,
-// 110, 120, ...), and not number them one right after the other (for example, 101,
-// 102, 103, ...). This makes it easier to add a rule between existing ones without
-// having to renumber the rules.
-//
-// After you add an entry, you can't modify it; you must either replace it, or
-// create an entry and delete the old one.
-//
-// For more information about network ACLs, see [Network ACLs] in the Amazon VPC User Guide.
-//
-// [Network ACLs]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-network-acls.html
-func (c *Client) CreateNetworkAclEntry(ctx context.Context, params *CreateNetworkAclEntryInput, optFns ...func(*Options)) (*CreateNetworkAclEntryOutput, error) {
- if params == nil {
- params = &CreateNetworkAclEntryInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateNetworkAclEntry", params, optFns, c.addOperationCreateNetworkAclEntryMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateNetworkAclEntryOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateNetworkAclEntryInput struct {
-
- // Indicates whether this is an egress rule (rule is applied to traffic leaving
- // the subnet).
- //
- // This member is required.
- Egress *bool
-
- // The ID of the network ACL.
- //
- // This member is required.
- NetworkAclId *string
-
- // The protocol number. A value of "-1" means all protocols. If you specify "-1"
- // or a protocol number other than "6" (TCP), "17" (UDP), or "1" (ICMP), traffic on
- // all ports is allowed, regardless of any ports or ICMP types or codes that you
- // specify. If you specify protocol "58" (ICMPv6) and specify an IPv4 CIDR block,
- // traffic for all ICMP types and codes allowed, regardless of any that you
- // specify. If you specify protocol "58" (ICMPv6) and specify an IPv6 CIDR block,
- // you must specify an ICMP type and code.
- //
- // This member is required.
- Protocol *string
-
- // Indicates whether to allow or deny the traffic that matches the rule.
- //
- // This member is required.
- RuleAction types.RuleAction
-
- // The rule number for the entry (for example, 100). ACL entries are processed in
- // ascending order by rule number.
- //
- // Constraints: Positive integer from 1 to 32766. The range 32767 to 65535 is
- // reserved for internal use.
- //
- // This member is required.
- RuleNumber *int32
-
- // The IPv4 network range to allow or deny, in CIDR notation (for example
- // 172.16.0.0/24 ). We modify the specified CIDR block to its canonical form; for
- // example, if you specify 100.68.0.18/18 , we modify it to 100.68.0.0/18 .
- CidrBlock *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying
- // protocol 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR block.
- IcmpTypeCode *types.IcmpTypeCode
-
- // The IPv6 network range to allow or deny, in CIDR notation (for example
- // 2001:db8:1234:1a00::/64 ).
- Ipv6CidrBlock *string
-
- // TCP or UDP protocols: The range of ports the rule applies to. Required if
- // specifying protocol 6 (TCP) or 17 (UDP).
- PortRange *types.PortRange
-
- noSmithyDocumentSerde
-}
-
-type CreateNetworkAclEntryOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateNetworkAclEntryMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateNetworkAclEntry{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateNetworkAclEntry{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateNetworkAclEntry"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateNetworkAclEntryValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateNetworkAclEntry(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateNetworkAclEntry(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateNetworkAclEntry",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInsightsAccessScope.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInsightsAccessScope.go
deleted file mode 100644
index 4e00ec7f0..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInsightsAccessScope.go
+++ /dev/null
@@ -1,224 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a Network Access Scope.
-//
-// Amazon Web Services Network Access Analyzer enables cloud networking and cloud
-// operations teams to verify that their networks on Amazon Web Services conform to
-// their network security and governance objectives. For more information, see the [Amazon Web Services Network Access Analyzer Guide]
-// .
-//
-// [Amazon Web Services Network Access Analyzer Guide]: https://docs.aws.amazon.com/vpc/latest/network-access-analyzer/
-func (c *Client) CreateNetworkInsightsAccessScope(ctx context.Context, params *CreateNetworkInsightsAccessScopeInput, optFns ...func(*Options)) (*CreateNetworkInsightsAccessScopeOutput, error) {
- if params == nil {
- params = &CreateNetworkInsightsAccessScopeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateNetworkInsightsAccessScope", params, optFns, c.addOperationCreateNetworkInsightsAccessScopeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateNetworkInsightsAccessScopeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateNetworkInsightsAccessScopeInput struct {
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [How to ensure idempotency].
- //
- // [How to ensure idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- //
- // This member is required.
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The paths to exclude.
- ExcludePaths []types.AccessScopePathRequest
-
- // The paths to match.
- MatchPaths []types.AccessScopePathRequest
-
- // The tags to apply.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateNetworkInsightsAccessScopeOutput struct {
-
- // The Network Access Scope.
- NetworkInsightsAccessScope *types.NetworkInsightsAccessScope
-
- // The Network Access Scope content.
- NetworkInsightsAccessScopeContent *types.NetworkInsightsAccessScopeContent
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateNetworkInsightsAccessScopeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateNetworkInsightsAccessScope{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateNetworkInsightsAccessScope{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateNetworkInsightsAccessScope"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateNetworkInsightsAccessScopeMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateNetworkInsightsAccessScopeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateNetworkInsightsAccessScope(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateNetworkInsightsAccessScope struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateNetworkInsightsAccessScope) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateNetworkInsightsAccessScope) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateNetworkInsightsAccessScopeInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateNetworkInsightsAccessScopeInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateNetworkInsightsAccessScopeMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateNetworkInsightsAccessScope{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateNetworkInsightsAccessScope(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateNetworkInsightsAccessScope",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInsightsPath.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInsightsPath.go
deleted file mode 100644
index 173e8f38f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInsightsPath.go
+++ /dev/null
@@ -1,248 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a path to analyze for reachability.
-//
-// Reachability Analyzer enables you to analyze and debug network reachability
-// between two resources in your virtual private cloud (VPC). For more information,
-// see the [Reachability Analyzer Guide].
-//
-// [Reachability Analyzer Guide]: https://docs.aws.amazon.com/vpc/latest/reachability/
-func (c *Client) CreateNetworkInsightsPath(ctx context.Context, params *CreateNetworkInsightsPathInput, optFns ...func(*Options)) (*CreateNetworkInsightsPathOutput, error) {
- if params == nil {
- params = &CreateNetworkInsightsPathInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateNetworkInsightsPath", params, optFns, c.addOperationCreateNetworkInsightsPathMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateNetworkInsightsPathOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateNetworkInsightsPathInput struct {
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [How to ensure idempotency].
- //
- // [How to ensure idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- //
- // This member is required.
- ClientToken *string
-
- // The protocol.
- //
- // This member is required.
- Protocol types.Protocol
-
- // The ID or ARN of the source. If the resource is in another account, you must
- // specify an ARN.
- //
- // This member is required.
- Source *string
-
- // The ID or ARN of the destination. If the resource is in another account, you
- // must specify an ARN.
- Destination *string
-
- // The IP address of the destination.
- DestinationIp *string
-
- // The destination port.
- DestinationPort *int32
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Scopes the analysis to network paths that match specific filters at the
- // destination. If you specify this parameter, you can't specify the parameter for
- // the destination IP address.
- FilterAtDestination *types.PathRequestFilter
-
- // Scopes the analysis to network paths that match specific filters at the source.
- // If you specify this parameter, you can't specify the parameters for the source
- // IP address or the destination port.
- FilterAtSource *types.PathRequestFilter
-
- // The IP address of the source.
- SourceIp *string
-
- // The tags to add to the path.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateNetworkInsightsPathOutput struct {
-
- // Information about the path.
- NetworkInsightsPath *types.NetworkInsightsPath
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateNetworkInsightsPathMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateNetworkInsightsPath{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateNetworkInsightsPath{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateNetworkInsightsPath"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateNetworkInsightsPathMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateNetworkInsightsPathValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateNetworkInsightsPath(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateNetworkInsightsPath struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateNetworkInsightsPath) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateNetworkInsightsPath) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateNetworkInsightsPathInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateNetworkInsightsPathInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateNetworkInsightsPathMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateNetworkInsightsPath{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateNetworkInsightsPath(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateNetworkInsightsPath",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInterface.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInterface.go
deleted file mode 100644
index 001085d14..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInterface.go
+++ /dev/null
@@ -1,330 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a network interface in the specified subnet.
-//
-// The number of IP addresses you can assign to a network interface varies by
-// instance type.
-//
-// For more information about network interfaces, see [Elastic network interfaces] in the Amazon EC2 User
-// Guide.
-//
-// [Elastic network interfaces]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html
-func (c *Client) CreateNetworkInterface(ctx context.Context, params *CreateNetworkInterfaceInput, optFns ...func(*Options)) (*CreateNetworkInterfaceOutput, error) {
- if params == nil {
- params = &CreateNetworkInterfaceInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateNetworkInterface", params, optFns, c.addOperationCreateNetworkInterfaceMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateNetworkInterfaceOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateNetworkInterfaceInput struct {
-
- // The ID of the subnet to associate with the network interface.
- //
- // This member is required.
- SubnetId *string
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // A connection tracking specification for the network interface.
- ConnectionTrackingSpecification *types.ConnectionTrackingSpecificationRequest
-
- // A description for the network interface.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // If you’re creating a network interface in a dual-stack or IPv6-only subnet, you
- // have the option to assign a primary IPv6 IP address. A primary IPv6 address is
- // an IPv6 GUA address associated with an ENI that you have enabled to use a
- // primary IPv6 address. Use this option if the instance that this ENI will be
- // attached to relies on its IPv6 address not changing. Amazon Web Services will
- // automatically assign an IPv6 address associated with the ENI attached to your
- // instance to be the primary IPv6 address. Once you enable an IPv6 GUA address to
- // be a primary IPv6, you cannot disable it. When you enable an IPv6 GUA address to
- // be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address
- // until the instance is terminated or the network interface is detached. If you
- // have multiple IPv6 addresses associated with an ENI attached to your instance
- // and you enable a primary IPv6 address, the first IPv6 GUA address associated
- // with the ENI becomes the primary IPv6 address.
- EnablePrimaryIpv6 *bool
-
- // The IDs of the security groups.
- Groups []string
-
- // The type of network interface. The default is interface .
- //
- // If you specify efa-only , do not assign any IP addresses to the network
- // interface. EFA-only network interfaces do not support IP addresses.
- //
- // The only supported values are interface , efa , efa-only , and trunk .
- InterfaceType types.NetworkInterfaceCreationType
-
- // The number of IPv4 prefixes that Amazon Web Services automatically assigns to
- // the network interface.
- //
- // You can't specify a count of IPv4 prefixes if you've specified one of the
- // following: specific IPv4 prefixes, specific private IPv4 addresses, or a count
- // of private IPv4 addresses.
- Ipv4PrefixCount *int32
-
- // The IPv4 prefixes assigned to the network interface.
- //
- // You can't specify IPv4 prefixes if you've specified one of the following: a
- // count of IPv4 prefixes, specific private IPv4 addresses, or a count of private
- // IPv4 addresses.
- Ipv4Prefixes []types.Ipv4PrefixSpecificationRequest
-
- // The number of IPv6 addresses to assign to a network interface. Amazon EC2
- // automatically selects the IPv6 addresses from the subnet range.
- //
- // You can't specify a count of IPv6 addresses using this parameter if you've
- // specified one of the following: specific IPv6 addresses, specific IPv6 prefixes,
- // or a count of IPv6 prefixes.
- //
- // If your subnet has the AssignIpv6AddressOnCreation attribute set, you can
- // override that setting by specifying 0 as the IPv6 address count.
- Ipv6AddressCount *int32
-
- // The IPv6 addresses from the IPv6 CIDR block range of your subnet.
- //
- // You can't specify IPv6 addresses using this parameter if you've specified one
- // of the following: a count of IPv6 addresses, specific IPv6 prefixes, or a count
- // of IPv6 prefixes.
- Ipv6Addresses []types.InstanceIpv6Address
-
- // The number of IPv6 prefixes that Amazon Web Services automatically assigns to
- // the network interface.
- //
- // You can't specify a count of IPv6 prefixes if you've specified one of the
- // following: specific IPv6 prefixes, specific IPv6 addresses, or a count of IPv6
- // addresses.
- Ipv6PrefixCount *int32
-
- // The IPv6 prefixes assigned to the network interface.
- //
- // You can't specify IPv6 prefixes if you've specified one of the following: a
- // count of IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
- Ipv6Prefixes []types.Ipv6PrefixSpecificationRequest
-
- // Reserved for internal use.
- Operator *types.OperatorRequest
-
- // The primary private IPv4 address of the network interface. If you don't specify
- // an IPv4 address, Amazon EC2 selects one for you from the subnet's IPv4 CIDR
- // range. If you specify an IP address, you cannot indicate any IP addresses
- // specified in privateIpAddresses as primary (only one IP address can be
- // designated as primary).
- PrivateIpAddress *string
-
- // The private IPv4 addresses.
- //
- // You can't specify private IPv4 addresses if you've specified one of the
- // following: a count of private IPv4 addresses, specific IPv4 prefixes, or a count
- // of IPv4 prefixes.
- PrivateIpAddresses []types.PrivateIpAddressSpecification
-
- // The number of secondary private IPv4 addresses to assign to a network
- // interface. When you specify a number of secondary IPv4 addresses, Amazon EC2
- // selects these IP addresses within the subnet's IPv4 CIDR range. You can't
- // specify this option and specify more than one private IP address using
- // privateIpAddresses .
- //
- // You can't specify a count of private IPv4 addresses if you've specified one of
- // the following: specific private IPv4 addresses, specific IPv4 prefixes, or a
- // count of IPv4 prefixes.
- SecondaryPrivateIpAddressCount *int32
-
- // The tags to apply to the new network interface.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateNetworkInterfaceOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- ClientToken *string
-
- // Information about the network interface.
- NetworkInterface *types.NetworkInterface
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateNetworkInterfaceMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateNetworkInterface{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateNetworkInterface{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateNetworkInterface"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateNetworkInterfaceMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateNetworkInterfaceValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateNetworkInterface(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateNetworkInterface struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateNetworkInterface) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateNetworkInterface) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateNetworkInterfaceInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateNetworkInterfaceInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateNetworkInterfaceMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateNetworkInterface{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateNetworkInterface(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateNetworkInterface",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInterfacePermission.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInterfacePermission.go
deleted file mode 100644
index 75b8ea79a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInterfacePermission.go
+++ /dev/null
@@ -1,183 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Grants an Amazon Web Services-authorized account permission to attach the
-// specified network interface to an instance in their account.
-//
-// You can grant permission to a single Amazon Web Services account only, and only
-// one account at a time.
-func (c *Client) CreateNetworkInterfacePermission(ctx context.Context, params *CreateNetworkInterfacePermissionInput, optFns ...func(*Options)) (*CreateNetworkInterfacePermissionOutput, error) {
- if params == nil {
- params = &CreateNetworkInterfacePermissionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateNetworkInterfacePermission", params, optFns, c.addOperationCreateNetworkInterfacePermissionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateNetworkInterfacePermissionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for CreateNetworkInterfacePermission.
-type CreateNetworkInterfacePermissionInput struct {
-
- // The ID of the network interface.
- //
- // This member is required.
- NetworkInterfaceId *string
-
- // The type of permission to grant.
- //
- // This member is required.
- Permission types.InterfacePermissionType
-
- // The Amazon Web Services account ID.
- AwsAccountId *string
-
- // The Amazon Web Services service. Currently not supported.
- AwsService *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of CreateNetworkInterfacePermission.
-type CreateNetworkInterfacePermissionOutput struct {
-
- // Information about the permission for the network interface.
- InterfacePermission *types.NetworkInterfacePermission
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateNetworkInterfacePermissionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateNetworkInterfacePermission{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateNetworkInterfacePermission{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateNetworkInterfacePermission"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateNetworkInterfacePermissionValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateNetworkInterfacePermission(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateNetworkInterfacePermission(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateNetworkInterfacePermission",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreatePlacementGroup.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreatePlacementGroup.go
deleted file mode 100644
index d8ad7048a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreatePlacementGroup.go
+++ /dev/null
@@ -1,192 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a placement group in which to launch instances. The strategy of the
-// placement group determines how the instances are organized within the group.
-//
-// A cluster placement group is a logical grouping of instances within a single
-// Availability Zone that benefit from low network latency, high network
-// throughput. A spread placement group places instances on distinct hardware. A
-// partition placement group places groups of instances in different partitions,
-// where instances in one partition do not share the same hardware with instances
-// in another partition.
-//
-// For more information, see [Placement groups] in the Amazon EC2 User Guide.
-//
-// [Placement groups]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html
-func (c *Client) CreatePlacementGroup(ctx context.Context, params *CreatePlacementGroupInput, optFns ...func(*Options)) (*CreatePlacementGroupOutput, error) {
- if params == nil {
- params = &CreatePlacementGroupInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreatePlacementGroup", params, optFns, c.addOperationCreatePlacementGroupMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreatePlacementGroupOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreatePlacementGroupInput struct {
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // A name for the placement group. Must be unique within the scope of your account
- // for the Region.
- //
- // Constraints: Up to 255 ASCII characters
- GroupName *string
-
- // The number of partitions. Valid only when Strategy is set to partition .
- PartitionCount *int32
-
- // Determines how placement groups spread instances.
- //
- // - Host – You can use host only with Outpost placement groups.
- //
- // - Rack – No usage restrictions.
- SpreadLevel types.SpreadLevel
-
- // The placement strategy.
- Strategy types.PlacementStrategy
-
- // The tags to apply to the new placement group.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreatePlacementGroupOutput struct {
-
- // Information about the placement group.
- PlacementGroup *types.PlacementGroup
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreatePlacementGroupMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreatePlacementGroup{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreatePlacementGroup{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreatePlacementGroup"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreatePlacementGroup(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreatePlacementGroup(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreatePlacementGroup",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreatePublicIpv4Pool.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreatePublicIpv4Pool.go
deleted file mode 100644
index b1dcd7534..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreatePublicIpv4Pool.go
+++ /dev/null
@@ -1,177 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a public IPv4 address pool. A public IPv4 pool is an EC2 IP address
-// pool required for the public IPv4 CIDRs that you own and bring to Amazon Web
-// Services to manage with IPAM. IPv6 addresses you bring to Amazon Web Services,
-// however, use IPAM pools only. To monitor the status of pool creation, use [DescribePublicIpv4Pools].
-//
-// [DescribePublicIpv4Pools]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribePublicIpv4Pools.html
-func (c *Client) CreatePublicIpv4Pool(ctx context.Context, params *CreatePublicIpv4PoolInput, optFns ...func(*Options)) (*CreatePublicIpv4PoolOutput, error) {
- if params == nil {
- params = &CreatePublicIpv4PoolInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreatePublicIpv4Pool", params, optFns, c.addOperationCreatePublicIpv4PoolMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreatePublicIpv4PoolOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreatePublicIpv4PoolInput struct {
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The Availability Zone (AZ) or Local Zone (LZ) network border group that the
- // resource that the IP address is assigned to is in. Defaults to an AZ network
- // border group. For more information on available Local Zones, see [Local Zone availability]in the Amazon
- // EC2 User Guide.
- //
- // [Local Zone availability]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#byoip-zone-avail
- NetworkBorderGroup *string
-
- // The key/value combination of a tag assigned to the resource. Use the tag key in
- // the filter name and the tag value as the filter value. For example, to find all
- // resources that have a tag with the key Owner and the value TeamA , specify
- // tag:Owner for the filter name and TeamA for the filter value.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreatePublicIpv4PoolOutput struct {
-
- // The ID of the public IPv4 pool.
- PoolId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreatePublicIpv4PoolMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreatePublicIpv4Pool{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreatePublicIpv4Pool{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreatePublicIpv4Pool"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreatePublicIpv4Pool(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreatePublicIpv4Pool(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreatePublicIpv4Pool",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateReplaceRootVolumeTask.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateReplaceRootVolumeTask.go
deleted file mode 100644
index 28b6037da..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateReplaceRootVolumeTask.go
+++ /dev/null
@@ -1,268 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Replaces the EBS-backed root volume for a running instance with a new volume
-// that is restored to the original root volume's launch state, that is restored to
-// a specific snapshot taken from the original root volume, or that is restored
-// from an AMI that has the same key characteristics as that of the instance.
-//
-// For more information, see [Replace a root volume] in the Amazon EC2 User Guide.
-//
-// [Replace a root volume]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/replace-root.html
-func (c *Client) CreateReplaceRootVolumeTask(ctx context.Context, params *CreateReplaceRootVolumeTaskInput, optFns ...func(*Options)) (*CreateReplaceRootVolumeTaskOutput, error) {
- if params == nil {
- params = &CreateReplaceRootVolumeTaskInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateReplaceRootVolumeTask", params, optFns, c.addOperationCreateReplaceRootVolumeTaskMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateReplaceRootVolumeTaskOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateReplaceRootVolumeTaskInput struct {
-
- // The ID of the instance for which to replace the root volume.
- //
- // This member is required.
- InstanceId *string
-
- // Unique, case-sensitive identifier you provide to ensure the idempotency of the
- // request. If you do not specify a client token, a randomly generated token is
- // used for the request to ensure idempotency. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Indicates whether to automatically delete the original root volume after the
- // root volume replacement task completes. To delete the original root volume,
- // specify true . If you choose to keep the original root volume after the
- // replacement task completes, you must manually delete it when you no longer need
- // it.
- DeleteReplacedRootVolume *bool
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the AMI to use to restore the root volume. The specified AMI must
- // have the same product code, billing information, architecture type, and
- // virtualization type as that of the instance.
- //
- // If you want to restore the replacement volume from a specific snapshot, or if
- // you want to restore it to its launch state, omit this parameter.
- ImageId *string
-
- // The ID of the snapshot from which to restore the replacement root volume. The
- // specified snapshot must be a snapshot that you previously created from the
- // original root volume.
- //
- // If you want to restore the replacement root volume to the initial launch state,
- // or if you want to restore the replacement root volume from an AMI, omit this
- // parameter.
- SnapshotId *string
-
- // The tags to apply to the root volume replacement task.
- TagSpecifications []types.TagSpecification
-
- // Specifies the Amazon EBS Provisioned Rate for Volume Initialization (volume
- // initialization rate), in MiB/s, at which to download the snapshot blocks from
- // Amazon S3 to the replacement root volume. This is also known as volume
- // initialization. Specifying a volume initialization rate ensures that the volume
- // is initialized at a predictable and consistent rate after creation.
- //
- // Omit this parameter if:
- //
- // - You want to create the volume using fast snapshot restore. You must specify
- // a snapshot that is enabled for fast snapshot restore. In this case, the volume
- // is fully initialized at creation.
- //
- // If you specify a snapshot that is enabled for fast snapshot restore and a
- // volume initialization rate, the volume will be initialized at the specified rate
- // instead of fast snapshot restore.
- //
- // - You want to create a volume that is initialized at the default rate.
- //
- // For more information, see [Initialize Amazon EBS volumes] in the Amazon EC2 User Guide.
- //
- // Valid range: 100 - 300 MiB/s
- //
- // [Initialize Amazon EBS volumes]: https://docs.aws.amazon.com/ebs/latest/userguide/initalize-volume.html
- VolumeInitializationRate *int64
-
- noSmithyDocumentSerde
-}
-
-type CreateReplaceRootVolumeTaskOutput struct {
-
- // Information about the root volume replacement task.
- ReplaceRootVolumeTask *types.ReplaceRootVolumeTask
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateReplaceRootVolumeTaskMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateReplaceRootVolumeTask{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateReplaceRootVolumeTask{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateReplaceRootVolumeTask"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateReplaceRootVolumeTaskMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateReplaceRootVolumeTaskValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateReplaceRootVolumeTask(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateReplaceRootVolumeTask struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateReplaceRootVolumeTask) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateReplaceRootVolumeTask) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateReplaceRootVolumeTaskInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateReplaceRootVolumeTaskInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateReplaceRootVolumeTaskMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateReplaceRootVolumeTask{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateReplaceRootVolumeTask(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateReplaceRootVolumeTask",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateReservedInstancesListing.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateReservedInstancesListing.go
deleted file mode 100644
index c7f958109..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateReservedInstancesListing.go
+++ /dev/null
@@ -1,207 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in the
-// Reserved Instance Marketplace. You can submit one Standard Reserved Instance
-// listing at a time. To get a list of your Standard Reserved Instances, you can
-// use the DescribeReservedInstancesoperation.
-//
-// Only Standard Reserved Instances can be sold in the Reserved Instance
-// Marketplace. Convertible Reserved Instances cannot be sold.
-//
-// The Reserved Instance Marketplace matches sellers who want to resell Standard
-// Reserved Instance capacity that they no longer need with buyers who want to
-// purchase additional capacity. Reserved Instances bought and sold through the
-// Reserved Instance Marketplace work like any other Reserved Instances.
-//
-// To sell your Standard Reserved Instances, you must first register as a seller
-// in the Reserved Instance Marketplace. After completing the registration process,
-// you can create a Reserved Instance Marketplace listing of some or all of your
-// Standard Reserved Instances, and specify the upfront price to receive for them.
-// Your Standard Reserved Instance listings then become available for purchase. To
-// view the details of your Standard Reserved Instance listing, you can use the DescribeReservedInstancesListings
-// operation.
-//
-// For more information, see [Sell in the Reserved Instance Marketplace] in the Amazon EC2 User Guide.
-//
-// [Sell in the Reserved Instance Marketplace]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html
-func (c *Client) CreateReservedInstancesListing(ctx context.Context, params *CreateReservedInstancesListingInput, optFns ...func(*Options)) (*CreateReservedInstancesListingOutput, error) {
- if params == nil {
- params = &CreateReservedInstancesListingInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateReservedInstancesListing", params, optFns, c.addOperationCreateReservedInstancesListingMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateReservedInstancesListingOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for CreateReservedInstancesListing.
-type CreateReservedInstancesListingInput struct {
-
- // Unique, case-sensitive identifier you provide to ensure idempotency of your
- // listings. This helps avoid duplicate listings. For more information, see [Ensuring Idempotency].
- //
- // [Ensuring Idempotency]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
- //
- // This member is required.
- ClientToken *string
-
- // The number of instances that are a part of a Reserved Instance account to be
- // listed in the Reserved Instance Marketplace. This number should be less than or
- // equal to the instance count associated with the Reserved Instance ID specified
- // in this call.
- //
- // This member is required.
- InstanceCount *int32
-
- // A list specifying the price of the Standard Reserved Instance for each month
- // remaining in the Reserved Instance term.
- //
- // This member is required.
- PriceSchedules []types.PriceScheduleSpecification
-
- // The ID of the active Standard Reserved Instance.
- //
- // This member is required.
- ReservedInstancesId *string
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of CreateReservedInstancesListing.
-type CreateReservedInstancesListingOutput struct {
-
- // Information about the Standard Reserved Instance listing.
- ReservedInstancesListings []types.ReservedInstancesListing
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateReservedInstancesListingMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateReservedInstancesListing{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateReservedInstancesListing{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateReservedInstancesListing"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateReservedInstancesListingValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateReservedInstancesListing(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateReservedInstancesListing(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateReservedInstancesListing",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRestoreImageTask.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRestoreImageTask.go
deleted file mode 100644
index f9d97153f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRestoreImageTask.go
+++ /dev/null
@@ -1,195 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Starts a task that restores an AMI from an Amazon S3 object that was previously
-// created by using [CreateStoreImageTask].
-//
-// To use this API, you must have the required permissions. For more information,
-// see [Permissions for storing and restoring AMIs using S3]in the Amazon EC2 User Guide.
-//
-// For more information, see [Store and restore an AMI using S3] in the Amazon EC2 User Guide.
-//
-// [CreateStoreImageTask]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateStoreImageTask.html
-// [Store and restore an AMI using S3]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html
-// [Permissions for storing and restoring AMIs using S3]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/work-with-ami-store-restore.html#ami-s3-permissions
-func (c *Client) CreateRestoreImageTask(ctx context.Context, params *CreateRestoreImageTaskInput, optFns ...func(*Options)) (*CreateRestoreImageTaskOutput, error) {
- if params == nil {
- params = &CreateRestoreImageTaskInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateRestoreImageTask", params, optFns, c.addOperationCreateRestoreImageTaskMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateRestoreImageTaskOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateRestoreImageTaskInput struct {
-
- // The name of the Amazon S3 bucket that contains the stored AMI object.
- //
- // This member is required.
- Bucket *string
-
- // The name of the stored AMI object in the bucket.
- //
- // This member is required.
- ObjectKey *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The name for the restored AMI. The name must be unique for AMIs in the Region
- // for this account. If you do not provide a name, the new AMI gets the same name
- // as the original AMI.
- Name *string
-
- // The tags to apply to the AMI and snapshots on restoration. You can tag the AMI,
- // the snapshots, or both.
- //
- // - To tag the AMI, the value for ResourceType must be image .
- //
- // - To tag the snapshots, the value for ResourceType must be snapshot . The same
- // tag is applied to all of the snapshots that are created.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateRestoreImageTaskOutput struct {
-
- // The AMI ID.
- ImageId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateRestoreImageTaskMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateRestoreImageTask{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateRestoreImageTask{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateRestoreImageTask"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateRestoreImageTaskValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateRestoreImageTask(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateRestoreImageTask(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateRestoreImageTask",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRoute.go
deleted file mode 100644
index 4865a9751..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRoute.go
+++ /dev/null
@@ -1,237 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a route in a route table within a VPC.
-//
-// You must specify either a destination CIDR block or a prefix list ID. You must
-// also specify exactly one of the resources from the parameter list.
-//
-// When determining how to route traffic, we use the route with the most specific
-// match. For example, traffic is destined for the IPv4 address 192.0.2.3 , and the
-// route table includes the following two IPv4 routes:
-//
-// - 192.0.2.0/24 (goes to some target A)
-//
-// - 192.0.2.0/28 (goes to some target B)
-//
-// Both routes apply to the traffic destined for 192.0.2.3 . However, the second
-// route in the list covers a smaller number of IP addresses and is therefore more
-// specific, so we use that route to determine where to target the traffic.
-//
-// For more information about route tables, see [Route tables] in the Amazon VPC User Guide.
-//
-// [Route tables]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html
-func (c *Client) CreateRoute(ctx context.Context, params *CreateRouteInput, optFns ...func(*Options)) (*CreateRouteOutput, error) {
- if params == nil {
- params = &CreateRouteInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateRoute", params, optFns, c.addOperationCreateRouteMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateRouteOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateRouteInput struct {
-
- // The ID of the route table for the route.
- //
- // This member is required.
- RouteTableId *string
-
- // The ID of the carrier gateway.
- //
- // You can only use this option when the VPC contains a subnet which is associated
- // with a Wavelength Zone.
- CarrierGatewayId *string
-
- // The Amazon Resource Name (ARN) of the core network.
- CoreNetworkArn *string
-
- // The IPv4 CIDR address block used for the destination match. Routing decisions
- // are based on the most specific match. We modify the specified CIDR block to its
- // canonical form; for example, if you specify 100.68.0.18/18 , we modify it to
- // 100.68.0.0/18 .
- DestinationCidrBlock *string
-
- // The IPv6 CIDR block used for the destination match. Routing decisions are based
- // on the most specific match.
- DestinationIpv6CidrBlock *string
-
- // The ID of a prefix list used for the destination match.
- DestinationPrefixListId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // [IPv6 traffic only] The ID of an egress-only internet gateway.
- EgressOnlyInternetGatewayId *string
-
- // The ID of an internet gateway or virtual private gateway attached to your VPC.
- GatewayId *string
-
- // The ID of a NAT instance in your VPC. The operation fails if you specify an
- // instance ID unless exactly one network interface is attached.
- InstanceId *string
-
- // The ID of the local gateway.
- LocalGatewayId *string
-
- // [IPv4 traffic only] The ID of a NAT gateway.
- NatGatewayId *string
-
- // The ID of a network interface.
- NetworkInterfaceId *string
-
- // The Amazon Resource Name (ARN) of the ODB network.
- OdbNetworkArn *string
-
- // The ID of a transit gateway.
- TransitGatewayId *string
-
- // The ID of a VPC endpoint. Supported for Gateway Load Balancer endpoints only.
- VpcEndpointId *string
-
- // The ID of a VPC peering connection.
- VpcPeeringConnectionId *string
-
- noSmithyDocumentSerde
-}
-
-type CreateRouteOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateRouteMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateRoute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateRoute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateRoute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateRouteValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateRoute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateRoute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateRoute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRouteServer.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRouteServer.go
deleted file mode 100644
index 29e46beed..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRouteServer.go
+++ /dev/null
@@ -1,256 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a new route server to manage dynamic routing in a VPC.
-//
-// Amazon VPC Route Server simplifies routing for traffic between workloads that
-// are deployed within a VPC and its internet gateways. With this feature, VPC
-// Route Server dynamically updates VPC and internet gateway route tables with your
-// preferred IPv4 or IPv6 routes to achieve routing fault tolerance for those
-// workloads. This enables you to automatically reroute traffic within a VPC, which
-// increases the manageability of VPC routing and interoperability with third-party
-// workloads.
-//
-// Route server supports the follow route table types:
-//
-// - VPC route tables not associated with subnets
-//
-// - Subnet route tables
-//
-// - Internet gateway route tables
-//
-// Route server does not support route tables associated with virtual private
-// gateways. To propagate routes into a transit gateway route table, use [Transit Gateway Connect].
-//
-// For more information see [Dynamic routing in your VPC with VPC Route Server] in the Amazon VPC User Guide.
-//
-// [Dynamic routing in your VPC with VPC Route Server]: https://docs.aws.amazon.com/vpc/latest/userguide/dynamic-routing-route-server.html
-// [Transit Gateway Connect]: https://docs.aws.amazon.com/vpc/latest/tgw/tgw-connect.html
-func (c *Client) CreateRouteServer(ctx context.Context, params *CreateRouteServerInput, optFns ...func(*Options)) (*CreateRouteServerOutput, error) {
- if params == nil {
- params = &CreateRouteServerInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateRouteServer", params, optFns, c.addOperationCreateRouteServerMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateRouteServerOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateRouteServerInput struct {
-
- // The private Autonomous System Number (ASN) for the Amazon side of the BGP
- // session. Valid values are from 1 to 4294967295. We recommend using a private ASN
- // in the 64512–65534 (16-bit ASN) or 4200000000–4294967294 (32-bit ASN) range.
- //
- // This member is required.
- AmazonSideAsn *int64
-
- // Unique, case-sensitive identifier to ensure idempotency of the request.
- ClientToken *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Indicates whether routes should be persisted after all BGP sessions are
- // terminated.
- PersistRoutes types.RouteServerPersistRoutesAction
-
- // The number of minutes a route server will wait after BGP is re-established to
- // unpersist the routes in the FIB and RIB. Value must be in the range of 1-5.
- // Required if PersistRoutes is enabled .
- //
- // If you set the duration to 1 minute, then when your network appliance
- // re-establishes BGP with route server, it has 1 minute to relearn it's adjacent
- // network and advertise those routes to route server before route server resumes
- // normal functionality. In most cases, 1 minute is probably sufficient. If,
- // however, you have concerns that your BGP network may not be capable of fully
- // re-establishing and re-learning everything in 1 minute, you can increase the
- // duration up to 5 minutes.
- PersistRoutesDuration *int64
-
- // Indicates whether SNS notifications should be enabled for route server events.
- // Enabling SNS notifications persists BGP status changes to an SNS topic
- // provisioned by Amazon Web Services.
- SnsNotificationsEnabled *bool
-
- // The tags to apply to the route server during creation.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateRouteServerOutput struct {
-
- // Information about the created route server.
- RouteServer *types.RouteServer
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateRouteServerMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateRouteServer{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateRouteServer{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateRouteServer"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateRouteServerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateRouteServerValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateRouteServer(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateRouteServer struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateRouteServer) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateRouteServer) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateRouteServerInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateRouteServerInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateRouteServerMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateRouteServer{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateRouteServer(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateRouteServer",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRouteServerEndpoint.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRouteServerEndpoint.go
deleted file mode 100644
index dd14f05e8..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRouteServerEndpoint.go
+++ /dev/null
@@ -1,222 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a new endpoint for a route server in a specified subnet.
-//
-// A route server endpoint is an Amazon Web Services-managed component inside a
-// subnet that facilitates [BGP (Border Gateway Protocol)]connections between your route server and your BGP
-// peers.
-//
-// For more information see [Dynamic routing in your VPC with VPC Route Server] in the Amazon VPC User Guide.
-//
-// [Dynamic routing in your VPC with VPC Route Server]: https://docs.aws.amazon.com/vpc/latest/userguide/dynamic-routing-route-server.html
-// [BGP (Border Gateway Protocol)]: https://en.wikipedia.org/wiki/Border_Gateway_Protocol
-func (c *Client) CreateRouteServerEndpoint(ctx context.Context, params *CreateRouteServerEndpointInput, optFns ...func(*Options)) (*CreateRouteServerEndpointOutput, error) {
- if params == nil {
- params = &CreateRouteServerEndpointInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateRouteServerEndpoint", params, optFns, c.addOperationCreateRouteServerEndpointMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateRouteServerEndpointOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateRouteServerEndpointInput struct {
-
- // The ID of the route server for which to create an endpoint.
- //
- // This member is required.
- RouteServerId *string
-
- // The ID of the subnet in which to create the route server endpoint.
- //
- // This member is required.
- SubnetId *string
-
- // Unique, case-sensitive identifier to ensure idempotency of the request.
- ClientToken *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags to apply to the route server endpoint during creation.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateRouteServerEndpointOutput struct {
-
- // Information about the created route server endpoint.
- RouteServerEndpoint *types.RouteServerEndpoint
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateRouteServerEndpointMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateRouteServerEndpoint{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateRouteServerEndpoint{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateRouteServerEndpoint"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateRouteServerEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateRouteServerEndpointValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateRouteServerEndpoint(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateRouteServerEndpoint struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateRouteServerEndpoint) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateRouteServerEndpoint) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateRouteServerEndpointInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateRouteServerEndpointInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateRouteServerEndpointMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateRouteServerEndpoint{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateRouteServerEndpoint(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateRouteServerEndpoint",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRouteServerPeer.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRouteServerPeer.go
deleted file mode 100644
index 5de7f3951..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRouteServerPeer.go
+++ /dev/null
@@ -1,195 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a new BGP peer for a specified route server endpoint.
-//
-// A route server peer is a session between a route server endpoint and the device
-// deployed in Amazon Web Services (such as a firewall appliance or other network
-// security function running on an EC2 instance). The device must meet these
-// requirements:
-//
-// - Have an elastic network interface in the VPC
-//
-// - Support BGP (Border Gateway Protocol)
-//
-// - Can initiate BGP sessions
-//
-// For more information see [Dynamic routing in your VPC with VPC Route Server] in the Amazon VPC User Guide.
-//
-// [Dynamic routing in your VPC with VPC Route Server]: https://docs.aws.amazon.com/vpc/latest/userguide/dynamic-routing-route-server.html
-func (c *Client) CreateRouteServerPeer(ctx context.Context, params *CreateRouteServerPeerInput, optFns ...func(*Options)) (*CreateRouteServerPeerOutput, error) {
- if params == nil {
- params = &CreateRouteServerPeerInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateRouteServerPeer", params, optFns, c.addOperationCreateRouteServerPeerMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateRouteServerPeerOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateRouteServerPeerInput struct {
-
- // The BGP options for the peer, including ASN (Autonomous System Number) and BFD
- // (Bidrectional Forwarding Detection) settings.
- //
- // This member is required.
- BgpOptions *types.RouteServerBgpOptionsRequest
-
- // The IPv4 address of the peer device.
- //
- // This member is required.
- PeerAddress *string
-
- // The ID of the route server endpoint for which to create a peer.
- //
- // This member is required.
- RouteServerEndpointId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags to apply to the route server peer during creation.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateRouteServerPeerOutput struct {
-
- // Information about the created route server peer.
- RouteServerPeer *types.RouteServerPeer
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateRouteServerPeerMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateRouteServerPeer{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateRouteServerPeer{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateRouteServerPeer"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateRouteServerPeerValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateRouteServerPeer(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateRouteServerPeer(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateRouteServerPeer",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRouteTable.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRouteTable.go
deleted file mode 100644
index 5fa58ddda..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRouteTable.go
+++ /dev/null
@@ -1,220 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a route table for the specified VPC. After you create a route table,
-// you can add routes and associate the table with a subnet.
-//
-// For more information, see [Route tables] in the Amazon VPC User Guide.
-//
-// [Route tables]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html
-func (c *Client) CreateRouteTable(ctx context.Context, params *CreateRouteTableInput, optFns ...func(*Options)) (*CreateRouteTableOutput, error) {
- if params == nil {
- params = &CreateRouteTableInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateRouteTable", params, optFns, c.addOperationCreateRouteTableMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateRouteTableOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateRouteTableInput struct {
-
- // The ID of the VPC.
- //
- // This member is required.
- VpcId *string
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags to assign to the route table.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateRouteTableOutput struct {
-
- // Unique, case-sensitive identifier to ensure the idempotency of the request.
- // Only returned if a client token was provided in the request.
- ClientToken *string
-
- // Information about the route table.
- RouteTable *types.RouteTable
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateRouteTable{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateRouteTable{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateRouteTable"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateRouteTableMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateRouteTableValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateRouteTable(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateRouteTable struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateRouteTable) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateRouteTable) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateRouteTableInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateRouteTableInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateRouteTableMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateRouteTable{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateRouteTable(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateRouteTable",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSecurityGroup.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSecurityGroup.go
deleted file mode 100644
index 5c3c98472..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSecurityGroup.go
+++ /dev/null
@@ -1,212 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a security group.
-//
-// A security group acts as a virtual firewall for your instance to control
-// inbound and outbound traffic. For more information, see [Amazon EC2 security groups]in the Amazon EC2 User
-// Guide and [Security groups for your VPC]in the Amazon VPC User Guide.
-//
-// When you create a security group, you specify a friendly name of your choice.
-// You can't have two security groups for the same VPC with the same name.
-//
-// You have a default security group for use in your VPC. If you don't specify a
-// security group when you launch an instance, the instance is launched into the
-// appropriate default security group. A default security group includes a default
-// rule that grants instances unrestricted network access to each other.
-//
-// You can add or remove rules from your security groups using AuthorizeSecurityGroupIngress, AuthorizeSecurityGroupEgress, RevokeSecurityGroupIngress, and RevokeSecurityGroupEgress.
-//
-// For more information about VPC security group limits, see [Amazon VPC Limits].
-//
-// [Amazon VPC Limits]: https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html
-// [Amazon EC2 security groups]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html
-// [Security groups for your VPC]: https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html
-func (c *Client) CreateSecurityGroup(ctx context.Context, params *CreateSecurityGroupInput, optFns ...func(*Options)) (*CreateSecurityGroupOutput, error) {
- if params == nil {
- params = &CreateSecurityGroupInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateSecurityGroup", params, optFns, c.addOperationCreateSecurityGroupMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateSecurityGroupOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateSecurityGroupInput struct {
-
- // A description for the security group.
- //
- // Constraints: Up to 255 characters in length
- //
- // Valid characters: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
- //
- // This member is required.
- Description *string
-
- // The name of the security group. Names are case-insensitive and must be unique
- // within the VPC.
- //
- // Constraints: Up to 255 characters in length. Can't start with sg- .
- //
- // Valid characters: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
- //
- // This member is required.
- GroupName *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags to assign to the security group.
- TagSpecifications []types.TagSpecification
-
- // The ID of the VPC. Required for a nondefault VPC.
- VpcId *string
-
- noSmithyDocumentSerde
-}
-
-type CreateSecurityGroupOutput struct {
-
- // The ID of the security group.
- GroupId *string
-
- // The security group ARN.
- SecurityGroupArn *string
-
- // The tags assigned to the security group.
- Tags []types.Tag
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateSecurityGroupMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateSecurityGroup{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateSecurityGroup{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateSecurityGroup"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateSecurityGroupValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateSecurityGroup(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateSecurityGroup(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateSecurityGroup",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSnapshot.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSnapshot.go
deleted file mode 100644
index 1e25c4f7c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSnapshot.go
+++ /dev/null
@@ -1,342 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use
-// snapshots for backups, to make copies of EBS volumes, and to save data before
-// shutting down an instance.
-//
-// The location of the source EBS volume determines where you can create the
-// snapshot.
-//
-// - If the source volume is in a Region, you must create the snapshot in the
-// same Region as the volume.
-//
-// - If the source volume is in a Local Zone, you can create the snapshot in the
-// same Local Zone or in its parent Amazon Web Services Region.
-//
-// - If the source volume is on an Outpost, you can create the snapshot on the
-// same Outpost or in its parent Amazon Web Services Region.
-//
-// When a snapshot is created, any Amazon Web Services Marketplace product codes
-// that are associated with the source volume are propagated to the snapshot.
-//
-// You can take a snapshot of an attached volume that is in use. However,
-// snapshots only capture data that has been written to your Amazon EBS volume at
-// the time the snapshot command is issued; this might exclude any data that has
-// been cached by any applications or the operating system. If you can pause any
-// file systems on the volume long enough to take a snapshot, your snapshot should
-// be complete. However, if you cannot pause all file writes to the volume, you
-// should unmount the volume from within the instance, issue the snapshot command,
-// and then remount the volume to ensure a consistent and complete snapshot. You
-// may remount and use your volume while the snapshot status is pending .
-//
-// When you create a snapshot for an EBS volume that serves as a root device, we
-// recommend that you stop the instance before taking the snapshot.
-//
-// Snapshots that are taken from encrypted volumes are automatically encrypted.
-// Volumes that are created from encrypted snapshots are also automatically
-// encrypted. Your encrypted volumes and any associated snapshots always remain
-// protected. For more information, see [Amazon EBS encryption]in the Amazon EBS User Guide.
-//
-// [Amazon EBS encryption]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html
-func (c *Client) CreateSnapshot(ctx context.Context, params *CreateSnapshotInput, optFns ...func(*Options)) (*CreateSnapshotOutput, error) {
- if params == nil {
- params = &CreateSnapshotInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateSnapshot", params, optFns, c.addOperationCreateSnapshotMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateSnapshotOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateSnapshotInput struct {
-
- // The ID of the Amazon EBS volume.
- //
- // This member is required.
- VolumeId *string
-
- // A description for the snapshot.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Only supported for volumes in Local Zones. If the source volume is not in a
- // Local Zone, omit this parameter.
- //
- // - To create a local snapshot in the same Local Zone as the source volume,
- // specify local .
- //
- // - To create a regional snapshot in the parent Region of the Local Zone,
- // specify regional or omit this parameter.
- //
- // Default value: regional
- Location types.SnapshotLocationEnum
-
- // Only supported for volumes on Outposts. If the source volume is not on an
- // Outpost, omit this parameter.
- //
- // - To create the snapshot on the same Outpost as the source volume, specify
- // the ARN of that Outpost. The snapshot must be created on the same Outpost as the
- // volume.
- //
- // - To create the snapshot in the parent Region of the Outpost, omit this
- // parameter.
- //
- // For more information, see [Create local snapshots from volumes on an Outpost] in the Amazon EBS User Guide.
- //
- // [Create local snapshots from volumes on an Outpost]: https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#create-snapshot
- OutpostArn *string
-
- // The tags to apply to the snapshot during creation.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-// Describes a snapshot.
-type CreateSnapshotOutput struct {
-
- // The Availability Zone or Local Zone of the snapshot. For example, us-west-1a
- // (Availability Zone) or us-west-2-lax-1a (Local Zone).
- AvailabilityZone *string
-
- // Only for snapshot copies created with time-based snapshot copy operations.
- //
- // The completion duration requested for the time-based snapshot copy operation.
- CompletionDurationMinutes *int32
-
- // The time stamp when the snapshot was completed.
- CompletionTime *time.Time
-
- // The data encryption key identifier for the snapshot. This value is a unique
- // identifier that corresponds to the data encryption key that was used to encrypt
- // the original volume or snapshot copy. Because data encryption keys are inherited
- // by volumes created from snapshots, and vice versa, if snapshots share the same
- // data encryption key identifier, then they belong to the same volume/snapshot
- // lineage. This parameter is only returned by DescribeSnapshots.
- DataEncryptionKeyId *string
-
- // The description for the snapshot.
- Description *string
-
- // Indicates whether the snapshot is encrypted.
- Encrypted *bool
-
- // The full size of the snapshot, in bytes.
- //
- // This is not the incremental size of the snapshot. This is the full snapshot
- // size and represents the size of all the blocks that were written to the source
- // volume at the time the snapshot was created.
- FullSnapshotSizeInBytes *int64
-
- // The Amazon Resource Name (ARN) of the KMS key that was used to protect the
- // volume encryption key for the parent volume.
- KmsKeyId *string
-
- // The ARN of the Outpost on which the snapshot is stored. For more information,
- // see [Amazon EBS local snapshots on Outposts]in the Amazon EBS User Guide.
- //
- // [Amazon EBS local snapshots on Outposts]: https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html
- OutpostArn *string
-
- // The Amazon Web Services owner alias, from an Amazon-maintained list ( amazon ).
- // This is not the user-configured Amazon Web Services account alias set using the
- // IAM console.
- OwnerAlias *string
-
- // The ID of the Amazon Web Services account that owns the EBS snapshot.
- OwnerId *string
-
- // The progress of the snapshot, as a percentage.
- Progress *string
-
- // Only for archived snapshots that are temporarily restored. Indicates the date
- // and time when a temporarily restored snapshot will be automatically re-archived.
- RestoreExpiryTime *time.Time
-
- // The ID of the snapshot. Each snapshot receives a unique identifier when it is
- // created.
- SnapshotId *string
-
- // Reserved for future use.
- SseType types.SSEType
-
- // The time stamp when the snapshot was initiated.
- StartTime *time.Time
-
- // The snapshot state.
- State types.SnapshotState
-
- // Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy
- // operation fails (for example, if the proper KMS permissions are not obtained)
- // this field displays error state details to help you diagnose why the error
- // occurred. This parameter is only returned by DescribeSnapshots.
- StateMessage *string
-
- // The storage tier in which the snapshot is stored. standard indicates that the
- // snapshot is stored in the standard snapshot storage tier and that it is ready
- // for use. archive indicates that the snapshot is currently archived and that it
- // must be restored before it can be used.
- StorageTier types.StorageTier
-
- // Any tags assigned to the snapshot.
- Tags []types.Tag
-
- // Only for snapshot copies.
- //
- // Indicates whether the snapshot copy was created with a standard or time-based
- // snapshot copy operation. Time-based snapshot copy operations complete within the
- // completion duration specified in the request. Standard snapshot copy operations
- // are completed on a best-effort basis.
- //
- // - standard - The snapshot copy was created with a standard snapshot copy
- // operation.
- //
- // - time-based - The snapshot copy was created with a time-based snapshot copy
- // operation.
- TransferType types.TransferType
-
- // The ID of the volume that was used to create the snapshot. Snapshots created by
- // the CopySnapshotaction have an arbitrary volume ID that should not be used for any purpose.
- VolumeId *string
-
- // The size of the volume, in GiB.
- VolumeSize *int32
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateSnapshotMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateSnapshot{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateSnapshot{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateSnapshot"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateSnapshotValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateSnapshot(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateSnapshot(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateSnapshot",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSnapshots.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSnapshots.go
deleted file mode 100644
index de40302b8..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSnapshots.go
+++ /dev/null
@@ -1,219 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates crash-consistent snapshots of multiple EBS volumes attached to an
-// Amazon EC2 instance. Volumes are chosen by specifying an instance. Each volume
-// attached to the specified instance will produce one snapshot that is
-// crash-consistent across the instance. You can include all of the volumes
-// currently attached to the instance, or you can exclude the root volume or
-// specific data (non-root) volumes from the multi-volume snapshot set.
-//
-// The location of the source instance determines where you can create the
-// snapshots.
-//
-// - If the source instance is in a Region, you must create the snapshots in the
-// same Region as the instance.
-//
-// - If the source instance is in a Local Zone, you can create the snapshots in
-// the same Local Zone or in its parent Amazon Web Services Region.
-//
-// - If the source instance is on an Outpost, you can create the snapshots on
-// the same Outpost or in its parent Amazon Web Services Region.
-func (c *Client) CreateSnapshots(ctx context.Context, params *CreateSnapshotsInput, optFns ...func(*Options)) (*CreateSnapshotsOutput, error) {
- if params == nil {
- params = &CreateSnapshotsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateSnapshots", params, optFns, c.addOperationCreateSnapshotsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateSnapshotsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateSnapshotsInput struct {
-
- // The instance to specify which volumes should be included in the snapshots.
- //
- // This member is required.
- InstanceSpecification *types.InstanceSpecification
-
- // Copies the tags from the specified volume to corresponding snapshot.
- CopyTagsFromSource types.CopyTagsFromSource
-
- // A description propagated to every snapshot specified by the instance.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Only supported for instances in Local Zones. If the source instance is not in a
- // Local Zone, omit this parameter.
- //
- // - To create local snapshots in the same Local Zone as the source instance,
- // specify local .
- //
- // - To create regional snapshots in the parent Region of the Local Zone,
- // specify regional or omit this parameter.
- //
- // Default value: regional
- Location types.SnapshotLocationEnum
-
- // Only supported for instances on Outposts. If the source instance is not on an
- // Outpost, omit this parameter.
- //
- // - To create the snapshots on the same Outpost as the source instance, specify
- // the ARN of that Outpost. The snapshots must be created on the same Outpost as
- // the instance.
- //
- // - To create the snapshots in the parent Region of the Outpost, omit this
- // parameter.
- //
- // For more information, see [Create local snapshots from volumes on an Outpost] in the Amazon EBS User Guide.
- //
- // [Create local snapshots from volumes on an Outpost]: https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#create-snapshot
- OutpostArn *string
-
- // Tags to apply to every snapshot specified by the instance.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateSnapshotsOutput struct {
-
- // List of snapshots.
- Snapshots []types.SnapshotInfo
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateSnapshotsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateSnapshots{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateSnapshots{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateSnapshots"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateSnapshotsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateSnapshots(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateSnapshots(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateSnapshots",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSpotDatafeedSubscription.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSpotDatafeedSubscription.go
deleted file mode 100644
index 082030ba0..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSpotDatafeedSubscription.go
+++ /dev/null
@@ -1,178 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a data feed for Spot Instances, enabling you to view Spot Instance
-// usage logs. You can create one data feed per Amazon Web Services account. For
-// more information, see [Spot Instance data feed]in the Amazon EC2 User Guide.
-//
-// [Spot Instance data feed]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html
-func (c *Client) CreateSpotDatafeedSubscription(ctx context.Context, params *CreateSpotDatafeedSubscriptionInput, optFns ...func(*Options)) (*CreateSpotDatafeedSubscriptionOutput, error) {
- if params == nil {
- params = &CreateSpotDatafeedSubscriptionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateSpotDatafeedSubscription", params, optFns, c.addOperationCreateSpotDatafeedSubscriptionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateSpotDatafeedSubscriptionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for CreateSpotDatafeedSubscription.
-type CreateSpotDatafeedSubscriptionInput struct {
-
- // The name of the Amazon S3 bucket in which to store the Spot Instance data feed.
- // For more information about bucket names, see [Bucket naming rules]in the Amazon S3 User Guide.
- //
- // [Bucket naming rules]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html
- //
- // This member is required.
- Bucket *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The prefix for the data feed file names.
- Prefix *string
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of CreateSpotDatafeedSubscription.
-type CreateSpotDatafeedSubscriptionOutput struct {
-
- // The Spot Instance data feed subscription.
- SpotDatafeedSubscription *types.SpotDatafeedSubscription
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateSpotDatafeedSubscriptionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateSpotDatafeedSubscription{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateSpotDatafeedSubscription{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateSpotDatafeedSubscription"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateSpotDatafeedSubscriptionValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateSpotDatafeedSubscription(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateSpotDatafeedSubscription(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateSpotDatafeedSubscription",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateStoreImageTask.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateStoreImageTask.go
deleted file mode 100644
index 2d604b130..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateStoreImageTask.go
+++ /dev/null
@@ -1,185 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Stores an AMI as a single object in an Amazon S3 bucket.
-//
-// To use this API, you must have the required permissions. For more information,
-// see [Permissions for storing and restoring AMIs using S3]in the Amazon EC2 User Guide.
-//
-// For more information, see [Store and restore an AMI using S3] in the Amazon EC2 User Guide.
-//
-// [Store and restore an AMI using S3]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html
-// [Permissions for storing and restoring AMIs using S3]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/work-with-ami-store-restore.html#ami-s3-permissions
-func (c *Client) CreateStoreImageTask(ctx context.Context, params *CreateStoreImageTaskInput, optFns ...func(*Options)) (*CreateStoreImageTaskOutput, error) {
- if params == nil {
- params = &CreateStoreImageTaskInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateStoreImageTask", params, optFns, c.addOperationCreateStoreImageTaskMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateStoreImageTaskOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateStoreImageTaskInput struct {
-
- // The name of the Amazon S3 bucket in which the AMI object will be stored. The
- // bucket must be in the Region in which the request is being made. The AMI object
- // appears in the bucket only after the upload task has completed.
- //
- // This member is required.
- Bucket *string
-
- // The ID of the AMI.
- //
- // This member is required.
- ImageId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags to apply to the AMI object that will be stored in the Amazon S3
- // bucket.
- S3ObjectTags []types.S3ObjectTag
-
- noSmithyDocumentSerde
-}
-
-type CreateStoreImageTaskOutput struct {
-
- // The name of the stored AMI object in the S3 bucket.
- ObjectKey *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateStoreImageTaskMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateStoreImageTask{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateStoreImageTask{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateStoreImageTask"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateStoreImageTaskValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateStoreImageTask(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateStoreImageTask(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateStoreImageTask",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSubnet.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSubnet.go
deleted file mode 100644
index 9ee93678d..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSubnet.go
+++ /dev/null
@@ -1,244 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a subnet in the specified VPC. For an IPv4 only subnet, specify an IPv4
-// CIDR block. If the VPC has an IPv6 CIDR block, you can create an IPv6 only
-// subnet or a dual stack subnet instead. For an IPv6 only subnet, specify an IPv6
-// CIDR block. For a dual stack subnet, specify both an IPv4 CIDR block and an IPv6
-// CIDR block.
-//
-// A subnet CIDR block must not overlap the CIDR block of an existing subnet in
-// the VPC. After you create a subnet, you can't change its CIDR block.
-//
-// The allowed size for an IPv4 subnet is between a /28 netmask (16 IP addresses)
-// and a /16 netmask (65,536 IP addresses). Amazon Web Services reserves both the
-// first four and the last IPv4 address in each subnet's CIDR block. They're not
-// available for your use.
-//
-// If you've associated an IPv6 CIDR block with your VPC, you can associate an
-// IPv6 CIDR block with a subnet when you create it.
-//
-// If you add more than one subnet to a VPC, they're set up in a star topology
-// with a logical router in the middle.
-//
-// When you stop an instance in a subnet, it retains its private IPv4 address.
-// It's therefore possible to have a subnet with no running instances (they're all
-// stopped), but no remaining IP addresses available.
-//
-// For more information, see [Subnets] in the Amazon VPC User Guide.
-//
-// [Subnets]: https://docs.aws.amazon.com/vpc/latest/userguide/configure-subnets.html
-func (c *Client) CreateSubnet(ctx context.Context, params *CreateSubnetInput, optFns ...func(*Options)) (*CreateSubnetOutput, error) {
- if params == nil {
- params = &CreateSubnetInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateSubnet", params, optFns, c.addOperationCreateSubnetMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateSubnetOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateSubnetInput struct {
-
- // The ID of the VPC.
- //
- // This member is required.
- VpcId *string
-
- // The Availability Zone or Local Zone for the subnet.
- //
- // Default: Amazon Web Services selects one for you. If you create more than one
- // subnet in your VPC, we do not necessarily select a different zone for each
- // subnet.
- //
- // To create a subnet in a Local Zone, set this value to the Local Zone ID, for
- // example us-west-2-lax-1a . For information about the Regions that support Local
- // Zones, see [Available Local Zones].
- //
- // To create a subnet in an Outpost, set this value to the Availability Zone for
- // the Outpost and specify the Outpost ARN.
- //
- // [Available Local Zones]: https://docs.aws.amazon.com/local-zones/latest/ug/available-local-zones.html
- AvailabilityZone *string
-
- // The AZ ID or the Local Zone ID of the subnet.
- AvailabilityZoneId *string
-
- // The IPv4 network range for the subnet, in CIDR notation. For example,
- // 10.0.0.0/24 . We modify the specified CIDR block to its canonical form; for
- // example, if you specify 100.68.0.18/18 , we modify it to 100.68.0.0/18 .
- //
- // This parameter is not supported for an IPv6 only subnet.
- CidrBlock *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // An IPv4 IPAM pool ID for the subnet.
- Ipv4IpamPoolId *string
-
- // An IPv4 netmask length for the subnet.
- Ipv4NetmaskLength *int32
-
- // The IPv6 network range for the subnet, in CIDR notation. This parameter is
- // required for an IPv6 only subnet.
- Ipv6CidrBlock *string
-
- // An IPv6 IPAM pool ID for the subnet.
- Ipv6IpamPoolId *string
-
- // Indicates whether to create an IPv6 only subnet.
- Ipv6Native *bool
-
- // An IPv6 netmask length for the subnet.
- Ipv6NetmaskLength *int32
-
- // The Amazon Resource Name (ARN) of the Outpost. If you specify an Outpost ARN,
- // you must also specify the Availability Zone of the Outpost subnet.
- OutpostArn *string
-
- // The tags to assign to the subnet.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateSubnetOutput struct {
-
- // Information about the subnet.
- Subnet *types.Subnet
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateSubnetMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateSubnet{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateSubnet{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateSubnet"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateSubnetValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateSubnet(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateSubnet(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateSubnet",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSubnetCidrReservation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSubnetCidrReservation.go
deleted file mode 100644
index 0b7898d09..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSubnetCidrReservation.go
+++ /dev/null
@@ -1,192 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a subnet CIDR reservation. For more information, see [Subnet CIDR reservations] in the Amazon VPC
-// User Guide and [Manage prefixes for your network interfaces]in the Amazon EC2 User Guide.
-//
-// [Subnet CIDR reservations]: https://docs.aws.amazon.com/vpc/latest/userguide/subnet-cidr-reservation.html
-// [Manage prefixes for your network interfaces]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/work-with-prefixes.html
-func (c *Client) CreateSubnetCidrReservation(ctx context.Context, params *CreateSubnetCidrReservationInput, optFns ...func(*Options)) (*CreateSubnetCidrReservationOutput, error) {
- if params == nil {
- params = &CreateSubnetCidrReservationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateSubnetCidrReservation", params, optFns, c.addOperationCreateSubnetCidrReservationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateSubnetCidrReservationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateSubnetCidrReservationInput struct {
-
- // The IPv4 or IPV6 CIDR range to reserve.
- //
- // This member is required.
- Cidr *string
-
- // The type of reservation. The reservation type determines how the reserved IP
- // addresses are assigned to resources.
- //
- // - prefix - Amazon Web Services assigns the reserved IP addresses to network
- // interfaces.
- //
- // - explicit - You assign the reserved IP addresses to network interfaces.
- //
- // This member is required.
- ReservationType types.SubnetCidrReservationType
-
- // The ID of the subnet.
- //
- // This member is required.
- SubnetId *string
-
- // The description to assign to the subnet CIDR reservation.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags to assign to the subnet CIDR reservation.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateSubnetCidrReservationOutput struct {
-
- // Information about the created subnet CIDR reservation.
- SubnetCidrReservation *types.SubnetCidrReservation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateSubnetCidrReservationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateSubnetCidrReservation{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateSubnetCidrReservation{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateSubnetCidrReservation"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateSubnetCidrReservationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateSubnetCidrReservation(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateSubnetCidrReservation(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateSubnetCidrReservation",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTags.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTags.go
deleted file mode 100644
index 5f0b00a71..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTags.go
+++ /dev/null
@@ -1,184 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Adds or overwrites only the specified tags for the specified Amazon EC2
-// resource or resources. When you specify an existing tag key, the value is
-// overwritten with the new value. Each resource can have a maximum of 50 tags.
-// Each tag consists of a key and optional value. Tag keys must be unique per
-// resource.
-//
-// For more information about tags, see [Tag your Amazon EC2 resources] in the Amazon Elastic Compute Cloud User
-// Guide. For more information about creating IAM policies that control users'
-// access to resources based on tags, see [Supported resource-level permissions for Amazon EC2 API actions]in the Amazon Elastic Compute Cloud User
-// Guide.
-//
-// [Supported resource-level permissions for Amazon EC2 API actions]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-iam-actions-resources.html
-// [Tag your Amazon EC2 resources]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html
-func (c *Client) CreateTags(ctx context.Context, params *CreateTagsInput, optFns ...func(*Options)) (*CreateTagsOutput, error) {
- if params == nil {
- params = &CreateTagsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateTags", params, optFns, c.addOperationCreateTagsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateTagsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateTagsInput struct {
-
- // The IDs of the resources, separated by spaces.
- //
- // Constraints: Up to 1000 resource IDs. We recommend breaking up this request
- // into smaller batches.
- //
- // This member is required.
- Resources []string
-
- // The tags. The value parameter is required, but if you don't want the tag to
- // have a value, specify the parameter with no value, and we set the value to an
- // empty string.
- //
- // This member is required.
- Tags []types.Tag
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type CreateTagsOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateTagsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTags{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateTags{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateTags"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateTagsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateTags(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateTags(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateTags",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorFilter.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorFilter.go
deleted file mode 100644
index 8470f9e74..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorFilter.go
+++ /dev/null
@@ -1,221 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a Traffic Mirror filter.
-//
-// A Traffic Mirror filter is a set of rules that defines the traffic to mirror.
-//
-// By default, no traffic is mirrored. To mirror traffic, use [CreateTrafficMirrorFilterRule] to add Traffic
-// Mirror rules to the filter. The rules you add define what traffic gets mirrored.
-// You can also use [ModifyTrafficMirrorFilterNetworkServices]to mirror supported network services.
-//
-// [CreateTrafficMirrorFilterRule]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTrafficMirrorFilterRule.htm
-// [ModifyTrafficMirrorFilterNetworkServices]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyTrafficMirrorFilterNetworkServices.html
-func (c *Client) CreateTrafficMirrorFilter(ctx context.Context, params *CreateTrafficMirrorFilterInput, optFns ...func(*Options)) (*CreateTrafficMirrorFilterOutput, error) {
- if params == nil {
- params = &CreateTrafficMirrorFilterInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateTrafficMirrorFilter", params, optFns, c.addOperationCreateTrafficMirrorFilterMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateTrafficMirrorFilterOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateTrafficMirrorFilterInput struct {
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [How to ensure idempotency].
- //
- // [How to ensure idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // The description of the Traffic Mirror filter.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags to assign to a Traffic Mirror filter.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateTrafficMirrorFilterOutput struct {
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [How to ensure idempotency].
- //
- // [How to ensure idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Information about the Traffic Mirror filter.
- TrafficMirrorFilter *types.TrafficMirrorFilter
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateTrafficMirrorFilterMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTrafficMirrorFilter{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateTrafficMirrorFilter{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateTrafficMirrorFilter"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateTrafficMirrorFilterMiddleware(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateTrafficMirrorFilter(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateTrafficMirrorFilter struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateTrafficMirrorFilter) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateTrafficMirrorFilter) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateTrafficMirrorFilterInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateTrafficMirrorFilterInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateTrafficMirrorFilterMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateTrafficMirrorFilter{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateTrafficMirrorFilter(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateTrafficMirrorFilter",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorFilterRule.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorFilterRule.go
deleted file mode 100644
index 674a696de..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorFilterRule.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a Traffic Mirror filter rule.
-//
-// A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.
-//
-// You need the Traffic Mirror filter ID when you create the rule.
-func (c *Client) CreateTrafficMirrorFilterRule(ctx context.Context, params *CreateTrafficMirrorFilterRuleInput, optFns ...func(*Options)) (*CreateTrafficMirrorFilterRuleOutput, error) {
- if params == nil {
- params = &CreateTrafficMirrorFilterRuleInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateTrafficMirrorFilterRule", params, optFns, c.addOperationCreateTrafficMirrorFilterRuleMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateTrafficMirrorFilterRuleOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateTrafficMirrorFilterRuleInput struct {
-
- // The destination CIDR block to assign to the Traffic Mirror rule.
- //
- // This member is required.
- DestinationCidrBlock *string
-
- // The action to take on the filtered traffic.
- //
- // This member is required.
- RuleAction types.TrafficMirrorRuleAction
-
- // The number of the Traffic Mirror rule. This number must be unique for each
- // Traffic Mirror rule in a given direction. The rules are processed in ascending
- // order by rule number.
- //
- // This member is required.
- RuleNumber *int32
-
- // The source CIDR block to assign to the Traffic Mirror rule.
- //
- // This member is required.
- SourceCidrBlock *string
-
- // The type of traffic.
- //
- // This member is required.
- TrafficDirection types.TrafficDirection
-
- // The ID of the filter that this rule is associated with.
- //
- // This member is required.
- TrafficMirrorFilterId *string
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [How to ensure idempotency].
- //
- // [How to ensure idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // The description of the Traffic Mirror rule.
- Description *string
-
- // The destination port range.
- DestinationPortRange *types.TrafficMirrorPortRangeRequest
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The protocol, for example UDP, to assign to the Traffic Mirror rule.
- //
- // For information about the protocol value, see [Protocol Numbers] on the Internet Assigned Numbers
- // Authority (IANA) website.
- //
- // [Protocol Numbers]: https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
- Protocol *int32
-
- // The source port range.
- SourcePortRange *types.TrafficMirrorPortRangeRequest
-
- // Traffic Mirroring tags specifications.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateTrafficMirrorFilterRuleOutput struct {
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [How to ensure idempotency].
- //
- // [How to ensure idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // The Traffic Mirror rule.
- TrafficMirrorFilterRule *types.TrafficMirrorFilterRule
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateTrafficMirrorFilterRuleMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTrafficMirrorFilterRule{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateTrafficMirrorFilterRule{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateTrafficMirrorFilterRule"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateTrafficMirrorFilterRuleMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateTrafficMirrorFilterRuleValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateTrafficMirrorFilterRule(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateTrafficMirrorFilterRule struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateTrafficMirrorFilterRule) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateTrafficMirrorFilterRule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateTrafficMirrorFilterRuleInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateTrafficMirrorFilterRuleInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateTrafficMirrorFilterRuleMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateTrafficMirrorFilterRule{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateTrafficMirrorFilterRule(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateTrafficMirrorFilterRule",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorSession.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorSession.go
deleted file mode 100644
index 57f827c89..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorSession.go
+++ /dev/null
@@ -1,273 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a Traffic Mirror session.
-//
-// A Traffic Mirror session actively copies packets from a Traffic Mirror source
-// to a Traffic Mirror target. Create a filter, and then assign it to the session
-// to define a subset of the traffic to mirror, for example all TCP traffic.
-//
-// The Traffic Mirror source and the Traffic Mirror target (monitoring appliances)
-// can be in the same VPC, or in a different VPC connected via VPC peering or a
-// transit gateway.
-//
-// By default, no traffic is mirrored. Use [CreateTrafficMirrorFilter] to create filter rules that specify
-// the traffic to mirror.
-//
-// [CreateTrafficMirrorFilter]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTrafficMirrorFilter.html
-func (c *Client) CreateTrafficMirrorSession(ctx context.Context, params *CreateTrafficMirrorSessionInput, optFns ...func(*Options)) (*CreateTrafficMirrorSessionOutput, error) {
- if params == nil {
- params = &CreateTrafficMirrorSessionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateTrafficMirrorSession", params, optFns, c.addOperationCreateTrafficMirrorSessionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateTrafficMirrorSessionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateTrafficMirrorSessionInput struct {
-
- // The ID of the source network interface.
- //
- // This member is required.
- NetworkInterfaceId *string
-
- // The session number determines the order in which sessions are evaluated when an
- // interface is used by multiple sessions. The first session with a matching filter
- // is the one that mirrors the packets.
- //
- // Valid values are 1-32766.
- //
- // This member is required.
- SessionNumber *int32
-
- // The ID of the Traffic Mirror filter.
- //
- // This member is required.
- TrafficMirrorFilterId *string
-
- // The ID of the Traffic Mirror target.
- //
- // This member is required.
- TrafficMirrorTargetId *string
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [How to ensure idempotency].
- //
- // [How to ensure idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // The description of the Traffic Mirror session.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The number of bytes in each packet to mirror. These are bytes after the VXLAN
- // header. Do not specify this parameter when you want to mirror the entire packet.
- // To mirror a subset of the packet, set this to the length (in bytes) that you
- // want to mirror. For example, if you set this value to 100, then the first 100
- // bytes that meet the filter criteria are copied to the target.
- //
- // If you do not want to mirror the entire packet, use the PacketLength parameter
- // to specify the number of bytes in each packet to mirror.
- //
- // For sessions with Network Load Balancer (NLB) Traffic Mirror targets the
- // default PacketLength will be set to 8500. Valid values are 1-8500. Setting a
- // PacketLength greater than 8500 will result in an error response.
- PacketLength *int32
-
- // The tags to assign to a Traffic Mirror session.
- TagSpecifications []types.TagSpecification
-
- // The VXLAN ID for the Traffic Mirror session. For more information about the
- // VXLAN protocol, see [RFC 7348]. If you do not specify a VirtualNetworkId , an account-wide
- // unique ID is chosen at random.
- //
- // [RFC 7348]: https://datatracker.ietf.org/doc/html/rfc7348
- VirtualNetworkId *int32
-
- noSmithyDocumentSerde
-}
-
-type CreateTrafficMirrorSessionOutput struct {
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [How to ensure idempotency].
- //
- // [How to ensure idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Information about the Traffic Mirror session.
- TrafficMirrorSession *types.TrafficMirrorSession
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateTrafficMirrorSessionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTrafficMirrorSession{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateTrafficMirrorSession{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateTrafficMirrorSession"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateTrafficMirrorSessionMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateTrafficMirrorSessionValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateTrafficMirrorSession(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateTrafficMirrorSession struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateTrafficMirrorSession) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateTrafficMirrorSession) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateTrafficMirrorSessionInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateTrafficMirrorSessionInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateTrafficMirrorSessionMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateTrafficMirrorSession{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateTrafficMirrorSession(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateTrafficMirrorSession",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorTarget.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorTarget.go
deleted file mode 100644
index bb08112d3..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorTarget.go
+++ /dev/null
@@ -1,234 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a target for your Traffic Mirror session.
-//
-// A Traffic Mirror target is the destination for mirrored traffic. The Traffic
-// Mirror source and the Traffic Mirror target (monitoring appliances) can be in
-// the same VPC, or in different VPCs connected via VPC peering or a transit
-// gateway.
-//
-// A Traffic Mirror target can be a network interface, a Network Load Balancer, or
-// a Gateway Load Balancer endpoint.
-//
-// To use the target in a Traffic Mirror session, use [CreateTrafficMirrorSession].
-//
-// [CreateTrafficMirrorSession]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTrafficMirrorSession.htm
-func (c *Client) CreateTrafficMirrorTarget(ctx context.Context, params *CreateTrafficMirrorTargetInput, optFns ...func(*Options)) (*CreateTrafficMirrorTargetOutput, error) {
- if params == nil {
- params = &CreateTrafficMirrorTargetInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateTrafficMirrorTarget", params, optFns, c.addOperationCreateTrafficMirrorTargetMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateTrafficMirrorTargetOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateTrafficMirrorTargetInput struct {
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [How to ensure idempotency].
- //
- // [How to ensure idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // The description of the Traffic Mirror target.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the Gateway Load Balancer endpoint.
- GatewayLoadBalancerEndpointId *string
-
- // The network interface ID that is associated with the target.
- NetworkInterfaceId *string
-
- // The Amazon Resource Name (ARN) of the Network Load Balancer that is associated
- // with the target.
- NetworkLoadBalancerArn *string
-
- // The tags to assign to the Traffic Mirror target.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateTrafficMirrorTargetOutput struct {
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [How to ensure idempotency].
- //
- // [How to ensure idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Information about the Traffic Mirror target.
- TrafficMirrorTarget *types.TrafficMirrorTarget
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateTrafficMirrorTargetMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTrafficMirrorTarget{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateTrafficMirrorTarget{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateTrafficMirrorTarget"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateTrafficMirrorTargetMiddleware(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateTrafficMirrorTarget(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateTrafficMirrorTarget struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateTrafficMirrorTarget) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateTrafficMirrorTarget) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateTrafficMirrorTargetInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateTrafficMirrorTargetInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateTrafficMirrorTargetMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateTrafficMirrorTarget{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateTrafficMirrorTarget(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateTrafficMirrorTarget",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGateway.go
deleted file mode 100644
index f0a85021b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGateway.go
+++ /dev/null
@@ -1,185 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a transit gateway.
-//
-// You can use a transit gateway to interconnect your virtual private clouds (VPC)
-// and on-premises networks. After the transit gateway enters the available state,
-// you can attach your VPCs and VPN connections to the transit gateway.
-//
-// To attach your VPCs, use CreateTransitGatewayVpcAttachment.
-//
-// To attach a VPN connection, use CreateCustomerGateway to create a customer gateway and specify the
-// ID of the customer gateway and the ID of the transit gateway in a call to CreateVpnConnection.
-//
-// When you create a transit gateway, we create a default transit gateway route
-// table and use it as the default association route table and the default
-// propagation route table. You can use CreateTransitGatewayRouteTableto create additional transit gateway route
-// tables. If you disable automatic route propagation, we do not create a default
-// transit gateway route table. You can use EnableTransitGatewayRouteTablePropagationto propagate routes from a resource
-// attachment to a transit gateway route table. If you disable automatic
-// associations, you can use AssociateTransitGatewayRouteTableto associate a resource attachment with a transit
-// gateway route table.
-func (c *Client) CreateTransitGateway(ctx context.Context, params *CreateTransitGatewayInput, optFns ...func(*Options)) (*CreateTransitGatewayOutput, error) {
- if params == nil {
- params = &CreateTransitGatewayInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateTransitGateway", params, optFns, c.addOperationCreateTransitGatewayMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateTransitGatewayOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateTransitGatewayInput struct {
-
- // A description of the transit gateway.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The transit gateway options.
- Options *types.TransitGatewayRequestOptions
-
- // The tags to apply to the transit gateway.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateTransitGatewayOutput struct {
-
- // Information about the transit gateway.
- TransitGateway *types.TransitGateway
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateTransitGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTransitGateway{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateTransitGateway{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateTransitGateway"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateTransitGateway(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateTransitGateway(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateTransitGateway",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayConnect.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayConnect.go
deleted file mode 100644
index 3fa5ae971..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayConnect.go
+++ /dev/null
@@ -1,180 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a Connect attachment from a specified transit gateway attachment. A
-// Connect attachment is a GRE-based tunnel attachment that you can use to
-// establish a connection between a transit gateway and an appliance.
-//
-// A Connect attachment uses an existing VPC or Amazon Web Services Direct Connect
-// attachment as the underlying transport mechanism.
-func (c *Client) CreateTransitGatewayConnect(ctx context.Context, params *CreateTransitGatewayConnectInput, optFns ...func(*Options)) (*CreateTransitGatewayConnectOutput, error) {
- if params == nil {
- params = &CreateTransitGatewayConnectInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayConnect", params, optFns, c.addOperationCreateTransitGatewayConnectMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateTransitGatewayConnectOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateTransitGatewayConnectInput struct {
-
- // The Connect attachment options.
- //
- // This member is required.
- Options *types.CreateTransitGatewayConnectRequestOptions
-
- // The ID of the transit gateway attachment. You can specify a VPC attachment or
- // Amazon Web Services Direct Connect attachment.
- //
- // This member is required.
- TransportTransitGatewayAttachmentId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags to apply to the Connect attachment.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateTransitGatewayConnectOutput struct {
-
- // Information about the Connect attachment.
- TransitGatewayConnect *types.TransitGatewayConnect
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateTransitGatewayConnectMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTransitGatewayConnect{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateTransitGatewayConnect{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateTransitGatewayConnect"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateTransitGatewayConnectValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateTransitGatewayConnect(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateTransitGatewayConnect(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateTransitGatewayConnect",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayConnectPeer.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayConnectPeer.go
deleted file mode 100644
index 10c957d2b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayConnectPeer.go
+++ /dev/null
@@ -1,201 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a Connect peer for a specified transit gateway Connect attachment
-// between a transit gateway and an appliance.
-//
-// The peer address and transit gateway address must be the same IP address family
-// (IPv4 or IPv6).
-//
-// For more information, see [Connect peers] in the Amazon Web Services Transit Gateways Guide.
-//
-// [Connect peers]: https://docs.aws.amazon.com/vpc/latest/tgw/tgw-connect.html#tgw-connect-peer
-func (c *Client) CreateTransitGatewayConnectPeer(ctx context.Context, params *CreateTransitGatewayConnectPeerInput, optFns ...func(*Options)) (*CreateTransitGatewayConnectPeerOutput, error) {
- if params == nil {
- params = &CreateTransitGatewayConnectPeerInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayConnectPeer", params, optFns, c.addOperationCreateTransitGatewayConnectPeerMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateTransitGatewayConnectPeerOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateTransitGatewayConnectPeerInput struct {
-
- // The range of inside IP addresses that are used for BGP peering. You must
- // specify a size /29 IPv4 CIDR block from the 169.254.0.0/16 range. The first
- // address from the range must be configured on the appliance as the BGP IP
- // address. You can also optionally specify a size /125 IPv6 CIDR block from the
- // fd00::/8 range.
- //
- // This member is required.
- InsideCidrBlocks []string
-
- // The peer IP address (GRE outer IP address) on the appliance side of the Connect
- // peer.
- //
- // This member is required.
- PeerAddress *string
-
- // The ID of the Connect attachment.
- //
- // This member is required.
- TransitGatewayAttachmentId *string
-
- // The BGP options for the Connect peer.
- BgpOptions *types.TransitGatewayConnectRequestBgpOptions
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags to apply to the Connect peer.
- TagSpecifications []types.TagSpecification
-
- // The peer IP address (GRE outer IP address) on the transit gateway side of the
- // Connect peer, which must be specified from a transit gateway CIDR block. If not
- // specified, Amazon automatically assigns the first available IP address from the
- // transit gateway CIDR block.
- TransitGatewayAddress *string
-
- noSmithyDocumentSerde
-}
-
-type CreateTransitGatewayConnectPeerOutput struct {
-
- // Information about the Connect peer.
- TransitGatewayConnectPeer *types.TransitGatewayConnectPeer
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateTransitGatewayConnectPeerMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTransitGatewayConnectPeer{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateTransitGatewayConnectPeer{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateTransitGatewayConnectPeer"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateTransitGatewayConnectPeerValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateTransitGatewayConnectPeer(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateTransitGatewayConnectPeer(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateTransitGatewayConnectPeer",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayMulticastDomain.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayMulticastDomain.go
deleted file mode 100644
index 7108a7350..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayMulticastDomain.go
+++ /dev/null
@@ -1,177 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a multicast domain using the specified transit gateway.
-//
-// The transit gateway must be in the available state before you create a domain.
-// Use [DescribeTransitGateways]to see the state of transit gateway.
-//
-// [DescribeTransitGateways]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTransitGateways.html
-func (c *Client) CreateTransitGatewayMulticastDomain(ctx context.Context, params *CreateTransitGatewayMulticastDomainInput, optFns ...func(*Options)) (*CreateTransitGatewayMulticastDomainOutput, error) {
- if params == nil {
- params = &CreateTransitGatewayMulticastDomainInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayMulticastDomain", params, optFns, c.addOperationCreateTransitGatewayMulticastDomainMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateTransitGatewayMulticastDomainOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateTransitGatewayMulticastDomainInput struct {
-
- // The ID of the transit gateway.
- //
- // This member is required.
- TransitGatewayId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The options for the transit gateway multicast domain.
- Options *types.CreateTransitGatewayMulticastDomainRequestOptions
-
- // The tags for the transit gateway multicast domain.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateTransitGatewayMulticastDomainOutput struct {
-
- // Information about the transit gateway multicast domain.
- TransitGatewayMulticastDomain *types.TransitGatewayMulticastDomain
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateTransitGatewayMulticastDomainMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTransitGatewayMulticastDomain{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateTransitGatewayMulticastDomain{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateTransitGatewayMulticastDomain"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateTransitGatewayMulticastDomainValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateTransitGatewayMulticastDomain(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateTransitGatewayMulticastDomain(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateTransitGatewayMulticastDomain",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayPeeringAttachment.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayPeeringAttachment.go
deleted file mode 100644
index 9093d50c4..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayPeeringAttachment.go
+++ /dev/null
@@ -1,192 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Requests a transit gateway peering attachment between the specified transit
-// gateway (requester) and a peer transit gateway (accepter). The peer transit
-// gateway can be in your account or a different Amazon Web Services account.
-//
-// After you create the peering attachment, the owner of the accepter transit
-// gateway must accept the attachment request.
-func (c *Client) CreateTransitGatewayPeeringAttachment(ctx context.Context, params *CreateTransitGatewayPeeringAttachmentInput, optFns ...func(*Options)) (*CreateTransitGatewayPeeringAttachmentOutput, error) {
- if params == nil {
- params = &CreateTransitGatewayPeeringAttachmentInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayPeeringAttachment", params, optFns, c.addOperationCreateTransitGatewayPeeringAttachmentMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateTransitGatewayPeeringAttachmentOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateTransitGatewayPeeringAttachmentInput struct {
-
- // The ID of the Amazon Web Services account that owns the peer transit gateway.
- //
- // This member is required.
- PeerAccountId *string
-
- // The Region where the peer transit gateway is located.
- //
- // This member is required.
- PeerRegion *string
-
- // The ID of the peer transit gateway with which to create the peering attachment.
- //
- // This member is required.
- PeerTransitGatewayId *string
-
- // The ID of the transit gateway.
- //
- // This member is required.
- TransitGatewayId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Requests a transit gateway peering attachment.
- Options *types.CreateTransitGatewayPeeringAttachmentRequestOptions
-
- // The tags to apply to the transit gateway peering attachment.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateTransitGatewayPeeringAttachmentOutput struct {
-
- // The transit gateway peering attachment.
- TransitGatewayPeeringAttachment *types.TransitGatewayPeeringAttachment
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateTransitGatewayPeeringAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTransitGatewayPeeringAttachment{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateTransitGatewayPeeringAttachment{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateTransitGatewayPeeringAttachment"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateTransitGatewayPeeringAttachmentValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateTransitGatewayPeeringAttachment(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateTransitGatewayPeeringAttachment(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateTransitGatewayPeeringAttachment",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayPolicyTable.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayPolicyTable.go
deleted file mode 100644
index bbb3a4f58..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayPolicyTable.go
+++ /dev/null
@@ -1,170 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a transit gateway policy table.
-func (c *Client) CreateTransitGatewayPolicyTable(ctx context.Context, params *CreateTransitGatewayPolicyTableInput, optFns ...func(*Options)) (*CreateTransitGatewayPolicyTableOutput, error) {
- if params == nil {
- params = &CreateTransitGatewayPolicyTableInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayPolicyTable", params, optFns, c.addOperationCreateTransitGatewayPolicyTableMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateTransitGatewayPolicyTableOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateTransitGatewayPolicyTableInput struct {
-
- // The ID of the transit gateway used for the policy table.
- //
- // This member is required.
- TransitGatewayId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags specification for the transit gateway policy table created during the
- // request.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateTransitGatewayPolicyTableOutput struct {
-
- // Describes the created transit gateway policy table.
- TransitGatewayPolicyTable *types.TransitGatewayPolicyTable
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateTransitGatewayPolicyTableMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTransitGatewayPolicyTable{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateTransitGatewayPolicyTable{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateTransitGatewayPolicyTable"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateTransitGatewayPolicyTableValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateTransitGatewayPolicyTable(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateTransitGatewayPolicyTable(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateTransitGatewayPolicyTable",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayPrefixListReference.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayPrefixListReference.go
deleted file mode 100644
index b961ec8c3..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayPrefixListReference.go
+++ /dev/null
@@ -1,178 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a reference (route) to a prefix list in a specified transit gateway
-// route table.
-func (c *Client) CreateTransitGatewayPrefixListReference(ctx context.Context, params *CreateTransitGatewayPrefixListReferenceInput, optFns ...func(*Options)) (*CreateTransitGatewayPrefixListReferenceOutput, error) {
- if params == nil {
- params = &CreateTransitGatewayPrefixListReferenceInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayPrefixListReference", params, optFns, c.addOperationCreateTransitGatewayPrefixListReferenceMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateTransitGatewayPrefixListReferenceOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateTransitGatewayPrefixListReferenceInput struct {
-
- // The ID of the prefix list that is used for destination matches.
- //
- // This member is required.
- PrefixListId *string
-
- // The ID of the transit gateway route table.
- //
- // This member is required.
- TransitGatewayRouteTableId *string
-
- // Indicates whether to drop traffic that matches this route.
- Blackhole *bool
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the attachment to which traffic is routed.
- TransitGatewayAttachmentId *string
-
- noSmithyDocumentSerde
-}
-
-type CreateTransitGatewayPrefixListReferenceOutput struct {
-
- // Information about the prefix list reference.
- TransitGatewayPrefixListReference *types.TransitGatewayPrefixListReference
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateTransitGatewayPrefixListReferenceMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTransitGatewayPrefixListReference{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateTransitGatewayPrefixListReference{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateTransitGatewayPrefixListReference"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateTransitGatewayPrefixListReferenceValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateTransitGatewayPrefixListReference(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateTransitGatewayPrefixListReference(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateTransitGatewayPrefixListReference",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayRoute.go
deleted file mode 100644
index ecc17331a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayRoute.go
+++ /dev/null
@@ -1,178 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a static route for the specified transit gateway route table.
-func (c *Client) CreateTransitGatewayRoute(ctx context.Context, params *CreateTransitGatewayRouteInput, optFns ...func(*Options)) (*CreateTransitGatewayRouteOutput, error) {
- if params == nil {
- params = &CreateTransitGatewayRouteInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayRoute", params, optFns, c.addOperationCreateTransitGatewayRouteMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateTransitGatewayRouteOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateTransitGatewayRouteInput struct {
-
- // The CIDR range used for destination matches. Routing decisions are based on the
- // most specific match.
- //
- // This member is required.
- DestinationCidrBlock *string
-
- // The ID of the transit gateway route table.
- //
- // This member is required.
- TransitGatewayRouteTableId *string
-
- // Indicates whether to drop traffic that matches this route.
- Blackhole *bool
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the attachment.
- TransitGatewayAttachmentId *string
-
- noSmithyDocumentSerde
-}
-
-type CreateTransitGatewayRouteOutput struct {
-
- // Information about the route.
- Route *types.TransitGatewayRoute
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateTransitGatewayRouteMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTransitGatewayRoute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateTransitGatewayRoute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateTransitGatewayRoute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateTransitGatewayRouteValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateTransitGatewayRoute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateTransitGatewayRoute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateTransitGatewayRoute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayRouteTable.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayRouteTable.go
deleted file mode 100644
index 433367ff3..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayRouteTable.go
+++ /dev/null
@@ -1,169 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a route table for the specified transit gateway.
-func (c *Client) CreateTransitGatewayRouteTable(ctx context.Context, params *CreateTransitGatewayRouteTableInput, optFns ...func(*Options)) (*CreateTransitGatewayRouteTableOutput, error) {
- if params == nil {
- params = &CreateTransitGatewayRouteTableInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayRouteTable", params, optFns, c.addOperationCreateTransitGatewayRouteTableMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateTransitGatewayRouteTableOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateTransitGatewayRouteTableInput struct {
-
- // The ID of the transit gateway.
- //
- // This member is required.
- TransitGatewayId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags to apply to the transit gateway route table.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateTransitGatewayRouteTableOutput struct {
-
- // Information about the transit gateway route table.
- TransitGatewayRouteTable *types.TransitGatewayRouteTable
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateTransitGatewayRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTransitGatewayRouteTable{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateTransitGatewayRouteTable{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateTransitGatewayRouteTable"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateTransitGatewayRouteTableValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateTransitGatewayRouteTable(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateTransitGatewayRouteTable(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateTransitGatewayRouteTable",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayRouteTableAnnouncement.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayRouteTableAnnouncement.go
deleted file mode 100644
index 838a336dd..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayRouteTableAnnouncement.go
+++ /dev/null
@@ -1,174 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Advertises a new transit gateway route table.
-func (c *Client) CreateTransitGatewayRouteTableAnnouncement(ctx context.Context, params *CreateTransitGatewayRouteTableAnnouncementInput, optFns ...func(*Options)) (*CreateTransitGatewayRouteTableAnnouncementOutput, error) {
- if params == nil {
- params = &CreateTransitGatewayRouteTableAnnouncementInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayRouteTableAnnouncement", params, optFns, c.addOperationCreateTransitGatewayRouteTableAnnouncementMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateTransitGatewayRouteTableAnnouncementOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateTransitGatewayRouteTableAnnouncementInput struct {
-
- // The ID of the peering attachment.
- //
- // This member is required.
- PeeringAttachmentId *string
-
- // The ID of the transit gateway route table.
- //
- // This member is required.
- TransitGatewayRouteTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags specifications applied to the transit gateway route table announcement.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateTransitGatewayRouteTableAnnouncementOutput struct {
-
- // Provides details about the transit gateway route table announcement.
- TransitGatewayRouteTableAnnouncement *types.TransitGatewayRouteTableAnnouncement
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateTransitGatewayRouteTableAnnouncementMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTransitGatewayRouteTableAnnouncement{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateTransitGatewayRouteTableAnnouncement{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateTransitGatewayRouteTableAnnouncement"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateTransitGatewayRouteTableAnnouncementValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateTransitGatewayRouteTableAnnouncement(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateTransitGatewayRouteTableAnnouncement(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateTransitGatewayRouteTableAnnouncement",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayVpcAttachment.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayVpcAttachment.go
deleted file mode 100644
index 29cb317c7..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayVpcAttachment.go
+++ /dev/null
@@ -1,192 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Attaches the specified VPC to the specified transit gateway.
-//
-// If you attach a VPC with a CIDR range that overlaps the CIDR range of a VPC
-// that is already attached, the new VPC CIDR range is not propagated to the
-// default propagation route table.
-//
-// To send VPC traffic to an attached transit gateway, add a route to the VPC
-// route table using CreateRoute.
-func (c *Client) CreateTransitGatewayVpcAttachment(ctx context.Context, params *CreateTransitGatewayVpcAttachmentInput, optFns ...func(*Options)) (*CreateTransitGatewayVpcAttachmentOutput, error) {
- if params == nil {
- params = &CreateTransitGatewayVpcAttachmentInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayVpcAttachment", params, optFns, c.addOperationCreateTransitGatewayVpcAttachmentMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateTransitGatewayVpcAttachmentOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateTransitGatewayVpcAttachmentInput struct {
-
- // The IDs of one or more subnets. You can specify only one subnet per
- // Availability Zone. You must specify at least one subnet, but we recommend that
- // you specify two subnets for better availability. The transit gateway uses one IP
- // address from each specified subnet.
- //
- // This member is required.
- SubnetIds []string
-
- // The ID of the transit gateway.
- //
- // This member is required.
- TransitGatewayId *string
-
- // The ID of the VPC.
- //
- // This member is required.
- VpcId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The VPC attachment options.
- Options *types.CreateTransitGatewayVpcAttachmentRequestOptions
-
- // The tags to apply to the VPC attachment.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateTransitGatewayVpcAttachmentOutput struct {
-
- // Information about the VPC attachment.
- TransitGatewayVpcAttachment *types.TransitGatewayVpcAttachment
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateTransitGatewayVpcAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTransitGatewayVpcAttachment{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateTransitGatewayVpcAttachment{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateTransitGatewayVpcAttachment"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateTransitGatewayVpcAttachmentValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateTransitGatewayVpcAttachment(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateTransitGatewayVpcAttachment(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateTransitGatewayVpcAttachment",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVerifiedAccessEndpoint.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVerifiedAccessEndpoint.go
deleted file mode 100644
index 5125ae6c9..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVerifiedAccessEndpoint.go
+++ /dev/null
@@ -1,261 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// An Amazon Web Services Verified Access endpoint is where you define your
-// application along with an optional endpoint-level access policy.
-func (c *Client) CreateVerifiedAccessEndpoint(ctx context.Context, params *CreateVerifiedAccessEndpointInput, optFns ...func(*Options)) (*CreateVerifiedAccessEndpointOutput, error) {
- if params == nil {
- params = &CreateVerifiedAccessEndpointInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateVerifiedAccessEndpoint", params, optFns, c.addOperationCreateVerifiedAccessEndpointMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateVerifiedAccessEndpointOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateVerifiedAccessEndpointInput struct {
-
- // The type of attachment.
- //
- // This member is required.
- AttachmentType types.VerifiedAccessEndpointAttachmentType
-
- // The type of Verified Access endpoint to create.
- //
- // This member is required.
- EndpointType types.VerifiedAccessEndpointType
-
- // The ID of the Verified Access group to associate the endpoint with.
- //
- // This member is required.
- VerifiedAccessGroupId *string
-
- // The DNS name for users to reach your application.
- ApplicationDomain *string
-
- // The CIDR options. This parameter is required if the endpoint type is cidr .
- CidrOptions *types.CreateVerifiedAccessEndpointCidrOptions
-
- // A unique, case-sensitive token that you provide to ensure idempotency of your
- // modification request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // A description for the Verified Access endpoint.
- Description *string
-
- // The ARN of the public TLS/SSL certificate in Amazon Web Services Certificate
- // Manager to associate with the endpoint. The CN in the certificate must match the
- // DNS name your end users will use to reach your application.
- DomainCertificateArn *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // A custom identifier that is prepended to the DNS name that is generated for the
- // endpoint.
- EndpointDomainPrefix *string
-
- // The load balancer details. This parameter is required if the endpoint type is
- // load-balancer .
- LoadBalancerOptions *types.CreateVerifiedAccessEndpointLoadBalancerOptions
-
- // The network interface details. This parameter is required if the endpoint type
- // is network-interface .
- NetworkInterfaceOptions *types.CreateVerifiedAccessEndpointEniOptions
-
- // The Verified Access policy document.
- PolicyDocument *string
-
- // The RDS details. This parameter is required if the endpoint type is rds .
- RdsOptions *types.CreateVerifiedAccessEndpointRdsOptions
-
- // The IDs of the security groups to associate with the Verified Access endpoint.
- // Required if AttachmentType is set to vpc .
- SecurityGroupIds []string
-
- // The options for server side encryption.
- SseSpecification *types.VerifiedAccessSseSpecificationRequest
-
- // The tags to assign to the Verified Access endpoint.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateVerifiedAccessEndpointOutput struct {
-
- // Details about the Verified Access endpoint.
- VerifiedAccessEndpoint *types.VerifiedAccessEndpoint
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateVerifiedAccessEndpointMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVerifiedAccessEndpoint{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateVerifiedAccessEndpoint{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateVerifiedAccessEndpoint"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateVerifiedAccessEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateVerifiedAccessEndpointValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateVerifiedAccessEndpoint(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateVerifiedAccessEndpoint struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateVerifiedAccessEndpoint) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateVerifiedAccessEndpoint) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateVerifiedAccessEndpointInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateVerifiedAccessEndpointInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateVerifiedAccessEndpointMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateVerifiedAccessEndpoint{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateVerifiedAccessEndpoint(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateVerifiedAccessEndpoint",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVerifiedAccessGroup.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVerifiedAccessGroup.go
deleted file mode 100644
index 279065e7c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVerifiedAccessGroup.go
+++ /dev/null
@@ -1,225 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// An Amazon Web Services Verified Access group is a collection of Amazon Web
-// Services Verified Access endpoints who's associated applications have similar
-// security requirements. Each instance within a Verified Access group shares an
-// Verified Access policy. For example, you can group all Verified Access instances
-// associated with "sales" applications together and use one common Verified Access
-// policy.
-func (c *Client) CreateVerifiedAccessGroup(ctx context.Context, params *CreateVerifiedAccessGroupInput, optFns ...func(*Options)) (*CreateVerifiedAccessGroupOutput, error) {
- if params == nil {
- params = &CreateVerifiedAccessGroupInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateVerifiedAccessGroup", params, optFns, c.addOperationCreateVerifiedAccessGroupMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateVerifiedAccessGroupOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateVerifiedAccessGroupInput struct {
-
- // The ID of the Verified Access instance.
- //
- // This member is required.
- VerifiedAccessInstanceId *string
-
- // A unique, case-sensitive token that you provide to ensure idempotency of your
- // modification request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // A description for the Verified Access group.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The Verified Access policy document.
- PolicyDocument *string
-
- // The options for server side encryption.
- SseSpecification *types.VerifiedAccessSseSpecificationRequest
-
- // The tags to assign to the Verified Access group.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateVerifiedAccessGroupOutput struct {
-
- // Details about the Verified Access group.
- VerifiedAccessGroup *types.VerifiedAccessGroup
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateVerifiedAccessGroupMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVerifiedAccessGroup{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateVerifiedAccessGroup{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateVerifiedAccessGroup"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateVerifiedAccessGroupMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateVerifiedAccessGroupValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateVerifiedAccessGroup(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateVerifiedAccessGroup struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateVerifiedAccessGroup) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateVerifiedAccessGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateVerifiedAccessGroupInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateVerifiedAccessGroupInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateVerifiedAccessGroupMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateVerifiedAccessGroup{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateVerifiedAccessGroup(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateVerifiedAccessGroup",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVerifiedAccessInstance.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVerifiedAccessInstance.go
deleted file mode 100644
index f1d2a7ca6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVerifiedAccessInstance.go
+++ /dev/null
@@ -1,215 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// An Amazon Web Services Verified Access instance is a regional entity that
-// evaluates application requests and grants access only when your security
-// requirements are met.
-func (c *Client) CreateVerifiedAccessInstance(ctx context.Context, params *CreateVerifiedAccessInstanceInput, optFns ...func(*Options)) (*CreateVerifiedAccessInstanceOutput, error) {
- if params == nil {
- params = &CreateVerifiedAccessInstanceInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateVerifiedAccessInstance", params, optFns, c.addOperationCreateVerifiedAccessInstanceMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateVerifiedAccessInstanceOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateVerifiedAccessInstanceInput struct {
-
- // The custom subdomain.
- CidrEndpointsCustomSubDomain *string
-
- // A unique, case-sensitive token that you provide to ensure idempotency of your
- // modification request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // A description for the Verified Access instance.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Enable or disable support for Federal Information Processing Standards (FIPS)
- // on the instance.
- FIPSEnabled *bool
-
- // The tags to assign to the Verified Access instance.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateVerifiedAccessInstanceOutput struct {
-
- // Details about the Verified Access instance.
- VerifiedAccessInstance *types.VerifiedAccessInstance
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateVerifiedAccessInstanceMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVerifiedAccessInstance{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateVerifiedAccessInstance{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateVerifiedAccessInstance"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateVerifiedAccessInstanceMiddleware(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateVerifiedAccessInstance(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateVerifiedAccessInstance struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateVerifiedAccessInstance) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateVerifiedAccessInstance) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateVerifiedAccessInstanceInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateVerifiedAccessInstanceInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateVerifiedAccessInstanceMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateVerifiedAccessInstance{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateVerifiedAccessInstance(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateVerifiedAccessInstance",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVerifiedAccessTrustProvider.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVerifiedAccessTrustProvider.go
deleted file mode 100644
index 0098b27ac..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVerifiedAccessTrustProvider.go
+++ /dev/null
@@ -1,244 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// A trust provider is a third-party entity that creates, maintains, and manages
-// identity information for users and devices. When an application request is made,
-// the identity information sent by the trust provider is evaluated by Verified
-// Access before allowing or denying the application request.
-func (c *Client) CreateVerifiedAccessTrustProvider(ctx context.Context, params *CreateVerifiedAccessTrustProviderInput, optFns ...func(*Options)) (*CreateVerifiedAccessTrustProviderOutput, error) {
- if params == nil {
- params = &CreateVerifiedAccessTrustProviderInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateVerifiedAccessTrustProvider", params, optFns, c.addOperationCreateVerifiedAccessTrustProviderMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateVerifiedAccessTrustProviderOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateVerifiedAccessTrustProviderInput struct {
-
- // The identifier to be used when working with policy rules.
- //
- // This member is required.
- PolicyReferenceName *string
-
- // The type of trust provider.
- //
- // This member is required.
- TrustProviderType types.TrustProviderType
-
- // A unique, case-sensitive token that you provide to ensure idempotency of your
- // modification request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // A description for the Verified Access trust provider.
- Description *string
-
- // The options for a device-based trust provider. This parameter is required when
- // the provider type is device .
- DeviceOptions *types.CreateVerifiedAccessTrustProviderDeviceOptions
-
- // The type of device-based trust provider. This parameter is required when the
- // provider type is device .
- DeviceTrustProviderType types.DeviceTrustProviderType
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The OpenID Connect (OIDC) options.
- NativeApplicationOidcOptions *types.CreateVerifiedAccessNativeApplicationOidcOptions
-
- // The options for a OpenID Connect-compatible user-identity trust provider. This
- // parameter is required when the provider type is user .
- OidcOptions *types.CreateVerifiedAccessTrustProviderOidcOptions
-
- // The options for server side encryption.
- SseSpecification *types.VerifiedAccessSseSpecificationRequest
-
- // The tags to assign to the Verified Access trust provider.
- TagSpecifications []types.TagSpecification
-
- // The type of user-based trust provider. This parameter is required when the
- // provider type is user .
- UserTrustProviderType types.UserTrustProviderType
-
- noSmithyDocumentSerde
-}
-
-type CreateVerifiedAccessTrustProviderOutput struct {
-
- // Details about the Verified Access trust provider.
- VerifiedAccessTrustProvider *types.VerifiedAccessTrustProvider
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateVerifiedAccessTrustProviderMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVerifiedAccessTrustProvider{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateVerifiedAccessTrustProvider{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateVerifiedAccessTrustProvider"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateVerifiedAccessTrustProviderMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateVerifiedAccessTrustProviderValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateVerifiedAccessTrustProvider(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateVerifiedAccessTrustProvider struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateVerifiedAccessTrustProvider) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateVerifiedAccessTrustProvider) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateVerifiedAccessTrustProviderInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateVerifiedAccessTrustProviderInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateVerifiedAccessTrustProviderMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateVerifiedAccessTrustProvider{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateVerifiedAccessTrustProvider(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateVerifiedAccessTrustProvider",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVolume.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVolume.go
deleted file mode 100644
index 81cd8e4de..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVolume.go
+++ /dev/null
@@ -1,451 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Creates an EBS volume that can be attached to an instance in the same
-// Availability Zone.
-//
-// You can create a new empty volume or restore a volume from an EBS snapshot. Any
-// Amazon Web Services Marketplace product codes from the snapshot are propagated
-// to the volume.
-//
-// You can create encrypted volumes. Encrypted volumes must be attached to
-// instances that support Amazon EBS encryption. Volumes that are created from
-// encrypted snapshots are also automatically encrypted. For more information, see [Amazon EBS encryption]
-// in the Amazon EBS User Guide.
-//
-// You can tag your volumes during creation. For more information, see [Tag your Amazon EC2 resources] in the
-// Amazon EC2 User Guide.
-//
-// For more information, see [Create an Amazon EBS volume] in the Amazon EBS User Guide.
-//
-// [Amazon EBS encryption]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html
-// [Create an Amazon EBS volume]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-creating-volume.html
-// [Tag your Amazon EC2 resources]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html
-func (c *Client) CreateVolume(ctx context.Context, params *CreateVolumeInput, optFns ...func(*Options)) (*CreateVolumeOutput, error) {
- if params == nil {
- params = &CreateVolumeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateVolume", params, optFns, c.addOperationCreateVolumeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateVolumeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateVolumeInput struct {
-
- // The ID of the Availability Zone in which to create the volume. For example,
- // us-east-1a .
- //
- // This member is required.
- AvailabilityZone *string
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensure Idempotency].
- //
- // [Ensure Idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Indicates whether the volume should be encrypted. The effect of setting the
- // encryption state to true depends on the volume origin (new or from a snapshot),
- // starting encryption state, ownership, and whether encryption by default is
- // enabled. For more information, see [Encryption by default]in the Amazon EBS User Guide.
- //
- // Encrypted Amazon EBS volumes must be attached to instances that support Amazon
- // EBS encryption. For more information, see [Supported instance types].
- //
- // [Supported instance types]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption-requirements.html#ebs-encryption_supported_instances
- // [Encryption by default]: https://docs.aws.amazon.com/ebs/latest/userguide/work-with-ebs-encr.html#encryption-by-default
- Encrypted *bool
-
- // The number of I/O operations per second (IOPS). For gp3 , io1 , and io2
- // volumes, this represents the number of IOPS that are provisioned for the volume.
- // For gp2 volumes, this represents the baseline performance of the volume and the
- // rate at which the volume accumulates I/O credits for bursting.
- //
- // The following are the supported values for each volume type:
- //
- // - gp3 : 3,000 - 16,000 IOPS
- //
- // - io1 : 100 - 64,000 IOPS
- //
- // - io2 : 100 - 256,000 IOPS
- //
- // For io2 volumes, you can achieve up to 256,000 IOPS on [instances built on the Nitro System]. On other instances,
- // you can achieve performance up to 32,000 IOPS.
- //
- // This parameter is required for io1 and io2 volumes. The default for gp3 volumes
- // is 3,000 IOPS. This parameter is not supported for gp2 , st1 , sc1 , or standard
- // volumes.
- //
- // [instances built on the Nitro System]: https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html
- Iops *int32
-
- // The identifier of the KMS key to use for Amazon EBS encryption. If this
- // parameter is not specified, your KMS key for Amazon EBS is used. If KmsKeyId is
- // specified, the encrypted state must be true .
- //
- // You can specify the KMS key using any of the following:
- //
- // - Key ID. For example, 1234abcd-12ab-34cd-56ef-1234567890ab.
- //
- // - Key alias. For example, alias/ExampleAlias.
- //
- // - Key ARN. For example,
- // arn:aws:kms:us-east-1:012345678910:key/1234abcd-12ab-34cd-56ef-1234567890ab.
- //
- // - Alias ARN. For example,
- // arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
- //
- // Amazon Web Services authenticates the KMS key asynchronously. Therefore, if you
- // specify an ID, alias, or ARN that is not valid, the action can appear to
- // complete, but eventually fails.
- KmsKeyId *string
-
- // Indicates whether to enable Amazon EBS Multi-Attach. If you enable
- // Multi-Attach, you can attach the volume to up to 16 [Instances built on the Nitro System]in the same Availability
- // Zone. This parameter is supported with io1 and io2 volumes only. For more
- // information, see [Amazon EBS Multi-Attach]in the Amazon EBS User Guide.
- //
- // [Instances built on the Nitro System]: https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html
- // [Amazon EBS Multi-Attach]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volumes-multi.html
- MultiAttachEnabled *bool
-
- // Reserved for internal use.
- Operator *types.OperatorRequest
-
- // The Amazon Resource Name (ARN) of the Outpost on which to create the volume.
- //
- // If you intend to use a volume with an instance running on an outpost, then you
- // must create the volume on the same outpost as the instance. You can't use a
- // volume created in an Amazon Web Services Region with an instance on an Amazon
- // Web Services outpost, or the other way around.
- OutpostArn *string
-
- // The size of the volume, in GiBs. You must specify either a snapshot ID or a
- // volume size. If you specify a snapshot, the default is the snapshot size. You
- // can specify a volume size that is equal to or larger than the snapshot size.
- //
- // The following are the supported volumes sizes for each volume type:
- //
- // - gp2 and gp3 : 1 - 16,384 GiB
- //
- // - io1 : 4 - 16,384 GiB
- //
- // - io2 : 4 - 65,536 GiB
- //
- // - st1 and sc1 : 125 - 16,384 GiB
- //
- // - standard : 1 - 1024 GiB
- Size *int32
-
- // The snapshot from which to create the volume. You must specify either a
- // snapshot ID or a volume size.
- SnapshotId *string
-
- // The tags to apply to the volume during creation.
- TagSpecifications []types.TagSpecification
-
- // The throughput to provision for a volume, with a maximum of 1,000 MiB/s.
- //
- // This parameter is valid only for gp3 volumes.
- //
- // Valid Range: Minimum value of 125. Maximum value of 1000.
- Throughput *int32
-
- // Specifies the Amazon EBS Provisioned Rate for Volume Initialization (volume
- // initialization rate), in MiB/s, at which to download the snapshot blocks from
- // Amazon S3 to the volume. This is also known as volume initialization. Specifying
- // a volume initialization rate ensures that the volume is initialized at a
- // predictable and consistent rate after creation.
- //
- // This parameter is supported only for volumes created from snapshots. Omit this
- // parameter if:
- //
- // - You want to create the volume using fast snapshot restore. You must specify
- // a snapshot that is enabled for fast snapshot restore. In this case, the volume
- // is fully initialized at creation.
- //
- // If you specify a snapshot that is enabled for fast snapshot restore and a
- // volume initialization rate, the volume will be initialized at the specified rate
- // instead of fast snapshot restore.
- //
- // - You want to create a volume that is initialized at the default rate.
- //
- // For more information, see [Initialize Amazon EBS volumes] in the Amazon EC2 User Guide.
- //
- // Valid range: 100 - 300 MiB/s
- //
- // [Initialize Amazon EBS volumes]: https://docs.aws.amazon.com/ebs/latest/userguide/initalize-volume.html
- VolumeInitializationRate *int32
-
- // The volume type. This parameter can be one of the following values:
- //
- // - General Purpose SSD: gp2 | gp3
- //
- // - Provisioned IOPS SSD: io1 | io2
- //
- // - Throughput Optimized HDD: st1
- //
- // - Cold HDD: sc1
- //
- // - Magnetic: standard
- //
- // Throughput Optimized HDD ( st1 ) and Cold HDD ( sc1 ) volumes can't be used as
- // boot volumes.
- //
- // For more information, see [Amazon EBS volume types] in the Amazon EBS User Guide.
- //
- // Default: gp2
- //
- // [Amazon EBS volume types]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volume-types.html
- VolumeType types.VolumeType
-
- noSmithyDocumentSerde
-}
-
-// Describes a volume.
-type CreateVolumeOutput struct {
-
- // This parameter is not returned by CreateVolume.
- //
- // Information about the volume attachments.
- Attachments []types.VolumeAttachment
-
- // The Availability Zone for the volume.
- AvailabilityZone *string
-
- // The time stamp when volume creation was initiated.
- CreateTime *time.Time
-
- // Indicates whether the volume is encrypted.
- Encrypted *bool
-
- // This parameter is not returned by CreateVolume.
- //
- // Indicates whether the volume was created using fast snapshot restore.
- FastRestored *bool
-
- // The number of I/O operations per second (IOPS). For gp3 , io1 , and io2
- // volumes, this represents the number of IOPS that are provisioned for the volume.
- // For gp2 volumes, this represents the baseline performance of the volume and the
- // rate at which the volume accumulates I/O credits for bursting.
- Iops *int32
-
- // The Amazon Resource Name (ARN) of the KMS key that was used to protect the
- // volume encryption key for the volume.
- KmsKeyId *string
-
- // Indicates whether Amazon EBS Multi-Attach is enabled.
- MultiAttachEnabled *bool
-
- // The service provider that manages the volume.
- Operator *types.OperatorResponse
-
- // The Amazon Resource Name (ARN) of the Outpost.
- OutpostArn *string
-
- // The size of the volume, in GiBs.
- Size *int32
-
- // The snapshot from which the volume was created, if applicable.
- SnapshotId *string
-
- // This parameter is not returned by CreateVolume.
- //
- // Reserved for future use.
- SseType types.SSEType
-
- // The volume state.
- State types.VolumeState
-
- // Any tags assigned to the volume.
- Tags []types.Tag
-
- // The throughput that the volume supports, in MiB/s.
- Throughput *int32
-
- // The ID of the volume.
- VolumeId *string
-
- // The Amazon EBS Provisioned Rate for Volume Initialization (volume
- // initialization rate) specified for the volume during creation, in MiB/s. If no
- // volume initialization rate was specified, the value is null .
- VolumeInitializationRate *int32
-
- // The volume type.
- VolumeType types.VolumeType
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateVolumeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVolume{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateVolume{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateVolume"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opCreateVolumeMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpCreateVolumeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateVolume(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpCreateVolume struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpCreateVolume) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpCreateVolume) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*CreateVolumeInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateVolumeInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opCreateVolumeMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpCreateVolume{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opCreateVolume(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateVolume",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpc.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpc.go
deleted file mode 100644
index c346a24cb..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpc.go
+++ /dev/null
@@ -1,247 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a VPC with the specified CIDR blocks. For more information, see [IP addressing for your VPCs and subnets] in the
-// Amazon VPC User Guide.
-//
-// You can optionally request an IPv6 CIDR block for the VPC. You can request an
-// Amazon-provided IPv6 CIDR block from Amazon's pool of IPv6 addresses or an IPv6
-// CIDR block from an IPv6 address pool that you provisioned through bring your own
-// IP addresses ([BYOIP] ).
-//
-// By default, each instance that you launch in the VPC has the default DHCP
-// options, which include only a default DNS server that we provide
-// (AmazonProvidedDNS). For more information, see [DHCP option sets]in the Amazon VPC User Guide.
-//
-// You can specify the instance tenancy value for the VPC when you create it. You
-// can't change this value for the VPC after you create it. For more information,
-// see [Dedicated Instances]in the Amazon EC2 User Guide.
-//
-// [BYOIP]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html
-// [Dedicated Instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-instance.html
-// [DHCP option sets]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html
-// [IP addressing for your VPCs and subnets]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-ip-addressing.html
-func (c *Client) CreateVpc(ctx context.Context, params *CreateVpcInput, optFns ...func(*Options)) (*CreateVpcOutput, error) {
- if params == nil {
- params = &CreateVpcInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateVpc", params, optFns, c.addOperationCreateVpcMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateVpcOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateVpcInput struct {
-
- // Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the
- // VPC. You cannot specify the range of IP addresses, or the size of the CIDR
- // block.
- AmazonProvidedIpv6CidrBlock *bool
-
- // The IPv4 network range for the VPC, in CIDR notation. For example, 10.0.0.0/16 .
- // We modify the specified CIDR block to its canonical form; for example, if you
- // specify 100.68.0.18/18 , we modify it to 100.68.0.0/18 .
- CidrBlock *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tenancy options for instances launched into the VPC. For default , instances
- // are launched with shared tenancy by default. You can launch instances with any
- // tenancy into a shared tenancy VPC. For dedicated , instances are launched as
- // dedicated tenancy instances by default. You can only launch instances with a
- // tenancy of dedicated or host into a dedicated tenancy VPC.
- //
- // Important: The host value cannot be used with this parameter. Use the default
- // or dedicated values only.
- //
- // Default: default
- InstanceTenancy types.Tenancy
-
- // The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR. For
- // more information, see [What is IPAM?]in the Amazon VPC IPAM User Guide.
- //
- // [What is IPAM?]: https://docs.aws.amazon.com/vpc/latest/ipam/what-is-it-ipam.html
- Ipv4IpamPoolId *string
-
- // The netmask length of the IPv4 CIDR you want to allocate to this VPC from an
- // Amazon VPC IP Address Manager (IPAM) pool. For more information about IPAM, see [What is IPAM?]
- // in the Amazon VPC IPAM User Guide.
- //
- // [What is IPAM?]: https://docs.aws.amazon.com/vpc/latest/ipam/what-is-it-ipam.html
- Ipv4NetmaskLength *int32
-
- // The IPv6 CIDR block from the IPv6 address pool. You must also specify Ipv6Pool
- // in the request.
- //
- // To let Amazon choose the IPv6 CIDR block for you, omit this parameter.
- Ipv6CidrBlock *string
-
- // The name of the location from which we advertise the IPV6 CIDR block. Use this
- // parameter to limit the address to this location.
- //
- // You must set AmazonProvidedIpv6CidrBlock to true to use this parameter.
- Ipv6CidrBlockNetworkBorderGroup *string
-
- // The ID of an IPv6 IPAM pool which will be used to allocate this VPC an IPv6
- // CIDR. IPAM is a VPC feature that you can use to automate your IP address
- // management workflows including assigning, tracking, troubleshooting, and
- // auditing IP addresses across Amazon Web Services Regions and accounts throughout
- // your Amazon Web Services Organization. For more information, see [What is IPAM?]in the Amazon
- // VPC IPAM User Guide.
- //
- // [What is IPAM?]: https://docs.aws.amazon.com/vpc/latest/ipam/what-is-it-ipam.html
- Ipv6IpamPoolId *string
-
- // The netmask length of the IPv6 CIDR you want to allocate to this VPC from an
- // Amazon VPC IP Address Manager (IPAM) pool. For more information about IPAM, see [What is IPAM?]
- // in the Amazon VPC IPAM User Guide.
- //
- // [What is IPAM?]: https://docs.aws.amazon.com/vpc/latest/ipam/what-is-it-ipam.html
- Ipv6NetmaskLength *int32
-
- // The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block.
- Ipv6Pool *string
-
- // The tags to assign to the VPC.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateVpcOutput struct {
-
- // Information about the VPC.
- Vpc *types.Vpc
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateVpcMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVpc{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateVpc{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateVpc"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateVpc(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateVpc(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateVpc",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcBlockPublicAccessExclusion.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcBlockPublicAccessExclusion.go
deleted file mode 100644
index e9484cd77..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcBlockPublicAccessExclusion.go
+++ /dev/null
@@ -1,192 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Create a VPC Block Public Access (BPA) exclusion. A VPC BPA exclusion is a mode
-// that can be applied to a single VPC or subnet that exempts it from the account’s
-// BPA mode and will allow bidirectional or egress-only access. You can create BPA
-// exclusions for VPCs and subnets even when BPA is not enabled on the account to
-// ensure that there is no traffic disruption to the exclusions when VPC BPA is
-// turned on. To learn more about VPC BPA, see [Block public access to VPCs and subnets]in the Amazon VPC User Guide.
-//
-// [Block public access to VPCs and subnets]: https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html
-func (c *Client) CreateVpcBlockPublicAccessExclusion(ctx context.Context, params *CreateVpcBlockPublicAccessExclusionInput, optFns ...func(*Options)) (*CreateVpcBlockPublicAccessExclusionOutput, error) {
- if params == nil {
- params = &CreateVpcBlockPublicAccessExclusionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateVpcBlockPublicAccessExclusion", params, optFns, c.addOperationCreateVpcBlockPublicAccessExclusionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateVpcBlockPublicAccessExclusionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateVpcBlockPublicAccessExclusionInput struct {
-
- // The exclusion mode for internet gateway traffic.
- //
- // - allow-bidirectional : Allow all internet traffic to and from the excluded
- // VPCs and subnets.
- //
- // - allow-egress : Allow outbound internet traffic from the excluded VPCs and
- // subnets. Block inbound internet traffic to the excluded VPCs and subnets. Only
- // applies when VPC Block Public Access is set to Bidirectional.
- //
- // This member is required.
- InternetGatewayExclusionMode types.InternetGatewayExclusionMode
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // A subnet ID.
- SubnetId *string
-
- // tag - The key/value combination of a tag assigned to the resource. Use the tag
- // key in the filter name and the tag value as the filter value. For example, to
- // find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- TagSpecifications []types.TagSpecification
-
- // A VPC ID.
- VpcId *string
-
- noSmithyDocumentSerde
-}
-
-type CreateVpcBlockPublicAccessExclusionOutput struct {
-
- // Details about an exclusion.
- VpcBlockPublicAccessExclusion *types.VpcBlockPublicAccessExclusion
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateVpcBlockPublicAccessExclusionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVpcBlockPublicAccessExclusion{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateVpcBlockPublicAccessExclusion{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateVpcBlockPublicAccessExclusion"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateVpcBlockPublicAccessExclusionValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateVpcBlockPublicAccessExclusion(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateVpcBlockPublicAccessExclusion(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateVpcBlockPublicAccessExclusion",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpoint.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpoint.go
deleted file mode 100644
index d03d9ae4a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpoint.go
+++ /dev/null
@@ -1,243 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a VPC endpoint. A VPC endpoint provides a private connection between
-// the specified VPC and the specified endpoint service. You can use an endpoint
-// service provided by Amazon Web Services, an Amazon Web Services Marketplace
-// Partner, or another Amazon Web Services account. For more information, see the [Amazon Web Services PrivateLink User Guide].
-//
-// [Amazon Web Services PrivateLink User Guide]: https://docs.aws.amazon.com/vpc/latest/privatelink/
-func (c *Client) CreateVpcEndpoint(ctx context.Context, params *CreateVpcEndpointInput, optFns ...func(*Options)) (*CreateVpcEndpointOutput, error) {
- if params == nil {
- params = &CreateVpcEndpointInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateVpcEndpoint", params, optFns, c.addOperationCreateVpcEndpointMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateVpcEndpointOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateVpcEndpointInput struct {
-
- // The ID of the VPC.
- //
- // This member is required.
- VpcId *string
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [How to ensure idempotency].
- //
- // [How to ensure idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // The DNS options for the endpoint.
- DnsOptions *types.DnsOptionsSpecification
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The IP address type for the endpoint.
- IpAddressType types.IpAddressType
-
- // (Interface and gateway endpoints) A policy to attach to the endpoint that
- // controls access to the service. The policy must be in valid JSON format. If this
- // parameter is not specified, we attach a default policy that allows full access
- // to the service.
- PolicyDocument *string
-
- // (Interface endpoint) Indicates whether to associate a private hosted zone with
- // the specified VPC. The private hosted zone contains a record set for the default
- // public DNS name for the service for the Region (for example,
- // kinesis.us-east-1.amazonaws.com ), which resolves to the private IP addresses of
- // the endpoint network interfaces in the VPC. This enables you to make requests to
- // the default public DNS name for the service instead of the public DNS names that
- // are automatically generated by the VPC endpoint service.
- //
- // To use a private hosted zone, you must set the following VPC attributes to true
- // : enableDnsHostnames and enableDnsSupport . Use ModifyVpcAttribute to set the VPC attributes.
- PrivateDnsEnabled *bool
-
- // The Amazon Resource Name (ARN) of a resource configuration that will be
- // associated with the VPC endpoint of type resource.
- ResourceConfigurationArn *string
-
- // (Gateway endpoint) The route table IDs.
- RouteTableIds []string
-
- // (Interface endpoint) The IDs of the security groups to associate with the
- // endpoint network interfaces. If this parameter is not specified, we use the
- // default security group for the VPC.
- SecurityGroupIds []string
-
- // The name of the endpoint service.
- ServiceName *string
-
- // The Amazon Resource Name (ARN) of a service network that will be associated
- // with the VPC endpoint of type service-network.
- ServiceNetworkArn *string
-
- // The Region where the service is hosted. The default is the current Region.
- ServiceRegion *string
-
- // The subnet configurations for the endpoint.
- SubnetConfigurations []types.SubnetConfiguration
-
- // (Interface and Gateway Load Balancer endpoints) The IDs of the subnets in which
- // to create endpoint network interfaces. For a Gateway Load Balancer endpoint, you
- // can specify only one subnet.
- SubnetIds []string
-
- // The tags to associate with the endpoint.
- TagSpecifications []types.TagSpecification
-
- // The type of endpoint.
- //
- // Default: Gateway
- VpcEndpointType types.VpcEndpointType
-
- noSmithyDocumentSerde
-}
-
-type CreateVpcEndpointOutput struct {
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request.
- ClientToken *string
-
- // Information about the endpoint.
- VpcEndpoint *types.VpcEndpoint
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateVpcEndpointMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVpcEndpoint{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateVpcEndpoint{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateVpcEndpoint"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateVpcEndpointValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateVpcEndpoint(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateVpcEndpoint(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateVpcEndpoint",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpointConnectionNotification.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpointConnectionNotification.go
deleted file mode 100644
index 0d795a017..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpointConnectionNotification.go
+++ /dev/null
@@ -1,195 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a connection notification for a specified VPC endpoint or VPC endpoint
-// service. A connection notification notifies you of specific endpoint events. You
-// must create an SNS topic to receive notifications. For more information, see [Creating an Amazon SNS topic]in
-// the Amazon SNS Developer Guide.
-//
-// You can create a connection notification for interface endpoints only.
-//
-// [Creating an Amazon SNS topic]: https://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html
-func (c *Client) CreateVpcEndpointConnectionNotification(ctx context.Context, params *CreateVpcEndpointConnectionNotificationInput, optFns ...func(*Options)) (*CreateVpcEndpointConnectionNotificationOutput, error) {
- if params == nil {
- params = &CreateVpcEndpointConnectionNotificationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateVpcEndpointConnectionNotification", params, optFns, c.addOperationCreateVpcEndpointConnectionNotificationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateVpcEndpointConnectionNotificationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateVpcEndpointConnectionNotificationInput struct {
-
- // The endpoint events for which to receive notifications. Valid values are Accept
- // , Connect , Delete , and Reject .
- //
- // This member is required.
- ConnectionEvents []string
-
- // The ARN of the SNS topic for the notifications.
- //
- // This member is required.
- ConnectionNotificationArn *string
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [How to ensure idempotency].
- //
- // [How to ensure idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the endpoint service.
- ServiceId *string
-
- // The ID of the endpoint.
- VpcEndpointId *string
-
- noSmithyDocumentSerde
-}
-
-type CreateVpcEndpointConnectionNotificationOutput struct {
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request.
- ClientToken *string
-
- // Information about the notification.
- ConnectionNotification *types.ConnectionNotification
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateVpcEndpointConnectionNotificationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVpcEndpointConnectionNotification{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateVpcEndpointConnectionNotification{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateVpcEndpointConnectionNotification"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateVpcEndpointConnectionNotificationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateVpcEndpointConnectionNotification(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateVpcEndpointConnectionNotification(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateVpcEndpointConnectionNotification",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpointServiceConfiguration.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpointServiceConfiguration.go
deleted file mode 100644
index 27caf777f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpointServiceConfiguration.go
+++ /dev/null
@@ -1,209 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a VPC endpoint service to which service consumers (Amazon Web Services
-// accounts, users, and IAM roles) can connect.
-//
-// Before you create an endpoint service, you must create one of the following for
-// your service:
-//
-// - A [Network Load Balancer]. Service consumers connect to your service using an interface endpoint.
-//
-// - A [Gateway Load Balancer]. Service consumers connect to your service using a Gateway Load Balancer
-// endpoint.
-//
-// If you set the private DNS name, you must prove that you own the private DNS
-// domain name.
-//
-// For more information, see the [Amazon Web Services PrivateLink Guide].
-//
-// [Gateway Load Balancer]: https://docs.aws.amazon.com/elasticloadbalancing/latest/gateway/
-// [Network Load Balancer]: https://docs.aws.amazon.com/elasticloadbalancing/latest/network/
-// [Amazon Web Services PrivateLink Guide]: https://docs.aws.amazon.com/vpc/latest/privatelink/
-func (c *Client) CreateVpcEndpointServiceConfiguration(ctx context.Context, params *CreateVpcEndpointServiceConfigurationInput, optFns ...func(*Options)) (*CreateVpcEndpointServiceConfigurationOutput, error) {
- if params == nil {
- params = &CreateVpcEndpointServiceConfigurationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateVpcEndpointServiceConfiguration", params, optFns, c.addOperationCreateVpcEndpointServiceConfigurationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateVpcEndpointServiceConfigurationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateVpcEndpointServiceConfigurationInput struct {
-
- // Indicates whether requests from service consumers to create an endpoint to your
- // service must be accepted manually.
- AcceptanceRequired *bool
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [How to ensure idempotency].
- //
- // [How to ensure idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The Amazon Resource Names (ARNs) of the Gateway Load Balancers.
- GatewayLoadBalancerArns []string
-
- // The Amazon Resource Names (ARNs) of the Network Load Balancers.
- NetworkLoadBalancerArns []string
-
- // (Interface endpoint configuration) The private DNS name to assign to the VPC
- // endpoint service.
- PrivateDnsName *string
-
- // The supported IP address types. The possible values are ipv4 and ipv6 .
- SupportedIpAddressTypes []string
-
- // The Regions from which service consumers can access the service.
- SupportedRegions []string
-
- // The tags to associate with the service.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateVpcEndpointServiceConfigurationOutput struct {
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request.
- ClientToken *string
-
- // Information about the service configuration.
- ServiceConfiguration *types.ServiceConfiguration
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateVpcEndpointServiceConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVpcEndpointServiceConfiguration{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateVpcEndpointServiceConfiguration{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateVpcEndpointServiceConfiguration"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateVpcEndpointServiceConfiguration(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateVpcEndpointServiceConfiguration(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateVpcEndpointServiceConfiguration",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcPeeringConnection.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcPeeringConnection.go
deleted file mode 100644
index cab19a1f6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcPeeringConnection.go
+++ /dev/null
@@ -1,200 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Requests a VPC peering connection between two VPCs: a requester VPC that you
-// own and an accepter VPC with which to create the connection. The accepter VPC
-// can belong to another Amazon Web Services account and can be in a different
-// Region to the requester VPC. The requester VPC and accepter VPC cannot have
-// overlapping CIDR blocks.
-//
-// Limitations and rules apply to a VPC peering connection. For more information,
-// see the [VPC peering limitations]in the VPC Peering Guide.
-//
-// The owner of the accepter VPC must accept the peering request to activate the
-// peering connection. The VPC peering connection request expires after 7 days,
-// after which it cannot be accepted or rejected.
-//
-// If you create a VPC peering connection request between VPCs with overlapping
-// CIDR blocks, the VPC peering connection has a status of failed .
-//
-// [VPC peering limitations]: https://docs.aws.amazon.com/vpc/latest/peering/vpc-peering-basics.html#vpc-peering-limitations
-func (c *Client) CreateVpcPeeringConnection(ctx context.Context, params *CreateVpcPeeringConnectionInput, optFns ...func(*Options)) (*CreateVpcPeeringConnectionOutput, error) {
- if params == nil {
- params = &CreateVpcPeeringConnectionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateVpcPeeringConnection", params, optFns, c.addOperationCreateVpcPeeringConnectionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateVpcPeeringConnectionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type CreateVpcPeeringConnectionInput struct {
-
- // The ID of the requester VPC. You must specify this parameter in the request.
- //
- // This member is required.
- VpcId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The Amazon Web Services account ID of the owner of the accepter VPC.
- //
- // Default: Your Amazon Web Services account ID
- PeerOwnerId *string
-
- // The Region code for the accepter VPC, if the accepter VPC is located in a
- // Region other than the Region in which you make the request.
- //
- // Default: The Region in which you make the request.
- PeerRegion *string
-
- // The ID of the VPC with which you are creating the VPC peering connection. You
- // must specify this parameter in the request.
- PeerVpcId *string
-
- // The tags to assign to the peering connection.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type CreateVpcPeeringConnectionOutput struct {
-
- // Information about the VPC peering connection.
- VpcPeeringConnection *types.VpcPeeringConnection
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateVpcPeeringConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVpcPeeringConnection{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateVpcPeeringConnection{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateVpcPeeringConnection"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateVpcPeeringConnectionValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateVpcPeeringConnection(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateVpcPeeringConnection(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateVpcPeeringConnection",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnConnection.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnConnection.go
deleted file mode 100644
index e60f03f00..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnConnection.go
+++ /dev/null
@@ -1,212 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a VPN connection between an existing virtual private gateway or transit
-// gateway and a customer gateway. The supported connection type is ipsec.1 .
-//
-// The response includes information that you need to give to your network
-// administrator to configure your customer gateway.
-//
-// We strongly recommend that you use HTTPS when calling this operation because
-// the response contains sensitive cryptographic information for configuring your
-// customer gateway device.
-//
-// If you decide to shut down your VPN connection for any reason and later create
-// a new VPN connection, you must reconfigure your customer gateway with the new
-// information returned from this call.
-//
-// This is an idempotent operation. If you perform the operation more than once,
-// Amazon EC2 doesn't return an error.
-//
-// For more information, see [Amazon Web Services Site-to-Site VPN] in the Amazon Web Services Site-to-Site VPN User
-// Guide.
-//
-// [Amazon Web Services Site-to-Site VPN]: https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html
-func (c *Client) CreateVpnConnection(ctx context.Context, params *CreateVpnConnectionInput, optFns ...func(*Options)) (*CreateVpnConnectionOutput, error) {
- if params == nil {
- params = &CreateVpnConnectionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateVpnConnection", params, optFns, c.addOperationCreateVpnConnectionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateVpnConnectionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for CreateVpnConnection.
-type CreateVpnConnectionInput struct {
-
- // The ID of the customer gateway.
- //
- // This member is required.
- CustomerGatewayId *string
-
- // The type of VPN connection ( ipsec.1 ).
- //
- // This member is required.
- Type *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The options for the VPN connection.
- Options *types.VpnConnectionOptionsSpecification
-
- // Specifies the storage mode for the pre-shared key (PSK). Valid values are
- // Standard " (stored in the Site-to-Site VPN service) or SecretsManager (stored
- // in Amazon Web Services Secrets Manager).
- PreSharedKeyStorage *string
-
- // The tags to apply to the VPN connection.
- TagSpecifications []types.TagSpecification
-
- // The ID of the transit gateway. If you specify a transit gateway, you cannot
- // specify a virtual private gateway.
- TransitGatewayId *string
-
- // The ID of the virtual private gateway. If you specify a virtual private
- // gateway, you cannot specify a transit gateway.
- VpnGatewayId *string
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of CreateVpnConnection.
-type CreateVpnConnectionOutput struct {
-
- // Information about the VPN connection.
- VpnConnection *types.VpnConnection
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateVpnConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVpnConnection{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateVpnConnection{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateVpnConnection"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateVpnConnectionValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateVpnConnection(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateVpnConnection(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateVpnConnection",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnConnectionRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnConnectionRoute.go
deleted file mode 100644
index 17db95b79..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnConnectionRoute.go
+++ /dev/null
@@ -1,169 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a static route associated with a VPN connection between an existing
-// virtual private gateway and a VPN customer gateway. The static route allows
-// traffic to be routed from the virtual private gateway to the VPN customer
-// gateway.
-//
-// For more information, see [Amazon Web Services Site-to-Site VPN] in the Amazon Web Services Site-to-Site VPN User
-// Guide.
-//
-// [Amazon Web Services Site-to-Site VPN]: https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html
-func (c *Client) CreateVpnConnectionRoute(ctx context.Context, params *CreateVpnConnectionRouteInput, optFns ...func(*Options)) (*CreateVpnConnectionRouteOutput, error) {
- if params == nil {
- params = &CreateVpnConnectionRouteInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateVpnConnectionRoute", params, optFns, c.addOperationCreateVpnConnectionRouteMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateVpnConnectionRouteOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for CreateVpnConnectionRoute.
-type CreateVpnConnectionRouteInput struct {
-
- // The CIDR block associated with the local subnet of the customer network.
- //
- // This member is required.
- DestinationCidrBlock *string
-
- // The ID of the VPN connection.
- //
- // This member is required.
- VpnConnectionId *string
-
- noSmithyDocumentSerde
-}
-
-type CreateVpnConnectionRouteOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateVpnConnectionRouteMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVpnConnectionRoute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateVpnConnectionRoute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateVpnConnectionRoute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateVpnConnectionRouteValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateVpnConnectionRoute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateVpnConnectionRoute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateVpnConnectionRoute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnGateway.go
deleted file mode 100644
index a5951f0a0..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnGateway.go
+++ /dev/null
@@ -1,188 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a virtual private gateway. A virtual private gateway is the endpoint on
-// the VPC side of your VPN connection. You can create a virtual private gateway
-// before creating the VPC itself.
-//
-// For more information, see [Amazon Web Services Site-to-Site VPN] in the Amazon Web Services Site-to-Site VPN User
-// Guide.
-//
-// [Amazon Web Services Site-to-Site VPN]: https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html
-func (c *Client) CreateVpnGateway(ctx context.Context, params *CreateVpnGatewayInput, optFns ...func(*Options)) (*CreateVpnGatewayOutput, error) {
- if params == nil {
- params = &CreateVpnGatewayInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "CreateVpnGateway", params, optFns, c.addOperationCreateVpnGatewayMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*CreateVpnGatewayOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for CreateVpnGateway.
-type CreateVpnGatewayInput struct {
-
- // The type of VPN connection this virtual private gateway supports.
- //
- // This member is required.
- Type types.GatewayType
-
- // A private Autonomous System Number (ASN) for the Amazon side of a BGP session.
- // If you're using a 16-bit ASN, it must be in the 64512 to 65534 range. If you're
- // using a 32-bit ASN, it must be in the 4200000000 to 4294967294 range.
- //
- // Default: 64512
- AmazonSideAsn *int64
-
- // The Availability Zone for the virtual private gateway.
- AvailabilityZone *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags to apply to the virtual private gateway.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of CreateVpnGateway.
-type CreateVpnGatewayOutput struct {
-
- // Information about the virtual private gateway.
- VpnGateway *types.VpnGateway
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationCreateVpnGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVpnGateway{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateVpnGateway{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "CreateVpnGateway"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpCreateVpnGatewayValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateVpnGateway(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opCreateVpnGateway(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "CreateVpnGateway",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCarrierGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCarrierGateway.go
deleted file mode 100644
index 3a51bb375..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCarrierGateway.go
+++ /dev/null
@@ -1,172 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes a carrier gateway.
-//
-// If you do not delete the route that contains the carrier gateway as the Target,
-// the route is a blackhole route. For information about how to delete a route, see
-// [DeleteRoute].
-//
-// [DeleteRoute]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DeleteRoute.html
-func (c *Client) DeleteCarrierGateway(ctx context.Context, params *DeleteCarrierGatewayInput, optFns ...func(*Options)) (*DeleteCarrierGatewayOutput, error) {
- if params == nil {
- params = &DeleteCarrierGatewayInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteCarrierGateway", params, optFns, c.addOperationDeleteCarrierGatewayMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteCarrierGatewayOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteCarrierGatewayInput struct {
-
- // The ID of the carrier gateway.
- //
- // This member is required.
- CarrierGatewayId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteCarrierGatewayOutput struct {
-
- // Information about the carrier gateway.
- CarrierGateway *types.CarrierGateway
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteCarrierGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteCarrierGateway{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteCarrierGateway{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteCarrierGateway"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteCarrierGatewayValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteCarrierGateway(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteCarrierGateway(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteCarrierGateway",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteClientVpnEndpoint.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteClientVpnEndpoint.go
deleted file mode 100644
index 7c1f54322..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteClientVpnEndpoint.go
+++ /dev/null
@@ -1,167 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified Client VPN endpoint. You must disassociate all target
-// networks before you can delete a Client VPN endpoint.
-func (c *Client) DeleteClientVpnEndpoint(ctx context.Context, params *DeleteClientVpnEndpointInput, optFns ...func(*Options)) (*DeleteClientVpnEndpointOutput, error) {
- if params == nil {
- params = &DeleteClientVpnEndpointInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteClientVpnEndpoint", params, optFns, c.addOperationDeleteClientVpnEndpointMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteClientVpnEndpointOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteClientVpnEndpointInput struct {
-
- // The ID of the Client VPN to be deleted.
- //
- // This member is required.
- ClientVpnEndpointId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteClientVpnEndpointOutput struct {
-
- // The current state of the Client VPN endpoint.
- Status *types.ClientVpnEndpointStatus
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteClientVpnEndpointMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteClientVpnEndpoint{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteClientVpnEndpoint{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteClientVpnEndpoint"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteClientVpnEndpointValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteClientVpnEndpoint(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteClientVpnEndpoint(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteClientVpnEndpoint",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteClientVpnRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteClientVpnRoute.go
deleted file mode 100644
index 0568afee7..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteClientVpnRoute.go
+++ /dev/null
@@ -1,178 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes a route from a Client VPN endpoint. You can only delete routes that you
-// manually added using the CreateClientVpnRoute action. You cannot delete routes
-// that were automatically added when associating a subnet. To remove routes that
-// have been automatically added, disassociate the target subnet from the Client
-// VPN endpoint.
-func (c *Client) DeleteClientVpnRoute(ctx context.Context, params *DeleteClientVpnRouteInput, optFns ...func(*Options)) (*DeleteClientVpnRouteOutput, error) {
- if params == nil {
- params = &DeleteClientVpnRouteInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteClientVpnRoute", params, optFns, c.addOperationDeleteClientVpnRouteMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteClientVpnRouteOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteClientVpnRouteInput struct {
-
- // The ID of the Client VPN endpoint from which the route is to be deleted.
- //
- // This member is required.
- ClientVpnEndpointId *string
-
- // The IPv4 address range, in CIDR notation, of the route to be deleted.
- //
- // This member is required.
- DestinationCidrBlock *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the target subnet used by the route.
- TargetVpcSubnetId *string
-
- noSmithyDocumentSerde
-}
-
-type DeleteClientVpnRouteOutput struct {
-
- // The current state of the route.
- Status *types.ClientVpnRouteStatus
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteClientVpnRouteMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteClientVpnRoute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteClientVpnRoute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteClientVpnRoute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteClientVpnRouteValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteClientVpnRoute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteClientVpnRoute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteClientVpnRoute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCoipCidr.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCoipCidr.go
deleted file mode 100644
index 674d27637..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCoipCidr.go
+++ /dev/null
@@ -1,171 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes a range of customer-owned IP addresses.
-func (c *Client) DeleteCoipCidr(ctx context.Context, params *DeleteCoipCidrInput, optFns ...func(*Options)) (*DeleteCoipCidrOutput, error) {
- if params == nil {
- params = &DeleteCoipCidrInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteCoipCidr", params, optFns, c.addOperationDeleteCoipCidrMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteCoipCidrOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteCoipCidrInput struct {
-
- // A customer-owned IP address range that you want to delete.
- //
- // This member is required.
- Cidr *string
-
- // The ID of the customer-owned address pool.
- //
- // This member is required.
- CoipPoolId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteCoipCidrOutput struct {
-
- // Information about a range of customer-owned IP addresses.
- CoipCidr *types.CoipCidr
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteCoipCidrMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteCoipCidr{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteCoipCidr{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteCoipCidr"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteCoipCidrValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteCoipCidr(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteCoipCidr(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteCoipCidr",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCoipPool.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCoipPool.go
deleted file mode 100644
index 6c4e01453..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCoipPool.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes a pool of customer-owned IP (CoIP) addresses.
-func (c *Client) DeleteCoipPool(ctx context.Context, params *DeleteCoipPoolInput, optFns ...func(*Options)) (*DeleteCoipPoolOutput, error) {
- if params == nil {
- params = &DeleteCoipPoolInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteCoipPool", params, optFns, c.addOperationDeleteCoipPoolMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteCoipPoolOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteCoipPoolInput struct {
-
- // The ID of the CoIP pool that you want to delete.
- //
- // This member is required.
- CoipPoolId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteCoipPoolOutput struct {
-
- // Information about the CoIP address pool.
- CoipPool *types.CoipPool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteCoipPoolMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteCoipPool{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteCoipPool{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteCoipPool"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteCoipPoolValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteCoipPool(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteCoipPool(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteCoipPool",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCustomerGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCustomerGateway.go
deleted file mode 100644
index 99055b42c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCustomerGateway.go
+++ /dev/null
@@ -1,163 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified customer gateway. You must delete the VPN connection
-// before you can delete the customer gateway.
-func (c *Client) DeleteCustomerGateway(ctx context.Context, params *DeleteCustomerGatewayInput, optFns ...func(*Options)) (*DeleteCustomerGatewayOutput, error) {
- if params == nil {
- params = &DeleteCustomerGatewayInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteCustomerGateway", params, optFns, c.addOperationDeleteCustomerGatewayMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteCustomerGatewayOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DeleteCustomerGateway.
-type DeleteCustomerGatewayInput struct {
-
- // The ID of the customer gateway.
- //
- // This member is required.
- CustomerGatewayId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteCustomerGatewayOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteCustomerGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteCustomerGateway{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteCustomerGateway{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteCustomerGateway"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteCustomerGatewayValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteCustomerGateway(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteCustomerGateway(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteCustomerGateway",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteDhcpOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteDhcpOptions.go
deleted file mode 100644
index 6268c2344..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteDhcpOptions.go
+++ /dev/null
@@ -1,164 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified set of DHCP options. You must disassociate the set of
-// DHCP options before you can delete it. You can disassociate the set of DHCP
-// options by associating either a new set of options or the default set of options
-// with the VPC.
-func (c *Client) DeleteDhcpOptions(ctx context.Context, params *DeleteDhcpOptionsInput, optFns ...func(*Options)) (*DeleteDhcpOptionsOutput, error) {
- if params == nil {
- params = &DeleteDhcpOptionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteDhcpOptions", params, optFns, c.addOperationDeleteDhcpOptionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteDhcpOptionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteDhcpOptionsInput struct {
-
- // The ID of the DHCP options set.
- //
- // This member is required.
- DhcpOptionsId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteDhcpOptionsOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteDhcpOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteDhcpOptions{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteDhcpOptions{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteDhcpOptions"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteDhcpOptionsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteDhcpOptions(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteDhcpOptions(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteDhcpOptions",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteEgressOnlyInternetGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteEgressOnlyInternetGateway.go
deleted file mode 100644
index fba1d447d..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteEgressOnlyInternetGateway.go
+++ /dev/null
@@ -1,165 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes an egress-only internet gateway.
-func (c *Client) DeleteEgressOnlyInternetGateway(ctx context.Context, params *DeleteEgressOnlyInternetGatewayInput, optFns ...func(*Options)) (*DeleteEgressOnlyInternetGatewayOutput, error) {
- if params == nil {
- params = &DeleteEgressOnlyInternetGatewayInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteEgressOnlyInternetGateway", params, optFns, c.addOperationDeleteEgressOnlyInternetGatewayMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteEgressOnlyInternetGatewayOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteEgressOnlyInternetGatewayInput struct {
-
- // The ID of the egress-only internet gateway.
- //
- // This member is required.
- EgressOnlyInternetGatewayId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteEgressOnlyInternetGatewayOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- ReturnCode *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteEgressOnlyInternetGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteEgressOnlyInternetGateway{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteEgressOnlyInternetGateway{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteEgressOnlyInternetGateway"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteEgressOnlyInternetGatewayValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteEgressOnlyInternetGateway(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteEgressOnlyInternetGateway(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteEgressOnlyInternetGateway",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFleets.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFleets.go
deleted file mode 100644
index 127a24e89..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFleets.go
+++ /dev/null
@@ -1,216 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified EC2 Fleet request.
-//
-// After you delete an EC2 Fleet request, it launches no new instances.
-//
-// You must also specify whether a deleted EC2 Fleet request should terminate its
-// instances. If you choose to terminate the instances, the EC2 Fleet request
-// enters the deleted_terminating state. Otherwise, it enters the deleted_running
-// state, and the instances continue to run until they are interrupted or you
-// terminate them manually.
-//
-// A deleted instant fleet with running instances is not supported. When you
-// delete an instant fleet, Amazon EC2 automatically terminates all its instances.
-// For fleets with more than 1000 instances, the deletion request might fail. If
-// your fleet has more than 1000 instances, first terminate most of the instances
-// manually, leaving 1000 or fewer. Then delete the fleet, and the remaining
-// instances will be terminated automatically.
-//
-// Restrictions
-//
-// - You can delete up to 25 fleets of type instant in a single request.
-//
-// - You can delete up to 100 fleets of type maintain or request in a single
-// request.
-//
-// - You can delete up to 125 fleets in a single request, provided you do not
-// exceed the quota for each fleet type, as specified above.
-//
-// - If you exceed the specified number of fleets to delete, no fleets are
-// deleted.
-//
-// For more information, see [Delete an EC2 Fleet request and the instances in the fleet] in the Amazon EC2 User Guide.
-//
-// [Delete an EC2 Fleet request and the instances in the fleet]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/delete-fleet.html
-func (c *Client) DeleteFleets(ctx context.Context, params *DeleteFleetsInput, optFns ...func(*Options)) (*DeleteFleetsOutput, error) {
- if params == nil {
- params = &DeleteFleetsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteFleets", params, optFns, c.addOperationDeleteFleetsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteFleetsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteFleetsInput struct {
-
- // The IDs of the EC2 Fleets.
- //
- // Constraints: In a single request, you can specify up to 25 instant fleet IDs
- // and up to 100 maintain or request fleet IDs.
- //
- // This member is required.
- FleetIds []string
-
- // Indicates whether to terminate the associated instances when the EC2 Fleet is
- // deleted. The default is to terminate the instances.
- //
- // To let the instances continue to run after the EC2 Fleet is deleted, specify
- // no-terminate-instances . Supported only for fleets of type maintain and request .
- //
- // For instant fleets, you cannot specify NoTerminateInstances . A deleted instant
- // fleet with running instances is not supported.
- //
- // This member is required.
- TerminateInstances *bool
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteFleetsOutput struct {
-
- // Information about the EC2 Fleets that are successfully deleted.
- SuccessfulFleetDeletions []types.DeleteFleetSuccessItem
-
- // Information about the EC2 Fleets that are not successfully deleted.
- UnsuccessfulFleetDeletions []types.DeleteFleetErrorItem
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteFleetsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteFleets{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteFleets{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteFleets"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteFleetsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteFleets(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteFleets(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteFleets",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFlowLogs.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFlowLogs.go
deleted file mode 100644
index 13c315621..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFlowLogs.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes one or more flow logs.
-func (c *Client) DeleteFlowLogs(ctx context.Context, params *DeleteFlowLogsInput, optFns ...func(*Options)) (*DeleteFlowLogsOutput, error) {
- if params == nil {
- params = &DeleteFlowLogsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteFlowLogs", params, optFns, c.addOperationDeleteFlowLogsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteFlowLogsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteFlowLogsInput struct {
-
- // One or more flow log IDs.
- //
- // Constraint: Maximum of 1000 flow log IDs.
- //
- // This member is required.
- FlowLogIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteFlowLogsOutput struct {
-
- // Information about the flow logs that could not be deleted successfully.
- Unsuccessful []types.UnsuccessfulItem
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteFlowLogsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteFlowLogs{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteFlowLogs{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteFlowLogs"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteFlowLogsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteFlowLogs(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteFlowLogs(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteFlowLogs",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFpgaImage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFpgaImage.go
deleted file mode 100644
index 2881935a2..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFpgaImage.go
+++ /dev/null
@@ -1,165 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified Amazon FPGA Image (AFI).
-func (c *Client) DeleteFpgaImage(ctx context.Context, params *DeleteFpgaImageInput, optFns ...func(*Options)) (*DeleteFpgaImageOutput, error) {
- if params == nil {
- params = &DeleteFpgaImageInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteFpgaImage", params, optFns, c.addOperationDeleteFpgaImageMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteFpgaImageOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteFpgaImageInput struct {
-
- // The ID of the AFI.
- //
- // This member is required.
- FpgaImageId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteFpgaImageOutput struct {
-
- // Is true if the request succeeds, and an error otherwise.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteFpgaImageMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteFpgaImage{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteFpgaImage{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteFpgaImage"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteFpgaImageValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteFpgaImage(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteFpgaImage(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteFpgaImage",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteInstanceConnectEndpoint.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteInstanceConnectEndpoint.go
deleted file mode 100644
index 72acbf30a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteInstanceConnectEndpoint.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified EC2 Instance Connect Endpoint.
-func (c *Client) DeleteInstanceConnectEndpoint(ctx context.Context, params *DeleteInstanceConnectEndpointInput, optFns ...func(*Options)) (*DeleteInstanceConnectEndpointOutput, error) {
- if params == nil {
- params = &DeleteInstanceConnectEndpointInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteInstanceConnectEndpoint", params, optFns, c.addOperationDeleteInstanceConnectEndpointMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteInstanceConnectEndpointOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteInstanceConnectEndpointInput struct {
-
- // The ID of the EC2 Instance Connect Endpoint to delete.
- //
- // This member is required.
- InstanceConnectEndpointId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteInstanceConnectEndpointOutput struct {
-
- // Information about the EC2 Instance Connect Endpoint.
- InstanceConnectEndpoint *types.Ec2InstanceConnectEndpoint
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteInstanceConnectEndpointMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteInstanceConnectEndpoint{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteInstanceConnectEndpoint{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteInstanceConnectEndpoint"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteInstanceConnectEndpointValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteInstanceConnectEndpoint(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteInstanceConnectEndpoint(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteInstanceConnectEndpoint",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteInstanceEventWindow.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteInstanceEventWindow.go
deleted file mode 100644
index fd33b60e5..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteInstanceEventWindow.go
+++ /dev/null
@@ -1,174 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified event window.
-//
-// For more information, see [Define event windows for scheduled events] in the Amazon EC2 User Guide.
-//
-// [Define event windows for scheduled events]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html
-func (c *Client) DeleteInstanceEventWindow(ctx context.Context, params *DeleteInstanceEventWindowInput, optFns ...func(*Options)) (*DeleteInstanceEventWindowOutput, error) {
- if params == nil {
- params = &DeleteInstanceEventWindowInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteInstanceEventWindow", params, optFns, c.addOperationDeleteInstanceEventWindowMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteInstanceEventWindowOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteInstanceEventWindowInput struct {
-
- // The ID of the event window.
- //
- // This member is required.
- InstanceEventWindowId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Specify true to force delete the event window. Use the force delete parameter
- // if the event window is currently associated with targets.
- ForceDelete *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteInstanceEventWindowOutput struct {
-
- // The state of the event window.
- InstanceEventWindowState *types.InstanceEventWindowStateChange
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteInstanceEventWindowMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteInstanceEventWindow{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteInstanceEventWindow{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteInstanceEventWindow"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteInstanceEventWindowValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteInstanceEventWindow(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteInstanceEventWindow(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteInstanceEventWindow",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteInternetGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteInternetGateway.go
deleted file mode 100644
index 5f31ceb9d..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteInternetGateway.go
+++ /dev/null
@@ -1,162 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified internet gateway. You must detach the internet gateway
-// from the VPC before you can delete it.
-func (c *Client) DeleteInternetGateway(ctx context.Context, params *DeleteInternetGatewayInput, optFns ...func(*Options)) (*DeleteInternetGatewayOutput, error) {
- if params == nil {
- params = &DeleteInternetGatewayInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteInternetGateway", params, optFns, c.addOperationDeleteInternetGatewayMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteInternetGatewayOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteInternetGatewayInput struct {
-
- // The ID of the internet gateway.
- //
- // This member is required.
- InternetGatewayId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteInternetGatewayOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteInternetGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteInternetGateway{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteInternetGateway{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteInternetGateway"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteInternetGatewayValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteInternetGateway(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteInternetGateway(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteInternetGateway",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteIpam.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteIpam.go
deleted file mode 100644
index 3871ff155..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteIpam.go
+++ /dev/null
@@ -1,192 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Delete an IPAM. Deleting an IPAM removes all monitored data associated with the
-// IPAM including the historical data for CIDRs.
-//
-// For more information, see [Delete an IPAM] in the Amazon VPC IPAM User Guide.
-//
-// [Delete an IPAM]: https://docs.aws.amazon.com/vpc/latest/ipam/delete-ipam.html
-func (c *Client) DeleteIpam(ctx context.Context, params *DeleteIpamInput, optFns ...func(*Options)) (*DeleteIpamOutput, error) {
- if params == nil {
- params = &DeleteIpamInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteIpam", params, optFns, c.addOperationDeleteIpamMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteIpamOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteIpamInput struct {
-
- // The ID of the IPAM to delete.
- //
- // This member is required.
- IpamId *string
-
- // Enables you to quickly delete an IPAM, private scopes, pools in private scopes,
- // and any allocations in the pools in private scopes. You cannot delete the IPAM
- // with this option if there is a pool in your public scope. If you use this
- // option, IPAM does the following:
- //
- // - Deallocates any CIDRs allocated to VPC resources (such as VPCs) in pools in
- // private scopes.
- //
- // No VPC resources are deleted as a result of enabling this option. The CIDR
- // associated with the resource will no longer be allocated from an IPAM pool, but
- // the CIDR itself will remain unchanged.
- //
- // - Deprovisions all IPv4 CIDRs provisioned to IPAM pools in private scopes.
- //
- // - Deletes all IPAM pools in private scopes.
- //
- // - Deletes all non-default private scopes in the IPAM.
- //
- // - Deletes the default public and private scopes and the IPAM.
- Cascade *bool
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteIpamOutput struct {
-
- // Information about the results of the deletion.
- Ipam *types.Ipam
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteIpamMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteIpam{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteIpam{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteIpam"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteIpamValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteIpam(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteIpam(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteIpam",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteIpamExternalResourceVerificationToken.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteIpamExternalResourceVerificationToken.go
deleted file mode 100644
index acc901e9f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteIpamExternalResourceVerificationToken.go
+++ /dev/null
@@ -1,170 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Delete a verification token. A verification token is an Amazon Web
-// Services-generated random value that you can use to prove ownership of an
-// external resource. For example, you can use a verification token to validate
-// that you control a public IP address range when you bring an IP address range to
-// Amazon Web Services (BYOIP).
-func (c *Client) DeleteIpamExternalResourceVerificationToken(ctx context.Context, params *DeleteIpamExternalResourceVerificationTokenInput, optFns ...func(*Options)) (*DeleteIpamExternalResourceVerificationTokenOutput, error) {
- if params == nil {
- params = &DeleteIpamExternalResourceVerificationTokenInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteIpamExternalResourceVerificationToken", params, optFns, c.addOperationDeleteIpamExternalResourceVerificationTokenMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteIpamExternalResourceVerificationTokenOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteIpamExternalResourceVerificationTokenInput struct {
-
- // The token ID.
- //
- // This member is required.
- IpamExternalResourceVerificationTokenId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteIpamExternalResourceVerificationTokenOutput struct {
-
- // The verification token.
- IpamExternalResourceVerificationToken *types.IpamExternalResourceVerificationToken
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteIpamExternalResourceVerificationTokenMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteIpamExternalResourceVerificationToken{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteIpamExternalResourceVerificationToken{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteIpamExternalResourceVerificationToken"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteIpamExternalResourceVerificationTokenValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteIpamExternalResourceVerificationToken(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteIpamExternalResourceVerificationToken(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteIpamExternalResourceVerificationToken",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteIpamPool.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteIpamPool.go
deleted file mode 100644
index 5f54a9f20..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteIpamPool.go
+++ /dev/null
@@ -1,184 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Delete an IPAM pool.
-//
-// You cannot delete an IPAM pool if there are allocations in it or CIDRs
-// provisioned to it. To release allocations, see [ReleaseIpamPoolAllocation]. To deprovision pool CIDRs, see [DeprovisionIpamPoolCidr]
-// .
-//
-// For more information, see [Delete a pool] in the Amazon VPC IPAM User Guide.
-//
-// [ReleaseIpamPoolAllocation]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ReleaseIpamPoolAllocation.html
-// [Delete a pool]: https://docs.aws.amazon.com/vpc/latest/ipam/delete-pool-ipam.html
-// [DeprovisionIpamPoolCidr]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DeprovisionIpamPoolCidr.html
-func (c *Client) DeleteIpamPool(ctx context.Context, params *DeleteIpamPoolInput, optFns ...func(*Options)) (*DeleteIpamPoolOutput, error) {
- if params == nil {
- params = &DeleteIpamPoolInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteIpamPool", params, optFns, c.addOperationDeleteIpamPoolMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteIpamPoolOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteIpamPoolInput struct {
-
- // The ID of the pool to delete.
- //
- // This member is required.
- IpamPoolId *string
-
- // Enables you to quickly delete an IPAM pool and all resources within that pool,
- // including provisioned CIDRs, allocations, and other pools.
- //
- // You can only use this option to delete pools in the private scope or pools in
- // the public scope with a source resource. A source resource is a resource used to
- // provision CIDRs to a resource planning pool.
- Cascade *bool
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteIpamPoolOutput struct {
-
- // Information about the results of the deletion.
- IpamPool *types.IpamPool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteIpamPoolMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteIpamPool{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteIpamPool{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteIpamPool"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteIpamPoolValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteIpamPool(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteIpamPool(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteIpamPool",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteIpamResourceDiscovery.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteIpamResourceDiscovery.go
deleted file mode 100644
index 2b1ad0006..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteIpamResourceDiscovery.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes an IPAM resource discovery. A resource discovery is an IPAM component
-// that enables IPAM to manage and monitor resources that belong to the owning
-// account.
-func (c *Client) DeleteIpamResourceDiscovery(ctx context.Context, params *DeleteIpamResourceDiscoveryInput, optFns ...func(*Options)) (*DeleteIpamResourceDiscoveryOutput, error) {
- if params == nil {
- params = &DeleteIpamResourceDiscoveryInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteIpamResourceDiscovery", params, optFns, c.addOperationDeleteIpamResourceDiscoveryMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteIpamResourceDiscoveryOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteIpamResourceDiscoveryInput struct {
-
- // The IPAM resource discovery ID.
- //
- // This member is required.
- IpamResourceDiscoveryId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteIpamResourceDiscoveryOutput struct {
-
- // The IPAM resource discovery.
- IpamResourceDiscovery *types.IpamResourceDiscovery
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteIpamResourceDiscoveryMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteIpamResourceDiscovery{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteIpamResourceDiscovery{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteIpamResourceDiscovery"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteIpamResourceDiscoveryValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteIpamResourceDiscovery(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteIpamResourceDiscovery(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteIpamResourceDiscovery",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteIpamScope.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteIpamScope.go
deleted file mode 100644
index 4f0c79ab2..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteIpamScope.go
+++ /dev/null
@@ -1,170 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Delete the scope for an IPAM. You cannot delete the default scopes.
-//
-// For more information, see [Delete a scope] in the Amazon VPC IPAM User Guide.
-//
-// [Delete a scope]: https://docs.aws.amazon.com/vpc/latest/ipam/delete-scope-ipam.html
-func (c *Client) DeleteIpamScope(ctx context.Context, params *DeleteIpamScopeInput, optFns ...func(*Options)) (*DeleteIpamScopeOutput, error) {
- if params == nil {
- params = &DeleteIpamScopeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteIpamScope", params, optFns, c.addOperationDeleteIpamScopeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteIpamScopeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteIpamScopeInput struct {
-
- // The ID of the scope to delete.
- //
- // This member is required.
- IpamScopeId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteIpamScopeOutput struct {
-
- // Information about the results of the deletion.
- IpamScope *types.IpamScope
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteIpamScopeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteIpamScope{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteIpamScope{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteIpamScope"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteIpamScopeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteIpamScope(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteIpamScope(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteIpamScope",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteKeyPair.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteKeyPair.go
deleted file mode 100644
index e8e64e0a1..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteKeyPair.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified key pair, by removing the public key from Amazon EC2.
-func (c *Client) DeleteKeyPair(ctx context.Context, params *DeleteKeyPairInput, optFns ...func(*Options)) (*DeleteKeyPairOutput, error) {
- if params == nil {
- params = &DeleteKeyPairInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteKeyPair", params, optFns, c.addOperationDeleteKeyPairMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteKeyPairOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteKeyPairInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The name of the key pair.
- KeyName *string
-
- // The ID of the key pair.
- KeyPairId *string
-
- noSmithyDocumentSerde
-}
-
-type DeleteKeyPairOutput struct {
-
- // The ID of the key pair.
- KeyPairId *string
-
- // Is true if the request succeeds, and an error otherwise.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteKeyPairMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteKeyPair{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteKeyPair{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteKeyPair"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteKeyPair(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteKeyPair(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteKeyPair",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLaunchTemplate.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLaunchTemplate.go
deleted file mode 100644
index 7d51783a6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLaunchTemplate.go
+++ /dev/null
@@ -1,171 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes a launch template. Deleting a launch template deletes all of its
-// versions.
-func (c *Client) DeleteLaunchTemplate(ctx context.Context, params *DeleteLaunchTemplateInput, optFns ...func(*Options)) (*DeleteLaunchTemplateOutput, error) {
- if params == nil {
- params = &DeleteLaunchTemplateInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteLaunchTemplate", params, optFns, c.addOperationDeleteLaunchTemplateMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteLaunchTemplateOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteLaunchTemplateInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the launch template.
- //
- // You must specify either the launch template ID or the launch template name, but
- // not both.
- LaunchTemplateId *string
-
- // The name of the launch template.
- //
- // You must specify either the launch template ID or the launch template name, but
- // not both.
- LaunchTemplateName *string
-
- noSmithyDocumentSerde
-}
-
-type DeleteLaunchTemplateOutput struct {
-
- // Information about the launch template.
- LaunchTemplate *types.LaunchTemplate
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteLaunchTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteLaunchTemplate{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteLaunchTemplate{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteLaunchTemplate"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteLaunchTemplate(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteLaunchTemplate(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteLaunchTemplate",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLaunchTemplateVersions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLaunchTemplateVersions.go
deleted file mode 100644
index 07b579ecb..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLaunchTemplateVersions.go
+++ /dev/null
@@ -1,195 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes one or more versions of a launch template.
-//
-// You can't delete the default version of a launch template; you must first
-// assign a different version as the default. If the default version is the only
-// version for the launch template, you must delete the entire launch template
-// using DeleteLaunchTemplate.
-//
-// You can delete up to 200 launch template versions in a single request. To
-// delete more than 200 versions in a single request, use DeleteLaunchTemplate, which deletes the
-// launch template and all of its versions.
-//
-// For more information, see [Delete a launch template version] in the Amazon EC2 User Guide.
-//
-// [Delete a launch template version]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/delete-launch-template.html#delete-launch-template-version
-func (c *Client) DeleteLaunchTemplateVersions(ctx context.Context, params *DeleteLaunchTemplateVersionsInput, optFns ...func(*Options)) (*DeleteLaunchTemplateVersionsOutput, error) {
- if params == nil {
- params = &DeleteLaunchTemplateVersionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteLaunchTemplateVersions", params, optFns, c.addOperationDeleteLaunchTemplateVersionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteLaunchTemplateVersionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteLaunchTemplateVersionsInput struct {
-
- // The version numbers of one or more launch template versions to delete. You can
- // specify up to 200 launch template version numbers.
- //
- // This member is required.
- Versions []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the launch template.
- //
- // You must specify either the launch template ID or the launch template name, but
- // not both.
- LaunchTemplateId *string
-
- // The name of the launch template.
- //
- // You must specify either the launch template ID or the launch template name, but
- // not both.
- LaunchTemplateName *string
-
- noSmithyDocumentSerde
-}
-
-type DeleteLaunchTemplateVersionsOutput struct {
-
- // Information about the launch template versions that were successfully deleted.
- SuccessfullyDeletedLaunchTemplateVersions []types.DeleteLaunchTemplateVersionsResponseSuccessItem
-
- // Information about the launch template versions that could not be deleted.
- UnsuccessfullyDeletedLaunchTemplateVersions []types.DeleteLaunchTemplateVersionsResponseErrorItem
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteLaunchTemplateVersionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteLaunchTemplateVersions{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteLaunchTemplateVersions{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteLaunchTemplateVersions"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteLaunchTemplateVersionsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteLaunchTemplateVersions(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteLaunchTemplateVersions(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteLaunchTemplateVersions",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRoute.go
deleted file mode 100644
index e8fb5add0..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRoute.go
+++ /dev/null
@@ -1,173 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified route from the specified local gateway route table.
-func (c *Client) DeleteLocalGatewayRoute(ctx context.Context, params *DeleteLocalGatewayRouteInput, optFns ...func(*Options)) (*DeleteLocalGatewayRouteOutput, error) {
- if params == nil {
- params = &DeleteLocalGatewayRouteInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteLocalGatewayRoute", params, optFns, c.addOperationDeleteLocalGatewayRouteMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteLocalGatewayRouteOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteLocalGatewayRouteInput struct {
-
- // The ID of the local gateway route table.
- //
- // This member is required.
- LocalGatewayRouteTableId *string
-
- // The CIDR range for the route. This must match the CIDR for the route exactly.
- DestinationCidrBlock *string
-
- // Use a prefix list in place of DestinationCidrBlock . You cannot use
- // DestinationPrefixListId and DestinationCidrBlock in the same request.
- DestinationPrefixListId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteLocalGatewayRouteOutput struct {
-
- // Information about the route.
- Route *types.LocalGatewayRoute
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteLocalGatewayRouteMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteLocalGatewayRoute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteLocalGatewayRoute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteLocalGatewayRoute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteLocalGatewayRouteValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteLocalGatewayRoute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteLocalGatewayRoute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteLocalGatewayRoute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRouteTable.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRouteTable.go
deleted file mode 100644
index 95c9a6a7d..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRouteTable.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes a local gateway route table.
-func (c *Client) DeleteLocalGatewayRouteTable(ctx context.Context, params *DeleteLocalGatewayRouteTableInput, optFns ...func(*Options)) (*DeleteLocalGatewayRouteTableOutput, error) {
- if params == nil {
- params = &DeleteLocalGatewayRouteTableInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteLocalGatewayRouteTable", params, optFns, c.addOperationDeleteLocalGatewayRouteTableMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteLocalGatewayRouteTableOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteLocalGatewayRouteTableInput struct {
-
- // The ID of the local gateway route table.
- //
- // This member is required.
- LocalGatewayRouteTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteLocalGatewayRouteTableOutput struct {
-
- // Information about the local gateway route table.
- LocalGatewayRouteTable *types.LocalGatewayRouteTable
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteLocalGatewayRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteLocalGatewayRouteTable{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteLocalGatewayRouteTable{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteLocalGatewayRouteTable"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteLocalGatewayRouteTableValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteLocalGatewayRouteTable(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteLocalGatewayRouteTable(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteLocalGatewayRouteTable",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation.go
deleted file mode 100644
index 0418ae14c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes a local gateway route table virtual interface group association.
-func (c *Client) DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation(ctx context.Context, params *DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput, optFns ...func(*Options)) (*DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput, error) {
- if params == nil {
- params = &DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation", params, optFns, c.addOperationDeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationInput struct {
-
- // The ID of the local gateway route table virtual interface group association.
- //
- // This member is required.
- LocalGatewayRouteTableVirtualInterfaceGroupAssociationId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput struct {
-
- // Information about the association.
- LocalGatewayRouteTableVirtualInterfaceGroupAssociation *types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRouteTableVpcAssociation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRouteTableVpcAssociation.go
deleted file mode 100644
index b64ff1d3f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRouteTableVpcAssociation.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified association between a VPC and local gateway route table.
-func (c *Client) DeleteLocalGatewayRouteTableVpcAssociation(ctx context.Context, params *DeleteLocalGatewayRouteTableVpcAssociationInput, optFns ...func(*Options)) (*DeleteLocalGatewayRouteTableVpcAssociationOutput, error) {
- if params == nil {
- params = &DeleteLocalGatewayRouteTableVpcAssociationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteLocalGatewayRouteTableVpcAssociation", params, optFns, c.addOperationDeleteLocalGatewayRouteTableVpcAssociationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteLocalGatewayRouteTableVpcAssociationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteLocalGatewayRouteTableVpcAssociationInput struct {
-
- // The ID of the association.
- //
- // This member is required.
- LocalGatewayRouteTableVpcAssociationId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteLocalGatewayRouteTableVpcAssociationOutput struct {
-
- // Information about the association.
- LocalGatewayRouteTableVpcAssociation *types.LocalGatewayRouteTableVpcAssociation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteLocalGatewayRouteTableVpcAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteLocalGatewayRouteTableVpcAssociation{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteLocalGatewayRouteTableVpcAssociation{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteLocalGatewayRouteTableVpcAssociation"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteLocalGatewayRouteTableVpcAssociationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteLocalGatewayRouteTableVpcAssociation(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteLocalGatewayRouteTableVpcAssociation(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteLocalGatewayRouteTableVpcAssociation",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayVirtualInterface.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayVirtualInterface.go
deleted file mode 100644
index f74f6b5cd..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayVirtualInterface.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified local gateway virtual interface.
-func (c *Client) DeleteLocalGatewayVirtualInterface(ctx context.Context, params *DeleteLocalGatewayVirtualInterfaceInput, optFns ...func(*Options)) (*DeleteLocalGatewayVirtualInterfaceOutput, error) {
- if params == nil {
- params = &DeleteLocalGatewayVirtualInterfaceInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteLocalGatewayVirtualInterface", params, optFns, c.addOperationDeleteLocalGatewayVirtualInterfaceMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteLocalGatewayVirtualInterfaceOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteLocalGatewayVirtualInterfaceInput struct {
-
- // The ID of the local virtual interface to delete.
- //
- // This member is required.
- LocalGatewayVirtualInterfaceId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteLocalGatewayVirtualInterfaceOutput struct {
-
- // Information about the deleted local gateway virtual interface.
- LocalGatewayVirtualInterface *types.LocalGatewayVirtualInterface
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteLocalGatewayVirtualInterfaceMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteLocalGatewayVirtualInterface{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteLocalGatewayVirtualInterface{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteLocalGatewayVirtualInterface"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteLocalGatewayVirtualInterfaceValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteLocalGatewayVirtualInterface(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteLocalGatewayVirtualInterface(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteLocalGatewayVirtualInterface",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayVirtualInterfaceGroup.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayVirtualInterfaceGroup.go
deleted file mode 100644
index 134948014..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayVirtualInterfaceGroup.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Delete the specified local gateway interface group.
-func (c *Client) DeleteLocalGatewayVirtualInterfaceGroup(ctx context.Context, params *DeleteLocalGatewayVirtualInterfaceGroupInput, optFns ...func(*Options)) (*DeleteLocalGatewayVirtualInterfaceGroupOutput, error) {
- if params == nil {
- params = &DeleteLocalGatewayVirtualInterfaceGroupInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteLocalGatewayVirtualInterfaceGroup", params, optFns, c.addOperationDeleteLocalGatewayVirtualInterfaceGroupMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteLocalGatewayVirtualInterfaceGroupOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteLocalGatewayVirtualInterfaceGroupInput struct {
-
- // The ID of the local gateway virtual interface group to delete.
- //
- // This member is required.
- LocalGatewayVirtualInterfaceGroupId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteLocalGatewayVirtualInterfaceGroupOutput struct {
-
- // Information about the deleted local gateway virtual interface group.
- LocalGatewayVirtualInterfaceGroup *types.LocalGatewayVirtualInterfaceGroup
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteLocalGatewayVirtualInterfaceGroupMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteLocalGatewayVirtualInterfaceGroup{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteLocalGatewayVirtualInterfaceGroup{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteLocalGatewayVirtualInterfaceGroup"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteLocalGatewayVirtualInterfaceGroupValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteLocalGatewayVirtualInterfaceGroup(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteLocalGatewayVirtualInterfaceGroup(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteLocalGatewayVirtualInterfaceGroup",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteManagedPrefixList.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteManagedPrefixList.go
deleted file mode 100644
index b06035076..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteManagedPrefixList.go
+++ /dev/null
@@ -1,167 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified managed prefix list. You must first remove all references
-// to the prefix list in your resources.
-func (c *Client) DeleteManagedPrefixList(ctx context.Context, params *DeleteManagedPrefixListInput, optFns ...func(*Options)) (*DeleteManagedPrefixListOutput, error) {
- if params == nil {
- params = &DeleteManagedPrefixListInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteManagedPrefixList", params, optFns, c.addOperationDeleteManagedPrefixListMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteManagedPrefixListOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteManagedPrefixListInput struct {
-
- // The ID of the prefix list.
- //
- // This member is required.
- PrefixListId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteManagedPrefixListOutput struct {
-
- // Information about the prefix list.
- PrefixList *types.ManagedPrefixList
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteManagedPrefixListMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteManagedPrefixList{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteManagedPrefixList{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteManagedPrefixList"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteManagedPrefixListValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteManagedPrefixList(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteManagedPrefixList(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteManagedPrefixList",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNatGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNatGateway.go
deleted file mode 100644
index be0b89790..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNatGateway.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified NAT gateway. Deleting a public NAT gateway disassociates
-// its Elastic IP address, but does not release the address from your account.
-// Deleting a NAT gateway does not delete any NAT gateway routes in your route
-// tables.
-func (c *Client) DeleteNatGateway(ctx context.Context, params *DeleteNatGatewayInput, optFns ...func(*Options)) (*DeleteNatGatewayOutput, error) {
- if params == nil {
- params = &DeleteNatGatewayInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteNatGateway", params, optFns, c.addOperationDeleteNatGatewayMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteNatGatewayOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteNatGatewayInput struct {
-
- // The ID of the NAT gateway.
- //
- // This member is required.
- NatGatewayId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteNatGatewayOutput struct {
-
- // The ID of the NAT gateway.
- NatGatewayId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteNatGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteNatGateway{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteNatGateway{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteNatGateway"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteNatGatewayValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteNatGateway(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteNatGateway(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteNatGateway",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkAcl.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkAcl.go
deleted file mode 100644
index a73d44b09..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkAcl.go
+++ /dev/null
@@ -1,162 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified network ACL. You can't delete the ACL if it's associated
-// with any subnets. You can't delete the default network ACL.
-func (c *Client) DeleteNetworkAcl(ctx context.Context, params *DeleteNetworkAclInput, optFns ...func(*Options)) (*DeleteNetworkAclOutput, error) {
- if params == nil {
- params = &DeleteNetworkAclInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkAcl", params, optFns, c.addOperationDeleteNetworkAclMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteNetworkAclOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteNetworkAclInput struct {
-
- // The ID of the network ACL.
- //
- // This member is required.
- NetworkAclId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteNetworkAclOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteNetworkAclMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteNetworkAcl{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteNetworkAcl{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteNetworkAcl"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteNetworkAclValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteNetworkAcl(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteNetworkAcl(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteNetworkAcl",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkAclEntry.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkAclEntry.go
deleted file mode 100644
index e2818bf9a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkAclEntry.go
+++ /dev/null
@@ -1,172 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified ingress or egress entry (rule) from the specified network
-// ACL.
-func (c *Client) DeleteNetworkAclEntry(ctx context.Context, params *DeleteNetworkAclEntryInput, optFns ...func(*Options)) (*DeleteNetworkAclEntryOutput, error) {
- if params == nil {
- params = &DeleteNetworkAclEntryInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkAclEntry", params, optFns, c.addOperationDeleteNetworkAclEntryMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteNetworkAclEntryOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteNetworkAclEntryInput struct {
-
- // Indicates whether the rule is an egress rule.
- //
- // This member is required.
- Egress *bool
-
- // The ID of the network ACL.
- //
- // This member is required.
- NetworkAclId *string
-
- // The rule number of the entry to delete.
- //
- // This member is required.
- RuleNumber *int32
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteNetworkAclEntryOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteNetworkAclEntryMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteNetworkAclEntry{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteNetworkAclEntry{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteNetworkAclEntry"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteNetworkAclEntryValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteNetworkAclEntry(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteNetworkAclEntry(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteNetworkAclEntry",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsAccessScope.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsAccessScope.go
deleted file mode 100644
index d8de77338..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsAccessScope.go
+++ /dev/null
@@ -1,165 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified Network Access Scope.
-func (c *Client) DeleteNetworkInsightsAccessScope(ctx context.Context, params *DeleteNetworkInsightsAccessScopeInput, optFns ...func(*Options)) (*DeleteNetworkInsightsAccessScopeOutput, error) {
- if params == nil {
- params = &DeleteNetworkInsightsAccessScopeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkInsightsAccessScope", params, optFns, c.addOperationDeleteNetworkInsightsAccessScopeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteNetworkInsightsAccessScopeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteNetworkInsightsAccessScopeInput struct {
-
- // The ID of the Network Access Scope.
- //
- // This member is required.
- NetworkInsightsAccessScopeId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteNetworkInsightsAccessScopeOutput struct {
-
- // The ID of the Network Access Scope.
- NetworkInsightsAccessScopeId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteNetworkInsightsAccessScopeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteNetworkInsightsAccessScope{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteNetworkInsightsAccessScope{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteNetworkInsightsAccessScope"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteNetworkInsightsAccessScopeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteNetworkInsightsAccessScope(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteNetworkInsightsAccessScope(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteNetworkInsightsAccessScope",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsAccessScopeAnalysis.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsAccessScopeAnalysis.go
deleted file mode 100644
index 4ca144ef1..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsAccessScopeAnalysis.go
+++ /dev/null
@@ -1,165 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified Network Access Scope analysis.
-func (c *Client) DeleteNetworkInsightsAccessScopeAnalysis(ctx context.Context, params *DeleteNetworkInsightsAccessScopeAnalysisInput, optFns ...func(*Options)) (*DeleteNetworkInsightsAccessScopeAnalysisOutput, error) {
- if params == nil {
- params = &DeleteNetworkInsightsAccessScopeAnalysisInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkInsightsAccessScopeAnalysis", params, optFns, c.addOperationDeleteNetworkInsightsAccessScopeAnalysisMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteNetworkInsightsAccessScopeAnalysisOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteNetworkInsightsAccessScopeAnalysisInput struct {
-
- // The ID of the Network Access Scope analysis.
- //
- // This member is required.
- NetworkInsightsAccessScopeAnalysisId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteNetworkInsightsAccessScopeAnalysisOutput struct {
-
- // The ID of the Network Access Scope analysis.
- NetworkInsightsAccessScopeAnalysisId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteNetworkInsightsAccessScopeAnalysisMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteNetworkInsightsAccessScopeAnalysis{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteNetworkInsightsAccessScopeAnalysis{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteNetworkInsightsAccessScopeAnalysis"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteNetworkInsightsAccessScopeAnalysisValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteNetworkInsightsAccessScopeAnalysis(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteNetworkInsightsAccessScopeAnalysis(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteNetworkInsightsAccessScopeAnalysis",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsAnalysis.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsAnalysis.go
deleted file mode 100644
index 09f89e155..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsAnalysis.go
+++ /dev/null
@@ -1,165 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified network insights analysis.
-func (c *Client) DeleteNetworkInsightsAnalysis(ctx context.Context, params *DeleteNetworkInsightsAnalysisInput, optFns ...func(*Options)) (*DeleteNetworkInsightsAnalysisOutput, error) {
- if params == nil {
- params = &DeleteNetworkInsightsAnalysisInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkInsightsAnalysis", params, optFns, c.addOperationDeleteNetworkInsightsAnalysisMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteNetworkInsightsAnalysisOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteNetworkInsightsAnalysisInput struct {
-
- // The ID of the network insights analysis.
- //
- // This member is required.
- NetworkInsightsAnalysisId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteNetworkInsightsAnalysisOutput struct {
-
- // The ID of the network insights analysis.
- NetworkInsightsAnalysisId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteNetworkInsightsAnalysisMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteNetworkInsightsAnalysis{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteNetworkInsightsAnalysis{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteNetworkInsightsAnalysis"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteNetworkInsightsAnalysisValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteNetworkInsightsAnalysis(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteNetworkInsightsAnalysis(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteNetworkInsightsAnalysis",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsPath.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsPath.go
deleted file mode 100644
index a041f51ac..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsPath.go
+++ /dev/null
@@ -1,165 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified path.
-func (c *Client) DeleteNetworkInsightsPath(ctx context.Context, params *DeleteNetworkInsightsPathInput, optFns ...func(*Options)) (*DeleteNetworkInsightsPathOutput, error) {
- if params == nil {
- params = &DeleteNetworkInsightsPathInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkInsightsPath", params, optFns, c.addOperationDeleteNetworkInsightsPathMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteNetworkInsightsPathOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteNetworkInsightsPathInput struct {
-
- // The ID of the path.
- //
- // This member is required.
- NetworkInsightsPathId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteNetworkInsightsPathOutput struct {
-
- // The ID of the path.
- NetworkInsightsPathId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteNetworkInsightsPathMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteNetworkInsightsPath{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteNetworkInsightsPath{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteNetworkInsightsPath"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteNetworkInsightsPathValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteNetworkInsightsPath(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteNetworkInsightsPath(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteNetworkInsightsPath",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInterface.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInterface.go
deleted file mode 100644
index a6b72b5ad..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInterface.go
+++ /dev/null
@@ -1,163 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified network interface. You must detach the network interface
-// before you can delete it.
-func (c *Client) DeleteNetworkInterface(ctx context.Context, params *DeleteNetworkInterfaceInput, optFns ...func(*Options)) (*DeleteNetworkInterfaceOutput, error) {
- if params == nil {
- params = &DeleteNetworkInterfaceInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkInterface", params, optFns, c.addOperationDeleteNetworkInterfaceMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteNetworkInterfaceOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DeleteNetworkInterface.
-type DeleteNetworkInterfaceInput struct {
-
- // The ID of the network interface.
- //
- // This member is required.
- NetworkInterfaceId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteNetworkInterfaceOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteNetworkInterfaceMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteNetworkInterface{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteNetworkInterface{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteNetworkInterface"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteNetworkInterfaceValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteNetworkInterface(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteNetworkInterface(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteNetworkInterface",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInterfacePermission.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInterfacePermission.go
deleted file mode 100644
index 18942c811..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInterfacePermission.go
+++ /dev/null
@@ -1,174 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes a permission for a network interface. By default, you cannot delete the
-// permission if the account for which you're removing the permission has attached
-// the network interface to an instance. However, you can force delete the
-// permission, regardless of any attachment.
-func (c *Client) DeleteNetworkInterfacePermission(ctx context.Context, params *DeleteNetworkInterfacePermissionInput, optFns ...func(*Options)) (*DeleteNetworkInterfacePermissionOutput, error) {
- if params == nil {
- params = &DeleteNetworkInterfacePermissionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkInterfacePermission", params, optFns, c.addOperationDeleteNetworkInterfacePermissionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteNetworkInterfacePermissionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DeleteNetworkInterfacePermission.
-type DeleteNetworkInterfacePermissionInput struct {
-
- // The ID of the network interface permission.
- //
- // This member is required.
- NetworkInterfacePermissionId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Specify true to remove the permission even if the network interface is attached
- // to an instance.
- Force *bool
-
- noSmithyDocumentSerde
-}
-
-// Contains the output for DeleteNetworkInterfacePermission.
-type DeleteNetworkInterfacePermissionOutput struct {
-
- // Returns true if the request succeeds, otherwise returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteNetworkInterfacePermissionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteNetworkInterfacePermission{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteNetworkInterfacePermission{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteNetworkInterfacePermission"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteNetworkInterfacePermissionValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteNetworkInterfacePermission(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteNetworkInterfacePermission(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteNetworkInterfacePermission",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeletePlacementGroup.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeletePlacementGroup.go
deleted file mode 100644
index 265e1078e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeletePlacementGroup.go
+++ /dev/null
@@ -1,165 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified placement group. You must terminate all instances in the
-// placement group before you can delete the placement group. For more information,
-// see [Placement groups]in the Amazon EC2 User Guide.
-//
-// [Placement groups]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html
-func (c *Client) DeletePlacementGroup(ctx context.Context, params *DeletePlacementGroupInput, optFns ...func(*Options)) (*DeletePlacementGroupOutput, error) {
- if params == nil {
- params = &DeletePlacementGroupInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeletePlacementGroup", params, optFns, c.addOperationDeletePlacementGroupMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeletePlacementGroupOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeletePlacementGroupInput struct {
-
- // The name of the placement group.
- //
- // This member is required.
- GroupName *string
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeletePlacementGroupOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeletePlacementGroupMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeletePlacementGroup{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeletePlacementGroup{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeletePlacementGroup"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeletePlacementGroupValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeletePlacementGroup(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeletePlacementGroup(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeletePlacementGroup",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeletePublicIpv4Pool.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeletePublicIpv4Pool.go
deleted file mode 100644
index 0932f9685..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeletePublicIpv4Pool.go
+++ /dev/null
@@ -1,176 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Delete a public IPv4 pool. A public IPv4 pool is an EC2 IP address pool
-// required for the public IPv4 CIDRs that you own and bring to Amazon Web Services
-// to manage with IPAM. IPv6 addresses you bring to Amazon Web Services, however,
-// use IPAM pools only.
-func (c *Client) DeletePublicIpv4Pool(ctx context.Context, params *DeletePublicIpv4PoolInput, optFns ...func(*Options)) (*DeletePublicIpv4PoolOutput, error) {
- if params == nil {
- params = &DeletePublicIpv4PoolInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeletePublicIpv4Pool", params, optFns, c.addOperationDeletePublicIpv4PoolMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeletePublicIpv4PoolOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeletePublicIpv4PoolInput struct {
-
- // The ID of the public IPv4 pool you want to delete.
- //
- // This member is required.
- PoolId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The Availability Zone (AZ) or Local Zone (LZ) network border group that the
- // resource that the IP address is assigned to is in. Defaults to an AZ network
- // border group. For more information on available Local Zones, see [Local Zone availability]in the Amazon
- // EC2 User Guide.
- //
- // [Local Zone availability]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#byoip-zone-avail
- NetworkBorderGroup *string
-
- noSmithyDocumentSerde
-}
-
-type DeletePublicIpv4PoolOutput struct {
-
- // Information about the result of deleting the public IPv4 pool.
- ReturnValue *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeletePublicIpv4PoolMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeletePublicIpv4Pool{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeletePublicIpv4Pool{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeletePublicIpv4Pool"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeletePublicIpv4PoolValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeletePublicIpv4Pool(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeletePublicIpv4Pool(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeletePublicIpv4Pool",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteQueuedReservedInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteQueuedReservedInstances.go
deleted file mode 100644
index 80704b3a1..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteQueuedReservedInstances.go
+++ /dev/null
@@ -1,169 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the queued purchases for the specified Reserved Instances.
-func (c *Client) DeleteQueuedReservedInstances(ctx context.Context, params *DeleteQueuedReservedInstancesInput, optFns ...func(*Options)) (*DeleteQueuedReservedInstancesOutput, error) {
- if params == nil {
- params = &DeleteQueuedReservedInstancesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteQueuedReservedInstances", params, optFns, c.addOperationDeleteQueuedReservedInstancesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteQueuedReservedInstancesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteQueuedReservedInstancesInput struct {
-
- // The IDs of the Reserved Instances.
- //
- // This member is required.
- ReservedInstancesIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteQueuedReservedInstancesOutput struct {
-
- // Information about the queued purchases that could not be deleted.
- FailedQueuedPurchaseDeletions []types.FailedQueuedPurchaseDeletion
-
- // Information about the queued purchases that were successfully deleted.
- SuccessfulQueuedPurchaseDeletions []types.SuccessfulQueuedPurchaseDeletion
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteQueuedReservedInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteQueuedReservedInstances{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteQueuedReservedInstances{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteQueuedReservedInstances"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteQueuedReservedInstancesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteQueuedReservedInstances(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteQueuedReservedInstances(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteQueuedReservedInstances",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRoute.go
deleted file mode 100644
index 46460e9ec..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRoute.go
+++ /dev/null
@@ -1,172 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified route from the specified route table.
-func (c *Client) DeleteRoute(ctx context.Context, params *DeleteRouteInput, optFns ...func(*Options)) (*DeleteRouteOutput, error) {
- if params == nil {
- params = &DeleteRouteInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteRoute", params, optFns, c.addOperationDeleteRouteMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteRouteOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteRouteInput struct {
-
- // The ID of the route table.
- //
- // This member is required.
- RouteTableId *string
-
- // The IPv4 CIDR range for the route. The value you specify must match the CIDR
- // for the route exactly.
- DestinationCidrBlock *string
-
- // The IPv6 CIDR range for the route. The value you specify must match the CIDR
- // for the route exactly.
- DestinationIpv6CidrBlock *string
-
- // The ID of the prefix list for the route.
- DestinationPrefixListId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteRouteOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteRouteMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteRoute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteRoute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteRoute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteRouteValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteRoute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteRoute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteRoute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRouteServer.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRouteServer.go
deleted file mode 100644
index 5d858f4c5..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRouteServer.go
+++ /dev/null
@@ -1,190 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified route server.
-//
-// Amazon VPC Route Server simplifies routing for traffic between workloads that
-// are deployed within a VPC and its internet gateways. With this feature, VPC
-// Route Server dynamically updates VPC and internet gateway route tables with your
-// preferred IPv4 or IPv6 routes to achieve routing fault tolerance for those
-// workloads. This enables you to automatically reroute traffic within a VPC, which
-// increases the manageability of VPC routing and interoperability with third-party
-// workloads.
-//
-// Route server supports the follow route table types:
-//
-// - VPC route tables not associated with subnets
-//
-// - Subnet route tables
-//
-// - Internet gateway route tables
-//
-// Route server does not support route tables associated with virtual private
-// gateways. To propagate routes into a transit gateway route table, use [Transit Gateway Connect].
-//
-// For more information see [Dynamic routing in your VPC with VPC Route Server] in the Amazon VPC User Guide.
-//
-// [Dynamic routing in your VPC with VPC Route Server]: https://docs.aws.amazon.com/vpc/latest/userguide/dynamic-routing-route-server.html
-// [Transit Gateway Connect]: https://docs.aws.amazon.com/vpc/latest/tgw/tgw-connect.html
-func (c *Client) DeleteRouteServer(ctx context.Context, params *DeleteRouteServerInput, optFns ...func(*Options)) (*DeleteRouteServerOutput, error) {
- if params == nil {
- params = &DeleteRouteServerInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteRouteServer", params, optFns, c.addOperationDeleteRouteServerMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteRouteServerOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteRouteServerInput struct {
-
- // The ID of the route server to delete.
- //
- // This member is required.
- RouteServerId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteRouteServerOutput struct {
-
- // Information about the deleted route server.
- RouteServer *types.RouteServer
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteRouteServerMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteRouteServer{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteRouteServer{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteRouteServer"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteRouteServerValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteRouteServer(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteRouteServer(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteRouteServer",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRouteServerEndpoint.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRouteServerEndpoint.go
deleted file mode 100644
index a5f1a0fca..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRouteServerEndpoint.go
+++ /dev/null
@@ -1,172 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified route server endpoint.
-//
-// A route server endpoint is an Amazon Web Services-managed component inside a
-// subnet that facilitates [BGP (Border Gateway Protocol)]connections between your route server and your BGP
-// peers.
-//
-// [BGP (Border Gateway Protocol)]: https://en.wikipedia.org/wiki/Border_Gateway_Protocol
-func (c *Client) DeleteRouteServerEndpoint(ctx context.Context, params *DeleteRouteServerEndpointInput, optFns ...func(*Options)) (*DeleteRouteServerEndpointOutput, error) {
- if params == nil {
- params = &DeleteRouteServerEndpointInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteRouteServerEndpoint", params, optFns, c.addOperationDeleteRouteServerEndpointMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteRouteServerEndpointOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteRouteServerEndpointInput struct {
-
- // The ID of the route server endpoint to delete.
- //
- // This member is required.
- RouteServerEndpointId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteRouteServerEndpointOutput struct {
-
- // Information about the deleted route server endpoint.
- RouteServerEndpoint *types.RouteServerEndpoint
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteRouteServerEndpointMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteRouteServerEndpoint{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteRouteServerEndpoint{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteRouteServerEndpoint"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteRouteServerEndpointValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteRouteServerEndpoint(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteRouteServerEndpoint(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteRouteServerEndpoint",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRouteServerPeer.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRouteServerPeer.go
deleted file mode 100644
index e8cb7ad8d..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRouteServerPeer.go
+++ /dev/null
@@ -1,177 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified BGP peer from a route server.
-//
-// A route server peer is a session between a route server endpoint and the device
-// deployed in Amazon Web Services (such as a firewall appliance or other network
-// security function running on an EC2 instance). The device must meet these
-// requirements:
-//
-// - Have an elastic network interface in the VPC
-//
-// - Support BGP (Border Gateway Protocol)
-//
-// - Can initiate BGP sessions
-func (c *Client) DeleteRouteServerPeer(ctx context.Context, params *DeleteRouteServerPeerInput, optFns ...func(*Options)) (*DeleteRouteServerPeerOutput, error) {
- if params == nil {
- params = &DeleteRouteServerPeerInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteRouteServerPeer", params, optFns, c.addOperationDeleteRouteServerPeerMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteRouteServerPeerOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteRouteServerPeerInput struct {
-
- // The ID of the route server peer to delete.
- //
- // This member is required.
- RouteServerPeerId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteRouteServerPeerOutput struct {
-
- // Information about the deleted route server peer.
- RouteServerPeer *types.RouteServerPeer
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteRouteServerPeerMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteRouteServerPeer{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteRouteServerPeer{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteRouteServerPeer"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteRouteServerPeerValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteRouteServerPeer(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteRouteServerPeer(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteRouteServerPeer",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRouteTable.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRouteTable.go
deleted file mode 100644
index 81227066a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRouteTable.go
+++ /dev/null
@@ -1,162 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified route table. You must disassociate the route table from
-// any subnets before you can delete it. You can't delete the main route table.
-func (c *Client) DeleteRouteTable(ctx context.Context, params *DeleteRouteTableInput, optFns ...func(*Options)) (*DeleteRouteTableOutput, error) {
- if params == nil {
- params = &DeleteRouteTableInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteRouteTable", params, optFns, c.addOperationDeleteRouteTableMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteRouteTableOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteRouteTableInput struct {
-
- // The ID of the route table.
- //
- // This member is required.
- RouteTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteRouteTableOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteRouteTable{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteRouteTable{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteRouteTable"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteRouteTableValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteRouteTable(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteRouteTable(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteRouteTable",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSecurityGroup.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSecurityGroup.go
deleted file mode 100644
index 4422b1543..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSecurityGroup.go
+++ /dev/null
@@ -1,172 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes a security group.
-//
-// If you attempt to delete a security group that is associated with an instance
-// or network interface, is referenced by another security group in the same VPC,
-// or has a VPC association, the operation fails with DependencyViolation .
-func (c *Client) DeleteSecurityGroup(ctx context.Context, params *DeleteSecurityGroupInput, optFns ...func(*Options)) (*DeleteSecurityGroupOutput, error) {
- if params == nil {
- params = &DeleteSecurityGroupInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteSecurityGroup", params, optFns, c.addOperationDeleteSecurityGroupMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteSecurityGroupOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteSecurityGroupInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the security group.
- GroupId *string
-
- // [Default VPC] The name of the security group. You can specify either the
- // security group name or the security group ID. For security groups in a
- // nondefault VPC, you must specify the security group ID.
- GroupName *string
-
- noSmithyDocumentSerde
-}
-
-type DeleteSecurityGroupOutput struct {
-
- // The ID of the deleted security group.
- GroupId *string
-
- // Returns true if the request succeeds; otherwise, returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteSecurityGroupMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteSecurityGroup{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteSecurityGroup{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteSecurityGroup"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteSecurityGroup(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteSecurityGroup(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteSecurityGroup",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSnapshot.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSnapshot.go
deleted file mode 100644
index f60ed99a0..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSnapshot.go
+++ /dev/null
@@ -1,176 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified snapshot.
-//
-// When you make periodic snapshots of a volume, the snapshots are incremental,
-// and only the blocks on the device that have changed since your last snapshot are
-// saved in the new snapshot. When you delete a snapshot, only the data not needed
-// for any other snapshot is removed. So regardless of which prior snapshots have
-// been deleted, all active snapshots will have access to all the information
-// needed to restore the volume.
-//
-// You cannot delete a snapshot of the root device of an EBS volume used by a
-// registered AMI. You must first deregister the AMI before you can delete the
-// snapshot.
-//
-// For more information, see [Delete an Amazon EBS snapshot] in the Amazon EBS User Guide.
-//
-// [Delete an Amazon EBS snapshot]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-deleting-snapshot.html
-func (c *Client) DeleteSnapshot(ctx context.Context, params *DeleteSnapshotInput, optFns ...func(*Options)) (*DeleteSnapshotOutput, error) {
- if params == nil {
- params = &DeleteSnapshotInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteSnapshot", params, optFns, c.addOperationDeleteSnapshotMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteSnapshotOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteSnapshotInput struct {
-
- // The ID of the EBS snapshot.
- //
- // This member is required.
- SnapshotId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteSnapshotOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteSnapshotMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteSnapshot{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteSnapshot{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteSnapshot"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteSnapshotValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteSnapshot(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteSnapshot(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteSnapshot",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSpotDatafeedSubscription.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSpotDatafeedSubscription.go
deleted file mode 100644
index fc1fef6f5..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSpotDatafeedSubscription.go
+++ /dev/null
@@ -1,154 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the data feed for Spot Instances.
-func (c *Client) DeleteSpotDatafeedSubscription(ctx context.Context, params *DeleteSpotDatafeedSubscriptionInput, optFns ...func(*Options)) (*DeleteSpotDatafeedSubscriptionOutput, error) {
- if params == nil {
- params = &DeleteSpotDatafeedSubscriptionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteSpotDatafeedSubscription", params, optFns, c.addOperationDeleteSpotDatafeedSubscriptionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteSpotDatafeedSubscriptionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DeleteSpotDatafeedSubscription.
-type DeleteSpotDatafeedSubscriptionInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteSpotDatafeedSubscriptionOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteSpotDatafeedSubscriptionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteSpotDatafeedSubscription{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteSpotDatafeedSubscription{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteSpotDatafeedSubscription"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteSpotDatafeedSubscription(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteSpotDatafeedSubscription(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteSpotDatafeedSubscription",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSubnet.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSubnet.go
deleted file mode 100644
index 192472bb5..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSubnet.go
+++ /dev/null
@@ -1,162 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified subnet. You must terminate all running instances in the
-// subnet before you can delete the subnet.
-func (c *Client) DeleteSubnet(ctx context.Context, params *DeleteSubnetInput, optFns ...func(*Options)) (*DeleteSubnetOutput, error) {
- if params == nil {
- params = &DeleteSubnetInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteSubnet", params, optFns, c.addOperationDeleteSubnetMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteSubnetOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteSubnetInput struct {
-
- // The ID of the subnet.
- //
- // This member is required.
- SubnetId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteSubnetOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteSubnetMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteSubnet{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteSubnet{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteSubnet"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteSubnetValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteSubnet(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteSubnet(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteSubnet",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSubnetCidrReservation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSubnetCidrReservation.go
deleted file mode 100644
index 928b556d9..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSubnetCidrReservation.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes a subnet CIDR reservation.
-func (c *Client) DeleteSubnetCidrReservation(ctx context.Context, params *DeleteSubnetCidrReservationInput, optFns ...func(*Options)) (*DeleteSubnetCidrReservationOutput, error) {
- if params == nil {
- params = &DeleteSubnetCidrReservationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteSubnetCidrReservation", params, optFns, c.addOperationDeleteSubnetCidrReservationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteSubnetCidrReservationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteSubnetCidrReservationInput struct {
-
- // The ID of the subnet CIDR reservation.
- //
- // This member is required.
- SubnetCidrReservationId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteSubnetCidrReservationOutput struct {
-
- // Information about the deleted subnet CIDR reservation.
- DeletedSubnetCidrReservation *types.SubnetCidrReservation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteSubnetCidrReservationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteSubnetCidrReservation{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteSubnetCidrReservation{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteSubnetCidrReservation"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteSubnetCidrReservationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteSubnetCidrReservation(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteSubnetCidrReservation(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteSubnetCidrReservation",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTags.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTags.go
deleted file mode 100644
index b08c304a6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTags.go
+++ /dev/null
@@ -1,182 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified set of tags from the specified set of resources.
-//
-// To list the current tags, use DescribeTags. For more information about tags, see [Tag your Amazon EC2 resources] in the
-// Amazon Elastic Compute Cloud User Guide.
-//
-// [Tag your Amazon EC2 resources]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html
-func (c *Client) DeleteTags(ctx context.Context, params *DeleteTagsInput, optFns ...func(*Options)) (*DeleteTagsOutput, error) {
- if params == nil {
- params = &DeleteTagsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteTags", params, optFns, c.addOperationDeleteTagsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteTagsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteTagsInput struct {
-
- // The IDs of the resources, separated by spaces.
- //
- // Constraints: Up to 1000 resource IDs. We recommend breaking up this request
- // into smaller batches.
- //
- // This member is required.
- Resources []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags to delete. Specify a tag key and an optional tag value to delete
- // specific tags. If you specify a tag key without a tag value, we delete any tag
- // with this key regardless of its value. If you specify a tag key with an empty
- // string as the tag value, we delete the tag only if its value is an empty string.
- //
- // If you omit this parameter, we delete all user-defined tags for the specified
- // resources. We do not delete Amazon Web Services-generated tags (tags that have
- // the aws: prefix).
- //
- // Constraints: Up to 1000 tags.
- Tags []types.Tag
-
- noSmithyDocumentSerde
-}
-
-type DeleteTagsOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteTagsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTags{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteTags{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteTags"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteTagsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteTags(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteTags(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteTags",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorFilter.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorFilter.go
deleted file mode 100644
index 1244ed6ec..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorFilter.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified Traffic Mirror filter.
-//
-// You cannot delete a Traffic Mirror filter that is in use by a Traffic Mirror
-// session.
-func (c *Client) DeleteTrafficMirrorFilter(ctx context.Context, params *DeleteTrafficMirrorFilterInput, optFns ...func(*Options)) (*DeleteTrafficMirrorFilterOutput, error) {
- if params == nil {
- params = &DeleteTrafficMirrorFilterInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteTrafficMirrorFilter", params, optFns, c.addOperationDeleteTrafficMirrorFilterMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteTrafficMirrorFilterOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteTrafficMirrorFilterInput struct {
-
- // The ID of the Traffic Mirror filter.
- //
- // This member is required.
- TrafficMirrorFilterId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteTrafficMirrorFilterOutput struct {
-
- // The ID of the Traffic Mirror filter.
- TrafficMirrorFilterId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteTrafficMirrorFilterMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTrafficMirrorFilter{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteTrafficMirrorFilter{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteTrafficMirrorFilter"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteTrafficMirrorFilterValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteTrafficMirrorFilter(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteTrafficMirrorFilter(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteTrafficMirrorFilter",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorFilterRule.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorFilterRule.go
deleted file mode 100644
index 37ba2eee5..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorFilterRule.go
+++ /dev/null
@@ -1,165 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified Traffic Mirror rule.
-func (c *Client) DeleteTrafficMirrorFilterRule(ctx context.Context, params *DeleteTrafficMirrorFilterRuleInput, optFns ...func(*Options)) (*DeleteTrafficMirrorFilterRuleOutput, error) {
- if params == nil {
- params = &DeleteTrafficMirrorFilterRuleInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteTrafficMirrorFilterRule", params, optFns, c.addOperationDeleteTrafficMirrorFilterRuleMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteTrafficMirrorFilterRuleOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteTrafficMirrorFilterRuleInput struct {
-
- // The ID of the Traffic Mirror rule.
- //
- // This member is required.
- TrafficMirrorFilterRuleId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteTrafficMirrorFilterRuleOutput struct {
-
- // The ID of the deleted Traffic Mirror rule.
- TrafficMirrorFilterRuleId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteTrafficMirrorFilterRuleMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTrafficMirrorFilterRule{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteTrafficMirrorFilterRule{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteTrafficMirrorFilterRule"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteTrafficMirrorFilterRuleValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteTrafficMirrorFilterRule(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteTrafficMirrorFilterRule(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteTrafficMirrorFilterRule",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorSession.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorSession.go
deleted file mode 100644
index 5da049274..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorSession.go
+++ /dev/null
@@ -1,165 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified Traffic Mirror session.
-func (c *Client) DeleteTrafficMirrorSession(ctx context.Context, params *DeleteTrafficMirrorSessionInput, optFns ...func(*Options)) (*DeleteTrafficMirrorSessionOutput, error) {
- if params == nil {
- params = &DeleteTrafficMirrorSessionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteTrafficMirrorSession", params, optFns, c.addOperationDeleteTrafficMirrorSessionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteTrafficMirrorSessionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteTrafficMirrorSessionInput struct {
-
- // The ID of the Traffic Mirror session.
- //
- // This member is required.
- TrafficMirrorSessionId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteTrafficMirrorSessionOutput struct {
-
- // The ID of the deleted Traffic Mirror session.
- TrafficMirrorSessionId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteTrafficMirrorSessionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTrafficMirrorSession{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteTrafficMirrorSession{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteTrafficMirrorSession"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteTrafficMirrorSessionValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteTrafficMirrorSession(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteTrafficMirrorSession(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteTrafficMirrorSession",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorTarget.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorTarget.go
deleted file mode 100644
index 8d989afe7..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorTarget.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified Traffic Mirror target.
-//
-// You cannot delete a Traffic Mirror target that is in use by a Traffic Mirror
-// session.
-func (c *Client) DeleteTrafficMirrorTarget(ctx context.Context, params *DeleteTrafficMirrorTargetInput, optFns ...func(*Options)) (*DeleteTrafficMirrorTargetOutput, error) {
- if params == nil {
- params = &DeleteTrafficMirrorTargetInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteTrafficMirrorTarget", params, optFns, c.addOperationDeleteTrafficMirrorTargetMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteTrafficMirrorTargetOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteTrafficMirrorTargetInput struct {
-
- // The ID of the Traffic Mirror target.
- //
- // This member is required.
- TrafficMirrorTargetId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteTrafficMirrorTargetOutput struct {
-
- // The ID of the deleted Traffic Mirror target.
- TrafficMirrorTargetId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteTrafficMirrorTargetMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTrafficMirrorTarget{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteTrafficMirrorTarget{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteTrafficMirrorTarget"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteTrafficMirrorTargetValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteTrafficMirrorTarget(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteTrafficMirrorTarget(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteTrafficMirrorTarget",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGateway.go
deleted file mode 100644
index 1dbab0f91..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGateway.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified transit gateway.
-func (c *Client) DeleteTransitGateway(ctx context.Context, params *DeleteTransitGatewayInput, optFns ...func(*Options)) (*DeleteTransitGatewayOutput, error) {
- if params == nil {
- params = &DeleteTransitGatewayInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGateway", params, optFns, c.addOperationDeleteTransitGatewayMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteTransitGatewayOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteTransitGatewayInput struct {
-
- // The ID of the transit gateway.
- //
- // This member is required.
- TransitGatewayId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteTransitGatewayOutput struct {
-
- // Information about the deleted transit gateway.
- TransitGateway *types.TransitGateway
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteTransitGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTransitGateway{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteTransitGateway{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteTransitGateway"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteTransitGatewayValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteTransitGateway(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteTransitGateway(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteTransitGateway",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayConnect.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayConnect.go
deleted file mode 100644
index eb5e51873..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayConnect.go
+++ /dev/null
@@ -1,167 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified Connect attachment. You must first delete any Connect
-// peers for the attachment.
-func (c *Client) DeleteTransitGatewayConnect(ctx context.Context, params *DeleteTransitGatewayConnectInput, optFns ...func(*Options)) (*DeleteTransitGatewayConnectOutput, error) {
- if params == nil {
- params = &DeleteTransitGatewayConnectInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayConnect", params, optFns, c.addOperationDeleteTransitGatewayConnectMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteTransitGatewayConnectOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteTransitGatewayConnectInput struct {
-
- // The ID of the Connect attachment.
- //
- // This member is required.
- TransitGatewayAttachmentId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteTransitGatewayConnectOutput struct {
-
- // Information about the deleted Connect attachment.
- TransitGatewayConnect *types.TransitGatewayConnect
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteTransitGatewayConnectMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTransitGatewayConnect{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteTransitGatewayConnect{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteTransitGatewayConnect"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteTransitGatewayConnectValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteTransitGatewayConnect(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteTransitGatewayConnect(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteTransitGatewayConnect",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayConnectPeer.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayConnectPeer.go
deleted file mode 100644
index 69bb9acec..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayConnectPeer.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified Connect peer.
-func (c *Client) DeleteTransitGatewayConnectPeer(ctx context.Context, params *DeleteTransitGatewayConnectPeerInput, optFns ...func(*Options)) (*DeleteTransitGatewayConnectPeerOutput, error) {
- if params == nil {
- params = &DeleteTransitGatewayConnectPeerInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayConnectPeer", params, optFns, c.addOperationDeleteTransitGatewayConnectPeerMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteTransitGatewayConnectPeerOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteTransitGatewayConnectPeerInput struct {
-
- // The ID of the Connect peer.
- //
- // This member is required.
- TransitGatewayConnectPeerId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteTransitGatewayConnectPeerOutput struct {
-
- // Information about the deleted Connect peer.
- TransitGatewayConnectPeer *types.TransitGatewayConnectPeer
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteTransitGatewayConnectPeerMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTransitGatewayConnectPeer{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteTransitGatewayConnectPeer{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteTransitGatewayConnectPeer"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteTransitGatewayConnectPeerValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteTransitGatewayConnectPeer(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteTransitGatewayConnectPeer(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteTransitGatewayConnectPeer",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayMulticastDomain.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayMulticastDomain.go
deleted file mode 100644
index 4c9f83491..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayMulticastDomain.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified transit gateway multicast domain.
-func (c *Client) DeleteTransitGatewayMulticastDomain(ctx context.Context, params *DeleteTransitGatewayMulticastDomainInput, optFns ...func(*Options)) (*DeleteTransitGatewayMulticastDomainOutput, error) {
- if params == nil {
- params = &DeleteTransitGatewayMulticastDomainInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayMulticastDomain", params, optFns, c.addOperationDeleteTransitGatewayMulticastDomainMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteTransitGatewayMulticastDomainOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteTransitGatewayMulticastDomainInput struct {
-
- // The ID of the transit gateway multicast domain.
- //
- // This member is required.
- TransitGatewayMulticastDomainId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteTransitGatewayMulticastDomainOutput struct {
-
- // Information about the deleted transit gateway multicast domain.
- TransitGatewayMulticastDomain *types.TransitGatewayMulticastDomain
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteTransitGatewayMulticastDomainMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTransitGatewayMulticastDomain{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteTransitGatewayMulticastDomain{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteTransitGatewayMulticastDomain"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteTransitGatewayMulticastDomainValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteTransitGatewayMulticastDomain(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteTransitGatewayMulticastDomain(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteTransitGatewayMulticastDomain",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayPeeringAttachment.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayPeeringAttachment.go
deleted file mode 100644
index 7b93ab1fd..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayPeeringAttachment.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes a transit gateway peering attachment.
-func (c *Client) DeleteTransitGatewayPeeringAttachment(ctx context.Context, params *DeleteTransitGatewayPeeringAttachmentInput, optFns ...func(*Options)) (*DeleteTransitGatewayPeeringAttachmentOutput, error) {
- if params == nil {
- params = &DeleteTransitGatewayPeeringAttachmentInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayPeeringAttachment", params, optFns, c.addOperationDeleteTransitGatewayPeeringAttachmentMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteTransitGatewayPeeringAttachmentOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteTransitGatewayPeeringAttachmentInput struct {
-
- // The ID of the transit gateway peering attachment.
- //
- // This member is required.
- TransitGatewayAttachmentId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteTransitGatewayPeeringAttachmentOutput struct {
-
- // The transit gateway peering attachment.
- TransitGatewayPeeringAttachment *types.TransitGatewayPeeringAttachment
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteTransitGatewayPeeringAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTransitGatewayPeeringAttachment{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteTransitGatewayPeeringAttachment{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteTransitGatewayPeeringAttachment"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteTransitGatewayPeeringAttachmentValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteTransitGatewayPeeringAttachment(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteTransitGatewayPeeringAttachment(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteTransitGatewayPeeringAttachment",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayPolicyTable.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayPolicyTable.go
deleted file mode 100644
index 787d20fbc..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayPolicyTable.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified transit gateway policy table.
-func (c *Client) DeleteTransitGatewayPolicyTable(ctx context.Context, params *DeleteTransitGatewayPolicyTableInput, optFns ...func(*Options)) (*DeleteTransitGatewayPolicyTableOutput, error) {
- if params == nil {
- params = &DeleteTransitGatewayPolicyTableInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayPolicyTable", params, optFns, c.addOperationDeleteTransitGatewayPolicyTableMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteTransitGatewayPolicyTableOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteTransitGatewayPolicyTableInput struct {
-
- // The transit gateway policy table to delete.
- //
- // This member is required.
- TransitGatewayPolicyTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteTransitGatewayPolicyTableOutput struct {
-
- // Provides details about the deleted transit gateway policy table.
- TransitGatewayPolicyTable *types.TransitGatewayPolicyTable
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteTransitGatewayPolicyTableMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTransitGatewayPolicyTable{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteTransitGatewayPolicyTable{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteTransitGatewayPolicyTable"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteTransitGatewayPolicyTableValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteTransitGatewayPolicyTable(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteTransitGatewayPolicyTable(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteTransitGatewayPolicyTable",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayPrefixListReference.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayPrefixListReference.go
deleted file mode 100644
index 1757471ad..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayPrefixListReference.go
+++ /dev/null
@@ -1,172 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes a reference (route) to a prefix list in a specified transit gateway
-// route table.
-func (c *Client) DeleteTransitGatewayPrefixListReference(ctx context.Context, params *DeleteTransitGatewayPrefixListReferenceInput, optFns ...func(*Options)) (*DeleteTransitGatewayPrefixListReferenceOutput, error) {
- if params == nil {
- params = &DeleteTransitGatewayPrefixListReferenceInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayPrefixListReference", params, optFns, c.addOperationDeleteTransitGatewayPrefixListReferenceMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteTransitGatewayPrefixListReferenceOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteTransitGatewayPrefixListReferenceInput struct {
-
- // The ID of the prefix list.
- //
- // This member is required.
- PrefixListId *string
-
- // The ID of the route table.
- //
- // This member is required.
- TransitGatewayRouteTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteTransitGatewayPrefixListReferenceOutput struct {
-
- // Information about the deleted prefix list reference.
- TransitGatewayPrefixListReference *types.TransitGatewayPrefixListReference
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteTransitGatewayPrefixListReferenceMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTransitGatewayPrefixListReference{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteTransitGatewayPrefixListReference{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteTransitGatewayPrefixListReference"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteTransitGatewayPrefixListReferenceValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteTransitGatewayPrefixListReference(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteTransitGatewayPrefixListReference(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteTransitGatewayPrefixListReference",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayRoute.go
deleted file mode 100644
index 97c0b6355..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayRoute.go
+++ /dev/null
@@ -1,171 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified route from the specified transit gateway route table.
-func (c *Client) DeleteTransitGatewayRoute(ctx context.Context, params *DeleteTransitGatewayRouteInput, optFns ...func(*Options)) (*DeleteTransitGatewayRouteOutput, error) {
- if params == nil {
- params = &DeleteTransitGatewayRouteInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayRoute", params, optFns, c.addOperationDeleteTransitGatewayRouteMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteTransitGatewayRouteOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteTransitGatewayRouteInput struct {
-
- // The CIDR range for the route. This must match the CIDR for the route exactly.
- //
- // This member is required.
- DestinationCidrBlock *string
-
- // The ID of the transit gateway route table.
- //
- // This member is required.
- TransitGatewayRouteTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteTransitGatewayRouteOutput struct {
-
- // Information about the route.
- Route *types.TransitGatewayRoute
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteTransitGatewayRouteMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTransitGatewayRoute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteTransitGatewayRoute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteTransitGatewayRoute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteTransitGatewayRouteValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteTransitGatewayRoute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteTransitGatewayRoute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteTransitGatewayRoute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayRouteTable.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayRouteTable.go
deleted file mode 100644
index 65a48c4a3..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayRouteTable.go
+++ /dev/null
@@ -1,169 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified transit gateway route table. If there are any route
-// tables associated with the transit gateway route table, you must first run DisassociateRouteTable
-// before you can delete the transit gateway route table. This removes any route
-// tables associated with the transit gateway route table.
-func (c *Client) DeleteTransitGatewayRouteTable(ctx context.Context, params *DeleteTransitGatewayRouteTableInput, optFns ...func(*Options)) (*DeleteTransitGatewayRouteTableOutput, error) {
- if params == nil {
- params = &DeleteTransitGatewayRouteTableInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayRouteTable", params, optFns, c.addOperationDeleteTransitGatewayRouteTableMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteTransitGatewayRouteTableOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteTransitGatewayRouteTableInput struct {
-
- // The ID of the transit gateway route table.
- //
- // This member is required.
- TransitGatewayRouteTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteTransitGatewayRouteTableOutput struct {
-
- // Information about the deleted transit gateway route table.
- TransitGatewayRouteTable *types.TransitGatewayRouteTable
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteTransitGatewayRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTransitGatewayRouteTable{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteTransitGatewayRouteTable{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteTransitGatewayRouteTable"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteTransitGatewayRouteTableValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteTransitGatewayRouteTable(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteTransitGatewayRouteTable(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteTransitGatewayRouteTable",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayRouteTableAnnouncement.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayRouteTableAnnouncement.go
deleted file mode 100644
index 330f164c0..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayRouteTableAnnouncement.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Advertises to the transit gateway that a transit gateway route table is deleted.
-func (c *Client) DeleteTransitGatewayRouteTableAnnouncement(ctx context.Context, params *DeleteTransitGatewayRouteTableAnnouncementInput, optFns ...func(*Options)) (*DeleteTransitGatewayRouteTableAnnouncementOutput, error) {
- if params == nil {
- params = &DeleteTransitGatewayRouteTableAnnouncementInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayRouteTableAnnouncement", params, optFns, c.addOperationDeleteTransitGatewayRouteTableAnnouncementMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteTransitGatewayRouteTableAnnouncementOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteTransitGatewayRouteTableAnnouncementInput struct {
-
- // The transit gateway route table ID that's being deleted.
- //
- // This member is required.
- TransitGatewayRouteTableAnnouncementId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteTransitGatewayRouteTableAnnouncementOutput struct {
-
- // Provides details about a deleted transit gateway route table.
- TransitGatewayRouteTableAnnouncement *types.TransitGatewayRouteTableAnnouncement
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteTransitGatewayRouteTableAnnouncementMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTransitGatewayRouteTableAnnouncement{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteTransitGatewayRouteTableAnnouncement{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteTransitGatewayRouteTableAnnouncement"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteTransitGatewayRouteTableAnnouncementValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteTransitGatewayRouteTableAnnouncement(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteTransitGatewayRouteTableAnnouncement(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteTransitGatewayRouteTableAnnouncement",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayVpcAttachment.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayVpcAttachment.go
deleted file mode 100644
index 0e7cfc290..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayVpcAttachment.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified VPC attachment.
-func (c *Client) DeleteTransitGatewayVpcAttachment(ctx context.Context, params *DeleteTransitGatewayVpcAttachmentInput, optFns ...func(*Options)) (*DeleteTransitGatewayVpcAttachmentOutput, error) {
- if params == nil {
- params = &DeleteTransitGatewayVpcAttachmentInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayVpcAttachment", params, optFns, c.addOperationDeleteTransitGatewayVpcAttachmentMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteTransitGatewayVpcAttachmentOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteTransitGatewayVpcAttachmentInput struct {
-
- // The ID of the attachment.
- //
- // This member is required.
- TransitGatewayAttachmentId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteTransitGatewayVpcAttachmentOutput struct {
-
- // Information about the deleted VPC attachment.
- TransitGatewayVpcAttachment *types.TransitGatewayVpcAttachment
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteTransitGatewayVpcAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTransitGatewayVpcAttachment{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteTransitGatewayVpcAttachment{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteTransitGatewayVpcAttachment"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteTransitGatewayVpcAttachmentValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteTransitGatewayVpcAttachment(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteTransitGatewayVpcAttachment(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteTransitGatewayVpcAttachment",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVerifiedAccessEndpoint.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVerifiedAccessEndpoint.go
deleted file mode 100644
index 071a31738..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVerifiedAccessEndpoint.go
+++ /dev/null
@@ -1,208 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Delete an Amazon Web Services Verified Access endpoint.
-func (c *Client) DeleteVerifiedAccessEndpoint(ctx context.Context, params *DeleteVerifiedAccessEndpointInput, optFns ...func(*Options)) (*DeleteVerifiedAccessEndpointOutput, error) {
- if params == nil {
- params = &DeleteVerifiedAccessEndpointInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteVerifiedAccessEndpoint", params, optFns, c.addOperationDeleteVerifiedAccessEndpointMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteVerifiedAccessEndpointOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteVerifiedAccessEndpointInput struct {
-
- // The ID of the Verified Access endpoint.
- //
- // This member is required.
- VerifiedAccessEndpointId *string
-
- // A unique, case-sensitive token that you provide to ensure idempotency of your
- // modification request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteVerifiedAccessEndpointOutput struct {
-
- // Details about the Verified Access endpoint.
- VerifiedAccessEndpoint *types.VerifiedAccessEndpoint
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteVerifiedAccessEndpointMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVerifiedAccessEndpoint{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteVerifiedAccessEndpoint{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteVerifiedAccessEndpoint"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opDeleteVerifiedAccessEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteVerifiedAccessEndpointValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteVerifiedAccessEndpoint(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpDeleteVerifiedAccessEndpoint struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpDeleteVerifiedAccessEndpoint) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpDeleteVerifiedAccessEndpoint) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*DeleteVerifiedAccessEndpointInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *DeleteVerifiedAccessEndpointInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opDeleteVerifiedAccessEndpointMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpDeleteVerifiedAccessEndpoint{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opDeleteVerifiedAccessEndpoint(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteVerifiedAccessEndpoint",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVerifiedAccessGroup.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVerifiedAccessGroup.go
deleted file mode 100644
index 2e159865d..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVerifiedAccessGroup.go
+++ /dev/null
@@ -1,208 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Delete an Amazon Web Services Verified Access group.
-func (c *Client) DeleteVerifiedAccessGroup(ctx context.Context, params *DeleteVerifiedAccessGroupInput, optFns ...func(*Options)) (*DeleteVerifiedAccessGroupOutput, error) {
- if params == nil {
- params = &DeleteVerifiedAccessGroupInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteVerifiedAccessGroup", params, optFns, c.addOperationDeleteVerifiedAccessGroupMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteVerifiedAccessGroupOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteVerifiedAccessGroupInput struct {
-
- // The ID of the Verified Access group.
- //
- // This member is required.
- VerifiedAccessGroupId *string
-
- // A unique, case-sensitive token that you provide to ensure idempotency of your
- // modification request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteVerifiedAccessGroupOutput struct {
-
- // Details about the Verified Access group.
- VerifiedAccessGroup *types.VerifiedAccessGroup
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteVerifiedAccessGroupMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVerifiedAccessGroup{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteVerifiedAccessGroup{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteVerifiedAccessGroup"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opDeleteVerifiedAccessGroupMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteVerifiedAccessGroupValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteVerifiedAccessGroup(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpDeleteVerifiedAccessGroup struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpDeleteVerifiedAccessGroup) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpDeleteVerifiedAccessGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*DeleteVerifiedAccessGroupInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *DeleteVerifiedAccessGroupInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opDeleteVerifiedAccessGroupMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpDeleteVerifiedAccessGroup{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opDeleteVerifiedAccessGroup(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteVerifiedAccessGroup",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVerifiedAccessInstance.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVerifiedAccessInstance.go
deleted file mode 100644
index b60833172..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVerifiedAccessInstance.go
+++ /dev/null
@@ -1,208 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Delete an Amazon Web Services Verified Access instance.
-func (c *Client) DeleteVerifiedAccessInstance(ctx context.Context, params *DeleteVerifiedAccessInstanceInput, optFns ...func(*Options)) (*DeleteVerifiedAccessInstanceOutput, error) {
- if params == nil {
- params = &DeleteVerifiedAccessInstanceInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteVerifiedAccessInstance", params, optFns, c.addOperationDeleteVerifiedAccessInstanceMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteVerifiedAccessInstanceOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteVerifiedAccessInstanceInput struct {
-
- // The ID of the Verified Access instance.
- //
- // This member is required.
- VerifiedAccessInstanceId *string
-
- // A unique, case-sensitive token that you provide to ensure idempotency of your
- // modification request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteVerifiedAccessInstanceOutput struct {
-
- // Details about the Verified Access instance.
- VerifiedAccessInstance *types.VerifiedAccessInstance
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteVerifiedAccessInstanceMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVerifiedAccessInstance{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteVerifiedAccessInstance{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteVerifiedAccessInstance"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opDeleteVerifiedAccessInstanceMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteVerifiedAccessInstanceValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteVerifiedAccessInstance(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpDeleteVerifiedAccessInstance struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpDeleteVerifiedAccessInstance) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpDeleteVerifiedAccessInstance) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*DeleteVerifiedAccessInstanceInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *DeleteVerifiedAccessInstanceInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opDeleteVerifiedAccessInstanceMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpDeleteVerifiedAccessInstance{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opDeleteVerifiedAccessInstance(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteVerifiedAccessInstance",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVerifiedAccessTrustProvider.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVerifiedAccessTrustProvider.go
deleted file mode 100644
index 804127497..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVerifiedAccessTrustProvider.go
+++ /dev/null
@@ -1,208 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Delete an Amazon Web Services Verified Access trust provider.
-func (c *Client) DeleteVerifiedAccessTrustProvider(ctx context.Context, params *DeleteVerifiedAccessTrustProviderInput, optFns ...func(*Options)) (*DeleteVerifiedAccessTrustProviderOutput, error) {
- if params == nil {
- params = &DeleteVerifiedAccessTrustProviderInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteVerifiedAccessTrustProvider", params, optFns, c.addOperationDeleteVerifiedAccessTrustProviderMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteVerifiedAccessTrustProviderOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteVerifiedAccessTrustProviderInput struct {
-
- // The ID of the Verified Access trust provider.
- //
- // This member is required.
- VerifiedAccessTrustProviderId *string
-
- // A unique, case-sensitive token that you provide to ensure idempotency of your
- // modification request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteVerifiedAccessTrustProviderOutput struct {
-
- // Details about the Verified Access trust provider.
- VerifiedAccessTrustProvider *types.VerifiedAccessTrustProvider
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteVerifiedAccessTrustProviderMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVerifiedAccessTrustProvider{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteVerifiedAccessTrustProvider{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteVerifiedAccessTrustProvider"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opDeleteVerifiedAccessTrustProviderMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteVerifiedAccessTrustProviderValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteVerifiedAccessTrustProvider(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpDeleteVerifiedAccessTrustProvider struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpDeleteVerifiedAccessTrustProvider) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpDeleteVerifiedAccessTrustProvider) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*DeleteVerifiedAccessTrustProviderInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *DeleteVerifiedAccessTrustProviderInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opDeleteVerifiedAccessTrustProviderMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpDeleteVerifiedAccessTrustProvider{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opDeleteVerifiedAccessTrustProvider(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteVerifiedAccessTrustProvider",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVolume.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVolume.go
deleted file mode 100644
index e6261caeb..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVolume.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified EBS volume. The volume must be in the available state
-// (not attached to an instance).
-//
-// The volume can remain in the deleting state for several minutes.
-//
-// For more information, see [Delete an Amazon EBS volume] in the Amazon EBS User Guide.
-//
-// [Delete an Amazon EBS volume]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-deleting-volume.html
-func (c *Client) DeleteVolume(ctx context.Context, params *DeleteVolumeInput, optFns ...func(*Options)) (*DeleteVolumeOutput, error) {
- if params == nil {
- params = &DeleteVolumeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteVolume", params, optFns, c.addOperationDeleteVolumeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteVolumeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteVolumeInput struct {
-
- // The ID of the volume.
- //
- // This member is required.
- VolumeId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteVolumeOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteVolumeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVolume{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteVolume{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteVolume"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteVolumeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteVolume(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteVolume(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteVolume",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpc.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpc.go
deleted file mode 100644
index 626b1d095..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpc.go
+++ /dev/null
@@ -1,170 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified VPC. You must detach or delete all gateways and resources
-// that are associated with the VPC before you can delete it. For example, you must
-// terminate all instances running in the VPC, delete all security groups
-// associated with the VPC (except the default one), delete all route tables
-// associated with the VPC (except the default one), and so on. When you delete the
-// VPC, it deletes the default security group, network ACL, and route table for the
-// VPC.
-//
-// If you created a flow log for the VPC that you are deleting, note that flow
-// logs for deleted VPCs are eventually automatically removed.
-func (c *Client) DeleteVpc(ctx context.Context, params *DeleteVpcInput, optFns ...func(*Options)) (*DeleteVpcOutput, error) {
- if params == nil {
- params = &DeleteVpcInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteVpc", params, optFns, c.addOperationDeleteVpcMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteVpcOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteVpcInput struct {
-
- // The ID of the VPC.
- //
- // This member is required.
- VpcId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteVpcOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteVpcMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVpc{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteVpc{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteVpc"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteVpcValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteVpc(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteVpc(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteVpc",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcBlockPublicAccessExclusion.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcBlockPublicAccessExclusion.go
deleted file mode 100644
index e2b0a57e7..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcBlockPublicAccessExclusion.go
+++ /dev/null
@@ -1,173 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Delete a VPC Block Public Access (BPA) exclusion. A VPC BPA exclusion is a mode
-// that can be applied to a single VPC or subnet that exempts it from the account’s
-// BPA mode and will allow bidirectional or egress-only access. You can create BPA
-// exclusions for VPCs and subnets even when BPA is not enabled on the account to
-// ensure that there is no traffic disruption to the exclusions when VPC BPA is
-// turned on. To learn more about VPC BPA, see [Block public access to VPCs and subnets]in the Amazon VPC User Guide.
-//
-// [Block public access to VPCs and subnets]: https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html
-func (c *Client) DeleteVpcBlockPublicAccessExclusion(ctx context.Context, params *DeleteVpcBlockPublicAccessExclusionInput, optFns ...func(*Options)) (*DeleteVpcBlockPublicAccessExclusionOutput, error) {
- if params == nil {
- params = &DeleteVpcBlockPublicAccessExclusionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteVpcBlockPublicAccessExclusion", params, optFns, c.addOperationDeleteVpcBlockPublicAccessExclusionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteVpcBlockPublicAccessExclusionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteVpcBlockPublicAccessExclusionInput struct {
-
- // The ID of the exclusion.
- //
- // This member is required.
- ExclusionId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteVpcBlockPublicAccessExclusionOutput struct {
-
- // Details about an exclusion.
- VpcBlockPublicAccessExclusion *types.VpcBlockPublicAccessExclusion
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteVpcBlockPublicAccessExclusionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVpcBlockPublicAccessExclusion{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteVpcBlockPublicAccessExclusion{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteVpcBlockPublicAccessExclusion"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteVpcBlockPublicAccessExclusionValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteVpcBlockPublicAccessExclusion(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteVpcBlockPublicAccessExclusion(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteVpcBlockPublicAccessExclusion",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpointConnectionNotifications.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpointConnectionNotifications.go
deleted file mode 100644
index 608eba0bc..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpointConnectionNotifications.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified VPC endpoint connection notifications.
-func (c *Client) DeleteVpcEndpointConnectionNotifications(ctx context.Context, params *DeleteVpcEndpointConnectionNotificationsInput, optFns ...func(*Options)) (*DeleteVpcEndpointConnectionNotificationsOutput, error) {
- if params == nil {
- params = &DeleteVpcEndpointConnectionNotificationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteVpcEndpointConnectionNotifications", params, optFns, c.addOperationDeleteVpcEndpointConnectionNotificationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteVpcEndpointConnectionNotificationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteVpcEndpointConnectionNotificationsInput struct {
-
- // The IDs of the notifications.
- //
- // This member is required.
- ConnectionNotificationIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteVpcEndpointConnectionNotificationsOutput struct {
-
- // Information about the notifications that could not be deleted successfully.
- Unsuccessful []types.UnsuccessfulItem
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteVpcEndpointConnectionNotificationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVpcEndpointConnectionNotifications{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteVpcEndpointConnectionNotifications{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteVpcEndpointConnectionNotifications"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteVpcEndpointConnectionNotificationsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteVpcEndpointConnectionNotifications(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteVpcEndpointConnectionNotifications(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteVpcEndpointConnectionNotifications",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpointServiceConfigurations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpointServiceConfigurations.go
deleted file mode 100644
index 0edda6b47..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpointServiceConfigurations.go
+++ /dev/null
@@ -1,170 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified VPC endpoint service configurations. Before you can
-// delete an endpoint service configuration, you must reject any Available or
-// PendingAcceptance interface endpoint connections that are attached to the
-// service.
-func (c *Client) DeleteVpcEndpointServiceConfigurations(ctx context.Context, params *DeleteVpcEndpointServiceConfigurationsInput, optFns ...func(*Options)) (*DeleteVpcEndpointServiceConfigurationsOutput, error) {
- if params == nil {
- params = &DeleteVpcEndpointServiceConfigurationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteVpcEndpointServiceConfigurations", params, optFns, c.addOperationDeleteVpcEndpointServiceConfigurationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteVpcEndpointServiceConfigurationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteVpcEndpointServiceConfigurationsInput struct {
-
- // The IDs of the services.
- //
- // This member is required.
- ServiceIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteVpcEndpointServiceConfigurationsOutput struct {
-
- // Information about the service configurations that were not deleted, if
- // applicable.
- Unsuccessful []types.UnsuccessfulItem
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteVpcEndpointServiceConfigurationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVpcEndpointServiceConfigurations{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteVpcEndpointServiceConfigurations{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteVpcEndpointServiceConfigurations"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteVpcEndpointServiceConfigurationsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteVpcEndpointServiceConfigurations(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteVpcEndpointServiceConfigurations(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteVpcEndpointServiceConfigurations",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpoints.go
deleted file mode 100644
index dffbb307c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpoints.go
+++ /dev/null
@@ -1,176 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified VPC endpoints.
-//
-// When you delete a gateway endpoint, we delete the endpoint routes in the route
-// tables for the endpoint.
-//
-// When you delete a Gateway Load Balancer endpoint, we delete its endpoint
-// network interfaces. You can only delete Gateway Load Balancer endpoints when the
-// routes that are associated with the endpoint are deleted.
-//
-// When you delete an interface endpoint, we delete its endpoint network
-// interfaces.
-func (c *Client) DeleteVpcEndpoints(ctx context.Context, params *DeleteVpcEndpointsInput, optFns ...func(*Options)) (*DeleteVpcEndpointsOutput, error) {
- if params == nil {
- params = &DeleteVpcEndpointsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteVpcEndpoints", params, optFns, c.addOperationDeleteVpcEndpointsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteVpcEndpointsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteVpcEndpointsInput struct {
-
- // The IDs of the VPC endpoints.
- //
- // This member is required.
- VpcEndpointIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteVpcEndpointsOutput struct {
-
- // Information about the VPC endpoints that were not successfully deleted.
- Unsuccessful []types.UnsuccessfulItem
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteVpcEndpointsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVpcEndpoints{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteVpcEndpoints{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteVpcEndpoints"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteVpcEndpointsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteVpcEndpoints(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteVpcEndpoints(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteVpcEndpoints",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcPeeringConnection.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcPeeringConnection.go
deleted file mode 100644
index 197221c62..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcPeeringConnection.go
+++ /dev/null
@@ -1,169 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes a VPC peering connection. Either the owner of the requester VPC or the
-// owner of the accepter VPC can delete the VPC peering connection if it's in the
-// active state. The owner of the requester VPC can delete a VPC peering connection
-// in the pending-acceptance state. You cannot delete a VPC peering connection
-// that's in the failed or rejected state.
-func (c *Client) DeleteVpcPeeringConnection(ctx context.Context, params *DeleteVpcPeeringConnectionInput, optFns ...func(*Options)) (*DeleteVpcPeeringConnectionOutput, error) {
- if params == nil {
- params = &DeleteVpcPeeringConnectionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteVpcPeeringConnection", params, optFns, c.addOperationDeleteVpcPeeringConnectionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteVpcPeeringConnectionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeleteVpcPeeringConnectionInput struct {
-
- // The ID of the VPC peering connection.
- //
- // This member is required.
- VpcPeeringConnectionId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteVpcPeeringConnectionOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteVpcPeeringConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVpcPeeringConnection{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteVpcPeeringConnection{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteVpcPeeringConnection"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteVpcPeeringConnectionValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteVpcPeeringConnection(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteVpcPeeringConnection(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteVpcPeeringConnection",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnConnection.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnConnection.go
deleted file mode 100644
index 27040b521..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnConnection.go
+++ /dev/null
@@ -1,175 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified VPN connection.
-//
-// If you're deleting the VPC and its associated components, we recommend that you
-// detach the virtual private gateway from the VPC and delete the VPC before
-// deleting the VPN connection. If you believe that the tunnel credentials for your
-// VPN connection have been compromised, you can delete the VPN connection and
-// create a new one that has new keys, without needing to delete the VPC or virtual
-// private gateway. If you create a new VPN connection, you must reconfigure the
-// customer gateway device using the new configuration information returned with
-// the new VPN connection ID.
-//
-// For certificate-based authentication, delete all Certificate Manager (ACM)
-// private certificates used for the Amazon Web Services-side tunnel endpoints for
-// the VPN connection before deleting the VPN connection.
-func (c *Client) DeleteVpnConnection(ctx context.Context, params *DeleteVpnConnectionInput, optFns ...func(*Options)) (*DeleteVpnConnectionOutput, error) {
- if params == nil {
- params = &DeleteVpnConnectionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteVpnConnection", params, optFns, c.addOperationDeleteVpnConnectionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteVpnConnectionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DeleteVpnConnection.
-type DeleteVpnConnectionInput struct {
-
- // The ID of the VPN connection.
- //
- // This member is required.
- VpnConnectionId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteVpnConnectionOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteVpnConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVpnConnection{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteVpnConnection{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteVpnConnection"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteVpnConnectionValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteVpnConnection(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteVpnConnection(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteVpnConnection",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnConnectionRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnConnectionRoute.go
deleted file mode 100644
index 2748ce0bf..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnConnectionRoute.go
+++ /dev/null
@@ -1,164 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified static route associated with a VPN connection between an
-// existing virtual private gateway and a VPN customer gateway. The static route
-// allows traffic to be routed from the virtual private gateway to the VPN customer
-// gateway.
-func (c *Client) DeleteVpnConnectionRoute(ctx context.Context, params *DeleteVpnConnectionRouteInput, optFns ...func(*Options)) (*DeleteVpnConnectionRouteOutput, error) {
- if params == nil {
- params = &DeleteVpnConnectionRouteInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteVpnConnectionRoute", params, optFns, c.addOperationDeleteVpnConnectionRouteMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteVpnConnectionRouteOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DeleteVpnConnectionRoute.
-type DeleteVpnConnectionRouteInput struct {
-
- // The CIDR block associated with the local subnet of the customer network.
- //
- // This member is required.
- DestinationCidrBlock *string
-
- // The ID of the VPN connection.
- //
- // This member is required.
- VpnConnectionId *string
-
- noSmithyDocumentSerde
-}
-
-type DeleteVpnConnectionRouteOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteVpnConnectionRouteMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVpnConnectionRoute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteVpnConnectionRoute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteVpnConnectionRoute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteVpnConnectionRouteValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteVpnConnectionRoute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteVpnConnectionRoute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteVpnConnectionRoute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnGateway.go
deleted file mode 100644
index c09165901..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnGateway.go
+++ /dev/null
@@ -1,165 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deletes the specified virtual private gateway. You must first detach the
-// virtual private gateway from the VPC. Note that you don't need to delete the
-// virtual private gateway if you plan to delete and recreate the VPN connection
-// between your VPC and your network.
-func (c *Client) DeleteVpnGateway(ctx context.Context, params *DeleteVpnGatewayInput, optFns ...func(*Options)) (*DeleteVpnGatewayOutput, error) {
- if params == nil {
- params = &DeleteVpnGatewayInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeleteVpnGateway", params, optFns, c.addOperationDeleteVpnGatewayMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeleteVpnGatewayOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DeleteVpnGateway.
-type DeleteVpnGatewayInput struct {
-
- // The ID of the virtual private gateway.
- //
- // This member is required.
- VpnGatewayId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeleteVpnGatewayOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeleteVpnGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVpnGateway{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteVpnGateway{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteVpnGateway"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeleteVpnGatewayValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteVpnGateway(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeleteVpnGateway(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeleteVpnGateway",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeprovisionByoipCidr.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeprovisionByoipCidr.go
deleted file mode 100644
index 0f146b8cd..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeprovisionByoipCidr.go
+++ /dev/null
@@ -1,172 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Releases the specified address range that you provisioned for use with your
-// Amazon Web Services resources through bring your own IP addresses (BYOIP) and
-// deletes the corresponding address pool.
-//
-// Before you can release an address range, you must stop advertising it using WithdrawByoipCidr
-// and you must not have any IP addresses allocated from its address range.
-func (c *Client) DeprovisionByoipCidr(ctx context.Context, params *DeprovisionByoipCidrInput, optFns ...func(*Options)) (*DeprovisionByoipCidrOutput, error) {
- if params == nil {
- params = &DeprovisionByoipCidrInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeprovisionByoipCidr", params, optFns, c.addOperationDeprovisionByoipCidrMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeprovisionByoipCidrOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeprovisionByoipCidrInput struct {
-
- // The address range, in CIDR notation. The prefix must be the same prefix that
- // you specified when you provisioned the address range.
- //
- // This member is required.
- Cidr *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeprovisionByoipCidrOutput struct {
-
- // Information about the address range.
- ByoipCidr *types.ByoipCidr
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeprovisionByoipCidrMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeprovisionByoipCidr{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeprovisionByoipCidr{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeprovisionByoipCidr"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeprovisionByoipCidrValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeprovisionByoipCidr(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeprovisionByoipCidr(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeprovisionByoipCidr",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeprovisionIpamByoasn.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeprovisionIpamByoasn.go
deleted file mode 100644
index bbef3e41d..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeprovisionIpamByoasn.go
+++ /dev/null
@@ -1,177 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deprovisions your Autonomous System Number (ASN) from your Amazon Web Services
-// account. This action can only be called after any BYOIP CIDR associations are
-// removed from your Amazon Web Services account with [DisassociateIpamByoasn]. For more information, see [Tutorial: Bring your ASN to IPAM]
-// in the Amazon VPC IPAM guide.
-//
-// [DisassociateIpamByoasn]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DisassociateIpamByoasn.html
-// [Tutorial: Bring your ASN to IPAM]: https://docs.aws.amazon.com/vpc/latest/ipam/tutorials-byoasn.html
-func (c *Client) DeprovisionIpamByoasn(ctx context.Context, params *DeprovisionIpamByoasnInput, optFns ...func(*Options)) (*DeprovisionIpamByoasnOutput, error) {
- if params == nil {
- params = &DeprovisionIpamByoasnInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeprovisionIpamByoasn", params, optFns, c.addOperationDeprovisionIpamByoasnMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeprovisionIpamByoasnOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeprovisionIpamByoasnInput struct {
-
- // An ASN.
- //
- // This member is required.
- Asn *string
-
- // The IPAM ID.
- //
- // This member is required.
- IpamId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeprovisionIpamByoasnOutput struct {
-
- // An ASN and BYOIP CIDR association.
- Byoasn *types.Byoasn
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeprovisionIpamByoasnMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeprovisionIpamByoasn{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeprovisionIpamByoasn{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeprovisionIpamByoasn"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeprovisionIpamByoasnValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeprovisionIpamByoasn(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeprovisionIpamByoasn(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeprovisionIpamByoasn",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeprovisionIpamPoolCidr.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeprovisionIpamPoolCidr.go
deleted file mode 100644
index 930565b74..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeprovisionIpamPoolCidr.go
+++ /dev/null
@@ -1,173 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deprovision a CIDR provisioned from an IPAM pool. If you deprovision a CIDR
-// from a pool that has a source pool, the CIDR is recycled back into the source
-// pool. For more information, see [Deprovision pool CIDRs]in the Amazon VPC IPAM User Guide.
-//
-// [Deprovision pool CIDRs]: https://docs.aws.amazon.com/vpc/latest/ipam/depro-pool-cidr-ipam.html
-func (c *Client) DeprovisionIpamPoolCidr(ctx context.Context, params *DeprovisionIpamPoolCidrInput, optFns ...func(*Options)) (*DeprovisionIpamPoolCidrOutput, error) {
- if params == nil {
- params = &DeprovisionIpamPoolCidrInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeprovisionIpamPoolCidr", params, optFns, c.addOperationDeprovisionIpamPoolCidrMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeprovisionIpamPoolCidrOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeprovisionIpamPoolCidrInput struct {
-
- // The ID of the pool that has the CIDR you want to deprovision.
- //
- // This member is required.
- IpamPoolId *string
-
- // The CIDR which you want to deprovision from the pool.
- Cidr *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeprovisionIpamPoolCidrOutput struct {
-
- // The deprovisioned pool CIDR.
- IpamPoolCidr *types.IpamPoolCidr
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeprovisionIpamPoolCidrMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeprovisionIpamPoolCidr{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeprovisionIpamPoolCidr{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeprovisionIpamPoolCidr"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeprovisionIpamPoolCidrValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeprovisionIpamPoolCidr(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeprovisionIpamPoolCidr(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeprovisionIpamPoolCidr",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeprovisionPublicIpv4PoolCidr.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeprovisionPublicIpv4PoolCidr.go
deleted file mode 100644
index b9bbf3ad0..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeprovisionPublicIpv4PoolCidr.go
+++ /dev/null
@@ -1,173 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deprovision a CIDR from a public IPv4 pool.
-func (c *Client) DeprovisionPublicIpv4PoolCidr(ctx context.Context, params *DeprovisionPublicIpv4PoolCidrInput, optFns ...func(*Options)) (*DeprovisionPublicIpv4PoolCidrOutput, error) {
- if params == nil {
- params = &DeprovisionPublicIpv4PoolCidrInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeprovisionPublicIpv4PoolCidr", params, optFns, c.addOperationDeprovisionPublicIpv4PoolCidrMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeprovisionPublicIpv4PoolCidrOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeprovisionPublicIpv4PoolCidrInput struct {
-
- // The CIDR you want to deprovision from the pool.
- //
- // This member is required.
- Cidr *string
-
- // The ID of the pool that you want to deprovision the CIDR from.
- //
- // This member is required.
- PoolId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeprovisionPublicIpv4PoolCidrOutput struct {
-
- // The deprovisioned CIDRs.
- DeprovisionedAddresses []string
-
- // The ID of the pool that you deprovisioned the CIDR from.
- PoolId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeprovisionPublicIpv4PoolCidrMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeprovisionPublicIpv4PoolCidr{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeprovisionPublicIpv4PoolCidr{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeprovisionPublicIpv4PoolCidr"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeprovisionPublicIpv4PoolCidrValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeprovisionPublicIpv4PoolCidr(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeprovisionPublicIpv4PoolCidr(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeprovisionPublicIpv4PoolCidr",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterImage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterImage.go
deleted file mode 100644
index 245f8372e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterImage.go
+++ /dev/null
@@ -1,208 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deregisters the specified AMI. A deregistered AMI can't be used to launch new
-// instances.
-//
-// If a deregistered EBS-backed AMI matches a Recycle Bin retention rule, it moves
-// to the Recycle Bin for the specified retention period. It can be restored before
-// its retention period expires, after which it is permanently deleted. If the
-// deregistered AMI doesn't match a retention rule, it is permanently deleted
-// immediately. For more information, see [Recover deleted Amazon EBS snapshots and EBS-backed AMIs with Recycle Bin]in the Amazon EBS User Guide.
-//
-// When deregistering an EBS-backed AMI, you can optionally delete its associated
-// snapshots at the same time. However, if a snapshot is associated with multiple
-// AMIs, it won't be deleted even if specified for deletion, although the AMI will
-// still be deregistered.
-//
-// Deregistering an AMI does not delete the following:
-//
-// - Instances already launched from the AMI. You'll continue to incur usage
-// costs for the instances until you terminate them.
-//
-// - For EBS-backed AMIs: Snapshots that are associated with multiple AMIs.
-// You'll continue to incur snapshot storage costs.
-//
-// - For instance store-backed AMIs: The files uploaded to Amazon S3 during AMI
-// creation. You'll continue to incur S3 storage costs.
-//
-// For more information, see [Deregister an Amazon EC2 AMI] in the Amazon EC2 User Guide.
-//
-// [Deregister an Amazon EC2 AMI]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/deregister-ami.html
-// [Recover deleted Amazon EBS snapshots and EBS-backed AMIs with Recycle Bin]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html
-func (c *Client) DeregisterImage(ctx context.Context, params *DeregisterImageInput, optFns ...func(*Options)) (*DeregisterImageOutput, error) {
- if params == nil {
- params = &DeregisterImageInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeregisterImage", params, optFns, c.addOperationDeregisterImageMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeregisterImageOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DeregisterImage.
-type DeregisterImageInput struct {
-
- // The ID of the AMI.
- //
- // This member is required.
- ImageId *string
-
- // Specifies whether to delete the snapshots associated with the AMI during
- // deregistration.
- //
- // If a snapshot is associated with multiple AMIs, it is not deleted, regardless
- // of this setting.
- //
- // Default: The snapshots are not deleted.
- DeleteAssociatedSnapshots *bool
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeregisterImageOutput struct {
-
- // The deletion result for each snapshot associated with the AMI, including the
- // snapshot ID and its success or error code.
- DeleteSnapshotResults []types.DeleteSnapshotReturnCode
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeregisterImageMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeregisterImage{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeregisterImage{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeregisterImage"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeregisterImageValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeregisterImage(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeregisterImage(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeregisterImage",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterInstanceEventNotificationAttributes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterInstanceEventNotificationAttributes.go
deleted file mode 100644
index 398d0d65b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterInstanceEventNotificationAttributes.go
+++ /dev/null
@@ -1,167 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deregisters tag keys to prevent tags that have the specified tag keys from
-// being included in scheduled event notifications for resources in the Region.
-func (c *Client) DeregisterInstanceEventNotificationAttributes(ctx context.Context, params *DeregisterInstanceEventNotificationAttributesInput, optFns ...func(*Options)) (*DeregisterInstanceEventNotificationAttributesOutput, error) {
- if params == nil {
- params = &DeregisterInstanceEventNotificationAttributesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeregisterInstanceEventNotificationAttributes", params, optFns, c.addOperationDeregisterInstanceEventNotificationAttributesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeregisterInstanceEventNotificationAttributesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeregisterInstanceEventNotificationAttributesInput struct {
-
- // Information about the tag keys to deregister.
- //
- // This member is required.
- InstanceTagAttribute *types.DeregisterInstanceTagAttributeRequest
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DeregisterInstanceEventNotificationAttributesOutput struct {
-
- // The resulting set of tag keys.
- InstanceTagAttribute *types.InstanceTagNotificationAttribute
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeregisterInstanceEventNotificationAttributesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeregisterInstanceEventNotificationAttributes{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeregisterInstanceEventNotificationAttributes{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeregisterInstanceEventNotificationAttributes"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDeregisterInstanceEventNotificationAttributesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeregisterInstanceEventNotificationAttributes(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeregisterInstanceEventNotificationAttributes(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeregisterInstanceEventNotificationAttributes",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupMembers.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupMembers.go
deleted file mode 100644
index 7fb4bcf17..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupMembers.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deregisters the specified members (network interfaces) from the transit gateway
-// multicast group.
-func (c *Client) DeregisterTransitGatewayMulticastGroupMembers(ctx context.Context, params *DeregisterTransitGatewayMulticastGroupMembersInput, optFns ...func(*Options)) (*DeregisterTransitGatewayMulticastGroupMembersOutput, error) {
- if params == nil {
- params = &DeregisterTransitGatewayMulticastGroupMembersInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeregisterTransitGatewayMulticastGroupMembers", params, optFns, c.addOperationDeregisterTransitGatewayMulticastGroupMembersMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeregisterTransitGatewayMulticastGroupMembersOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeregisterTransitGatewayMulticastGroupMembersInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The IP address assigned to the transit gateway multicast group.
- GroupIpAddress *string
-
- // The IDs of the group members' network interfaces.
- NetworkInterfaceIds []string
-
- // The ID of the transit gateway multicast domain.
- TransitGatewayMulticastDomainId *string
-
- noSmithyDocumentSerde
-}
-
-type DeregisterTransitGatewayMulticastGroupMembersOutput struct {
-
- // Information about the deregistered members.
- DeregisteredMulticastGroupMembers *types.TransitGatewayMulticastDeregisteredGroupMembers
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeregisterTransitGatewayMulticastGroupMembersMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeregisterTransitGatewayMulticastGroupMembers{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupMembers{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeregisterTransitGatewayMulticastGroupMembers"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeregisterTransitGatewayMulticastGroupMembers(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeregisterTransitGatewayMulticastGroupMembers(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeregisterTransitGatewayMulticastGroupMembers",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupSources.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupSources.go
deleted file mode 100644
index 6430fb4c2..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupSources.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Deregisters the specified sources (network interfaces) from the transit gateway
-// multicast group.
-func (c *Client) DeregisterTransitGatewayMulticastGroupSources(ctx context.Context, params *DeregisterTransitGatewayMulticastGroupSourcesInput, optFns ...func(*Options)) (*DeregisterTransitGatewayMulticastGroupSourcesOutput, error) {
- if params == nil {
- params = &DeregisterTransitGatewayMulticastGroupSourcesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DeregisterTransitGatewayMulticastGroupSources", params, optFns, c.addOperationDeregisterTransitGatewayMulticastGroupSourcesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DeregisterTransitGatewayMulticastGroupSourcesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DeregisterTransitGatewayMulticastGroupSourcesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The IP address assigned to the transit gateway multicast group.
- GroupIpAddress *string
-
- // The IDs of the group sources' network interfaces.
- NetworkInterfaceIds []string
-
- // The ID of the transit gateway multicast domain.
- TransitGatewayMulticastDomainId *string
-
- noSmithyDocumentSerde
-}
-
-type DeregisterTransitGatewayMulticastGroupSourcesOutput struct {
-
- // Information about the deregistered group sources.
- DeregisteredMulticastGroupSources *types.TransitGatewayMulticastDeregisteredGroupSources
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDeregisterTransitGatewayMulticastGroupSourcesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDeregisterTransitGatewayMulticastGroupSources{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupSources{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DeregisterTransitGatewayMulticastGroupSources"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeregisterTransitGatewayMulticastGroupSources(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDeregisterTransitGatewayMulticastGroupSources(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DeregisterTransitGatewayMulticastGroupSources",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAccountAttributes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAccountAttributes.go
deleted file mode 100644
index c8ab04279..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAccountAttributes.go
+++ /dev/null
@@ -1,185 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes attributes of your Amazon Web Services account. The following are the
-// supported account attributes:
-//
-// - default-vpc : The ID of the default VPC for your account, or none .
-//
-// - max-instances : This attribute is no longer supported. The returned value
-// does not reflect your actual vCPU limit for running On-Demand Instances. For
-// more information, see [On-Demand Instance Limits]in the Amazon Elastic Compute Cloud User Guide.
-//
-// - max-elastic-ips : The maximum number of Elastic IP addresses that you can
-// allocate.
-//
-// - supported-platforms : This attribute is deprecated.
-//
-// - vpc-max-elastic-ips : The maximum number of Elastic IP addresses that you
-// can allocate.
-//
-// - vpc-max-security-groups-per-interface : The maximum number of security
-// groups that you can assign to a network interface.
-//
-// The order of the elements in the response, including those within nested
-// structures, might vary. Applications should not assume the elements appear in a
-// particular order.
-//
-// [On-Demand Instance Limits]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-on-demand-instances.html#ec2-on-demand-instances-limits
-func (c *Client) DescribeAccountAttributes(ctx context.Context, params *DescribeAccountAttributesInput, optFns ...func(*Options)) (*DescribeAccountAttributesOutput, error) {
- if params == nil {
- params = &DescribeAccountAttributesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeAccountAttributes", params, optFns, c.addOperationDescribeAccountAttributesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeAccountAttributesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeAccountAttributesInput struct {
-
- // The account attribute names.
- AttributeNames []types.AccountAttributeName
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DescribeAccountAttributesOutput struct {
-
- // Information about the account attributes.
- AccountAttributes []types.AccountAttribute
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeAccountAttributesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeAccountAttributes{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeAccountAttributes{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeAccountAttributes"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeAccountAttributes(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeAccountAttributes(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeAccountAttributes",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAddressTransfers.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAddressTransfers.go
deleted file mode 100644
index fe741ed55..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAddressTransfers.go
+++ /dev/null
@@ -1,279 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes an Elastic IP address transfer. For more information, see [Transfer Elastic IP addresses] in the
-// Amazon VPC User Guide.
-//
-// When you transfer an Elastic IP address, there is a two-step handshake between
-// the source and transfer Amazon Web Services accounts. When the source account
-// starts the transfer, the transfer account has seven days to accept the Elastic
-// IP address transfer. During those seven days, the source account can view the
-// pending transfer by using this action. After seven days, the transfer expires
-// and ownership of the Elastic IP address returns to the source account. Accepted
-// transfers are visible to the source account for 14 days after the transfers have
-// been accepted.
-//
-// [Transfer Elastic IP addresses]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-eips.html#transfer-EIPs-intro
-func (c *Client) DescribeAddressTransfers(ctx context.Context, params *DescribeAddressTransfersInput, optFns ...func(*Options)) (*DescribeAddressTransfersOutput, error) {
- if params == nil {
- params = &DescribeAddressTransfersInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeAddressTransfers", params, optFns, c.addOperationDescribeAddressTransfersMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeAddressTransfersOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeAddressTransfersInput struct {
-
- // The allocation IDs of Elastic IP addresses.
- AllocationIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The maximum number of address transfers to return in one page of results.
- MaxResults *int32
-
- // Specify the pagination token from a previous request to retrieve the next page
- // of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeAddressTransfersOutput struct {
-
- // The Elastic IP address transfer.
- AddressTransfers []types.AddressTransfer
-
- // Specify the pagination token from a previous request to retrieve the next page
- // of results.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeAddressTransfersMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeAddressTransfers{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeAddressTransfers{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeAddressTransfers"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeAddressTransfers(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeAddressTransfersPaginatorOptions is the paginator options for
-// DescribeAddressTransfers
-type DescribeAddressTransfersPaginatorOptions struct {
- // The maximum number of address transfers to return in one page of results.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeAddressTransfersPaginator is a paginator for DescribeAddressTransfers
-type DescribeAddressTransfersPaginator struct {
- options DescribeAddressTransfersPaginatorOptions
- client DescribeAddressTransfersAPIClient
- params *DescribeAddressTransfersInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeAddressTransfersPaginator returns a new
-// DescribeAddressTransfersPaginator
-func NewDescribeAddressTransfersPaginator(client DescribeAddressTransfersAPIClient, params *DescribeAddressTransfersInput, optFns ...func(*DescribeAddressTransfersPaginatorOptions)) *DescribeAddressTransfersPaginator {
- if params == nil {
- params = &DescribeAddressTransfersInput{}
- }
-
- options := DescribeAddressTransfersPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeAddressTransfersPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeAddressTransfersPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeAddressTransfers page.
-func (p *DescribeAddressTransfersPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeAddressTransfersOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeAddressTransfers(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeAddressTransfersAPIClient is a client that implements the
-// DescribeAddressTransfers operation.
-type DescribeAddressTransfersAPIClient interface {
- DescribeAddressTransfers(context.Context, *DescribeAddressTransfersInput, ...func(*Options)) (*DescribeAddressTransfersOutput, error)
-}
-
-var _ DescribeAddressTransfersAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeAddressTransfers(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeAddressTransfers",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAddresses.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAddresses.go
deleted file mode 100644
index 83a3a8f6c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAddresses.go
+++ /dev/null
@@ -1,197 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified Elastic IP addresses or all of your Elastic IP
-// addresses.
-func (c *Client) DescribeAddresses(ctx context.Context, params *DescribeAddressesInput, optFns ...func(*Options)) (*DescribeAddressesOutput, error) {
- if params == nil {
- params = &DescribeAddressesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeAddresses", params, optFns, c.addOperationDescribeAddressesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeAddressesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeAddressesInput struct {
-
- // Information about the allocation IDs.
- AllocationIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. Filter names and values are case-sensitive.
- //
- // - allocation-id - The allocation ID for the address.
- //
- // - association-id - The association ID for the address.
- //
- // - instance-id - The ID of the instance the address is associated with, if any.
- //
- // - network-border-group - A unique set of Availability Zones, Local Zones, or
- // Wavelength Zones from where Amazon Web Services advertises IP addresses.
- //
- // - network-interface-id - The ID of the network interface that the address is
- // associated with, if any.
- //
- // - network-interface-owner-id - The Amazon Web Services account ID of the owner.
- //
- // - private-ip-address - The private IP address associated with the Elastic IP
- // address.
- //
- // - public-ip - The Elastic IP address, or the carrier IP address.
- //
- // - tag : - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- Filters []types.Filter
-
- // One or more Elastic IP addresses.
- //
- // Default: Describes all your Elastic IP addresses.
- PublicIps []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeAddressesOutput struct {
-
- // Information about the Elastic IP addresses.
- Addresses []types.Address
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeAddressesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeAddresses{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeAddresses{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeAddresses"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeAddresses(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeAddresses(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeAddresses",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAddressesAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAddressesAttribute.go
deleted file mode 100644
index a9d046804..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAddressesAttribute.go
+++ /dev/null
@@ -1,275 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the attributes of the specified Elastic IP addresses. For
-// requirements, see [Using reverse DNS for email applications].
-//
-// [Using reverse DNS for email applications]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html#Using_Elastic_Addressing_Reverse_DNS
-func (c *Client) DescribeAddressesAttribute(ctx context.Context, params *DescribeAddressesAttributeInput, optFns ...func(*Options)) (*DescribeAddressesAttributeOutput, error) {
- if params == nil {
- params = &DescribeAddressesAttributeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeAddressesAttribute", params, optFns, c.addOperationDescribeAddressesAttributeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeAddressesAttributeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeAddressesAttributeInput struct {
-
- // [EC2-VPC] The allocation IDs.
- AllocationIds []string
-
- // The attribute of the IP address.
- Attribute types.AddressAttributeName
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeAddressesAttributeOutput struct {
-
- // Information about the IP addresses.
- Addresses []types.AddressAttribute
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeAddressesAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeAddressesAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeAddressesAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeAddressesAttribute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeAddressesAttribute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeAddressesAttributePaginatorOptions is the paginator options for
-// DescribeAddressesAttribute
-type DescribeAddressesAttributePaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeAddressesAttributePaginator is a paginator for
-// DescribeAddressesAttribute
-type DescribeAddressesAttributePaginator struct {
- options DescribeAddressesAttributePaginatorOptions
- client DescribeAddressesAttributeAPIClient
- params *DescribeAddressesAttributeInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeAddressesAttributePaginator returns a new
-// DescribeAddressesAttributePaginator
-func NewDescribeAddressesAttributePaginator(client DescribeAddressesAttributeAPIClient, params *DescribeAddressesAttributeInput, optFns ...func(*DescribeAddressesAttributePaginatorOptions)) *DescribeAddressesAttributePaginator {
- if params == nil {
- params = &DescribeAddressesAttributeInput{}
- }
-
- options := DescribeAddressesAttributePaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeAddressesAttributePaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeAddressesAttributePaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeAddressesAttribute page.
-func (p *DescribeAddressesAttributePaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeAddressesAttributeOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeAddressesAttribute(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeAddressesAttributeAPIClient is a client that implements the
-// DescribeAddressesAttribute operation.
-type DescribeAddressesAttributeAPIClient interface {
- DescribeAddressesAttribute(context.Context, *DescribeAddressesAttributeInput, ...func(*Options)) (*DescribeAddressesAttributeOutput, error)
-}
-
-var _ DescribeAddressesAttributeAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeAddressesAttribute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeAddressesAttribute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAggregateIdFormat.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAggregateIdFormat.go
deleted file mode 100644
index 3db068c43..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAggregateIdFormat.go
+++ /dev/null
@@ -1,177 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the longer ID format settings for all resource types in a specific
-// Region. This request is useful for performing a quick audit to determine whether
-// a specific Region is fully opted in for longer IDs (17-character IDs).
-//
-// This request only returns information about resource types that support longer
-// IDs.
-//
-// The following resource types support longer IDs: bundle | conversion-task |
-// customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association
-// | export-task | flow-log | image | import-task | instance | internet-gateway |
-// network-acl | network-acl-association | network-interface |
-// network-interface-attachment | prefix-list | reservation | route-table |
-// route-table-association | security-group | snapshot | subnet |
-// subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association |
-// vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway .
-func (c *Client) DescribeAggregateIdFormat(ctx context.Context, params *DescribeAggregateIdFormatInput, optFns ...func(*Options)) (*DescribeAggregateIdFormatOutput, error) {
- if params == nil {
- params = &DescribeAggregateIdFormatInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeAggregateIdFormat", params, optFns, c.addOperationDescribeAggregateIdFormatMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeAggregateIdFormatOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeAggregateIdFormatInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DescribeAggregateIdFormatOutput struct {
-
- // Information about each resource's ID format.
- Statuses []types.IdFormat
-
- // Indicates whether all resource types in the Region are configured to use longer
- // IDs. This value is only true if all users are configured to use longer IDs for
- // all resources types in the Region.
- UseLongIdsAggregated *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeAggregateIdFormatMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeAggregateIdFormat{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeAggregateIdFormat{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeAggregateIdFormat"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeAggregateIdFormat(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeAggregateIdFormat(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeAggregateIdFormat",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAvailabilityZones.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAvailabilityZones.go
deleted file mode 100644
index 24a09a759..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAvailabilityZones.go
+++ /dev/null
@@ -1,220 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the Availability Zones, Local Zones, and Wavelength Zones that are
-// available to you.
-//
-// For more information about Availability Zones, Local Zones, and Wavelength
-// Zones, see [Regions and zones]in the Amazon EC2 User Guide.
-//
-// The order of the elements in the response, including those within nested
-// structures, might vary. Applications should not assume the elements appear in a
-// particular order.
-//
-// [Regions and zones]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html
-func (c *Client) DescribeAvailabilityZones(ctx context.Context, params *DescribeAvailabilityZonesInput, optFns ...func(*Options)) (*DescribeAvailabilityZonesOutput, error) {
- if params == nil {
- params = &DescribeAvailabilityZonesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeAvailabilityZones", params, optFns, c.addOperationDescribeAvailabilityZonesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeAvailabilityZonesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeAvailabilityZonesInput struct {
-
- // Include all Availability Zones, Local Zones, and Wavelength Zones regardless of
- // your opt-in status.
- //
- // If you do not use this parameter, the results include only the zones for the
- // Regions where you have chosen the option to opt in.
- AllAvailabilityZones *bool
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - group-long-name - The long name of the zone group for the Availability Zone
- // (for example, US West (Oregon) 1 ), the Local Zone (for example, for Zone
- // group us-west-2-lax-1 , it is US West (Los Angeles) , or the Wavelength Zone
- // (for example, for Zone group us-east-1-wl1 , it is US East (Verizon) .
- //
- // - group-name - The name of the zone group for the Availability Zone (for
- // example, us-east-1-zg-1 ), the Local Zone (for example, us-west-2-lax-1 ), or
- // the Wavelength Zone (for example, us-east-1-wl1 ).
- //
- // - message - The Zone message.
- //
- // - opt-in-status - The opt-in status ( opted-in | not-opted-in |
- // opt-in-not-required ).
- //
- // - parent-zone-id - The ID of the zone that handles some of the Local Zone and
- // Wavelength Zone control plane operations, such as API calls.
- //
- // - parent-zone-name - The ID of the zone that handles some of the Local Zone
- // and Wavelength Zone control plane operations, such as API calls.
- //
- // - region-name - The name of the Region for the Zone (for example, us-east-1 ).
- //
- // - state - The state of the Availability Zone, the Local Zone, or the
- // Wavelength Zone ( available | unavailable | constrained ).
- //
- // - zone-id - The ID of the Availability Zone (for example, use1-az1 ), the
- // Local Zone (for example, usw2-lax1-az1 ), or the Wavelength Zone (for example,
- // us-east-1-wl1-bos-wlz-1 ).
- //
- // - zone-name - The name of the Availability Zone (for example, us-east-1a ),
- // the Local Zone (for example, us-west-2-lax-1a ), or the Wavelength Zone (for
- // example, us-east-1-wl1-bos-wlz-1 ).
- //
- // - zone-type - The type of zone ( availability-zone | local-zone |
- // wavelength-zone ).
- Filters []types.Filter
-
- // The IDs of the Availability Zones, Local Zones, and Wavelength Zones.
- ZoneIds []string
-
- // The names of the Availability Zones, Local Zones, and Wavelength Zones.
- ZoneNames []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeAvailabilityZonesOutput struct {
-
- // Information about the Availability Zones, Local Zones, and Wavelength Zones.
- AvailabilityZones []types.AvailabilityZone
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeAvailabilityZonesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeAvailabilityZones{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeAvailabilityZones{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeAvailabilityZones"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeAvailabilityZones(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeAvailabilityZones(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeAvailabilityZones",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAwsNetworkPerformanceMetricSubscriptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAwsNetworkPerformanceMetricSubscriptions.go
deleted file mode 100644
index b5fda910f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAwsNetworkPerformanceMetricSubscriptions.go
+++ /dev/null
@@ -1,270 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the current Infrastructure Performance metric subscriptions.
-func (c *Client) DescribeAwsNetworkPerformanceMetricSubscriptions(ctx context.Context, params *DescribeAwsNetworkPerformanceMetricSubscriptionsInput, optFns ...func(*Options)) (*DescribeAwsNetworkPerformanceMetricSubscriptionsOutput, error) {
- if params == nil {
- params = &DescribeAwsNetworkPerformanceMetricSubscriptionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeAwsNetworkPerformanceMetricSubscriptions", params, optFns, c.addOperationDescribeAwsNetworkPerformanceMetricSubscriptionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeAwsNetworkPerformanceMetricSubscriptionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeAwsNetworkPerformanceMetricSubscriptionsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeAwsNetworkPerformanceMetricSubscriptionsOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Describes the current Infrastructure Performance subscriptions.
- Subscriptions []types.Subscription
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeAwsNetworkPerformanceMetricSubscriptionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeAwsNetworkPerformanceMetricSubscriptions{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeAwsNetworkPerformanceMetricSubscriptions{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeAwsNetworkPerformanceMetricSubscriptions"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeAwsNetworkPerformanceMetricSubscriptions(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeAwsNetworkPerformanceMetricSubscriptionsPaginatorOptions is the
-// paginator options for DescribeAwsNetworkPerformanceMetricSubscriptions
-type DescribeAwsNetworkPerformanceMetricSubscriptionsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeAwsNetworkPerformanceMetricSubscriptionsPaginator is a paginator for
-// DescribeAwsNetworkPerformanceMetricSubscriptions
-type DescribeAwsNetworkPerformanceMetricSubscriptionsPaginator struct {
- options DescribeAwsNetworkPerformanceMetricSubscriptionsPaginatorOptions
- client DescribeAwsNetworkPerformanceMetricSubscriptionsAPIClient
- params *DescribeAwsNetworkPerformanceMetricSubscriptionsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeAwsNetworkPerformanceMetricSubscriptionsPaginator returns a new
-// DescribeAwsNetworkPerformanceMetricSubscriptionsPaginator
-func NewDescribeAwsNetworkPerformanceMetricSubscriptionsPaginator(client DescribeAwsNetworkPerformanceMetricSubscriptionsAPIClient, params *DescribeAwsNetworkPerformanceMetricSubscriptionsInput, optFns ...func(*DescribeAwsNetworkPerformanceMetricSubscriptionsPaginatorOptions)) *DescribeAwsNetworkPerformanceMetricSubscriptionsPaginator {
- if params == nil {
- params = &DescribeAwsNetworkPerformanceMetricSubscriptionsInput{}
- }
-
- options := DescribeAwsNetworkPerformanceMetricSubscriptionsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeAwsNetworkPerformanceMetricSubscriptionsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeAwsNetworkPerformanceMetricSubscriptionsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeAwsNetworkPerformanceMetricSubscriptions
-// page.
-func (p *DescribeAwsNetworkPerformanceMetricSubscriptionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeAwsNetworkPerformanceMetricSubscriptionsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeAwsNetworkPerformanceMetricSubscriptions(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeAwsNetworkPerformanceMetricSubscriptionsAPIClient is a client that
-// implements the DescribeAwsNetworkPerformanceMetricSubscriptions operation.
-type DescribeAwsNetworkPerformanceMetricSubscriptionsAPIClient interface {
- DescribeAwsNetworkPerformanceMetricSubscriptions(context.Context, *DescribeAwsNetworkPerformanceMetricSubscriptionsInput, ...func(*Options)) (*DescribeAwsNetworkPerformanceMetricSubscriptionsOutput, error)
-}
-
-var _ DescribeAwsNetworkPerformanceMetricSubscriptionsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeAwsNetworkPerformanceMetricSubscriptions(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeAwsNetworkPerformanceMetricSubscriptions",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeBundleTasks.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeBundleTasks.go
deleted file mode 100644
index 96cd8f1d4..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeBundleTasks.go
+++ /dev/null
@@ -1,415 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithytime "github.com/aws/smithy-go/time"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- smithywaiter "github.com/aws/smithy-go/waiter"
- "time"
-)
-
-// Describes the specified bundle tasks or all of your bundle tasks.
-//
-// Completed bundle tasks are listed for only a limited time. If your bundle task
-// is no longer in the list, you can still register an AMI from it. Just use
-// RegisterImage with the Amazon S3 bucket name and image manifest name you
-// provided to the bundle task.
-//
-// The order of the elements in the response, including those within nested
-// structures, might vary. Applications should not assume the elements appear in a
-// particular order.
-func (c *Client) DescribeBundleTasks(ctx context.Context, params *DescribeBundleTasksInput, optFns ...func(*Options)) (*DescribeBundleTasksOutput, error) {
- if params == nil {
- params = &DescribeBundleTasksInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeBundleTasks", params, optFns, c.addOperationDescribeBundleTasksMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeBundleTasksOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeBundleTasksInput struct {
-
- // The bundle task IDs.
- //
- // Default: Describes all your bundle tasks.
- BundleIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - bundle-id - The ID of the bundle task.
- //
- // - error-code - If the task failed, the error code returned.
- //
- // - error-message - If the task failed, the error message returned.
- //
- // - instance-id - The ID of the instance.
- //
- // - progress - The level of task completion, as a percentage (for example, 20%).
- //
- // - s3-bucket - The Amazon S3 bucket to store the AMI.
- //
- // - s3-prefix - The beginning of the AMI name.
- //
- // - start-time - The time the task started (for example,
- // 2013-09-15T17:15:20.000Z).
- //
- // - state - The state of the task ( pending | waiting-for-shutdown | bundling |
- // storing | cancelling | complete | failed ).
- //
- // - update-time - The time of the most recent update for the task.
- Filters []types.Filter
-
- noSmithyDocumentSerde
-}
-
-type DescribeBundleTasksOutput struct {
-
- // Information about the bundle tasks.
- BundleTasks []types.BundleTask
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeBundleTasksMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeBundleTasks{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeBundleTasks{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeBundleTasks"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeBundleTasks(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// BundleTaskCompleteWaiterOptions are waiter options for BundleTaskCompleteWaiter
-type BundleTaskCompleteWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // BundleTaskCompleteWaiter will use default minimum delay of 15 seconds. Note that
- // MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, BundleTaskCompleteWaiter will use default max delay of 120 seconds.
- // Note that MaxDelay must resolve to value greater than or equal to the MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeBundleTasksInput, *DescribeBundleTasksOutput, error) (bool, error)
-}
-
-// BundleTaskCompleteWaiter defines the waiters for BundleTaskComplete
-type BundleTaskCompleteWaiter struct {
- client DescribeBundleTasksAPIClient
-
- options BundleTaskCompleteWaiterOptions
-}
-
-// NewBundleTaskCompleteWaiter constructs a BundleTaskCompleteWaiter.
-func NewBundleTaskCompleteWaiter(client DescribeBundleTasksAPIClient, optFns ...func(*BundleTaskCompleteWaiterOptions)) *BundleTaskCompleteWaiter {
- options := BundleTaskCompleteWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = bundleTaskCompleteStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &BundleTaskCompleteWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for BundleTaskComplete waiter. The maxWaitDur is
-// the maximum wait duration the waiter will wait. The maxWaitDur is required and
-// must be greater than zero.
-func (w *BundleTaskCompleteWaiter) Wait(ctx context.Context, params *DescribeBundleTasksInput, maxWaitDur time.Duration, optFns ...func(*BundleTaskCompleteWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for BundleTaskComplete waiter and
-// returns the output of the successful operation. The maxWaitDur is the maximum
-// wait duration the waiter will wait. The maxWaitDur is required and must be
-// greater than zero.
-func (w *BundleTaskCompleteWaiter) WaitForOutput(ctx context.Context, params *DescribeBundleTasksInput, maxWaitDur time.Duration, optFns ...func(*BundleTaskCompleteWaiterOptions)) (*DescribeBundleTasksOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeBundleTasks(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for BundleTaskComplete waiter")
-}
-
-func bundleTaskCompleteStateRetryable(ctx context.Context, input *DescribeBundleTasksInput, output *DescribeBundleTasksOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.BundleTasks
- var v2 []types.BundleTaskState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "complete"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err == nil {
- v1 := output.BundleTasks
- var v2 []types.BundleTaskState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "failed"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// DescribeBundleTasksAPIClient is a client that implements the
-// DescribeBundleTasks operation.
-type DescribeBundleTasksAPIClient interface {
- DescribeBundleTasks(context.Context, *DescribeBundleTasksInput, ...func(*Options)) (*DescribeBundleTasksOutput, error)
-}
-
-var _ DescribeBundleTasksAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeBundleTasks(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeBundleTasks",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeByoipCidrs.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeByoipCidrs.go
deleted file mode 100644
index 4fb42b255..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeByoipCidrs.go
+++ /dev/null
@@ -1,272 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the IP address ranges that were specified in calls to ProvisionByoipCidr.
-//
-// To describe the address pools that were created when you provisioned the
-// address ranges, use DescribePublicIpv4Poolsor DescribeIpv6Pools.
-func (c *Client) DescribeByoipCidrs(ctx context.Context, params *DescribeByoipCidrsInput, optFns ...func(*Options)) (*DescribeByoipCidrsOutput, error) {
- if params == nil {
- params = &DescribeByoipCidrsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeByoipCidrs", params, optFns, c.addOperationDescribeByoipCidrsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeByoipCidrsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeByoipCidrsInput struct {
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- //
- // This member is required.
- MaxResults *int32
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeByoipCidrsOutput struct {
-
- // Information about your address ranges.
- ByoipCidrs []types.ByoipCidr
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeByoipCidrsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeByoipCidrs{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeByoipCidrs{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeByoipCidrs"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDescribeByoipCidrsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeByoipCidrs(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeByoipCidrsPaginatorOptions is the paginator options for
-// DescribeByoipCidrs
-type DescribeByoipCidrsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeByoipCidrsPaginator is a paginator for DescribeByoipCidrs
-type DescribeByoipCidrsPaginator struct {
- options DescribeByoipCidrsPaginatorOptions
- client DescribeByoipCidrsAPIClient
- params *DescribeByoipCidrsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeByoipCidrsPaginator returns a new DescribeByoipCidrsPaginator
-func NewDescribeByoipCidrsPaginator(client DescribeByoipCidrsAPIClient, params *DescribeByoipCidrsInput, optFns ...func(*DescribeByoipCidrsPaginatorOptions)) *DescribeByoipCidrsPaginator {
- if params == nil {
- params = &DescribeByoipCidrsInput{}
- }
-
- options := DescribeByoipCidrsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeByoipCidrsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeByoipCidrsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeByoipCidrs page.
-func (p *DescribeByoipCidrsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeByoipCidrsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeByoipCidrs(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeByoipCidrsAPIClient is a client that implements the DescribeByoipCidrs
-// operation.
-type DescribeByoipCidrsAPIClient interface {
- DescribeByoipCidrs(context.Context, *DescribeByoipCidrsInput, ...func(*Options)) (*DescribeByoipCidrsOutput, error)
-}
-
-var _ DescribeByoipCidrsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeByoipCidrs(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeByoipCidrs",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockExtensionHistory.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockExtensionHistory.go
deleted file mode 100644
index 587de5caf..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockExtensionHistory.go
+++ /dev/null
@@ -1,294 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the events for the specified Capacity Block extension during the
-// specified time.
-func (c *Client) DescribeCapacityBlockExtensionHistory(ctx context.Context, params *DescribeCapacityBlockExtensionHistoryInput, optFns ...func(*Options)) (*DescribeCapacityBlockExtensionHistoryOutput, error) {
- if params == nil {
- params = &DescribeCapacityBlockExtensionHistoryInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeCapacityBlockExtensionHistory", params, optFns, c.addOperationDescribeCapacityBlockExtensionHistoryMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeCapacityBlockExtensionHistoryOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeCapacityBlockExtensionHistoryInput struct {
-
- // The IDs of Capacity Block reservations that you want to display the history for.
- CapacityReservationIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters
- //
- // - availability-zone - The Availability Zone of the extension.
- //
- // - availability-zone-id - The Availability Zone ID of the extension.
- //
- // - capacity-block-extension-offering-id - The ID of the extension offering.
- //
- // - capacity-block-extension-status - The status of the extension (
- // payment-pending | payment-failed | payment-succeeded ).
- //
- // - capacity-reservation-id - The reservation ID of the extension.
- //
- // - instance-type - The instance type of the extension.
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token to use to retrieve the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeCapacityBlockExtensionHistoryOutput struct {
-
- // Describes one or more of your Capacity Block extensions. The results describe
- // only the Capacity Block extensions in the Amazon Web Services Region that you're
- // currently using.
- CapacityBlockExtensions []types.CapacityBlockExtension
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeCapacityBlockExtensionHistoryMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeCapacityBlockExtensionHistory{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeCapacityBlockExtensionHistory{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeCapacityBlockExtensionHistory"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeCapacityBlockExtensionHistory(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeCapacityBlockExtensionHistoryPaginatorOptions is the paginator options
-// for DescribeCapacityBlockExtensionHistory
-type DescribeCapacityBlockExtensionHistoryPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeCapacityBlockExtensionHistoryPaginator is a paginator for
-// DescribeCapacityBlockExtensionHistory
-type DescribeCapacityBlockExtensionHistoryPaginator struct {
- options DescribeCapacityBlockExtensionHistoryPaginatorOptions
- client DescribeCapacityBlockExtensionHistoryAPIClient
- params *DescribeCapacityBlockExtensionHistoryInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeCapacityBlockExtensionHistoryPaginator returns a new
-// DescribeCapacityBlockExtensionHistoryPaginator
-func NewDescribeCapacityBlockExtensionHistoryPaginator(client DescribeCapacityBlockExtensionHistoryAPIClient, params *DescribeCapacityBlockExtensionHistoryInput, optFns ...func(*DescribeCapacityBlockExtensionHistoryPaginatorOptions)) *DescribeCapacityBlockExtensionHistoryPaginator {
- if params == nil {
- params = &DescribeCapacityBlockExtensionHistoryInput{}
- }
-
- options := DescribeCapacityBlockExtensionHistoryPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeCapacityBlockExtensionHistoryPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeCapacityBlockExtensionHistoryPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeCapacityBlockExtensionHistory page.
-func (p *DescribeCapacityBlockExtensionHistoryPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeCapacityBlockExtensionHistoryOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeCapacityBlockExtensionHistory(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeCapacityBlockExtensionHistoryAPIClient is a client that implements the
-// DescribeCapacityBlockExtensionHistory operation.
-type DescribeCapacityBlockExtensionHistoryAPIClient interface {
- DescribeCapacityBlockExtensionHistory(context.Context, *DescribeCapacityBlockExtensionHistoryInput, ...func(*Options)) (*DescribeCapacityBlockExtensionHistoryOutput, error)
-}
-
-var _ DescribeCapacityBlockExtensionHistoryAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeCapacityBlockExtensionHistory(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeCapacityBlockExtensionHistory",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockExtensionOfferings.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockExtensionOfferings.go
deleted file mode 100644
index e62032385..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockExtensionOfferings.go
+++ /dev/null
@@ -1,286 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes Capacity Block extension offerings available for purchase in the
-// Amazon Web Services Region that you're currently using.
-func (c *Client) DescribeCapacityBlockExtensionOfferings(ctx context.Context, params *DescribeCapacityBlockExtensionOfferingsInput, optFns ...func(*Options)) (*DescribeCapacityBlockExtensionOfferingsOutput, error) {
- if params == nil {
- params = &DescribeCapacityBlockExtensionOfferingsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeCapacityBlockExtensionOfferings", params, optFns, c.addOperationDescribeCapacityBlockExtensionOfferingsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeCapacityBlockExtensionOfferingsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeCapacityBlockExtensionOfferingsInput struct {
-
- // The duration of the Capacity Block extension offering in hours.
- //
- // This member is required.
- CapacityBlockExtensionDurationHours *int32
-
- // The ID of the Capacity reservation to be extended.
- //
- // This member is required.
- CapacityReservationId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token to use to retrieve the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeCapacityBlockExtensionOfferingsOutput struct {
-
- // The recommended Capacity Block extension offerings for the dates specified.
- CapacityBlockExtensionOfferings []types.CapacityBlockExtensionOffering
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeCapacityBlockExtensionOfferingsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeCapacityBlockExtensionOfferings{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeCapacityBlockExtensionOfferings{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeCapacityBlockExtensionOfferings"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDescribeCapacityBlockExtensionOfferingsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeCapacityBlockExtensionOfferings(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeCapacityBlockExtensionOfferingsPaginatorOptions is the paginator
-// options for DescribeCapacityBlockExtensionOfferings
-type DescribeCapacityBlockExtensionOfferingsPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeCapacityBlockExtensionOfferingsPaginator is a paginator for
-// DescribeCapacityBlockExtensionOfferings
-type DescribeCapacityBlockExtensionOfferingsPaginator struct {
- options DescribeCapacityBlockExtensionOfferingsPaginatorOptions
- client DescribeCapacityBlockExtensionOfferingsAPIClient
- params *DescribeCapacityBlockExtensionOfferingsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeCapacityBlockExtensionOfferingsPaginator returns a new
-// DescribeCapacityBlockExtensionOfferingsPaginator
-func NewDescribeCapacityBlockExtensionOfferingsPaginator(client DescribeCapacityBlockExtensionOfferingsAPIClient, params *DescribeCapacityBlockExtensionOfferingsInput, optFns ...func(*DescribeCapacityBlockExtensionOfferingsPaginatorOptions)) *DescribeCapacityBlockExtensionOfferingsPaginator {
- if params == nil {
- params = &DescribeCapacityBlockExtensionOfferingsInput{}
- }
-
- options := DescribeCapacityBlockExtensionOfferingsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeCapacityBlockExtensionOfferingsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeCapacityBlockExtensionOfferingsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeCapacityBlockExtensionOfferings page.
-func (p *DescribeCapacityBlockExtensionOfferingsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeCapacityBlockExtensionOfferingsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeCapacityBlockExtensionOfferings(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeCapacityBlockExtensionOfferingsAPIClient is a client that implements
-// the DescribeCapacityBlockExtensionOfferings operation.
-type DescribeCapacityBlockExtensionOfferingsAPIClient interface {
- DescribeCapacityBlockExtensionOfferings(context.Context, *DescribeCapacityBlockExtensionOfferingsInput, ...func(*Options)) (*DescribeCapacityBlockExtensionOfferingsOutput, error)
-}
-
-var _ DescribeCapacityBlockExtensionOfferingsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeCapacityBlockExtensionOfferings(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeCapacityBlockExtensionOfferings",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockOfferings.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockOfferings.go
deleted file mode 100644
index 7cee20c8c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockOfferings.go
+++ /dev/null
@@ -1,307 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Describes Capacity Block offerings available for purchase in the Amazon Web
-// Services Region that you're currently using. With Capacity Blocks, you can
-// purchase a specific GPU instance type or EC2 UltraServer for a period of time.
-//
-// To search for an available Capacity Block offering, you specify a reservation
-// duration and instance count.
-func (c *Client) DescribeCapacityBlockOfferings(ctx context.Context, params *DescribeCapacityBlockOfferingsInput, optFns ...func(*Options)) (*DescribeCapacityBlockOfferingsOutput, error) {
- if params == nil {
- params = &DescribeCapacityBlockOfferingsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeCapacityBlockOfferings", params, optFns, c.addOperationDescribeCapacityBlockOfferingsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeCapacityBlockOfferingsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeCapacityBlockOfferingsInput struct {
-
- // The reservation duration for the Capacity Block, in hours. You must specify the
- // duration in 1-day increments up 14 days, and in 7-day increments up to 182 days.
- //
- // This member is required.
- CapacityDurationHours *int32
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The latest end date for the Capacity Block offering.
- EndDateRange *time.Time
-
- // The number of instances for which to reserve capacity. Each Capacity Block can
- // have up to 64 instances, and you can have up to 256 instances across Capacity
- // Blocks.
- InstanceCount *int32
-
- // The type of instance for which the Capacity Block offering reserves capacity.
- InstanceType *string
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token to use to retrieve the next page of results.
- NextToken *string
-
- // The earliest start date for the Capacity Block offering.
- StartDateRange *time.Time
-
- // The number of EC2 UltraServers in the offerings.
- UltraserverCount *int32
-
- // The EC2 UltraServer type of the Capacity Block offerings.
- UltraserverType *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeCapacityBlockOfferingsOutput struct {
-
- // The recommended Capacity Block offering for the dates specified.
- CapacityBlockOfferings []types.CapacityBlockOffering
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeCapacityBlockOfferingsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeCapacityBlockOfferings{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeCapacityBlockOfferings{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeCapacityBlockOfferings"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDescribeCapacityBlockOfferingsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeCapacityBlockOfferings(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeCapacityBlockOfferingsPaginatorOptions is the paginator options for
-// DescribeCapacityBlockOfferings
-type DescribeCapacityBlockOfferingsPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeCapacityBlockOfferingsPaginator is a paginator for
-// DescribeCapacityBlockOfferings
-type DescribeCapacityBlockOfferingsPaginator struct {
- options DescribeCapacityBlockOfferingsPaginatorOptions
- client DescribeCapacityBlockOfferingsAPIClient
- params *DescribeCapacityBlockOfferingsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeCapacityBlockOfferingsPaginator returns a new
-// DescribeCapacityBlockOfferingsPaginator
-func NewDescribeCapacityBlockOfferingsPaginator(client DescribeCapacityBlockOfferingsAPIClient, params *DescribeCapacityBlockOfferingsInput, optFns ...func(*DescribeCapacityBlockOfferingsPaginatorOptions)) *DescribeCapacityBlockOfferingsPaginator {
- if params == nil {
- params = &DescribeCapacityBlockOfferingsInput{}
- }
-
- options := DescribeCapacityBlockOfferingsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeCapacityBlockOfferingsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeCapacityBlockOfferingsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeCapacityBlockOfferings page.
-func (p *DescribeCapacityBlockOfferingsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeCapacityBlockOfferingsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeCapacityBlockOfferings(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeCapacityBlockOfferingsAPIClient is a client that implements the
-// DescribeCapacityBlockOfferings operation.
-type DescribeCapacityBlockOfferingsAPIClient interface {
- DescribeCapacityBlockOfferings(context.Context, *DescribeCapacityBlockOfferingsInput, ...func(*Options)) (*DescribeCapacityBlockOfferingsOutput, error)
-}
-
-var _ DescribeCapacityBlockOfferingsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeCapacityBlockOfferings(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeCapacityBlockOfferings",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockStatus.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockStatus.go
deleted file mode 100644
index b129452fb..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockStatus.go
+++ /dev/null
@@ -1,282 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the availability of capacity for the specified Capacity blocks, or
-// all of your Capacity Blocks.
-func (c *Client) DescribeCapacityBlockStatus(ctx context.Context, params *DescribeCapacityBlockStatusInput, optFns ...func(*Options)) (*DescribeCapacityBlockStatusOutput, error) {
- if params == nil {
- params = &DescribeCapacityBlockStatusInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeCapacityBlockStatus", params, optFns, c.addOperationDescribeCapacityBlockStatusMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeCapacityBlockStatusOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeCapacityBlockStatusInput struct {
-
- // The ID of the Capacity Block.
- CapacityBlockIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - interconnect-status - The status of the interconnect for the Capacity Block (
- // ok | impaired | insufficient-data ).
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token to use to retrieve the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeCapacityBlockStatusOutput struct {
-
- // The availability of capacity for a Capacity Block.
- CapacityBlockStatuses []types.CapacityBlockStatus
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeCapacityBlockStatusMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeCapacityBlockStatus{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeCapacityBlockStatus{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeCapacityBlockStatus"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeCapacityBlockStatus(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeCapacityBlockStatusPaginatorOptions is the paginator options for
-// DescribeCapacityBlockStatus
-type DescribeCapacityBlockStatusPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeCapacityBlockStatusPaginator is a paginator for
-// DescribeCapacityBlockStatus
-type DescribeCapacityBlockStatusPaginator struct {
- options DescribeCapacityBlockStatusPaginatorOptions
- client DescribeCapacityBlockStatusAPIClient
- params *DescribeCapacityBlockStatusInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeCapacityBlockStatusPaginator returns a new
-// DescribeCapacityBlockStatusPaginator
-func NewDescribeCapacityBlockStatusPaginator(client DescribeCapacityBlockStatusAPIClient, params *DescribeCapacityBlockStatusInput, optFns ...func(*DescribeCapacityBlockStatusPaginatorOptions)) *DescribeCapacityBlockStatusPaginator {
- if params == nil {
- params = &DescribeCapacityBlockStatusInput{}
- }
-
- options := DescribeCapacityBlockStatusPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeCapacityBlockStatusPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeCapacityBlockStatusPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeCapacityBlockStatus page.
-func (p *DescribeCapacityBlockStatusPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeCapacityBlockStatusOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeCapacityBlockStatus(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeCapacityBlockStatusAPIClient is a client that implements the
-// DescribeCapacityBlockStatus operation.
-type DescribeCapacityBlockStatusAPIClient interface {
- DescribeCapacityBlockStatus(context.Context, *DescribeCapacityBlockStatusInput, ...func(*Options)) (*DescribeCapacityBlockStatusOutput, error)
-}
-
-var _ DescribeCapacityBlockStatusAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeCapacityBlockStatus(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeCapacityBlockStatus",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlocks.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlocks.go
deleted file mode 100644
index 7180b1949..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlocks.go
+++ /dev/null
@@ -1,296 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes details about Capacity Blocks in the Amazon Web Services Region that
-// you're currently using.
-func (c *Client) DescribeCapacityBlocks(ctx context.Context, params *DescribeCapacityBlocksInput, optFns ...func(*Options)) (*DescribeCapacityBlocksOutput, error) {
- if params == nil {
- params = &DescribeCapacityBlocksInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeCapacityBlocks", params, optFns, c.addOperationDescribeCapacityBlocksMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeCapacityBlocksOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeCapacityBlocksInput struct {
-
- // The IDs of the Capacity Blocks.
- CapacityBlockIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - capacity-block-id - The ID of the Capacity Block.
- //
- // - ultraserver-type - The Capacity Block type. The type can be instances or
- // ultraservers .
- //
- // - availability-zone - The Availability Zone of the Capacity Block.
- //
- // - start-date - The date and time at which the Capacity Block was started.
- //
- // - end-date - The date and time at which the Capacity Block expires. When a
- // Capacity Block expires, all instances in the Capacity Block are terminated.
- //
- // - create-date - The date and time at which the Capacity Block was created.
- //
- // - state - The state of the Capacity Block ( active | expired | unavailable |
- // cancelled | failed | scheduled | payment-pending | payment-failed ).
- //
- // - tags - The tags assigned to the Capacity Block.
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token to use to retrieve the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeCapacityBlocksOutput struct {
-
- // The Capacity Blocks.
- CapacityBlocks []types.CapacityBlock
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeCapacityBlocksMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeCapacityBlocks{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeCapacityBlocks{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeCapacityBlocks"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeCapacityBlocks(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeCapacityBlocksPaginatorOptions is the paginator options for
-// DescribeCapacityBlocks
-type DescribeCapacityBlocksPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeCapacityBlocksPaginator is a paginator for DescribeCapacityBlocks
-type DescribeCapacityBlocksPaginator struct {
- options DescribeCapacityBlocksPaginatorOptions
- client DescribeCapacityBlocksAPIClient
- params *DescribeCapacityBlocksInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeCapacityBlocksPaginator returns a new DescribeCapacityBlocksPaginator
-func NewDescribeCapacityBlocksPaginator(client DescribeCapacityBlocksAPIClient, params *DescribeCapacityBlocksInput, optFns ...func(*DescribeCapacityBlocksPaginatorOptions)) *DescribeCapacityBlocksPaginator {
- if params == nil {
- params = &DescribeCapacityBlocksInput{}
- }
-
- options := DescribeCapacityBlocksPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeCapacityBlocksPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeCapacityBlocksPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeCapacityBlocks page.
-func (p *DescribeCapacityBlocksPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeCapacityBlocksOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeCapacityBlocks(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeCapacityBlocksAPIClient is a client that implements the
-// DescribeCapacityBlocks operation.
-type DescribeCapacityBlocksAPIClient interface {
- DescribeCapacityBlocks(context.Context, *DescribeCapacityBlocksInput, ...func(*Options)) (*DescribeCapacityBlocksOutput, error)
-}
-
-var _ DescribeCapacityBlocksAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeCapacityBlocks(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeCapacityBlocks",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityReservationBillingRequests.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityReservationBillingRequests.go
deleted file mode 100644
index 4e4bff5ac..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityReservationBillingRequests.go
+++ /dev/null
@@ -1,307 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes a request to assign the billing of the unused capacity of a Capacity
-// Reservation. For more information, see [Billing assignment for shared Amazon EC2 Capacity Reservations].
-//
-// [Billing assignment for shared Amazon EC2 Capacity Reservations]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/transfer-billing.html
-func (c *Client) DescribeCapacityReservationBillingRequests(ctx context.Context, params *DescribeCapacityReservationBillingRequestsInput, optFns ...func(*Options)) (*DescribeCapacityReservationBillingRequestsOutput, error) {
- if params == nil {
- params = &DescribeCapacityReservationBillingRequestsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeCapacityReservationBillingRequests", params, optFns, c.addOperationDescribeCapacityReservationBillingRequestsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeCapacityReservationBillingRequestsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeCapacityReservationBillingRequestsInput struct {
-
- // Specify one of the following:
- //
- // - odcr-owner - If you are the Capacity Reservation owner, specify this value
- // to view requests that you have initiated. Not supported with the requested-by
- // filter.
- //
- // - unused-reservation-billing-owner - If you are the consumer account, specify
- // this value to view requests that have been sent to you. Not supported with the
- // unused-reservation-billing-owner filter.
- //
- // This member is required.
- Role types.CallerRole
-
- // The ID of the Capacity Reservation.
- CapacityReservationIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - status - The state of the request ( pending | accepted | rejected |
- // cancelled | revoked | expired ).
- //
- // - requested-by - The account ID of the Capacity Reservation owner that
- // initiated the request. Not supported if you specify requested-by for Role.
- //
- // - unused-reservation-billing-owner - The ID of the consumer account to which
- // the request was sent. Not supported if you specify
- // unused-reservation-billing-owner for Role.
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token to use to retrieve the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeCapacityReservationBillingRequestsOutput struct {
-
- // Information about the request.
- CapacityReservationBillingRequests []types.CapacityReservationBillingRequest
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeCapacityReservationBillingRequestsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeCapacityReservationBillingRequests{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeCapacityReservationBillingRequests{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeCapacityReservationBillingRequests"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDescribeCapacityReservationBillingRequestsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeCapacityReservationBillingRequests(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeCapacityReservationBillingRequestsPaginatorOptions is the paginator
-// options for DescribeCapacityReservationBillingRequests
-type DescribeCapacityReservationBillingRequestsPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeCapacityReservationBillingRequestsPaginator is a paginator for
-// DescribeCapacityReservationBillingRequests
-type DescribeCapacityReservationBillingRequestsPaginator struct {
- options DescribeCapacityReservationBillingRequestsPaginatorOptions
- client DescribeCapacityReservationBillingRequestsAPIClient
- params *DescribeCapacityReservationBillingRequestsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeCapacityReservationBillingRequestsPaginator returns a new
-// DescribeCapacityReservationBillingRequestsPaginator
-func NewDescribeCapacityReservationBillingRequestsPaginator(client DescribeCapacityReservationBillingRequestsAPIClient, params *DescribeCapacityReservationBillingRequestsInput, optFns ...func(*DescribeCapacityReservationBillingRequestsPaginatorOptions)) *DescribeCapacityReservationBillingRequestsPaginator {
- if params == nil {
- params = &DescribeCapacityReservationBillingRequestsInput{}
- }
-
- options := DescribeCapacityReservationBillingRequestsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeCapacityReservationBillingRequestsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeCapacityReservationBillingRequestsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeCapacityReservationBillingRequests page.
-func (p *DescribeCapacityReservationBillingRequestsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeCapacityReservationBillingRequestsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeCapacityReservationBillingRequests(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeCapacityReservationBillingRequestsAPIClient is a client that implements
-// the DescribeCapacityReservationBillingRequests operation.
-type DescribeCapacityReservationBillingRequestsAPIClient interface {
- DescribeCapacityReservationBillingRequests(context.Context, *DescribeCapacityReservationBillingRequestsInput, ...func(*Options)) (*DescribeCapacityReservationBillingRequestsOutput, error)
-}
-
-var _ DescribeCapacityReservationBillingRequestsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeCapacityReservationBillingRequests(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeCapacityReservationBillingRequests",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityReservationFleets.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityReservationFleets.go
deleted file mode 100644
index 1ed6c8482..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityReservationFleets.go
+++ /dev/null
@@ -1,289 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more Capacity Reservation Fleets.
-func (c *Client) DescribeCapacityReservationFleets(ctx context.Context, params *DescribeCapacityReservationFleetsInput, optFns ...func(*Options)) (*DescribeCapacityReservationFleetsOutput, error) {
- if params == nil {
- params = &DescribeCapacityReservationFleetsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeCapacityReservationFleets", params, optFns, c.addOperationDescribeCapacityReservationFleetsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeCapacityReservationFleetsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeCapacityReservationFleetsInput struct {
-
- // The IDs of the Capacity Reservation Fleets to describe.
- CapacityReservationFleetIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - state - The state of the Fleet ( submitted | modifying | active |
- // partially_fulfilled | expiring | expired | cancelling | cancelled | failed ).
- //
- // - instance-match-criteria - The instance matching criteria for the Fleet. Only
- // open is supported.
- //
- // - tenancy - The tenancy of the Fleet ( default | dedicated ).
- //
- // - allocation-strategy - The allocation strategy used by the Fleet. Only
- // prioritized is supported.
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token to use to retrieve the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeCapacityReservationFleetsOutput struct {
-
- // Information about the Capacity Reservation Fleets.
- CapacityReservationFleets []types.CapacityReservationFleet
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeCapacityReservationFleetsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeCapacityReservationFleets{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeCapacityReservationFleets{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeCapacityReservationFleets"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeCapacityReservationFleets(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeCapacityReservationFleetsPaginatorOptions is the paginator options for
-// DescribeCapacityReservationFleets
-type DescribeCapacityReservationFleetsPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeCapacityReservationFleetsPaginator is a paginator for
-// DescribeCapacityReservationFleets
-type DescribeCapacityReservationFleetsPaginator struct {
- options DescribeCapacityReservationFleetsPaginatorOptions
- client DescribeCapacityReservationFleetsAPIClient
- params *DescribeCapacityReservationFleetsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeCapacityReservationFleetsPaginator returns a new
-// DescribeCapacityReservationFleetsPaginator
-func NewDescribeCapacityReservationFleetsPaginator(client DescribeCapacityReservationFleetsAPIClient, params *DescribeCapacityReservationFleetsInput, optFns ...func(*DescribeCapacityReservationFleetsPaginatorOptions)) *DescribeCapacityReservationFleetsPaginator {
- if params == nil {
- params = &DescribeCapacityReservationFleetsInput{}
- }
-
- options := DescribeCapacityReservationFleetsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeCapacityReservationFleetsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeCapacityReservationFleetsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeCapacityReservationFleets page.
-func (p *DescribeCapacityReservationFleetsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeCapacityReservationFleetsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeCapacityReservationFleets(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeCapacityReservationFleetsAPIClient is a client that implements the
-// DescribeCapacityReservationFleets operation.
-type DescribeCapacityReservationFleetsAPIClient interface {
- DescribeCapacityReservationFleets(context.Context, *DescribeCapacityReservationFleetsInput, ...func(*Options)) (*DescribeCapacityReservationFleetsOutput, error)
-}
-
-var _ DescribeCapacityReservationFleetsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeCapacityReservationFleets(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeCapacityReservationFleets",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityReservations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityReservations.go
deleted file mode 100644
index b07e2047a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityReservations.go
+++ /dev/null
@@ -1,355 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more of your Capacity Reservations. The results describe only
-// the Capacity Reservations in the Amazon Web Services Region that you're
-// currently using.
-func (c *Client) DescribeCapacityReservations(ctx context.Context, params *DescribeCapacityReservationsInput, optFns ...func(*Options)) (*DescribeCapacityReservationsOutput, error) {
- if params == nil {
- params = &DescribeCapacityReservationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeCapacityReservations", params, optFns, c.addOperationDescribeCapacityReservationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeCapacityReservationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeCapacityReservationsInput struct {
-
- // The ID of the Capacity Reservation.
- CapacityReservationIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - instance-type - The type of instance for which the Capacity Reservation
- // reserves capacity.
- //
- // - owner-id - The ID of the Amazon Web Services account that owns the Capacity
- // Reservation.
- //
- // - instance-platform - The type of operating system for which the Capacity
- // Reservation reserves capacity.
- //
- // - availability-zone - The Availability Zone of the Capacity Reservation.
- //
- // - tenancy - Indicates the tenancy of the Capacity Reservation. A Capacity
- // Reservation can have one of the following tenancy settings:
- //
- // - default - The Capacity Reservation is created on hardware that is shared
- // with other Amazon Web Services accounts.
- //
- // - dedicated - The Capacity Reservation is created on single-tenant hardware
- // that is dedicated to a single Amazon Web Services account.
- //
- // - outpost-arn - The Amazon Resource Name (ARN) of the Outpost on which the
- // Capacity Reservation was created.
- //
- // - state - The current state of the Capacity Reservation. A Capacity
- // Reservation can be in one of the following states:
- //
- // - active - The Capacity Reservation is active and the capacity is available
- // for your use.
- //
- // - expired - The Capacity Reservation expired automatically at the date and
- // time specified in your request. The reserved capacity is no longer available for
- // your use.
- //
- // - cancelled - The Capacity Reservation was cancelled. The reserved capacity is
- // no longer available for your use.
- //
- // - pending - The Capacity Reservation request was successful but the capacity
- // provisioning is still pending.
- //
- // - failed - The Capacity Reservation request has failed. A request might fail
- // due to invalid request parameters, capacity constraints, or instance limit
- // constraints. Failed requests are retained for 60 minutes.
- //
- // - start-date - The date and time at which the Capacity Reservation was started.
- //
- // - end-date - The date and time at which the Capacity Reservation expires. When
- // a Capacity Reservation expires, the reserved capacity is released and you can no
- // longer launch instances into it. The Capacity Reservation's state changes to
- // expired when it reaches its end date and time.
- //
- // - end-date-type - Indicates the way in which the Capacity Reservation ends. A
- // Capacity Reservation can have one of the following end types:
- //
- // - unlimited - The Capacity Reservation remains active until you explicitly
- // cancel it.
- //
- // - limited - The Capacity Reservation expires automatically at a specified date
- // and time.
- //
- // - instance-match-criteria - Indicates the type of instance launches that the
- // Capacity Reservation accepts. The options include:
- //
- // - open - The Capacity Reservation accepts all instances that have matching
- // attributes (instance type, platform, and Availability Zone). Instances that have
- // matching attributes launch into the Capacity Reservation automatically without
- // specifying any additional parameters.
- //
- // - targeted - The Capacity Reservation only accepts instances that have
- // matching attributes (instance type, platform, and Availability Zone), and
- // explicitly target the Capacity Reservation. This ensures that only permitted
- // instances can use the reserved capacity.
- //
- // - placement-group-arn - The ARN of the cluster placement group in which the
- // Capacity Reservation was created.
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token to use to retrieve the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeCapacityReservationsOutput struct {
-
- // Information about the Capacity Reservations.
- CapacityReservations []types.CapacityReservation
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeCapacityReservationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeCapacityReservations{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeCapacityReservations{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeCapacityReservations"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeCapacityReservations(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeCapacityReservationsPaginatorOptions is the paginator options for
-// DescribeCapacityReservations
-type DescribeCapacityReservationsPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeCapacityReservationsPaginator is a paginator for
-// DescribeCapacityReservations
-type DescribeCapacityReservationsPaginator struct {
- options DescribeCapacityReservationsPaginatorOptions
- client DescribeCapacityReservationsAPIClient
- params *DescribeCapacityReservationsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeCapacityReservationsPaginator returns a new
-// DescribeCapacityReservationsPaginator
-func NewDescribeCapacityReservationsPaginator(client DescribeCapacityReservationsAPIClient, params *DescribeCapacityReservationsInput, optFns ...func(*DescribeCapacityReservationsPaginatorOptions)) *DescribeCapacityReservationsPaginator {
- if params == nil {
- params = &DescribeCapacityReservationsInput{}
- }
-
- options := DescribeCapacityReservationsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeCapacityReservationsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeCapacityReservationsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeCapacityReservations page.
-func (p *DescribeCapacityReservationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeCapacityReservationsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeCapacityReservations(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeCapacityReservationsAPIClient is a client that implements the
-// DescribeCapacityReservations operation.
-type DescribeCapacityReservationsAPIClient interface {
- DescribeCapacityReservations(context.Context, *DescribeCapacityReservationsInput, ...func(*Options)) (*DescribeCapacityReservationsOutput, error)
-}
-
-var _ DescribeCapacityReservationsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeCapacityReservations(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeCapacityReservations",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCarrierGateways.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCarrierGateways.go
deleted file mode 100644
index 2adcf8c45..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCarrierGateways.go
+++ /dev/null
@@ -1,289 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more of your carrier gateways.
-func (c *Client) DescribeCarrierGateways(ctx context.Context, params *DescribeCarrierGatewaysInput, optFns ...func(*Options)) (*DescribeCarrierGatewaysOutput, error) {
- if params == nil {
- params = &DescribeCarrierGatewaysInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeCarrierGateways", params, optFns, c.addOperationDescribeCarrierGatewaysMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeCarrierGatewaysOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeCarrierGatewaysInput struct {
-
- // One or more carrier gateway IDs.
- CarrierGatewayIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - carrier-gateway-id - The ID of the carrier gateway.
- //
- // - state - The state of the carrier gateway ( pending | failed | available |
- // deleting | deleted ).
- //
- // - owner-id - The Amazon Web Services account ID of the owner of the carrier
- // gateway.
- //
- // - tag : - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- //
- // - vpc-id - The ID of the VPC associated with the carrier gateway.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeCarrierGatewaysOutput struct {
-
- // Information about the carrier gateway.
- CarrierGateways []types.CarrierGateway
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeCarrierGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeCarrierGateways{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeCarrierGateways{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeCarrierGateways"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeCarrierGateways(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeCarrierGatewaysPaginatorOptions is the paginator options for
-// DescribeCarrierGateways
-type DescribeCarrierGatewaysPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeCarrierGatewaysPaginator is a paginator for DescribeCarrierGateways
-type DescribeCarrierGatewaysPaginator struct {
- options DescribeCarrierGatewaysPaginatorOptions
- client DescribeCarrierGatewaysAPIClient
- params *DescribeCarrierGatewaysInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeCarrierGatewaysPaginator returns a new
-// DescribeCarrierGatewaysPaginator
-func NewDescribeCarrierGatewaysPaginator(client DescribeCarrierGatewaysAPIClient, params *DescribeCarrierGatewaysInput, optFns ...func(*DescribeCarrierGatewaysPaginatorOptions)) *DescribeCarrierGatewaysPaginator {
- if params == nil {
- params = &DescribeCarrierGatewaysInput{}
- }
-
- options := DescribeCarrierGatewaysPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeCarrierGatewaysPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeCarrierGatewaysPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeCarrierGateways page.
-func (p *DescribeCarrierGatewaysPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeCarrierGatewaysOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeCarrierGateways(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeCarrierGatewaysAPIClient is a client that implements the
-// DescribeCarrierGateways operation.
-type DescribeCarrierGatewaysAPIClient interface {
- DescribeCarrierGateways(context.Context, *DescribeCarrierGatewaysInput, ...func(*Options)) (*DescribeCarrierGatewaysOutput, error)
-}
-
-var _ DescribeCarrierGatewaysAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeCarrierGateways(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeCarrierGateways",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClassicLinkInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClassicLinkInstances.go
deleted file mode 100644
index 6d7aa7170..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClassicLinkInstances.go
+++ /dev/null
@@ -1,302 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// This action is deprecated.
-//
-// Describes your linked EC2-Classic instances. This request only returns
-// information about EC2-Classic instances linked to a VPC through ClassicLink. You
-// cannot use this request to return information about other instances.
-func (c *Client) DescribeClassicLinkInstances(ctx context.Context, params *DescribeClassicLinkInstancesInput, optFns ...func(*Options)) (*DescribeClassicLinkInstancesOutput, error) {
- if params == nil {
- params = &DescribeClassicLinkInstancesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeClassicLinkInstances", params, optFns, c.addOperationDescribeClassicLinkInstancesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeClassicLinkInstancesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeClassicLinkInstancesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - group-id - The ID of a VPC security group that's associated with the
- // instance.
- //
- // - instance-id - The ID of the instance.
- //
- // - tag - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- //
- // - vpc-id - The ID of the VPC to which the instance is linked.
- Filters []types.Filter
-
- // The instance IDs. Must be instances linked to a VPC through ClassicLink.
- InstanceIds []string
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // Constraint: If the value is greater than 1000, we return only 1000 items.
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeClassicLinkInstancesOutput struct {
-
- // Information about one or more linked EC2-Classic instances.
- Instances []types.ClassicLinkInstance
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeClassicLinkInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeClassicLinkInstances{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeClassicLinkInstances{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeClassicLinkInstances"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeClassicLinkInstances(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeClassicLinkInstancesPaginatorOptions is the paginator options for
-// DescribeClassicLinkInstances
-type DescribeClassicLinkInstancesPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // Constraint: If the value is greater than 1000, we return only 1000 items.
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeClassicLinkInstancesPaginator is a paginator for
-// DescribeClassicLinkInstances
-type DescribeClassicLinkInstancesPaginator struct {
- options DescribeClassicLinkInstancesPaginatorOptions
- client DescribeClassicLinkInstancesAPIClient
- params *DescribeClassicLinkInstancesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeClassicLinkInstancesPaginator returns a new
-// DescribeClassicLinkInstancesPaginator
-func NewDescribeClassicLinkInstancesPaginator(client DescribeClassicLinkInstancesAPIClient, params *DescribeClassicLinkInstancesInput, optFns ...func(*DescribeClassicLinkInstancesPaginatorOptions)) *DescribeClassicLinkInstancesPaginator {
- if params == nil {
- params = &DescribeClassicLinkInstancesInput{}
- }
-
- options := DescribeClassicLinkInstancesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeClassicLinkInstancesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeClassicLinkInstancesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeClassicLinkInstances page.
-func (p *DescribeClassicLinkInstancesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeClassicLinkInstancesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeClassicLinkInstances(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeClassicLinkInstancesAPIClient is a client that implements the
-// DescribeClassicLinkInstances operation.
-type DescribeClassicLinkInstancesAPIClient interface {
- DescribeClassicLinkInstances(context.Context, *DescribeClassicLinkInstancesInput, ...func(*Options)) (*DescribeClassicLinkInstancesOutput, error)
-}
-
-var _ DescribeClassicLinkInstancesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeClassicLinkInstances(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeClassicLinkInstances",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnAuthorizationRules.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnAuthorizationRules.go
deleted file mode 100644
index 65e292c7b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnAuthorizationRules.go
+++ /dev/null
@@ -1,287 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the authorization rules for a specified Client VPN endpoint.
-func (c *Client) DescribeClientVpnAuthorizationRules(ctx context.Context, params *DescribeClientVpnAuthorizationRulesInput, optFns ...func(*Options)) (*DescribeClientVpnAuthorizationRulesOutput, error) {
- if params == nil {
- params = &DescribeClientVpnAuthorizationRulesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeClientVpnAuthorizationRules", params, optFns, c.addOperationDescribeClientVpnAuthorizationRulesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeClientVpnAuthorizationRulesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeClientVpnAuthorizationRulesInput struct {
-
- // The ID of the Client VPN endpoint.
- //
- // This member is required.
- ClientVpnEndpointId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. Filter names and values are case-sensitive.
- //
- // - description - The description of the authorization rule.
- //
- // - destination-cidr - The CIDR of the network to which the authorization rule
- // applies.
- //
- // - group-id - The ID of the Active Directory group to which the authorization
- // rule grants access.
- Filters []types.Filter
-
- // The maximum number of results to return for the request in a single page. The
- // remaining results can be seen by sending another request with the nextToken
- // value.
- MaxResults *int32
-
- // The token to retrieve the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeClientVpnAuthorizationRulesOutput struct {
-
- // Information about the authorization rules.
- AuthorizationRules []types.AuthorizationRule
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeClientVpnAuthorizationRulesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeClientVpnAuthorizationRules{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeClientVpnAuthorizationRules"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDescribeClientVpnAuthorizationRulesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeClientVpnAuthorizationRules(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeClientVpnAuthorizationRulesPaginatorOptions is the paginator options
-// for DescribeClientVpnAuthorizationRules
-type DescribeClientVpnAuthorizationRulesPaginatorOptions struct {
- // The maximum number of results to return for the request in a single page. The
- // remaining results can be seen by sending another request with the nextToken
- // value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeClientVpnAuthorizationRulesPaginator is a paginator for
-// DescribeClientVpnAuthorizationRules
-type DescribeClientVpnAuthorizationRulesPaginator struct {
- options DescribeClientVpnAuthorizationRulesPaginatorOptions
- client DescribeClientVpnAuthorizationRulesAPIClient
- params *DescribeClientVpnAuthorizationRulesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeClientVpnAuthorizationRulesPaginator returns a new
-// DescribeClientVpnAuthorizationRulesPaginator
-func NewDescribeClientVpnAuthorizationRulesPaginator(client DescribeClientVpnAuthorizationRulesAPIClient, params *DescribeClientVpnAuthorizationRulesInput, optFns ...func(*DescribeClientVpnAuthorizationRulesPaginatorOptions)) *DescribeClientVpnAuthorizationRulesPaginator {
- if params == nil {
- params = &DescribeClientVpnAuthorizationRulesInput{}
- }
-
- options := DescribeClientVpnAuthorizationRulesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeClientVpnAuthorizationRulesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeClientVpnAuthorizationRulesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeClientVpnAuthorizationRules page.
-func (p *DescribeClientVpnAuthorizationRulesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeClientVpnAuthorizationRulesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeClientVpnAuthorizationRules(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeClientVpnAuthorizationRulesAPIClient is a client that implements the
-// DescribeClientVpnAuthorizationRules operation.
-type DescribeClientVpnAuthorizationRulesAPIClient interface {
- DescribeClientVpnAuthorizationRules(context.Context, *DescribeClientVpnAuthorizationRulesInput, ...func(*Options)) (*DescribeClientVpnAuthorizationRulesOutput, error)
-}
-
-var _ DescribeClientVpnAuthorizationRulesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeClientVpnAuthorizationRules(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeClientVpnAuthorizationRules",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnConnections.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnConnections.go
deleted file mode 100644
index f6029c655..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnConnections.go
+++ /dev/null
@@ -1,285 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes active client connections and connections that have been terminated
-// within the last 60 minutes for the specified Client VPN endpoint.
-func (c *Client) DescribeClientVpnConnections(ctx context.Context, params *DescribeClientVpnConnectionsInput, optFns ...func(*Options)) (*DescribeClientVpnConnectionsOutput, error) {
- if params == nil {
- params = &DescribeClientVpnConnectionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeClientVpnConnections", params, optFns, c.addOperationDescribeClientVpnConnectionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeClientVpnConnectionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeClientVpnConnectionsInput struct {
-
- // The ID of the Client VPN endpoint.
- //
- // This member is required.
- ClientVpnEndpointId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. Filter names and values are case-sensitive.
- //
- // - connection-id - The ID of the connection.
- //
- // - username - For Active Directory client authentication, the user name of the
- // client who established the client connection.
- Filters []types.Filter
-
- // The maximum number of results to return for the request in a single page. The
- // remaining results can be seen by sending another request with the nextToken
- // value.
- MaxResults *int32
-
- // The token to retrieve the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeClientVpnConnectionsOutput struct {
-
- // Information about the active and terminated client connections.
- Connections []types.ClientVpnConnection
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeClientVpnConnectionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeClientVpnConnections{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeClientVpnConnections{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeClientVpnConnections"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDescribeClientVpnConnectionsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeClientVpnConnections(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeClientVpnConnectionsPaginatorOptions is the paginator options for
-// DescribeClientVpnConnections
-type DescribeClientVpnConnectionsPaginatorOptions struct {
- // The maximum number of results to return for the request in a single page. The
- // remaining results can be seen by sending another request with the nextToken
- // value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeClientVpnConnectionsPaginator is a paginator for
-// DescribeClientVpnConnections
-type DescribeClientVpnConnectionsPaginator struct {
- options DescribeClientVpnConnectionsPaginatorOptions
- client DescribeClientVpnConnectionsAPIClient
- params *DescribeClientVpnConnectionsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeClientVpnConnectionsPaginator returns a new
-// DescribeClientVpnConnectionsPaginator
-func NewDescribeClientVpnConnectionsPaginator(client DescribeClientVpnConnectionsAPIClient, params *DescribeClientVpnConnectionsInput, optFns ...func(*DescribeClientVpnConnectionsPaginatorOptions)) *DescribeClientVpnConnectionsPaginator {
- if params == nil {
- params = &DescribeClientVpnConnectionsInput{}
- }
-
- options := DescribeClientVpnConnectionsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeClientVpnConnectionsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeClientVpnConnectionsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeClientVpnConnections page.
-func (p *DescribeClientVpnConnectionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeClientVpnConnectionsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeClientVpnConnections(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeClientVpnConnectionsAPIClient is a client that implements the
-// DescribeClientVpnConnections operation.
-type DescribeClientVpnConnectionsAPIClient interface {
- DescribeClientVpnConnections(context.Context, *DescribeClientVpnConnectionsInput, ...func(*Options)) (*DescribeClientVpnConnectionsOutput, error)
-}
-
-var _ DescribeClientVpnConnectionsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeClientVpnConnections(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeClientVpnConnections",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnEndpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnEndpoints.go
deleted file mode 100644
index 7b41afd5e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnEndpoints.go
+++ /dev/null
@@ -1,278 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more Client VPN endpoints in the account.
-func (c *Client) DescribeClientVpnEndpoints(ctx context.Context, params *DescribeClientVpnEndpointsInput, optFns ...func(*Options)) (*DescribeClientVpnEndpointsOutput, error) {
- if params == nil {
- params = &DescribeClientVpnEndpointsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeClientVpnEndpoints", params, optFns, c.addOperationDescribeClientVpnEndpointsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeClientVpnEndpointsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeClientVpnEndpointsInput struct {
-
- // The ID of the Client VPN endpoint.
- ClientVpnEndpointIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. Filter names and values are case-sensitive.
- //
- // - endpoint-id - The ID of the Client VPN endpoint.
- //
- // - transport-protocol - The transport protocol ( tcp | udp ).
- Filters []types.Filter
-
- // The maximum number of results to return for the request in a single page. The
- // remaining results can be seen by sending another request with the nextToken
- // value.
- MaxResults *int32
-
- // The token to retrieve the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeClientVpnEndpointsOutput struct {
-
- // Information about the Client VPN endpoints.
- ClientVpnEndpoints []types.ClientVpnEndpoint
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeClientVpnEndpointsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeClientVpnEndpoints{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeClientVpnEndpoints{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeClientVpnEndpoints"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeClientVpnEndpoints(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeClientVpnEndpointsPaginatorOptions is the paginator options for
-// DescribeClientVpnEndpoints
-type DescribeClientVpnEndpointsPaginatorOptions struct {
- // The maximum number of results to return for the request in a single page. The
- // remaining results can be seen by sending another request with the nextToken
- // value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeClientVpnEndpointsPaginator is a paginator for
-// DescribeClientVpnEndpoints
-type DescribeClientVpnEndpointsPaginator struct {
- options DescribeClientVpnEndpointsPaginatorOptions
- client DescribeClientVpnEndpointsAPIClient
- params *DescribeClientVpnEndpointsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeClientVpnEndpointsPaginator returns a new
-// DescribeClientVpnEndpointsPaginator
-func NewDescribeClientVpnEndpointsPaginator(client DescribeClientVpnEndpointsAPIClient, params *DescribeClientVpnEndpointsInput, optFns ...func(*DescribeClientVpnEndpointsPaginatorOptions)) *DescribeClientVpnEndpointsPaginator {
- if params == nil {
- params = &DescribeClientVpnEndpointsInput{}
- }
-
- options := DescribeClientVpnEndpointsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeClientVpnEndpointsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeClientVpnEndpointsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeClientVpnEndpoints page.
-func (p *DescribeClientVpnEndpointsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeClientVpnEndpointsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeClientVpnEndpoints(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeClientVpnEndpointsAPIClient is a client that implements the
-// DescribeClientVpnEndpoints operation.
-type DescribeClientVpnEndpointsAPIClient interface {
- DescribeClientVpnEndpoints(context.Context, *DescribeClientVpnEndpointsInput, ...func(*Options)) (*DescribeClientVpnEndpointsOutput, error)
-}
-
-var _ DescribeClientVpnEndpointsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeClientVpnEndpoints(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeClientVpnEndpoints",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnRoutes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnRoutes.go
deleted file mode 100644
index 5216d44d4..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnRoutes.go
+++ /dev/null
@@ -1,285 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the routes for the specified Client VPN endpoint.
-func (c *Client) DescribeClientVpnRoutes(ctx context.Context, params *DescribeClientVpnRoutesInput, optFns ...func(*Options)) (*DescribeClientVpnRoutesOutput, error) {
- if params == nil {
- params = &DescribeClientVpnRoutesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeClientVpnRoutes", params, optFns, c.addOperationDescribeClientVpnRoutesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeClientVpnRoutesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeClientVpnRoutesInput struct {
-
- // The ID of the Client VPN endpoint.
- //
- // This member is required.
- ClientVpnEndpointId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. Filter names and values are case-sensitive.
- //
- // - destination-cidr - The CIDR of the route destination.
- //
- // - origin - How the route was associated with the Client VPN endpoint (
- // associate | add-route ).
- //
- // - target-subnet - The ID of the subnet through which traffic is routed.
- Filters []types.Filter
-
- // The maximum number of results to return for the request in a single page. The
- // remaining results can be seen by sending another request with the nextToken
- // value.
- MaxResults *int32
-
- // The token to retrieve the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeClientVpnRoutesOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the Client VPN endpoint routes.
- Routes []types.ClientVpnRoute
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeClientVpnRoutesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeClientVpnRoutes{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeClientVpnRoutes{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeClientVpnRoutes"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDescribeClientVpnRoutesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeClientVpnRoutes(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeClientVpnRoutesPaginatorOptions is the paginator options for
-// DescribeClientVpnRoutes
-type DescribeClientVpnRoutesPaginatorOptions struct {
- // The maximum number of results to return for the request in a single page. The
- // remaining results can be seen by sending another request with the nextToken
- // value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeClientVpnRoutesPaginator is a paginator for DescribeClientVpnRoutes
-type DescribeClientVpnRoutesPaginator struct {
- options DescribeClientVpnRoutesPaginatorOptions
- client DescribeClientVpnRoutesAPIClient
- params *DescribeClientVpnRoutesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeClientVpnRoutesPaginator returns a new
-// DescribeClientVpnRoutesPaginator
-func NewDescribeClientVpnRoutesPaginator(client DescribeClientVpnRoutesAPIClient, params *DescribeClientVpnRoutesInput, optFns ...func(*DescribeClientVpnRoutesPaginatorOptions)) *DescribeClientVpnRoutesPaginator {
- if params == nil {
- params = &DescribeClientVpnRoutesInput{}
- }
-
- options := DescribeClientVpnRoutesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeClientVpnRoutesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeClientVpnRoutesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeClientVpnRoutes page.
-func (p *DescribeClientVpnRoutesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeClientVpnRoutesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeClientVpnRoutes(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeClientVpnRoutesAPIClient is a client that implements the
-// DescribeClientVpnRoutes operation.
-type DescribeClientVpnRoutesAPIClient interface {
- DescribeClientVpnRoutes(context.Context, *DescribeClientVpnRoutesInput, ...func(*Options)) (*DescribeClientVpnRoutesOutput, error)
-}
-
-var _ DescribeClientVpnRoutesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeClientVpnRoutes(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeClientVpnRoutes",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnTargetNetworks.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnTargetNetworks.go
deleted file mode 100644
index 4b586cfbb..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnTargetNetworks.go
+++ /dev/null
@@ -1,288 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the target networks associated with the specified Client VPN endpoint.
-func (c *Client) DescribeClientVpnTargetNetworks(ctx context.Context, params *DescribeClientVpnTargetNetworksInput, optFns ...func(*Options)) (*DescribeClientVpnTargetNetworksOutput, error) {
- if params == nil {
- params = &DescribeClientVpnTargetNetworksInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeClientVpnTargetNetworks", params, optFns, c.addOperationDescribeClientVpnTargetNetworksMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeClientVpnTargetNetworksOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeClientVpnTargetNetworksInput struct {
-
- // The ID of the Client VPN endpoint.
- //
- // This member is required.
- ClientVpnEndpointId *string
-
- // The IDs of the target network associations.
- AssociationIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. Filter names and values are case-sensitive.
- //
- // - association-id - The ID of the association.
- //
- // - target-network-id - The ID of the subnet specified as the target network.
- //
- // - vpc-id - The ID of the VPC in which the target network is located.
- Filters []types.Filter
-
- // The maximum number of results to return for the request in a single page. The
- // remaining results can be seen by sending another request with the nextToken
- // value.
- MaxResults *int32
-
- // The token to retrieve the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeClientVpnTargetNetworksOutput struct {
-
- // Information about the associated target networks.
- ClientVpnTargetNetworks []types.TargetNetwork
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeClientVpnTargetNetworksMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeClientVpnTargetNetworks{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeClientVpnTargetNetworks{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeClientVpnTargetNetworks"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDescribeClientVpnTargetNetworksValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeClientVpnTargetNetworks(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeClientVpnTargetNetworksPaginatorOptions is the paginator options for
-// DescribeClientVpnTargetNetworks
-type DescribeClientVpnTargetNetworksPaginatorOptions struct {
- // The maximum number of results to return for the request in a single page. The
- // remaining results can be seen by sending another request with the nextToken
- // value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeClientVpnTargetNetworksPaginator is a paginator for
-// DescribeClientVpnTargetNetworks
-type DescribeClientVpnTargetNetworksPaginator struct {
- options DescribeClientVpnTargetNetworksPaginatorOptions
- client DescribeClientVpnTargetNetworksAPIClient
- params *DescribeClientVpnTargetNetworksInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeClientVpnTargetNetworksPaginator returns a new
-// DescribeClientVpnTargetNetworksPaginator
-func NewDescribeClientVpnTargetNetworksPaginator(client DescribeClientVpnTargetNetworksAPIClient, params *DescribeClientVpnTargetNetworksInput, optFns ...func(*DescribeClientVpnTargetNetworksPaginatorOptions)) *DescribeClientVpnTargetNetworksPaginator {
- if params == nil {
- params = &DescribeClientVpnTargetNetworksInput{}
- }
-
- options := DescribeClientVpnTargetNetworksPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeClientVpnTargetNetworksPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeClientVpnTargetNetworksPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeClientVpnTargetNetworks page.
-func (p *DescribeClientVpnTargetNetworksPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeClientVpnTargetNetworksOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeClientVpnTargetNetworks(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeClientVpnTargetNetworksAPIClient is a client that implements the
-// DescribeClientVpnTargetNetworks operation.
-type DescribeClientVpnTargetNetworksAPIClient interface {
- DescribeClientVpnTargetNetworks(context.Context, *DescribeClientVpnTargetNetworksInput, ...func(*Options)) (*DescribeClientVpnTargetNetworksOutput, error)
-}
-
-var _ DescribeClientVpnTargetNetworksAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeClientVpnTargetNetworks(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeClientVpnTargetNetworks",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCoipPools.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCoipPools.go
deleted file mode 100644
index 6da91482e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCoipPools.go
+++ /dev/null
@@ -1,275 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified customer-owned address pools or all of your
-// customer-owned address pools.
-func (c *Client) DescribeCoipPools(ctx context.Context, params *DescribeCoipPoolsInput, optFns ...func(*Options)) (*DescribeCoipPoolsOutput, error) {
- if params == nil {
- params = &DescribeCoipPoolsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeCoipPools", params, optFns, c.addOperationDescribeCoipPoolsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeCoipPoolsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeCoipPoolsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - coip-pool.local-gateway-route-table-id - The ID of the local gateway route
- // table.
- //
- // - coip-pool.pool-id - The ID of the address pool.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The IDs of the address pools.
- PoolIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeCoipPoolsOutput struct {
-
- // Information about the address pools.
- CoipPools []types.CoipPool
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeCoipPoolsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeCoipPools{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeCoipPools{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeCoipPools"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeCoipPools(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeCoipPoolsPaginatorOptions is the paginator options for DescribeCoipPools
-type DescribeCoipPoolsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeCoipPoolsPaginator is a paginator for DescribeCoipPools
-type DescribeCoipPoolsPaginator struct {
- options DescribeCoipPoolsPaginatorOptions
- client DescribeCoipPoolsAPIClient
- params *DescribeCoipPoolsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeCoipPoolsPaginator returns a new DescribeCoipPoolsPaginator
-func NewDescribeCoipPoolsPaginator(client DescribeCoipPoolsAPIClient, params *DescribeCoipPoolsInput, optFns ...func(*DescribeCoipPoolsPaginatorOptions)) *DescribeCoipPoolsPaginator {
- if params == nil {
- params = &DescribeCoipPoolsInput{}
- }
-
- options := DescribeCoipPoolsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeCoipPoolsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeCoipPoolsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeCoipPools page.
-func (p *DescribeCoipPoolsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeCoipPoolsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeCoipPools(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeCoipPoolsAPIClient is a client that implements the DescribeCoipPools
-// operation.
-type DescribeCoipPoolsAPIClient interface {
- DescribeCoipPools(context.Context, *DescribeCoipPoolsInput, ...func(*Options)) (*DescribeCoipPoolsOutput, error)
-}
-
-var _ DescribeCoipPoolsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeCoipPools(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeCoipPools",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeConversionTasks.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeConversionTasks.go
deleted file mode 100644
index 17d0d5a55..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeConversionTasks.go
+++ /dev/null
@@ -1,784 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithytime "github.com/aws/smithy-go/time"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- smithywaiter "github.com/aws/smithy-go/waiter"
- "time"
-)
-
-// Describes the specified conversion tasks or all your conversion tasks. For more
-// information, see the [VM Import/Export User Guide].
-//
-// For information about the import manifest referenced by this API action, see [VM Import Manifest].
-//
-// [VM Import Manifest]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html
-// [VM Import/Export User Guide]: https://docs.aws.amazon.com/vm-import/latest/userguide/
-func (c *Client) DescribeConversionTasks(ctx context.Context, params *DescribeConversionTasksInput, optFns ...func(*Options)) (*DescribeConversionTasksOutput, error) {
- if params == nil {
- params = &DescribeConversionTasksInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeConversionTasks", params, optFns, c.addOperationDescribeConversionTasksMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeConversionTasksOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeConversionTasksInput struct {
-
- // The conversion task IDs.
- ConversionTaskIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DescribeConversionTasksOutput struct {
-
- // Information about the conversion tasks.
- ConversionTasks []types.ConversionTask
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeConversionTasksMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeConversionTasks{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeConversionTasks{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeConversionTasks"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeConversionTasks(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// ConversionTaskCancelledWaiterOptions are waiter options for
-// ConversionTaskCancelledWaiter
-type ConversionTaskCancelledWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // ConversionTaskCancelledWaiter will use default minimum delay of 15 seconds. Note
- // that MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, ConversionTaskCancelledWaiter will use default max delay of 120
- // seconds. Note that MaxDelay must resolve to value greater than or equal to the
- // MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeConversionTasksInput, *DescribeConversionTasksOutput, error) (bool, error)
-}
-
-// ConversionTaskCancelledWaiter defines the waiters for ConversionTaskCancelled
-type ConversionTaskCancelledWaiter struct {
- client DescribeConversionTasksAPIClient
-
- options ConversionTaskCancelledWaiterOptions
-}
-
-// NewConversionTaskCancelledWaiter constructs a ConversionTaskCancelledWaiter.
-func NewConversionTaskCancelledWaiter(client DescribeConversionTasksAPIClient, optFns ...func(*ConversionTaskCancelledWaiterOptions)) *ConversionTaskCancelledWaiter {
- options := ConversionTaskCancelledWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = conversionTaskCancelledStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &ConversionTaskCancelledWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for ConversionTaskCancelled waiter. The
-// maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is
-// required and must be greater than zero.
-func (w *ConversionTaskCancelledWaiter) Wait(ctx context.Context, params *DescribeConversionTasksInput, maxWaitDur time.Duration, optFns ...func(*ConversionTaskCancelledWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for ConversionTaskCancelled waiter and
-// returns the output of the successful operation. The maxWaitDur is the maximum
-// wait duration the waiter will wait. The maxWaitDur is required and must be
-// greater than zero.
-func (w *ConversionTaskCancelledWaiter) WaitForOutput(ctx context.Context, params *DescribeConversionTasksInput, maxWaitDur time.Duration, optFns ...func(*ConversionTaskCancelledWaiterOptions)) (*DescribeConversionTasksOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeConversionTasks(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for ConversionTaskCancelled waiter")
-}
-
-func conversionTaskCancelledStateRetryable(ctx context.Context, input *DescribeConversionTasksInput, output *DescribeConversionTasksOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.ConversionTasks
- var v2 []types.ConversionTaskState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "cancelled"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// ConversionTaskCompletedWaiterOptions are waiter options for
-// ConversionTaskCompletedWaiter
-type ConversionTaskCompletedWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // ConversionTaskCompletedWaiter will use default minimum delay of 15 seconds. Note
- // that MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, ConversionTaskCompletedWaiter will use default max delay of 120
- // seconds. Note that MaxDelay must resolve to value greater than or equal to the
- // MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeConversionTasksInput, *DescribeConversionTasksOutput, error) (bool, error)
-}
-
-// ConversionTaskCompletedWaiter defines the waiters for ConversionTaskCompleted
-type ConversionTaskCompletedWaiter struct {
- client DescribeConversionTasksAPIClient
-
- options ConversionTaskCompletedWaiterOptions
-}
-
-// NewConversionTaskCompletedWaiter constructs a ConversionTaskCompletedWaiter.
-func NewConversionTaskCompletedWaiter(client DescribeConversionTasksAPIClient, optFns ...func(*ConversionTaskCompletedWaiterOptions)) *ConversionTaskCompletedWaiter {
- options := ConversionTaskCompletedWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = conversionTaskCompletedStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &ConversionTaskCompletedWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for ConversionTaskCompleted waiter. The
-// maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is
-// required and must be greater than zero.
-func (w *ConversionTaskCompletedWaiter) Wait(ctx context.Context, params *DescribeConversionTasksInput, maxWaitDur time.Duration, optFns ...func(*ConversionTaskCompletedWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for ConversionTaskCompleted waiter and
-// returns the output of the successful operation. The maxWaitDur is the maximum
-// wait duration the waiter will wait. The maxWaitDur is required and must be
-// greater than zero.
-func (w *ConversionTaskCompletedWaiter) WaitForOutput(ctx context.Context, params *DescribeConversionTasksInput, maxWaitDur time.Duration, optFns ...func(*ConversionTaskCompletedWaiterOptions)) (*DescribeConversionTasksOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeConversionTasks(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for ConversionTaskCompleted waiter")
-}
-
-func conversionTaskCompletedStateRetryable(ctx context.Context, input *DescribeConversionTasksInput, output *DescribeConversionTasksOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.ConversionTasks
- var v2 []types.ConversionTaskState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "completed"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err == nil {
- v1 := output.ConversionTasks
- var v2 []types.ConversionTaskState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "cancelled"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err == nil {
- v1 := output.ConversionTasks
- var v2 []types.ConversionTaskState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "cancelling"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// ConversionTaskDeletedWaiterOptions are waiter options for
-// ConversionTaskDeletedWaiter
-type ConversionTaskDeletedWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // ConversionTaskDeletedWaiter will use default minimum delay of 15 seconds. Note
- // that MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, ConversionTaskDeletedWaiter will use default max delay of 120
- // seconds. Note that MaxDelay must resolve to value greater than or equal to the
- // MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeConversionTasksInput, *DescribeConversionTasksOutput, error) (bool, error)
-}
-
-// ConversionTaskDeletedWaiter defines the waiters for ConversionTaskDeleted
-type ConversionTaskDeletedWaiter struct {
- client DescribeConversionTasksAPIClient
-
- options ConversionTaskDeletedWaiterOptions
-}
-
-// NewConversionTaskDeletedWaiter constructs a ConversionTaskDeletedWaiter.
-func NewConversionTaskDeletedWaiter(client DescribeConversionTasksAPIClient, optFns ...func(*ConversionTaskDeletedWaiterOptions)) *ConversionTaskDeletedWaiter {
- options := ConversionTaskDeletedWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = conversionTaskDeletedStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &ConversionTaskDeletedWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for ConversionTaskDeleted waiter. The maxWaitDur
-// is the maximum wait duration the waiter will wait. The maxWaitDur is required
-// and must be greater than zero.
-func (w *ConversionTaskDeletedWaiter) Wait(ctx context.Context, params *DescribeConversionTasksInput, maxWaitDur time.Duration, optFns ...func(*ConversionTaskDeletedWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for ConversionTaskDeleted waiter and
-// returns the output of the successful operation. The maxWaitDur is the maximum
-// wait duration the waiter will wait. The maxWaitDur is required and must be
-// greater than zero.
-func (w *ConversionTaskDeletedWaiter) WaitForOutput(ctx context.Context, params *DescribeConversionTasksInput, maxWaitDur time.Duration, optFns ...func(*ConversionTaskDeletedWaiterOptions)) (*DescribeConversionTasksOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeConversionTasks(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for ConversionTaskDeleted waiter")
-}
-
-func conversionTaskDeletedStateRetryable(ctx context.Context, input *DescribeConversionTasksInput, output *DescribeConversionTasksOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.ConversionTasks
- var v2 []types.ConversionTaskState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "deleted"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// DescribeConversionTasksAPIClient is a client that implements the
-// DescribeConversionTasks operation.
-type DescribeConversionTasksAPIClient interface {
- DescribeConversionTasks(context.Context, *DescribeConversionTasksInput, ...func(*Options)) (*DescribeConversionTasksOutput, error)
-}
-
-var _ DescribeConversionTasksAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeConversionTasks(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeConversionTasks",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCustomerGateways.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCustomerGateways.go
deleted file mode 100644
index af39ca3cf..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCustomerGateways.go
+++ /dev/null
@@ -1,442 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithytime "github.com/aws/smithy-go/time"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- smithywaiter "github.com/aws/smithy-go/waiter"
- "time"
-)
-
-// Describes one or more of your VPN customer gateways.
-//
-// For more information, see [Amazon Web Services Site-to-Site VPN] in the Amazon Web Services Site-to-Site VPN User
-// Guide.
-//
-// [Amazon Web Services Site-to-Site VPN]: https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html
-func (c *Client) DescribeCustomerGateways(ctx context.Context, params *DescribeCustomerGatewaysInput, optFns ...func(*Options)) (*DescribeCustomerGatewaysOutput, error) {
- if params == nil {
- params = &DescribeCustomerGatewaysInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeCustomerGateways", params, optFns, c.addOperationDescribeCustomerGatewaysMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeCustomerGatewaysOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DescribeCustomerGateways.
-type DescribeCustomerGatewaysInput struct {
-
- // One or more customer gateway IDs.
- //
- // Default: Describes all your customer gateways.
- CustomerGatewayIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - bgp-asn - The customer gateway's Border Gateway Protocol (BGP) Autonomous
- // System Number (ASN).
- //
- // - customer-gateway-id - The ID of the customer gateway.
- //
- // - ip-address - The IP address of the customer gateway device's external
- // interface.
- //
- // - state - The state of the customer gateway ( pending | available | deleting |
- // deleted ).
- //
- // - type - The type of customer gateway. Currently, the only supported type is
- // ipsec.1 .
- //
- // - tag : - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- Filters []types.Filter
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of DescribeCustomerGateways.
-type DescribeCustomerGatewaysOutput struct {
-
- // Information about one or more customer gateways.
- CustomerGateways []types.CustomerGateway
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeCustomerGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeCustomerGateways{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeCustomerGateways{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeCustomerGateways"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeCustomerGateways(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// CustomerGatewayAvailableWaiterOptions are waiter options for
-// CustomerGatewayAvailableWaiter
-type CustomerGatewayAvailableWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // CustomerGatewayAvailableWaiter will use default minimum delay of 15 seconds.
- // Note that MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, CustomerGatewayAvailableWaiter will use default max delay of 120
- // seconds. Note that MaxDelay must resolve to value greater than or equal to the
- // MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeCustomerGatewaysInput, *DescribeCustomerGatewaysOutput, error) (bool, error)
-}
-
-// CustomerGatewayAvailableWaiter defines the waiters for CustomerGatewayAvailable
-type CustomerGatewayAvailableWaiter struct {
- client DescribeCustomerGatewaysAPIClient
-
- options CustomerGatewayAvailableWaiterOptions
-}
-
-// NewCustomerGatewayAvailableWaiter constructs a CustomerGatewayAvailableWaiter.
-func NewCustomerGatewayAvailableWaiter(client DescribeCustomerGatewaysAPIClient, optFns ...func(*CustomerGatewayAvailableWaiterOptions)) *CustomerGatewayAvailableWaiter {
- options := CustomerGatewayAvailableWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = customerGatewayAvailableStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &CustomerGatewayAvailableWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for CustomerGatewayAvailable waiter. The
-// maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is
-// required and must be greater than zero.
-func (w *CustomerGatewayAvailableWaiter) Wait(ctx context.Context, params *DescribeCustomerGatewaysInput, maxWaitDur time.Duration, optFns ...func(*CustomerGatewayAvailableWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for CustomerGatewayAvailable waiter and
-// returns the output of the successful operation. The maxWaitDur is the maximum
-// wait duration the waiter will wait. The maxWaitDur is required and must be
-// greater than zero.
-func (w *CustomerGatewayAvailableWaiter) WaitForOutput(ctx context.Context, params *DescribeCustomerGatewaysInput, maxWaitDur time.Duration, optFns ...func(*CustomerGatewayAvailableWaiterOptions)) (*DescribeCustomerGatewaysOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeCustomerGateways(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for CustomerGatewayAvailable waiter")
-}
-
-func customerGatewayAvailableStateRetryable(ctx context.Context, input *DescribeCustomerGatewaysInput, output *DescribeCustomerGatewaysOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.CustomerGateways
- var v2 []string
- for _, v := range v1 {
- v3 := v.State
- if v3 != nil {
- v2 = append(v2, *v3)
- }
- }
- expectedValue := "available"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err == nil {
- v1 := output.CustomerGateways
- var v2 []string
- for _, v := range v1 {
- v3 := v.State
- if v3 != nil {
- v2 = append(v2, *v3)
- }
- }
- expectedValue := "deleted"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err == nil {
- v1 := output.CustomerGateways
- var v2 []string
- for _, v := range v1 {
- v3 := v.State
- if v3 != nil {
- v2 = append(v2, *v3)
- }
- }
- expectedValue := "deleting"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// DescribeCustomerGatewaysAPIClient is a client that implements the
-// DescribeCustomerGateways operation.
-type DescribeCustomerGatewaysAPIClient interface {
- DescribeCustomerGateways(context.Context, *DescribeCustomerGatewaysInput, ...func(*Options)) (*DescribeCustomerGatewaysOutput, error)
-}
-
-var _ DescribeCustomerGatewaysAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeCustomerGateways(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeCustomerGateways",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeDeclarativePoliciesReports.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeDeclarativePoliciesReports.go
deleted file mode 100644
index f17fce607..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeDeclarativePoliciesReports.go
+++ /dev/null
@@ -1,188 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the metadata of an account status report, including the status of the
-// report.
-//
-// To view the full report, download it from the Amazon S3 bucket where it was
-// saved. Reports are accessible only when they have the complete status. Reports
-// with other statuses ( running , cancelled , or error ) are not available in the
-// S3 bucket. For more information about downloading objects from an S3 bucket, see
-// [Downloading objects]in the Amazon Simple Storage Service User Guide.
-//
-// For more information, see [Generating the account status report for declarative policies] in the Amazon Web Services Organizations User Guide.
-//
-// [Downloading objects]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/download-objects.html
-// [Generating the account status report for declarative policies]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative_status-report.html
-func (c *Client) DescribeDeclarativePoliciesReports(ctx context.Context, params *DescribeDeclarativePoliciesReportsInput, optFns ...func(*Options)) (*DescribeDeclarativePoliciesReportsOutput, error) {
- if params == nil {
- params = &DescribeDeclarativePoliciesReportsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeDeclarativePoliciesReports", params, optFns, c.addOperationDescribeDeclarativePoliciesReportsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeDeclarativePoliciesReportsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeDeclarativePoliciesReportsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- // One or more report IDs.
- ReportIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeDeclarativePoliciesReportsOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // The report metadata.
- Reports []types.DeclarativePoliciesReport
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeDeclarativePoliciesReportsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeDeclarativePoliciesReports{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeDeclarativePoliciesReports{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeDeclarativePoliciesReports"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeDeclarativePoliciesReports(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeDeclarativePoliciesReports(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeDeclarativePoliciesReports",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeDhcpOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeDhcpOptions.go
deleted file mode 100644
index 5d9cd01c1..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeDhcpOptions.go
+++ /dev/null
@@ -1,301 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes your DHCP option sets. The default is to describe all your DHCP
-// option sets. Alternatively, you can specify specific DHCP option set IDs or
-// filter the results to include only the DHCP option sets that match specific
-// criteria.
-//
-// For more information, see [DHCP option sets] in the Amazon VPC User Guide.
-//
-// [DHCP option sets]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html
-func (c *Client) DescribeDhcpOptions(ctx context.Context, params *DescribeDhcpOptionsInput, optFns ...func(*Options)) (*DescribeDhcpOptionsOutput, error) {
- if params == nil {
- params = &DescribeDhcpOptionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeDhcpOptions", params, optFns, c.addOperationDescribeDhcpOptionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeDhcpOptionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeDhcpOptionsInput struct {
-
- // The IDs of DHCP option sets.
- DhcpOptionsIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - dhcp-options-id - The ID of a DHCP options set.
- //
- // - key - The key for one of the options (for example, domain-name ).
- //
- // - value - The value for one of the options.
- //
- // - owner-id - The ID of the Amazon Web Services account that owns the DHCP
- // options set.
- //
- // - tag - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeDhcpOptionsOutput struct {
-
- // Information about the DHCP options sets.
- DhcpOptions []types.DhcpOptions
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeDhcpOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeDhcpOptions{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeDhcpOptions{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeDhcpOptions"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeDhcpOptions(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeDhcpOptionsPaginatorOptions is the paginator options for
-// DescribeDhcpOptions
-type DescribeDhcpOptionsPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeDhcpOptionsPaginator is a paginator for DescribeDhcpOptions
-type DescribeDhcpOptionsPaginator struct {
- options DescribeDhcpOptionsPaginatorOptions
- client DescribeDhcpOptionsAPIClient
- params *DescribeDhcpOptionsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeDhcpOptionsPaginator returns a new DescribeDhcpOptionsPaginator
-func NewDescribeDhcpOptionsPaginator(client DescribeDhcpOptionsAPIClient, params *DescribeDhcpOptionsInput, optFns ...func(*DescribeDhcpOptionsPaginatorOptions)) *DescribeDhcpOptionsPaginator {
- if params == nil {
- params = &DescribeDhcpOptionsInput{}
- }
-
- options := DescribeDhcpOptionsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeDhcpOptionsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeDhcpOptionsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeDhcpOptions page.
-func (p *DescribeDhcpOptionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeDhcpOptionsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeDhcpOptions(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeDhcpOptionsAPIClient is a client that implements the
-// DescribeDhcpOptions operation.
-type DescribeDhcpOptionsAPIClient interface {
- DescribeDhcpOptions(context.Context, *DescribeDhcpOptionsInput, ...func(*Options)) (*DescribeDhcpOptionsOutput, error)
-}
-
-var _ DescribeDhcpOptionsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeDhcpOptions(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeDhcpOptions",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeEgressOnlyInternetGateways.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeEgressOnlyInternetGateways.go
deleted file mode 100644
index 1e3a4d09b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeEgressOnlyInternetGateways.go
+++ /dev/null
@@ -1,290 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes your egress-only internet gateways. The default is to describe all
-// your egress-only internet gateways. Alternatively, you can specify specific
-// egress-only internet gateway IDs or filter the results to include only the
-// egress-only internet gateways that match specific criteria.
-func (c *Client) DescribeEgressOnlyInternetGateways(ctx context.Context, params *DescribeEgressOnlyInternetGatewaysInput, optFns ...func(*Options)) (*DescribeEgressOnlyInternetGatewaysOutput, error) {
- if params == nil {
- params = &DescribeEgressOnlyInternetGatewaysInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeEgressOnlyInternetGateways", params, optFns, c.addOperationDescribeEgressOnlyInternetGatewaysMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeEgressOnlyInternetGatewaysOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeEgressOnlyInternetGatewaysInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The IDs of the egress-only internet gateways.
- EgressOnlyInternetGatewayIds []string
-
- // The filters.
- //
- // - tag - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeEgressOnlyInternetGatewaysOutput struct {
-
- // Information about the egress-only internet gateways.
- EgressOnlyInternetGateways []types.EgressOnlyInternetGateway
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeEgressOnlyInternetGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeEgressOnlyInternetGateways{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeEgressOnlyInternetGateways{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeEgressOnlyInternetGateways"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeEgressOnlyInternetGateways(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeEgressOnlyInternetGatewaysPaginatorOptions is the paginator options for
-// DescribeEgressOnlyInternetGateways
-type DescribeEgressOnlyInternetGatewaysPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeEgressOnlyInternetGatewaysPaginator is a paginator for
-// DescribeEgressOnlyInternetGateways
-type DescribeEgressOnlyInternetGatewaysPaginator struct {
- options DescribeEgressOnlyInternetGatewaysPaginatorOptions
- client DescribeEgressOnlyInternetGatewaysAPIClient
- params *DescribeEgressOnlyInternetGatewaysInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeEgressOnlyInternetGatewaysPaginator returns a new
-// DescribeEgressOnlyInternetGatewaysPaginator
-func NewDescribeEgressOnlyInternetGatewaysPaginator(client DescribeEgressOnlyInternetGatewaysAPIClient, params *DescribeEgressOnlyInternetGatewaysInput, optFns ...func(*DescribeEgressOnlyInternetGatewaysPaginatorOptions)) *DescribeEgressOnlyInternetGatewaysPaginator {
- if params == nil {
- params = &DescribeEgressOnlyInternetGatewaysInput{}
- }
-
- options := DescribeEgressOnlyInternetGatewaysPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeEgressOnlyInternetGatewaysPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeEgressOnlyInternetGatewaysPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeEgressOnlyInternetGateways page.
-func (p *DescribeEgressOnlyInternetGatewaysPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeEgressOnlyInternetGatewaysOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeEgressOnlyInternetGateways(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeEgressOnlyInternetGatewaysAPIClient is a client that implements the
-// DescribeEgressOnlyInternetGateways operation.
-type DescribeEgressOnlyInternetGatewaysAPIClient interface {
- DescribeEgressOnlyInternetGateways(context.Context, *DescribeEgressOnlyInternetGatewaysInput, ...func(*Options)) (*DescribeEgressOnlyInternetGatewaysOutput, error)
-}
-
-var _ DescribeEgressOnlyInternetGatewaysAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeEgressOnlyInternetGateways(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeEgressOnlyInternetGateways",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeElasticGpus.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeElasticGpus.go
deleted file mode 100644
index 1daa57499..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeElasticGpus.go
+++ /dev/null
@@ -1,198 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Amazon Elastic Graphics reached end of life on January 8, 2024.
-//
-// Describes the Elastic Graphics accelerator associated with your instances.
-func (c *Client) DescribeElasticGpus(ctx context.Context, params *DescribeElasticGpusInput, optFns ...func(*Options)) (*DescribeElasticGpusOutput, error) {
- if params == nil {
- params = &DescribeElasticGpusInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeElasticGpus", params, optFns, c.addOperationDescribeElasticGpusMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeElasticGpusOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeElasticGpusInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The Elastic Graphics accelerator IDs.
- ElasticGpuIds []string
-
- // The filters.
- //
- // - availability-zone - The Availability Zone in which the Elastic Graphics
- // accelerator resides.
- //
- // - elastic-gpu-health - The status of the Elastic Graphics accelerator ( OK |
- // IMPAIRED ).
- //
- // - elastic-gpu-state - The state of the Elastic Graphics accelerator ( ATTACHED
- // ).
- //
- // - elastic-gpu-type - The type of Elastic Graphics accelerator; for example,
- // eg1.medium .
- //
- // - instance-id - The ID of the instance to which the Elastic Graphics
- // accelerator is associated.
- Filters []types.Filter
-
- // The maximum number of results to return in a single call. To retrieve the
- // remaining results, make another call with the returned NextToken value. This
- // value can be between 5 and 1000.
- MaxResults *int32
-
- // The token to request the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeElasticGpusOutput struct {
-
- // Information about the Elastic Graphics accelerators.
- ElasticGpuSet []types.ElasticGpus
-
- // The total number of items to return. If the total number of items available is
- // more than the value specified in max-items then a Next-Token will be provided in
- // the output that you can use to resume pagination.
- MaxResults *int32
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeElasticGpusMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeElasticGpus{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeElasticGpus{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeElasticGpus"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeElasticGpus(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeElasticGpus(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeElasticGpus",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeExportImageTasks.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeExportImageTasks.go
deleted file mode 100644
index 0fb2842c4..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeExportImageTasks.go
+++ /dev/null
@@ -1,270 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified export image tasks or all of your export image tasks.
-func (c *Client) DescribeExportImageTasks(ctx context.Context, params *DescribeExportImageTasksInput, optFns ...func(*Options)) (*DescribeExportImageTasksOutput, error) {
- if params == nil {
- params = &DescribeExportImageTasksInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeExportImageTasks", params, optFns, c.addOperationDescribeExportImageTasksMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeExportImageTasksOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeExportImageTasksInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The IDs of the export image tasks.
- ExportImageTaskIds []string
-
- // Filter tasks using the task-state filter and one of the following values: active
- // , completed , deleting , or deleted .
- Filters []types.Filter
-
- // The maximum number of results to return in a single call.
- MaxResults *int32
-
- // A token that indicates the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeExportImageTasksOutput struct {
-
- // Information about the export image tasks.
- ExportImageTasks []types.ExportImageTask
-
- // The token to use to get the next page of results. This value is null when there
- // are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeExportImageTasksMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeExportImageTasks{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeExportImageTasks{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeExportImageTasks"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeExportImageTasks(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeExportImageTasksPaginatorOptions is the paginator options for
-// DescribeExportImageTasks
-type DescribeExportImageTasksPaginatorOptions struct {
- // The maximum number of results to return in a single call.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeExportImageTasksPaginator is a paginator for DescribeExportImageTasks
-type DescribeExportImageTasksPaginator struct {
- options DescribeExportImageTasksPaginatorOptions
- client DescribeExportImageTasksAPIClient
- params *DescribeExportImageTasksInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeExportImageTasksPaginator returns a new
-// DescribeExportImageTasksPaginator
-func NewDescribeExportImageTasksPaginator(client DescribeExportImageTasksAPIClient, params *DescribeExportImageTasksInput, optFns ...func(*DescribeExportImageTasksPaginatorOptions)) *DescribeExportImageTasksPaginator {
- if params == nil {
- params = &DescribeExportImageTasksInput{}
- }
-
- options := DescribeExportImageTasksPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeExportImageTasksPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeExportImageTasksPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeExportImageTasks page.
-func (p *DescribeExportImageTasksPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeExportImageTasksOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeExportImageTasks(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeExportImageTasksAPIClient is a client that implements the
-// DescribeExportImageTasks operation.
-type DescribeExportImageTasksAPIClient interface {
- DescribeExportImageTasks(context.Context, *DescribeExportImageTasksInput, ...func(*Options)) (*DescribeExportImageTasksOutput, error)
-}
-
-var _ DescribeExportImageTasksAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeExportImageTasks(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeExportImageTasks",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeExportTasks.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeExportTasks.go
deleted file mode 100644
index 4ce00435f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeExportTasks.go
+++ /dev/null
@@ -1,546 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithytime "github.com/aws/smithy-go/time"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- smithywaiter "github.com/aws/smithy-go/waiter"
- "time"
-)
-
-// Describes the specified export instance tasks or all of your export instance
-// tasks.
-func (c *Client) DescribeExportTasks(ctx context.Context, params *DescribeExportTasksInput, optFns ...func(*Options)) (*DescribeExportTasksOutput, error) {
- if params == nil {
- params = &DescribeExportTasksInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeExportTasks", params, optFns, c.addOperationDescribeExportTasksMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeExportTasksOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeExportTasksInput struct {
-
- // The export task IDs.
- ExportTaskIds []string
-
- // the filters for the export tasks.
- Filters []types.Filter
-
- noSmithyDocumentSerde
-}
-
-type DescribeExportTasksOutput struct {
-
- // Information about the export tasks.
- ExportTasks []types.ExportTask
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeExportTasksMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeExportTasks{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeExportTasks{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeExportTasks"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeExportTasks(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// ExportTaskCancelledWaiterOptions are waiter options for
-// ExportTaskCancelledWaiter
-type ExportTaskCancelledWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // ExportTaskCancelledWaiter will use default minimum delay of 15 seconds. Note
- // that MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, ExportTaskCancelledWaiter will use default max delay of 120
- // seconds. Note that MaxDelay must resolve to value greater than or equal to the
- // MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeExportTasksInput, *DescribeExportTasksOutput, error) (bool, error)
-}
-
-// ExportTaskCancelledWaiter defines the waiters for ExportTaskCancelled
-type ExportTaskCancelledWaiter struct {
- client DescribeExportTasksAPIClient
-
- options ExportTaskCancelledWaiterOptions
-}
-
-// NewExportTaskCancelledWaiter constructs a ExportTaskCancelledWaiter.
-func NewExportTaskCancelledWaiter(client DescribeExportTasksAPIClient, optFns ...func(*ExportTaskCancelledWaiterOptions)) *ExportTaskCancelledWaiter {
- options := ExportTaskCancelledWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = exportTaskCancelledStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &ExportTaskCancelledWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for ExportTaskCancelled waiter. The maxWaitDur
-// is the maximum wait duration the waiter will wait. The maxWaitDur is required
-// and must be greater than zero.
-func (w *ExportTaskCancelledWaiter) Wait(ctx context.Context, params *DescribeExportTasksInput, maxWaitDur time.Duration, optFns ...func(*ExportTaskCancelledWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for ExportTaskCancelled waiter and
-// returns the output of the successful operation. The maxWaitDur is the maximum
-// wait duration the waiter will wait. The maxWaitDur is required and must be
-// greater than zero.
-func (w *ExportTaskCancelledWaiter) WaitForOutput(ctx context.Context, params *DescribeExportTasksInput, maxWaitDur time.Duration, optFns ...func(*ExportTaskCancelledWaiterOptions)) (*DescribeExportTasksOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeExportTasks(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for ExportTaskCancelled waiter")
-}
-
-func exportTaskCancelledStateRetryable(ctx context.Context, input *DescribeExportTasksInput, output *DescribeExportTasksOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.ExportTasks
- var v2 []types.ExportTaskState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "cancelled"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// ExportTaskCompletedWaiterOptions are waiter options for
-// ExportTaskCompletedWaiter
-type ExportTaskCompletedWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // ExportTaskCompletedWaiter will use default minimum delay of 15 seconds. Note
- // that MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, ExportTaskCompletedWaiter will use default max delay of 120
- // seconds. Note that MaxDelay must resolve to value greater than or equal to the
- // MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeExportTasksInput, *DescribeExportTasksOutput, error) (bool, error)
-}
-
-// ExportTaskCompletedWaiter defines the waiters for ExportTaskCompleted
-type ExportTaskCompletedWaiter struct {
- client DescribeExportTasksAPIClient
-
- options ExportTaskCompletedWaiterOptions
-}
-
-// NewExportTaskCompletedWaiter constructs a ExportTaskCompletedWaiter.
-func NewExportTaskCompletedWaiter(client DescribeExportTasksAPIClient, optFns ...func(*ExportTaskCompletedWaiterOptions)) *ExportTaskCompletedWaiter {
- options := ExportTaskCompletedWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = exportTaskCompletedStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &ExportTaskCompletedWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for ExportTaskCompleted waiter. The maxWaitDur
-// is the maximum wait duration the waiter will wait. The maxWaitDur is required
-// and must be greater than zero.
-func (w *ExportTaskCompletedWaiter) Wait(ctx context.Context, params *DescribeExportTasksInput, maxWaitDur time.Duration, optFns ...func(*ExportTaskCompletedWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for ExportTaskCompleted waiter and
-// returns the output of the successful operation. The maxWaitDur is the maximum
-// wait duration the waiter will wait. The maxWaitDur is required and must be
-// greater than zero.
-func (w *ExportTaskCompletedWaiter) WaitForOutput(ctx context.Context, params *DescribeExportTasksInput, maxWaitDur time.Duration, optFns ...func(*ExportTaskCompletedWaiterOptions)) (*DescribeExportTasksOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeExportTasks(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for ExportTaskCompleted waiter")
-}
-
-func exportTaskCompletedStateRetryable(ctx context.Context, input *DescribeExportTasksInput, output *DescribeExportTasksOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.ExportTasks
- var v2 []types.ExportTaskState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "completed"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// DescribeExportTasksAPIClient is a client that implements the
-// DescribeExportTasks operation.
-type DescribeExportTasksAPIClient interface {
- DescribeExportTasks(context.Context, *DescribeExportTasksInput, ...func(*Options)) (*DescribeExportTasksOutput, error)
-}
-
-var _ DescribeExportTasksAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeExportTasks(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeExportTasks",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFastLaunchImages.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFastLaunchImages.go
deleted file mode 100644
index 0494a6d4b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFastLaunchImages.go
+++ /dev/null
@@ -1,285 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describe details for Windows AMIs that are configured for Windows fast launch.
-func (c *Client) DescribeFastLaunchImages(ctx context.Context, params *DescribeFastLaunchImagesInput, optFns ...func(*Options)) (*DescribeFastLaunchImagesOutput, error) {
- if params == nil {
- params = &DescribeFastLaunchImagesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeFastLaunchImages", params, optFns, c.addOperationDescribeFastLaunchImagesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeFastLaunchImagesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeFastLaunchImagesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Use the following filters to streamline results.
- //
- // - resource-type - The resource type for pre-provisioning.
- //
- // - owner-id - The owner ID for the pre-provisioning resource.
- //
- // - state - The current state of fast launching for the Windows AMI.
- Filters []types.Filter
-
- // Specify one or more Windows AMI image IDs for the request.
- ImageIds []string
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeFastLaunchImagesOutput struct {
-
- // A collection of details about the fast-launch enabled Windows images that meet
- // the requested criteria.
- FastLaunchImages []types.DescribeFastLaunchImagesSuccessItem
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeFastLaunchImagesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeFastLaunchImages{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeFastLaunchImages{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeFastLaunchImages"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeFastLaunchImages(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeFastLaunchImagesPaginatorOptions is the paginator options for
-// DescribeFastLaunchImages
-type DescribeFastLaunchImagesPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeFastLaunchImagesPaginator is a paginator for DescribeFastLaunchImages
-type DescribeFastLaunchImagesPaginator struct {
- options DescribeFastLaunchImagesPaginatorOptions
- client DescribeFastLaunchImagesAPIClient
- params *DescribeFastLaunchImagesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeFastLaunchImagesPaginator returns a new
-// DescribeFastLaunchImagesPaginator
-func NewDescribeFastLaunchImagesPaginator(client DescribeFastLaunchImagesAPIClient, params *DescribeFastLaunchImagesInput, optFns ...func(*DescribeFastLaunchImagesPaginatorOptions)) *DescribeFastLaunchImagesPaginator {
- if params == nil {
- params = &DescribeFastLaunchImagesInput{}
- }
-
- options := DescribeFastLaunchImagesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeFastLaunchImagesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeFastLaunchImagesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeFastLaunchImages page.
-func (p *DescribeFastLaunchImagesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeFastLaunchImagesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeFastLaunchImages(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeFastLaunchImagesAPIClient is a client that implements the
-// DescribeFastLaunchImages operation.
-type DescribeFastLaunchImagesAPIClient interface {
- DescribeFastLaunchImages(context.Context, *DescribeFastLaunchImagesInput, ...func(*Options)) (*DescribeFastLaunchImagesOutput, error)
-}
-
-var _ DescribeFastLaunchImagesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeFastLaunchImages(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeFastLaunchImages",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFastSnapshotRestores.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFastSnapshotRestores.go
deleted file mode 100644
index 77ff4fbd1..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFastSnapshotRestores.go
+++ /dev/null
@@ -1,286 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the state of fast snapshot restores for your snapshots.
-func (c *Client) DescribeFastSnapshotRestores(ctx context.Context, params *DescribeFastSnapshotRestoresInput, optFns ...func(*Options)) (*DescribeFastSnapshotRestoresOutput, error) {
- if params == nil {
- params = &DescribeFastSnapshotRestoresInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeFastSnapshotRestores", params, optFns, c.addOperationDescribeFastSnapshotRestoresMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeFastSnapshotRestoresOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeFastSnapshotRestoresInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters. The possible values are:
- //
- // - availability-zone : The Availability Zone of the snapshot.
- //
- // - owner-id : The ID of the Amazon Web Services account that enabled fast
- // snapshot restore on the snapshot.
- //
- // - snapshot-id : The ID of the snapshot.
- //
- // - state : The state of fast snapshot restores for the snapshot ( enabling |
- // optimizing | enabled | disabling | disabled ).
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeFastSnapshotRestoresOutput struct {
-
- // Information about the state of fast snapshot restores.
- FastSnapshotRestores []types.DescribeFastSnapshotRestoreSuccessItem
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeFastSnapshotRestoresMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeFastSnapshotRestores{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeFastSnapshotRestores{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeFastSnapshotRestores"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeFastSnapshotRestores(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeFastSnapshotRestoresPaginatorOptions is the paginator options for
-// DescribeFastSnapshotRestores
-type DescribeFastSnapshotRestoresPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeFastSnapshotRestoresPaginator is a paginator for
-// DescribeFastSnapshotRestores
-type DescribeFastSnapshotRestoresPaginator struct {
- options DescribeFastSnapshotRestoresPaginatorOptions
- client DescribeFastSnapshotRestoresAPIClient
- params *DescribeFastSnapshotRestoresInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeFastSnapshotRestoresPaginator returns a new
-// DescribeFastSnapshotRestoresPaginator
-func NewDescribeFastSnapshotRestoresPaginator(client DescribeFastSnapshotRestoresAPIClient, params *DescribeFastSnapshotRestoresInput, optFns ...func(*DescribeFastSnapshotRestoresPaginatorOptions)) *DescribeFastSnapshotRestoresPaginator {
- if params == nil {
- params = &DescribeFastSnapshotRestoresInput{}
- }
-
- options := DescribeFastSnapshotRestoresPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeFastSnapshotRestoresPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeFastSnapshotRestoresPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeFastSnapshotRestores page.
-func (p *DescribeFastSnapshotRestoresPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeFastSnapshotRestoresOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeFastSnapshotRestores(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeFastSnapshotRestoresAPIClient is a client that implements the
-// DescribeFastSnapshotRestores operation.
-type DescribeFastSnapshotRestoresAPIClient interface {
- DescribeFastSnapshotRestores(context.Context, *DescribeFastSnapshotRestoresInput, ...func(*Options)) (*DescribeFastSnapshotRestoresOutput, error)
-}
-
-var _ DescribeFastSnapshotRestoresAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeFastSnapshotRestores(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeFastSnapshotRestores",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleetHistory.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleetHistory.go
deleted file mode 100644
index 7c6f12838..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleetHistory.go
+++ /dev/null
@@ -1,212 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Describes the events for the specified EC2 Fleet during the specified time.
-//
-// EC2 Fleet events are delayed by up to 30 seconds before they can be described.
-// This ensures that you can query by the last evaluated time and not miss a
-// recorded event. EC2 Fleet events are available for 48 hours.
-//
-// For more information, see [Monitor fleet events using Amazon EventBridge] in the Amazon EC2 User Guide.
-//
-// [Monitor fleet events using Amazon EventBridge]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/fleet-monitor.html
-func (c *Client) DescribeFleetHistory(ctx context.Context, params *DescribeFleetHistoryInput, optFns ...func(*Options)) (*DescribeFleetHistoryOutput, error) {
- if params == nil {
- params = &DescribeFleetHistoryInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeFleetHistory", params, optFns, c.addOperationDescribeFleetHistoryMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeFleetHistoryOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeFleetHistoryInput struct {
-
- // The ID of the EC2 Fleet.
- //
- // This member is required.
- FleetId *string
-
- // The start date and time for the events, in UTC format (for example,
- // YYYY-MM-DDTHH:MM:SSZ).
- //
- // This member is required.
- StartTime *time.Time
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The type of events to describe. By default, all events are described.
- EventType types.FleetEventType
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeFleetHistoryOutput struct {
-
- // The ID of the EC Fleet.
- FleetId *string
-
- // Information about the events in the history of the EC2 Fleet.
- HistoryRecords []types.HistoryRecordEntry
-
- // The last date and time for the events, in UTC format (for example,
- // YYYY-MM-DDTHH:MM:SSZ). All records up to this time were retrieved.
- //
- // If nextToken indicates that there are more items, this value is not present.
- LastEvaluatedTime *time.Time
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // The start date and time for the events, in UTC format (for example,
- // YYYY-MM-DDTHH:MM:SSZ).
- StartTime *time.Time
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeFleetHistoryMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeFleetHistory{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeFleetHistory{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeFleetHistory"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDescribeFleetHistoryValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeFleetHistory(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeFleetHistory(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeFleetHistory",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleetInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleetInstances.go
deleted file mode 100644
index a0febff4d..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleetInstances.go
+++ /dev/null
@@ -1,197 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the running instances for the specified EC2 Fleet.
-//
-// Currently, DescribeFleetInstances does not support fleets of type instant .
-// Instead, use DescribeFleets , specifying the instant fleet ID in the request.
-//
-// For more information, see [Describe your EC2 Fleet] in the Amazon EC2 User Guide.
-//
-// [Describe your EC2 Fleet]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-ec2-fleet.html#monitor-ec2-fleet
-func (c *Client) DescribeFleetInstances(ctx context.Context, params *DescribeFleetInstancesInput, optFns ...func(*Options)) (*DescribeFleetInstancesOutput, error) {
- if params == nil {
- params = &DescribeFleetInstancesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeFleetInstances", params, optFns, c.addOperationDescribeFleetInstancesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeFleetInstancesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeFleetInstancesInput struct {
-
- // The ID of the EC2 Fleet.
- //
- // This member is required.
- FleetId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - instance-type - The instance type.
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeFleetInstancesOutput struct {
-
- // The running instances. This list is refreshed periodically and might be out of
- // date.
- ActiveInstances []types.ActiveInstance
-
- // The ID of the EC2 Fleet.
- FleetId *string
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeFleetInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeFleetInstances{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeFleetInstances{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeFleetInstances"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDescribeFleetInstancesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeFleetInstances(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeFleetInstances(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeFleetInstances",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleets.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleets.go
deleted file mode 100644
index a32d0218c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleets.go
+++ /dev/null
@@ -1,301 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified EC2 Fleet or all of your EC2 Fleets.
-//
-// If a fleet is of type instant , you must specify the fleet ID in the request,
-// otherwise the fleet does not appear in the response.
-//
-// For more information, see [Describe your EC2 Fleet] in the Amazon EC2 User Guide.
-//
-// [Describe your EC2 Fleet]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-ec2-fleet.html#monitor-ec2-fleet
-func (c *Client) DescribeFleets(ctx context.Context, params *DescribeFleetsInput, optFns ...func(*Options)) (*DescribeFleetsOutput, error) {
- if params == nil {
- params = &DescribeFleetsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeFleets", params, optFns, c.addOperationDescribeFleetsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeFleetsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeFleetsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - activity-status - The progress of the EC2 Fleet ( error |
- // pending-fulfillment | pending-termination | fulfilled ).
- //
- // - excess-capacity-termination-policy - Indicates whether to terminate running
- // instances if the target capacity is decreased below the current EC2 Fleet size (
- // true | false ).
- //
- // - fleet-state - The state of the EC2 Fleet ( submitted | active | deleted |
- // failed | deleted-running | deleted-terminating | modifying ).
- //
- // - replace-unhealthy-instances - Indicates whether EC2 Fleet should replace
- // unhealthy instances ( true | false ).
- //
- // - type - The type of request ( instant | request | maintain ).
- Filters []types.Filter
-
- // The IDs of the EC2 Fleets.
- //
- // If a fleet is of type instant , you must specify the fleet ID, otherwise it does
- // not appear in the response.
- FleetIds []string
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeFleetsOutput struct {
-
- // Information about the EC2 Fleets.
- Fleets []types.FleetData
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeFleetsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeFleets{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeFleets{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeFleets"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeFleets(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeFleetsPaginatorOptions is the paginator options for DescribeFleets
-type DescribeFleetsPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeFleetsPaginator is a paginator for DescribeFleets
-type DescribeFleetsPaginator struct {
- options DescribeFleetsPaginatorOptions
- client DescribeFleetsAPIClient
- params *DescribeFleetsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeFleetsPaginator returns a new DescribeFleetsPaginator
-func NewDescribeFleetsPaginator(client DescribeFleetsAPIClient, params *DescribeFleetsInput, optFns ...func(*DescribeFleetsPaginatorOptions)) *DescribeFleetsPaginator {
- if params == nil {
- params = &DescribeFleetsInput{}
- }
-
- options := DescribeFleetsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeFleetsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeFleetsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeFleets page.
-func (p *DescribeFleetsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeFleetsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeFleets(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeFleetsAPIClient is a client that implements the DescribeFleets
-// operation.
-type DescribeFleetsAPIClient interface {
- DescribeFleets(context.Context, *DescribeFleetsInput, ...func(*Options)) (*DescribeFleetsOutput, error)
-}
-
-var _ DescribeFleetsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeFleets(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeFleets",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFlowLogs.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFlowLogs.go
deleted file mode 100644
index d4dfabd3a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFlowLogs.go
+++ /dev/null
@@ -1,303 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more flow logs.
-//
-// To view the published flow log records, you must view the log destination. For
-// example, the CloudWatch Logs log group, the Amazon S3 bucket, or the Kinesis
-// Data Firehose delivery stream.
-func (c *Client) DescribeFlowLogs(ctx context.Context, params *DescribeFlowLogsInput, optFns ...func(*Options)) (*DescribeFlowLogsOutput, error) {
- if params == nil {
- params = &DescribeFlowLogsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeFlowLogs", params, optFns, c.addOperationDescribeFlowLogsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeFlowLogsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeFlowLogsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - deliver-log-status - The status of the logs delivery ( SUCCESS | FAILED ).
- //
- // - log-destination-type - The type of destination for the flow log data (
- // cloud-watch-logs | s3 | kinesis-data-firehose ).
- //
- // - flow-log-id - The ID of the flow log.
- //
- // - log-group-name - The name of the log group.
- //
- // - resource-id - The ID of the VPC, subnet, or network interface.
- //
- // - traffic-type - The type of traffic ( ACCEPT | REJECT | ALL ).
- //
- // - tag : - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- Filter []types.Filter
-
- // One or more flow log IDs.
- //
- // Constraint: Maximum of 1000 flow log IDs.
- FlowLogIds []string
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token to request the next page of items. Pagination continues from the end
- // of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeFlowLogsOutput struct {
-
- // Information about the flow logs.
- FlowLogs []types.FlowLog
-
- // The token to request the next page of items. This value is null when there are
- // no more items to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeFlowLogsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeFlowLogs{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeFlowLogs{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeFlowLogs"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeFlowLogs(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeFlowLogsPaginatorOptions is the paginator options for DescribeFlowLogs
-type DescribeFlowLogsPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeFlowLogsPaginator is a paginator for DescribeFlowLogs
-type DescribeFlowLogsPaginator struct {
- options DescribeFlowLogsPaginatorOptions
- client DescribeFlowLogsAPIClient
- params *DescribeFlowLogsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeFlowLogsPaginator returns a new DescribeFlowLogsPaginator
-func NewDescribeFlowLogsPaginator(client DescribeFlowLogsAPIClient, params *DescribeFlowLogsInput, optFns ...func(*DescribeFlowLogsPaginatorOptions)) *DescribeFlowLogsPaginator {
- if params == nil {
- params = &DescribeFlowLogsInput{}
- }
-
- options := DescribeFlowLogsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeFlowLogsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeFlowLogsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeFlowLogs page.
-func (p *DescribeFlowLogsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeFlowLogsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeFlowLogs(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeFlowLogsAPIClient is a client that implements the DescribeFlowLogs
-// operation.
-type DescribeFlowLogsAPIClient interface {
- DescribeFlowLogs(context.Context, *DescribeFlowLogsInput, ...func(*Options)) (*DescribeFlowLogsOutput, error)
-}
-
-var _ DescribeFlowLogsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeFlowLogs(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeFlowLogs",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFpgaImageAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFpgaImageAttribute.go
deleted file mode 100644
index 5118f81c4..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFpgaImageAttribute.go
+++ /dev/null
@@ -1,171 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified attribute of the specified Amazon FPGA Image (AFI).
-func (c *Client) DescribeFpgaImageAttribute(ctx context.Context, params *DescribeFpgaImageAttributeInput, optFns ...func(*Options)) (*DescribeFpgaImageAttributeOutput, error) {
- if params == nil {
- params = &DescribeFpgaImageAttributeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeFpgaImageAttribute", params, optFns, c.addOperationDescribeFpgaImageAttributeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeFpgaImageAttributeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeFpgaImageAttributeInput struct {
-
- // The AFI attribute.
- //
- // This member is required.
- Attribute types.FpgaImageAttributeName
-
- // The ID of the AFI.
- //
- // This member is required.
- FpgaImageId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DescribeFpgaImageAttributeOutput struct {
-
- // Information about the attribute.
- FpgaImageAttribute *types.FpgaImageAttribute
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeFpgaImageAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeFpgaImageAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeFpgaImageAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeFpgaImageAttribute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDescribeFpgaImageAttributeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeFpgaImageAttribute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeFpgaImageAttribute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeFpgaImageAttribute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFpgaImages.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFpgaImages.go
deleted file mode 100644
index 0b4a9ae2c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFpgaImages.go
+++ /dev/null
@@ -1,302 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the Amazon FPGA Images (AFIs) available to you. These include public
-// AFIs, private AFIs that you own, and AFIs owned by other Amazon Web Services
-// accounts for which you have load permissions.
-func (c *Client) DescribeFpgaImages(ctx context.Context, params *DescribeFpgaImagesInput, optFns ...func(*Options)) (*DescribeFpgaImagesOutput, error) {
- if params == nil {
- params = &DescribeFpgaImagesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeFpgaImages", params, optFns, c.addOperationDescribeFpgaImagesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeFpgaImagesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeFpgaImagesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - create-time - The creation time of the AFI.
- //
- // - fpga-image-id - The FPGA image identifier (AFI ID).
- //
- // - fpga-image-global-id - The global FPGA image identifier (AGFI ID).
- //
- // - name - The name of the AFI.
- //
- // - owner-id - The Amazon Web Services account ID of the AFI owner.
- //
- // - product-code - The product code.
- //
- // - shell-version - The version of the Amazon Web Services Shell that was used
- // to create the bitstream.
- //
- // - state - The state of the AFI ( pending | failed | available | unavailable ).
- //
- // - tag : - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- //
- // - update-time - The time of the most recent update.
- Filters []types.Filter
-
- // The AFI IDs.
- FpgaImageIds []string
-
- // The maximum number of results to return in a single call.
- MaxResults *int32
-
- // The token to retrieve the next page of results.
- NextToken *string
-
- // Filters the AFI by owner. Specify an Amazon Web Services account ID, self
- // (owner is the sender of the request), or an Amazon Web Services owner alias
- // (valid values are amazon | aws-marketplace ).
- Owners []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeFpgaImagesOutput struct {
-
- // Information about the FPGA images.
- FpgaImages []types.FpgaImage
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeFpgaImagesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeFpgaImages{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeFpgaImages{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeFpgaImages"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeFpgaImages(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeFpgaImagesPaginatorOptions is the paginator options for
-// DescribeFpgaImages
-type DescribeFpgaImagesPaginatorOptions struct {
- // The maximum number of results to return in a single call.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeFpgaImagesPaginator is a paginator for DescribeFpgaImages
-type DescribeFpgaImagesPaginator struct {
- options DescribeFpgaImagesPaginatorOptions
- client DescribeFpgaImagesAPIClient
- params *DescribeFpgaImagesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeFpgaImagesPaginator returns a new DescribeFpgaImagesPaginator
-func NewDescribeFpgaImagesPaginator(client DescribeFpgaImagesAPIClient, params *DescribeFpgaImagesInput, optFns ...func(*DescribeFpgaImagesPaginatorOptions)) *DescribeFpgaImagesPaginator {
- if params == nil {
- params = &DescribeFpgaImagesInput{}
- }
-
- options := DescribeFpgaImagesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeFpgaImagesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeFpgaImagesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeFpgaImages page.
-func (p *DescribeFpgaImagesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeFpgaImagesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeFpgaImages(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeFpgaImagesAPIClient is a client that implements the DescribeFpgaImages
-// operation.
-type DescribeFpgaImagesAPIClient interface {
- DescribeFpgaImages(context.Context, *DescribeFpgaImagesInput, ...func(*Options)) (*DescribeFpgaImagesOutput, error)
-}
-
-var _ DescribeFpgaImagesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeFpgaImages(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeFpgaImages",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHostReservationOfferings.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHostReservationOfferings.go
deleted file mode 100644
index 618f462db..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHostReservationOfferings.go
+++ /dev/null
@@ -1,298 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the Dedicated Host reservations that are available to purchase.
-//
-// The results describe all of the Dedicated Host reservation offerings, including
-// offerings that might not match the instance family and Region of your Dedicated
-// Hosts. When purchasing an offering, ensure that the instance family and Region
-// of the offering matches that of the Dedicated Hosts with which it is to be
-// associated. For more information about supported instance types, see [Dedicated Hosts]in the
-// Amazon EC2 User Guide.
-//
-// [Dedicated Hosts]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-overview.html
-func (c *Client) DescribeHostReservationOfferings(ctx context.Context, params *DescribeHostReservationOfferingsInput, optFns ...func(*Options)) (*DescribeHostReservationOfferingsOutput, error) {
- if params == nil {
- params = &DescribeHostReservationOfferingsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeHostReservationOfferings", params, optFns, c.addOperationDescribeHostReservationOfferingsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeHostReservationOfferingsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeHostReservationOfferingsInput struct {
-
- // The filters.
- //
- // - instance-family - The instance family of the offering (for example, m4 ).
- //
- // - payment-option - The payment option ( NoUpfront | PartialUpfront |
- // AllUpfront ).
- Filter []types.Filter
-
- // This is the maximum duration of the reservation to purchase, specified in
- // seconds. Reservations are available in one-year and three-year terms. The number
- // of seconds specified must be the number of seconds in a year (365x24x60x60)
- // times one of the supported durations (1 or 3). For example, specify 94608000 for
- // three years.
- MaxDuration *int32
-
- // The maximum number of results to return for the request in a single page. The
- // remaining results can be seen by sending another request with the returned
- // nextToken value. This value can be between 5 and 500. If maxResults is given a
- // larger value than 500, you receive an error.
- MaxResults *int32
-
- // This is the minimum duration of the reservation you'd like to purchase,
- // specified in seconds. Reservations are available in one-year and three-year
- // terms. The number of seconds specified must be the number of seconds in a year
- // (365x24x60x60) times one of the supported durations (1 or 3). For example,
- // specify 31536000 for one year.
- MinDuration *int32
-
- // The token to use to retrieve the next page of results.
- NextToken *string
-
- // The ID of the reservation offering.
- OfferingId *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeHostReservationOfferingsOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the offerings.
- OfferingSet []types.HostOffering
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeHostReservationOfferingsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeHostReservationOfferings{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeHostReservationOfferings{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeHostReservationOfferings"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeHostReservationOfferings(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeHostReservationOfferingsPaginatorOptions is the paginator options for
-// DescribeHostReservationOfferings
-type DescribeHostReservationOfferingsPaginatorOptions struct {
- // The maximum number of results to return for the request in a single page. The
- // remaining results can be seen by sending another request with the returned
- // nextToken value. This value can be between 5 and 500. If maxResults is given a
- // larger value than 500, you receive an error.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeHostReservationOfferingsPaginator is a paginator for
-// DescribeHostReservationOfferings
-type DescribeHostReservationOfferingsPaginator struct {
- options DescribeHostReservationOfferingsPaginatorOptions
- client DescribeHostReservationOfferingsAPIClient
- params *DescribeHostReservationOfferingsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeHostReservationOfferingsPaginator returns a new
-// DescribeHostReservationOfferingsPaginator
-func NewDescribeHostReservationOfferingsPaginator(client DescribeHostReservationOfferingsAPIClient, params *DescribeHostReservationOfferingsInput, optFns ...func(*DescribeHostReservationOfferingsPaginatorOptions)) *DescribeHostReservationOfferingsPaginator {
- if params == nil {
- params = &DescribeHostReservationOfferingsInput{}
- }
-
- options := DescribeHostReservationOfferingsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeHostReservationOfferingsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeHostReservationOfferingsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeHostReservationOfferings page.
-func (p *DescribeHostReservationOfferingsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeHostReservationOfferingsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeHostReservationOfferings(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeHostReservationOfferingsAPIClient is a client that implements the
-// DescribeHostReservationOfferings operation.
-type DescribeHostReservationOfferingsAPIClient interface {
- DescribeHostReservationOfferings(context.Context, *DescribeHostReservationOfferingsInput, ...func(*Options)) (*DescribeHostReservationOfferingsOutput, error)
-}
-
-var _ DescribeHostReservationOfferingsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeHostReservationOfferings(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeHostReservationOfferings",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHostReservations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHostReservations.go
deleted file mode 100644
index 691768d3a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHostReservations.go
+++ /dev/null
@@ -1,285 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes reservations that are associated with Dedicated Hosts in your account.
-func (c *Client) DescribeHostReservations(ctx context.Context, params *DescribeHostReservationsInput, optFns ...func(*Options)) (*DescribeHostReservationsOutput, error) {
- if params == nil {
- params = &DescribeHostReservationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeHostReservations", params, optFns, c.addOperationDescribeHostReservationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeHostReservationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeHostReservationsInput struct {
-
- // The filters.
- //
- // - instance-family - The instance family (for example, m4 ).
- //
- // - payment-option - The payment option ( NoUpfront | PartialUpfront |
- // AllUpfront ).
- //
- // - state - The state of the reservation ( payment-pending | payment-failed |
- // active | retired ).
- //
- // - tag: - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- Filter []types.Filter
-
- // The host reservation IDs.
- HostReservationIdSet []string
-
- // The maximum number of results to return for the request in a single page. The
- // remaining results can be seen by sending another request with the returned
- // nextToken value. This value can be between 5 and 500. If maxResults is given a
- // larger value than 500, you receive an error.
- MaxResults *int32
-
- // The token to use to retrieve the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeHostReservationsOutput struct {
-
- // Details about the reservation's configuration.
- HostReservationSet []types.HostReservation
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeHostReservationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeHostReservations{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeHostReservations{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeHostReservations"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeHostReservations(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeHostReservationsPaginatorOptions is the paginator options for
-// DescribeHostReservations
-type DescribeHostReservationsPaginatorOptions struct {
- // The maximum number of results to return for the request in a single page. The
- // remaining results can be seen by sending another request with the returned
- // nextToken value. This value can be between 5 and 500. If maxResults is given a
- // larger value than 500, you receive an error.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeHostReservationsPaginator is a paginator for DescribeHostReservations
-type DescribeHostReservationsPaginator struct {
- options DescribeHostReservationsPaginatorOptions
- client DescribeHostReservationsAPIClient
- params *DescribeHostReservationsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeHostReservationsPaginator returns a new
-// DescribeHostReservationsPaginator
-func NewDescribeHostReservationsPaginator(client DescribeHostReservationsAPIClient, params *DescribeHostReservationsInput, optFns ...func(*DescribeHostReservationsPaginatorOptions)) *DescribeHostReservationsPaginator {
- if params == nil {
- params = &DescribeHostReservationsInput{}
- }
-
- options := DescribeHostReservationsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeHostReservationsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeHostReservationsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeHostReservations page.
-func (p *DescribeHostReservationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeHostReservationsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeHostReservations(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeHostReservationsAPIClient is a client that implements the
-// DescribeHostReservations operation.
-type DescribeHostReservationsAPIClient interface {
- DescribeHostReservations(context.Context, *DescribeHostReservationsInput, ...func(*Options)) (*DescribeHostReservationsOutput, error)
-}
-
-var _ DescribeHostReservationsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeHostReservations(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeHostReservations",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHosts.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHosts.go
deleted file mode 100644
index 07758c6fe..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHosts.go
+++ /dev/null
@@ -1,294 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified Dedicated Hosts or all your Dedicated Hosts.
-//
-// The results describe only the Dedicated Hosts in the Region you're currently
-// using. All listed instances consume capacity on your Dedicated Host. Dedicated
-// Hosts that have recently been released are listed with the state released .
-func (c *Client) DescribeHosts(ctx context.Context, params *DescribeHostsInput, optFns ...func(*Options)) (*DescribeHostsOutput, error) {
- if params == nil {
- params = &DescribeHostsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeHosts", params, optFns, c.addOperationDescribeHostsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeHostsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeHostsInput struct {
-
- // The filters.
- //
- // - auto-placement - Whether auto-placement is enabled or disabled ( on | off ).
- //
- // - availability-zone - The Availability Zone of the host.
- //
- // - client-token - The idempotency token that you provided when you allocated
- // the host.
- //
- // - host-reservation-id - The ID of the reservation assigned to this host.
- //
- // - instance-type - The instance type size that the Dedicated Host is configured
- // to support.
- //
- // - state - The allocation state of the Dedicated Host ( available |
- // under-assessment | permanent-failure | released | released-permanent-failure ).
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- Filter []types.Filter
-
- // The IDs of the Dedicated Hosts. The IDs are used for targeted instance launches.
- HostIds []string
-
- // The maximum number of results to return for the request in a single page. The
- // remaining results can be seen by sending another request with the returned
- // nextToken value. This value can be between 5 and 500. If maxResults is given a
- // larger value than 500, you receive an error.
- //
- // You cannot specify this parameter and the host IDs parameter in the same
- // request.
- MaxResults *int32
-
- // The token to use to retrieve the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeHostsOutput struct {
-
- // Information about the Dedicated Hosts.
- Hosts []types.Host
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeHostsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeHosts{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeHosts{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeHosts"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeHosts(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeHostsPaginatorOptions is the paginator options for DescribeHosts
-type DescribeHostsPaginatorOptions struct {
- // The maximum number of results to return for the request in a single page. The
- // remaining results can be seen by sending another request with the returned
- // nextToken value. This value can be between 5 and 500. If maxResults is given a
- // larger value than 500, you receive an error.
- //
- // You cannot specify this parameter and the host IDs parameter in the same
- // request.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeHostsPaginator is a paginator for DescribeHosts
-type DescribeHostsPaginator struct {
- options DescribeHostsPaginatorOptions
- client DescribeHostsAPIClient
- params *DescribeHostsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeHostsPaginator returns a new DescribeHostsPaginator
-func NewDescribeHostsPaginator(client DescribeHostsAPIClient, params *DescribeHostsInput, optFns ...func(*DescribeHostsPaginatorOptions)) *DescribeHostsPaginator {
- if params == nil {
- params = &DescribeHostsInput{}
- }
-
- options := DescribeHostsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeHostsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeHostsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeHosts page.
-func (p *DescribeHostsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeHostsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeHosts(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeHostsAPIClient is a client that implements the DescribeHosts operation.
-type DescribeHostsAPIClient interface {
- DescribeHosts(context.Context, *DescribeHostsInput, ...func(*Options)) (*DescribeHostsOutput, error)
-}
-
-var _ DescribeHostsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeHosts(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeHosts",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIamInstanceProfileAssociations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIamInstanceProfileAssociations.go
deleted file mode 100644
index 1a05ef069..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIamInstanceProfileAssociations.go
+++ /dev/null
@@ -1,278 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes your IAM instance profile associations.
-func (c *Client) DescribeIamInstanceProfileAssociations(ctx context.Context, params *DescribeIamInstanceProfileAssociationsInput, optFns ...func(*Options)) (*DescribeIamInstanceProfileAssociationsOutput, error) {
- if params == nil {
- params = &DescribeIamInstanceProfileAssociationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeIamInstanceProfileAssociations", params, optFns, c.addOperationDescribeIamInstanceProfileAssociationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeIamInstanceProfileAssociationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeIamInstanceProfileAssociationsInput struct {
-
- // The IAM instance profile associations.
- AssociationIds []string
-
- // The filters.
- //
- // - instance-id - The ID of the instance.
- //
- // - state - The state of the association ( associating | associated |
- // disassociating ).
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeIamInstanceProfileAssociationsOutput struct {
-
- // Information about the IAM instance profile associations.
- IamInstanceProfileAssociations []types.IamInstanceProfileAssociation
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeIamInstanceProfileAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeIamInstanceProfileAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeIamInstanceProfileAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeIamInstanceProfileAssociations"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeIamInstanceProfileAssociations(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeIamInstanceProfileAssociationsPaginatorOptions is the paginator options
-// for DescribeIamInstanceProfileAssociations
-type DescribeIamInstanceProfileAssociationsPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeIamInstanceProfileAssociationsPaginator is a paginator for
-// DescribeIamInstanceProfileAssociations
-type DescribeIamInstanceProfileAssociationsPaginator struct {
- options DescribeIamInstanceProfileAssociationsPaginatorOptions
- client DescribeIamInstanceProfileAssociationsAPIClient
- params *DescribeIamInstanceProfileAssociationsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeIamInstanceProfileAssociationsPaginator returns a new
-// DescribeIamInstanceProfileAssociationsPaginator
-func NewDescribeIamInstanceProfileAssociationsPaginator(client DescribeIamInstanceProfileAssociationsAPIClient, params *DescribeIamInstanceProfileAssociationsInput, optFns ...func(*DescribeIamInstanceProfileAssociationsPaginatorOptions)) *DescribeIamInstanceProfileAssociationsPaginator {
- if params == nil {
- params = &DescribeIamInstanceProfileAssociationsInput{}
- }
-
- options := DescribeIamInstanceProfileAssociationsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeIamInstanceProfileAssociationsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeIamInstanceProfileAssociationsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeIamInstanceProfileAssociations page.
-func (p *DescribeIamInstanceProfileAssociationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeIamInstanceProfileAssociationsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeIamInstanceProfileAssociations(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeIamInstanceProfileAssociationsAPIClient is a client that implements the
-// DescribeIamInstanceProfileAssociations operation.
-type DescribeIamInstanceProfileAssociationsAPIClient interface {
- DescribeIamInstanceProfileAssociations(context.Context, *DescribeIamInstanceProfileAssociationsInput, ...func(*Options)) (*DescribeIamInstanceProfileAssociationsOutput, error)
-}
-
-var _ DescribeIamInstanceProfileAssociationsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeIamInstanceProfileAssociations(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeIamInstanceProfileAssociations",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIdFormat.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIdFormat.go
deleted file mode 100644
index 58dbb612f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIdFormat.go
+++ /dev/null
@@ -1,181 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the ID format settings for your resources on a per-Region basis, for
-// example, to view which resource types are enabled for longer IDs. This request
-// only returns information about resource types whose ID formats can be modified;
-// it does not return information about other resource types.
-//
-// The following resource types support longer IDs: bundle | conversion-task |
-// customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association
-// | export-task | flow-log | image | import-task | instance | internet-gateway |
-// network-acl | network-acl-association | network-interface |
-// network-interface-attachment | prefix-list | reservation | route-table |
-// route-table-association | security-group | snapshot | subnet |
-// subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association |
-// vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway .
-//
-// These settings apply to the IAM user who makes the request; they do not apply
-// to the entire Amazon Web Services account. By default, an IAM user defaults to
-// the same settings as the root user, unless they explicitly override the settings
-// by running the ModifyIdFormatcommand. Resources created with longer IDs are visible to all
-// IAM users, regardless of these settings and provided that they have permission
-// to use the relevant Describe command for the resource type.
-func (c *Client) DescribeIdFormat(ctx context.Context, params *DescribeIdFormatInput, optFns ...func(*Options)) (*DescribeIdFormatOutput, error) {
- if params == nil {
- params = &DescribeIdFormatInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeIdFormat", params, optFns, c.addOperationDescribeIdFormatMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeIdFormatOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeIdFormatInput struct {
-
- // The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
- // | elastic-ip-allocation | elastic-ip-association | export-task | flow-log |
- // image | import-task | instance | internet-gateway | network-acl |
- // network-acl-association | network-interface | network-interface-attachment |
- // prefix-list | reservation | route-table | route-table-association |
- // security-group | snapshot | subnet | subnet-cidr-block-association | volume |
- // vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection |
- // vpn-connection | vpn-gateway
- Resource *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeIdFormatOutput struct {
-
- // Information about the ID format for the resource.
- Statuses []types.IdFormat
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeIdFormatMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeIdFormat{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeIdFormat{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeIdFormat"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeIdFormat(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeIdFormat(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeIdFormat",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIdentityIdFormat.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIdentityIdFormat.go
deleted file mode 100644
index 4753f2350..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIdentityIdFormat.go
+++ /dev/null
@@ -1,189 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the ID format settings for resources for the specified IAM user, IAM
-// role, or root user. For example, you can view the resource types that are
-// enabled for longer IDs. This request only returns information about resource
-// types whose ID formats can be modified; it does not return information about
-// other resource types. For more information, see [Resource IDs]in the Amazon Elastic Compute
-// Cloud User Guide.
-//
-// The following resource types support longer IDs: bundle | conversion-task |
-// customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association
-// | export-task | flow-log | image | import-task | instance | internet-gateway |
-// network-acl | network-acl-association | network-interface |
-// network-interface-attachment | prefix-list | reservation | route-table |
-// route-table-association | security-group | snapshot | subnet |
-// subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association |
-// vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway .
-//
-// These settings apply to the principal specified in the request. They do not
-// apply to the principal that makes the request.
-//
-// [Resource IDs]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html
-func (c *Client) DescribeIdentityIdFormat(ctx context.Context, params *DescribeIdentityIdFormatInput, optFns ...func(*Options)) (*DescribeIdentityIdFormatOutput, error) {
- if params == nil {
- params = &DescribeIdentityIdFormatInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeIdentityIdFormat", params, optFns, c.addOperationDescribeIdentityIdFormatMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeIdentityIdFormatOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeIdentityIdFormatInput struct {
-
- // The ARN of the principal, which can be an IAM role, IAM user, or the root user.
- //
- // This member is required.
- PrincipalArn *string
-
- // The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
- // | elastic-ip-allocation | elastic-ip-association | export-task | flow-log |
- // image | import-task | instance | internet-gateway | network-acl |
- // network-acl-association | network-interface | network-interface-attachment |
- // prefix-list | reservation | route-table | route-table-association |
- // security-group | snapshot | subnet | subnet-cidr-block-association | volume |
- // vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection |
- // vpn-connection | vpn-gateway
- Resource *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeIdentityIdFormatOutput struct {
-
- // Information about the ID format for the resources.
- Statuses []types.IdFormat
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeIdentityIdFormatMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeIdentityIdFormat{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeIdentityIdFormat{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeIdentityIdFormat"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDescribeIdentityIdFormatValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeIdentityIdFormat(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeIdentityIdFormat(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeIdentityIdFormat",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImageAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImageAttribute.go
deleted file mode 100644
index 04a844ac0..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImageAttribute.go
+++ /dev/null
@@ -1,240 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified attribute of the specified AMI. You can specify only
-// one attribute at a time.
-//
-// The order of the elements in the response, including those within nested
-// structures, might vary. Applications should not assume the elements appear in a
-// particular order.
-func (c *Client) DescribeImageAttribute(ctx context.Context, params *DescribeImageAttributeInput, optFns ...func(*Options)) (*DescribeImageAttributeOutput, error) {
- if params == nil {
- params = &DescribeImageAttributeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeImageAttribute", params, optFns, c.addOperationDescribeImageAttributeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeImageAttributeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DescribeImageAttribute.
-type DescribeImageAttributeInput struct {
-
- // The AMI attribute.
- //
- // Note: The blockDeviceMapping attribute is deprecated. Using this attribute
- // returns the Client.AuthFailure error. To get information about the block device
- // mappings for an AMI, use the DescribeImagesaction.
- //
- // This member is required.
- Attribute types.ImageAttributeName
-
- // The ID of the AMI.
- //
- // This member is required.
- ImageId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-// Describes an image attribute.
-type DescribeImageAttributeOutput struct {
-
- // The block device mapping entries.
- BlockDeviceMappings []types.BlockDeviceMapping
-
- // The boot mode.
- BootMode *types.AttributeValue
-
- // Indicates whether deregistration protection is enabled for the AMI.
- DeregistrationProtection *types.AttributeValue
-
- // A description for the AMI.
- Description *types.AttributeValue
-
- // The ID of the AMI.
- ImageId *string
-
- // If v2.0 , it indicates that IMDSv2 is specified in the AMI. Instances launched
- // from this AMI will have HttpTokens automatically set to required so that, by
- // default, the instance requires that IMDSv2 is used when requesting instance
- // metadata. In addition, HttpPutResponseHopLimit is set to 2 . For more
- // information, see [Configure the AMI]in the Amazon EC2 User Guide.
- //
- // [Configure the AMI]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration
- ImdsSupport *types.AttributeValue
-
- // The kernel ID.
- KernelId *types.AttributeValue
-
- // The date and time, in [ISO 8601 date-time format], when the AMI was last used to launch an EC2 instance.
- // When the AMI is used to launch an instance, there is a 24-hour delay before that
- // usage is reported.
- //
- // lastLaunchedTime data is available starting April 2017.
- //
- // [ISO 8601 date-time format]: http://www.iso.org/iso/iso8601
- LastLaunchedTime *types.AttributeValue
-
- // The launch permissions.
- LaunchPermissions []types.LaunchPermission
-
- // The product codes.
- ProductCodes []types.ProductCode
-
- // The RAM disk ID.
- RamdiskId *types.AttributeValue
-
- // Indicates whether enhanced networking with the Intel 82599 Virtual Function
- // interface is enabled.
- SriovNetSupport *types.AttributeValue
-
- // If the image is configured for NitroTPM support, the value is v2.0 .
- TpmSupport *types.AttributeValue
-
- // Base64 representation of the non-volatile UEFI variable store. To retrieve the
- // UEFI data, use the [GetInstanceUefiData]command. You can inspect and modify the UEFI data by using
- // the [python-uefivars tool]on GitHub. For more information, see [UEFI Secure Boot for Amazon EC2 instances] in the Amazon EC2 User Guide.
- //
- // [UEFI Secure Boot for Amazon EC2 instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/uefi-secure-boot.html
- // [GetInstanceUefiData]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceUefiData
- // [python-uefivars tool]: https://github.com/awslabs/python-uefivars
- UefiData *types.AttributeValue
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeImageAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeImageAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeImageAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeImageAttribute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDescribeImageAttributeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeImageAttribute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeImageAttribute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeImageAttribute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImages.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImages.go
deleted file mode 100644
index ba0a7736a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImages.go
+++ /dev/null
@@ -1,848 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "errors"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- smithy "github.com/aws/smithy-go"
- "github.com/aws/smithy-go/middleware"
- smithytime "github.com/aws/smithy-go/time"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- smithywaiter "github.com/aws/smithy-go/waiter"
- "strconv"
- "time"
-)
-
-// Describes the specified images (AMIs, AKIs, and ARIs) available to you or all
-// of the images available to you.
-//
-// The images available to you include public images, private images that you own,
-// and private images owned by other Amazon Web Services accounts for which you
-// have explicit launch permissions.
-//
-// Recently deregistered images appear in the returned results for a short
-// interval and then return empty results. After all instances that reference a
-// deregistered AMI are terminated, specifying the ID of the image will eventually
-// return an error indicating that the AMI ID cannot be found.
-//
-// When Allowed AMIs is set to enabled , only allowed images are returned in the
-// results, with the imageAllowed field set to true for each image. In audit-mode ,
-// the imageAllowed field is set to true for images that meet the account's
-// Allowed AMIs criteria, and false for images that don't meet the criteria. For
-// more information, see EnableAllowedImagesSettings.
-//
-// The Amazon EC2 API follows an eventual consistency model. This means that the
-// result of an API command you run that creates or modifies resources might not be
-// immediately available to all subsequent commands you run. For guidance on how to
-// manage eventual consistency, see [Eventual consistency in the Amazon EC2 API]in the Amazon EC2 Developer Guide.
-//
-// We strongly recommend using only paginated requests. Unpaginated requests are
-// susceptible to throttling and timeouts.
-//
-// The order of the elements in the response, including those within nested
-// structures, might vary. Applications should not assume the elements appear in a
-// particular order.
-//
-// [Eventual consistency in the Amazon EC2 API]: https://docs.aws.amazon.com/ec2/latest/devguide/eventual-consistency.html
-func (c *Client) DescribeImages(ctx context.Context, params *DescribeImagesInput, optFns ...func(*Options)) (*DescribeImagesOutput, error) {
- if params == nil {
- params = &DescribeImagesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeImages", params, optFns, c.addOperationDescribeImagesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeImagesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeImagesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Scopes the images by users with explicit launch permissions. Specify an Amazon
- // Web Services account ID, self (the sender of the request), or all (public AMIs).
- //
- // - If you specify an Amazon Web Services account ID that is not your own, only
- // AMIs shared with that specific Amazon Web Services account ID are returned.
- // However, AMIs that are shared with the account’s organization or organizational
- // unit (OU) are not returned.
- //
- // - If you specify self or your own Amazon Web Services account ID, AMIs shared
- // with your account are returned. In addition, AMIs that are shared with the
- // organization or OU of which you are member are also returned.
- //
- // - If you specify all , all public AMIs are returned.
- ExecutableUsers []string
-
- // The filters.
- //
- // - architecture - The image architecture ( i386 | x86_64 | arm64 | x86_64_mac |
- // arm64_mac ).
- //
- // - block-device-mapping.delete-on-termination - A Boolean value that indicates
- // whether the Amazon EBS volume is deleted on instance termination.
- //
- // - block-device-mapping.device-name - The device name specified in the block
- // device mapping (for example, /dev/sdh or xvdh ).
- //
- // - block-device-mapping.snapshot-id - The ID of the snapshot used for the
- // Amazon EBS volume.
- //
- // - block-device-mapping.volume-size - The volume size of the Amazon EBS volume,
- // in GiB.
- //
- // - block-device-mapping.volume-type - The volume type of the Amazon EBS volume (
- // io1 | io2 | gp2 | gp3 | sc1 | st1 | standard ).
- //
- // - block-device-mapping.encrypted - A Boolean that indicates whether the Amazon
- // EBS volume is encrypted.
- //
- // - creation-date - The time when the image was created, in the ISO 8601 format
- // in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for example,
- // 2021-09-29T11:04:43.305Z . You can use a wildcard ( * ), for example,
- // 2021-09-29T* , which matches an entire day.
- //
- // - description - The description of the image (provided during image creation).
- //
- // - ena-support - A Boolean that indicates whether enhanced networking with ENA
- // is enabled.
- //
- // - free-tier-eligible - A Boolean that indicates whether this image can be used
- // under the Amazon Web Services Free Tier ( true | false ).
- //
- // - hypervisor - The hypervisor type ( ovm | xen ).
- //
- // - image-allowed - A Boolean that indicates whether the image meets the
- // criteria specified for Allowed AMIs.
- //
- // - image-id - The ID of the image.
- //
- // - image-type - The image type ( machine | kernel | ramdisk ).
- //
- // - is-public - A Boolean that indicates whether the image is public.
- //
- // - kernel-id - The kernel ID.
- //
- // - manifest-location - The location of the image manifest.
- //
- // - name - The name of the AMI (provided during image creation).
- //
- // - owner-alias - The owner alias ( amazon | aws-backup-vault | aws-marketplace
- // ). The valid aliases are defined in an Amazon-maintained list. This is not the
- // Amazon Web Services account alias that can be set using the IAM console. We
- // recommend that you use the Owner request parameter instead of this filter.
- //
- // - owner-id - The Amazon Web Services account ID of the owner. We recommend
- // that you use the Owner request parameter instead of this filter.
- //
- // - platform - The platform. The only supported value is windows .
- //
- // - product-code - The product code.
- //
- // - product-code.type - The type of the product code ( marketplace ).
- //
- // - ramdisk-id - The RAM disk ID.
- //
- // - root-device-name - The device name of the root device volume (for example,
- // /dev/sda1 ).
- //
- // - root-device-type - The type of the root device volume ( ebs | instance-store
- // ).
- //
- // - source-image-id - The ID of the source AMI from which the AMI was created.
- //
- // - source-image-region - The Region of the source AMI.
- //
- // - source-instance-id - The ID of the instance that the AMI was created from if
- // the AMI was created using CreateImage. This filter is applicable only if the AMI
- // was created using [CreateImage].
- //
- // - state - The state of the image ( available | pending | failed ).
- //
- // - state-reason-code - The reason code for the state change.
- //
- // - state-reason-message - The message for the state change.
- //
- // - sriov-net-support - A value of simple indicates that enhanced networking
- // with the Intel 82599 VF interface is enabled.
- //
- // - tag: - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- //
- // - virtualization-type - The virtualization type ( paravirtual | hvm ).
- //
- // [CreateImage]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateImage.html
- Filters []types.Filter
-
- // The image IDs.
- //
- // Default: Describes all images available to you.
- ImageIds []string
-
- // Specifies whether to include deprecated AMIs.
- //
- // Default: No deprecated AMIs are included in the response.
- //
- // If you are the AMI owner, all deprecated AMIs appear in the response regardless
- // of what you specify for this parameter.
- IncludeDeprecated *bool
-
- // Specifies whether to include disabled AMIs.
- //
- // Default: No disabled AMIs are included in the response.
- IncludeDisabled *bool
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- // Scopes the results to images with the specified owners. You can specify a
- // combination of Amazon Web Services account IDs, self , amazon , aws-backup-vault
- // , and aws-marketplace . If you omit this parameter, the results include all
- // images for which you have launch permissions, regardless of ownership.
- Owners []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeImagesOutput struct {
-
- // Information about the images.
- Images []types.Image
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeImagesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeImages{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeImages{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeImages"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeImages(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// ImageAvailableWaiterOptions are waiter options for ImageAvailableWaiter
-type ImageAvailableWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // ImageAvailableWaiter will use default minimum delay of 15 seconds. Note that
- // MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, ImageAvailableWaiter will use default max delay of 120 seconds.
- // Note that MaxDelay must resolve to value greater than or equal to the MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeImagesInput, *DescribeImagesOutput, error) (bool, error)
-}
-
-// ImageAvailableWaiter defines the waiters for ImageAvailable
-type ImageAvailableWaiter struct {
- client DescribeImagesAPIClient
-
- options ImageAvailableWaiterOptions
-}
-
-// NewImageAvailableWaiter constructs a ImageAvailableWaiter.
-func NewImageAvailableWaiter(client DescribeImagesAPIClient, optFns ...func(*ImageAvailableWaiterOptions)) *ImageAvailableWaiter {
- options := ImageAvailableWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = imageAvailableStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &ImageAvailableWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for ImageAvailable waiter. The maxWaitDur is the
-// maximum wait duration the waiter will wait. The maxWaitDur is required and must
-// be greater than zero.
-func (w *ImageAvailableWaiter) Wait(ctx context.Context, params *DescribeImagesInput, maxWaitDur time.Duration, optFns ...func(*ImageAvailableWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for ImageAvailable waiter and returns
-// the output of the successful operation. The maxWaitDur is the maximum wait
-// duration the waiter will wait. The maxWaitDur is required and must be greater
-// than zero.
-func (w *ImageAvailableWaiter) WaitForOutput(ctx context.Context, params *DescribeImagesInput, maxWaitDur time.Duration, optFns ...func(*ImageAvailableWaiterOptions)) (*DescribeImagesOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeImages(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for ImageAvailable waiter")
-}
-
-func imageAvailableStateRetryable(ctx context.Context, input *DescribeImagesInput, output *DescribeImagesOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.Images
- var v2 []types.ImageState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "available"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err == nil {
- v1 := output.Images
- var v2 []types.ImageState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "failed"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// ImageExistsWaiterOptions are waiter options for ImageExistsWaiter
-type ImageExistsWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // ImageExistsWaiter will use default minimum delay of 15 seconds. Note that
- // MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, ImageExistsWaiter will use default max delay of 120 seconds. Note
- // that MaxDelay must resolve to value greater than or equal to the MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeImagesInput, *DescribeImagesOutput, error) (bool, error)
-}
-
-// ImageExistsWaiter defines the waiters for ImageExists
-type ImageExistsWaiter struct {
- client DescribeImagesAPIClient
-
- options ImageExistsWaiterOptions
-}
-
-// NewImageExistsWaiter constructs a ImageExistsWaiter.
-func NewImageExistsWaiter(client DescribeImagesAPIClient, optFns ...func(*ImageExistsWaiterOptions)) *ImageExistsWaiter {
- options := ImageExistsWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = imageExistsStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &ImageExistsWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for ImageExists waiter. The maxWaitDur is the
-// maximum wait duration the waiter will wait. The maxWaitDur is required and must
-// be greater than zero.
-func (w *ImageExistsWaiter) Wait(ctx context.Context, params *DescribeImagesInput, maxWaitDur time.Duration, optFns ...func(*ImageExistsWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for ImageExists waiter and returns the
-// output of the successful operation. The maxWaitDur is the maximum wait duration
-// the waiter will wait. The maxWaitDur is required and must be greater than zero.
-func (w *ImageExistsWaiter) WaitForOutput(ctx context.Context, params *DescribeImagesInput, maxWaitDur time.Duration, optFns ...func(*ImageExistsWaiterOptions)) (*DescribeImagesOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeImages(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for ImageExists waiter")
-}
-
-func imageExistsStateRetryable(ctx context.Context, input *DescribeImagesInput, output *DescribeImagesOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.Images
- v2 := len(v1)
- v3 := 0
- v4 := int64(v2) > int64(v3)
- expectedValue := "true"
- bv, err := strconv.ParseBool(expectedValue)
- if err != nil {
- return false, fmt.Errorf("error parsing boolean from string %w", err)
- }
- if v4 == bv {
- return false, nil
- }
- }
-
- if err != nil {
- var apiErr smithy.APIError
- ok := errors.As(err, &apiErr)
- if !ok {
- return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err)
- }
-
- if "InvalidAMIID.NotFound" == apiErr.ErrorCode() {
- return true, nil
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// DescribeImagesPaginatorOptions is the paginator options for DescribeImages
-type DescribeImagesPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeImagesPaginator is a paginator for DescribeImages
-type DescribeImagesPaginator struct {
- options DescribeImagesPaginatorOptions
- client DescribeImagesAPIClient
- params *DescribeImagesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeImagesPaginator returns a new DescribeImagesPaginator
-func NewDescribeImagesPaginator(client DescribeImagesAPIClient, params *DescribeImagesInput, optFns ...func(*DescribeImagesPaginatorOptions)) *DescribeImagesPaginator {
- if params == nil {
- params = &DescribeImagesInput{}
- }
-
- options := DescribeImagesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeImagesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeImagesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeImages page.
-func (p *DescribeImagesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeImagesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeImages(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeImagesAPIClient is a client that implements the DescribeImages
-// operation.
-type DescribeImagesAPIClient interface {
- DescribeImages(context.Context, *DescribeImagesInput, ...func(*Options)) (*DescribeImagesOutput, error)
-}
-
-var _ DescribeImagesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeImages(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeImages",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImportImageTasks.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImportImageTasks.go
deleted file mode 100644
index 39339ad12..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImportImageTasks.go
+++ /dev/null
@@ -1,272 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Displays details about an import virtual machine or import snapshot tasks that
-// are already created.
-func (c *Client) DescribeImportImageTasks(ctx context.Context, params *DescribeImportImageTasksInput, optFns ...func(*Options)) (*DescribeImportImageTasksOutput, error) {
- if params == nil {
- params = &DescribeImportImageTasksInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeImportImageTasks", params, optFns, c.addOperationDescribeImportImageTasksMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeImportImageTasksOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeImportImageTasksInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Filter tasks using the task-state filter and one of the following values: active
- // , completed , deleting , or deleted .
- Filters []types.Filter
-
- // The IDs of the import image tasks.
- ImportTaskIds []string
-
- // The maximum number of results to return in a single call.
- MaxResults *int32
-
- // A token that indicates the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeImportImageTasksOutput struct {
-
- // A list of zero or more import image tasks that are currently active or were
- // completed or canceled in the previous 7 days.
- ImportImageTasks []types.ImportImageTask
-
- // The token to use to get the next page of results. This value is null when there
- // are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeImportImageTasksMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeImportImageTasks{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeImportImageTasks{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeImportImageTasks"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeImportImageTasks(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeImportImageTasksPaginatorOptions is the paginator options for
-// DescribeImportImageTasks
-type DescribeImportImageTasksPaginatorOptions struct {
- // The maximum number of results to return in a single call.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeImportImageTasksPaginator is a paginator for DescribeImportImageTasks
-type DescribeImportImageTasksPaginator struct {
- options DescribeImportImageTasksPaginatorOptions
- client DescribeImportImageTasksAPIClient
- params *DescribeImportImageTasksInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeImportImageTasksPaginator returns a new
-// DescribeImportImageTasksPaginator
-func NewDescribeImportImageTasksPaginator(client DescribeImportImageTasksAPIClient, params *DescribeImportImageTasksInput, optFns ...func(*DescribeImportImageTasksPaginatorOptions)) *DescribeImportImageTasksPaginator {
- if params == nil {
- params = &DescribeImportImageTasksInput{}
- }
-
- options := DescribeImportImageTasksPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeImportImageTasksPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeImportImageTasksPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeImportImageTasks page.
-func (p *DescribeImportImageTasksPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeImportImageTasksOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeImportImageTasks(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeImportImageTasksAPIClient is a client that implements the
-// DescribeImportImageTasks operation.
-type DescribeImportImageTasksAPIClient interface {
- DescribeImportImageTasks(context.Context, *DescribeImportImageTasksInput, ...func(*Options)) (*DescribeImportImageTasksOutput, error)
-}
-
-var _ DescribeImportImageTasksAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeImportImageTasks(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeImportImageTasks",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImportSnapshotTasks.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImportSnapshotTasks.go
deleted file mode 100644
index d29680d29..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImportSnapshotTasks.go
+++ /dev/null
@@ -1,497 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithytime "github.com/aws/smithy-go/time"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- smithywaiter "github.com/aws/smithy-go/waiter"
- "time"
-)
-
-// Describes your import snapshot tasks.
-func (c *Client) DescribeImportSnapshotTasks(ctx context.Context, params *DescribeImportSnapshotTasksInput, optFns ...func(*Options)) (*DescribeImportSnapshotTasksOutput, error) {
- if params == nil {
- params = &DescribeImportSnapshotTasksInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeImportSnapshotTasks", params, optFns, c.addOperationDescribeImportSnapshotTasksMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeImportSnapshotTasksOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeImportSnapshotTasksInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- Filters []types.Filter
-
- // A list of import snapshot task IDs.
- ImportTaskIds []string
-
- // The maximum number of results to return in a single call. To retrieve the
- // remaining results, make another call with the returned NextToken value.
- MaxResults *int32
-
- // A token that indicates the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeImportSnapshotTasksOutput struct {
-
- // A list of zero or more import snapshot tasks that are currently active or were
- // completed or canceled in the previous 7 days.
- ImportSnapshotTasks []types.ImportSnapshotTask
-
- // The token to use to get the next page of results. This value is null when there
- // are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeImportSnapshotTasksMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeImportSnapshotTasks{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeImportSnapshotTasks{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeImportSnapshotTasks"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeImportSnapshotTasks(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// SnapshotImportedWaiterOptions are waiter options for SnapshotImportedWaiter
-type SnapshotImportedWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // SnapshotImportedWaiter will use default minimum delay of 15 seconds. Note that
- // MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, SnapshotImportedWaiter will use default max delay of 120 seconds.
- // Note that MaxDelay must resolve to value greater than or equal to the MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeImportSnapshotTasksInput, *DescribeImportSnapshotTasksOutput, error) (bool, error)
-}
-
-// SnapshotImportedWaiter defines the waiters for SnapshotImported
-type SnapshotImportedWaiter struct {
- client DescribeImportSnapshotTasksAPIClient
-
- options SnapshotImportedWaiterOptions
-}
-
-// NewSnapshotImportedWaiter constructs a SnapshotImportedWaiter.
-func NewSnapshotImportedWaiter(client DescribeImportSnapshotTasksAPIClient, optFns ...func(*SnapshotImportedWaiterOptions)) *SnapshotImportedWaiter {
- options := SnapshotImportedWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = snapshotImportedStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &SnapshotImportedWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for SnapshotImported waiter. The maxWaitDur is
-// the maximum wait duration the waiter will wait. The maxWaitDur is required and
-// must be greater than zero.
-func (w *SnapshotImportedWaiter) Wait(ctx context.Context, params *DescribeImportSnapshotTasksInput, maxWaitDur time.Duration, optFns ...func(*SnapshotImportedWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for SnapshotImported waiter and returns
-// the output of the successful operation. The maxWaitDur is the maximum wait
-// duration the waiter will wait. The maxWaitDur is required and must be greater
-// than zero.
-func (w *SnapshotImportedWaiter) WaitForOutput(ctx context.Context, params *DescribeImportSnapshotTasksInput, maxWaitDur time.Duration, optFns ...func(*SnapshotImportedWaiterOptions)) (*DescribeImportSnapshotTasksOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeImportSnapshotTasks(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for SnapshotImported waiter")
-}
-
-func snapshotImportedStateRetryable(ctx context.Context, input *DescribeImportSnapshotTasksInput, output *DescribeImportSnapshotTasksOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.ImportSnapshotTasks
- var v2 []string
- for _, v := range v1 {
- v3 := v.SnapshotTaskDetail
- var v4 *string
- if v3 != nil {
- v5 := v3.Status
- v4 = v5
- }
- if v4 != nil {
- v2 = append(v2, *v4)
- }
- }
- expectedValue := "completed"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err == nil {
- v1 := output.ImportSnapshotTasks
- var v2 []string
- for _, v := range v1 {
- v3 := v.SnapshotTaskDetail
- var v4 *string
- if v3 != nil {
- v5 := v3.Status
- v4 = v5
- }
- if v4 != nil {
- v2 = append(v2, *v4)
- }
- }
- expectedValue := "error"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// DescribeImportSnapshotTasksPaginatorOptions is the paginator options for
-// DescribeImportSnapshotTasks
-type DescribeImportSnapshotTasksPaginatorOptions struct {
- // The maximum number of results to return in a single call. To retrieve the
- // remaining results, make another call with the returned NextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeImportSnapshotTasksPaginator is a paginator for
-// DescribeImportSnapshotTasks
-type DescribeImportSnapshotTasksPaginator struct {
- options DescribeImportSnapshotTasksPaginatorOptions
- client DescribeImportSnapshotTasksAPIClient
- params *DescribeImportSnapshotTasksInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeImportSnapshotTasksPaginator returns a new
-// DescribeImportSnapshotTasksPaginator
-func NewDescribeImportSnapshotTasksPaginator(client DescribeImportSnapshotTasksAPIClient, params *DescribeImportSnapshotTasksInput, optFns ...func(*DescribeImportSnapshotTasksPaginatorOptions)) *DescribeImportSnapshotTasksPaginator {
- if params == nil {
- params = &DescribeImportSnapshotTasksInput{}
- }
-
- options := DescribeImportSnapshotTasksPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeImportSnapshotTasksPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeImportSnapshotTasksPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeImportSnapshotTasks page.
-func (p *DescribeImportSnapshotTasksPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeImportSnapshotTasksOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeImportSnapshotTasks(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeImportSnapshotTasksAPIClient is a client that implements the
-// DescribeImportSnapshotTasks operation.
-type DescribeImportSnapshotTasksAPIClient interface {
- DescribeImportSnapshotTasks(context.Context, *DescribeImportSnapshotTasksInput, ...func(*Options)) (*DescribeImportSnapshotTasksOutput, error)
-}
-
-var _ DescribeImportSnapshotTasksAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeImportSnapshotTasks(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeImportSnapshotTasks",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceAttribute.go
deleted file mode 100644
index 4c5bba14f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceAttribute.go
+++ /dev/null
@@ -1,228 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified attribute of the specified instance. You can specify
-// only one attribute at a time.
-func (c *Client) DescribeInstanceAttribute(ctx context.Context, params *DescribeInstanceAttributeInput, optFns ...func(*Options)) (*DescribeInstanceAttributeOutput, error) {
- if params == nil {
- params = &DescribeInstanceAttributeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceAttribute", params, optFns, c.addOperationDescribeInstanceAttributeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeInstanceAttributeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeInstanceAttributeInput struct {
-
- // The instance attribute.
- //
- // Note that the enaSupport attribute is not supported.
- //
- // This member is required.
- Attribute types.InstanceAttributeName
-
- // The ID of the instance.
- //
- // This member is required.
- InstanceId *string
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-// Describes an instance attribute.
-type DescribeInstanceAttributeOutput struct {
-
- // The block device mapping of the instance.
- BlockDeviceMappings []types.InstanceBlockDeviceMapping
-
- // Indicates whether stop protection is enabled for the instance.
- DisableApiStop *types.AttributeBooleanValue
-
- // Indicates whether termination protection is enabled. If the value is true , you
- // can't terminate the instance using the Amazon EC2 console, command line tools,
- // or API.
- DisableApiTermination *types.AttributeBooleanValue
-
- // Indicates whether the instance is optimized for Amazon EBS I/O.
- EbsOptimized *types.AttributeBooleanValue
-
- // Indicates whether enhanced networking with ENA is enabled.
- EnaSupport *types.AttributeBooleanValue
-
- // Indicates whether the instance is enabled for Amazon Web Services Nitro
- // Enclaves.
- EnclaveOptions *types.EnclaveOptions
-
- // The security groups associated with the instance.
- Groups []types.GroupIdentifier
-
- // The ID of the instance.
- InstanceId *string
-
- // Indicates whether an instance stops or terminates when you initiate shutdown
- // from the instance (using the operating system command for system shutdown).
- InstanceInitiatedShutdownBehavior *types.AttributeValue
-
- // The instance type.
- InstanceType *types.AttributeValue
-
- // The kernel ID.
- KernelId *types.AttributeValue
-
- // The product codes.
- ProductCodes []types.ProductCode
-
- // The RAM disk ID.
- RamdiskId *types.AttributeValue
-
- // The device name of the root device volume (for example, /dev/sda1 ).
- RootDeviceName *types.AttributeValue
-
- // Indicates whether source/destination checks are enabled.
- SourceDestCheck *types.AttributeBooleanValue
-
- // Indicates whether enhanced networking with the Intel 82599 Virtual Function
- // interface is enabled.
- SriovNetSupport *types.AttributeValue
-
- // The user data.
- UserData *types.AttributeValue
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeInstanceAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeInstanceAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeInstanceAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeInstanceAttribute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDescribeInstanceAttributeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeInstanceAttribute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeInstanceAttribute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeInstanceAttribute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceConnectEndpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceConnectEndpoints.go
deleted file mode 100644
index d3c83cfe8..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceConnectEndpoints.go
+++ /dev/null
@@ -1,303 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified EC2 Instance Connect Endpoints or all EC2 Instance
-// Connect Endpoints.
-func (c *Client) DescribeInstanceConnectEndpoints(ctx context.Context, params *DescribeInstanceConnectEndpointsInput, optFns ...func(*Options)) (*DescribeInstanceConnectEndpointsOutput, error) {
- if params == nil {
- params = &DescribeInstanceConnectEndpointsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceConnectEndpoints", params, optFns, c.addOperationDescribeInstanceConnectEndpointsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeInstanceConnectEndpointsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeInstanceConnectEndpointsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - instance-connect-endpoint-id - The ID of the EC2 Instance Connect Endpoint.
- //
- // - state - The state of the EC2 Instance Connect Endpoint ( create-in-progress
- // | create-complete | create-failed | delete-in-progress | delete-complete |
- // delete-failed ).
- //
- // - subnet-id - The ID of the subnet in which the EC2 Instance Connect Endpoint
- // was created.
- //
- // - tag : - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- //
- // - tag-value - The value of a tag assigned to the resource. Use this filter to
- // find all resources that have a tag with a specific value, regardless of tag key.
- //
- // - vpc-id - The ID of the VPC in which the EC2 Instance Connect Endpoint was
- // created.
- Filters []types.Filter
-
- // One or more EC2 Instance Connect Endpoint IDs.
- InstanceConnectEndpointIds []string
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeInstanceConnectEndpointsOutput struct {
-
- // Information about the EC2 Instance Connect Endpoints.
- InstanceConnectEndpoints []types.Ec2InstanceConnectEndpoint
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeInstanceConnectEndpointsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeInstanceConnectEndpoints{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeInstanceConnectEndpoints{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeInstanceConnectEndpoints"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeInstanceConnectEndpoints(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeInstanceConnectEndpointsPaginatorOptions is the paginator options for
-// DescribeInstanceConnectEndpoints
-type DescribeInstanceConnectEndpointsPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeInstanceConnectEndpointsPaginator is a paginator for
-// DescribeInstanceConnectEndpoints
-type DescribeInstanceConnectEndpointsPaginator struct {
- options DescribeInstanceConnectEndpointsPaginatorOptions
- client DescribeInstanceConnectEndpointsAPIClient
- params *DescribeInstanceConnectEndpointsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeInstanceConnectEndpointsPaginator returns a new
-// DescribeInstanceConnectEndpointsPaginator
-func NewDescribeInstanceConnectEndpointsPaginator(client DescribeInstanceConnectEndpointsAPIClient, params *DescribeInstanceConnectEndpointsInput, optFns ...func(*DescribeInstanceConnectEndpointsPaginatorOptions)) *DescribeInstanceConnectEndpointsPaginator {
- if params == nil {
- params = &DescribeInstanceConnectEndpointsInput{}
- }
-
- options := DescribeInstanceConnectEndpointsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeInstanceConnectEndpointsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeInstanceConnectEndpointsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeInstanceConnectEndpoints page.
-func (p *DescribeInstanceConnectEndpointsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeInstanceConnectEndpointsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeInstanceConnectEndpoints(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeInstanceConnectEndpointsAPIClient is a client that implements the
-// DescribeInstanceConnectEndpoints operation.
-type DescribeInstanceConnectEndpointsAPIClient interface {
- DescribeInstanceConnectEndpoints(context.Context, *DescribeInstanceConnectEndpointsInput, ...func(*Options)) (*DescribeInstanceConnectEndpointsOutput, error)
-}
-
-var _ DescribeInstanceConnectEndpointsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeInstanceConnectEndpoints(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeInstanceConnectEndpoints",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceCreditSpecifications.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceCreditSpecifications.go
deleted file mode 100644
index efd0476b3..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceCreditSpecifications.go
+++ /dev/null
@@ -1,315 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the credit option for CPU usage of the specified burstable
-// performance instances. The credit options are standard and unlimited .
-//
-// If you do not specify an instance ID, Amazon EC2 returns burstable performance
-// instances with the unlimited credit option, as well as instances that were
-// previously configured as T2, T3, and T3a with the unlimited credit option. For
-// example, if you resize a T2 instance, while it is configured as unlimited , to
-// an M4 instance, Amazon EC2 returns the M4 instance.
-//
-// If you specify one or more instance IDs, Amazon EC2 returns the credit option (
-// standard or unlimited ) of those instances. If you specify an instance ID that
-// is not valid, such as an instance that is not a burstable performance instance,
-// an error is returned.
-//
-// Recently terminated instances might appear in the returned results. This
-// interval is usually less than one hour.
-//
-// If an Availability Zone is experiencing a service disruption and you specify
-// instance IDs in the affected zone, or do not specify any instance IDs at all,
-// the call fails. If you specify only instance IDs in an unaffected zone, the call
-// works normally.
-//
-// For more information, see [Burstable performance instances] in the Amazon EC2 User Guide.
-//
-// [Burstable performance instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html
-func (c *Client) DescribeInstanceCreditSpecifications(ctx context.Context, params *DescribeInstanceCreditSpecificationsInput, optFns ...func(*Options)) (*DescribeInstanceCreditSpecificationsOutput, error) {
- if params == nil {
- params = &DescribeInstanceCreditSpecificationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceCreditSpecifications", params, optFns, c.addOperationDescribeInstanceCreditSpecificationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeInstanceCreditSpecificationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeInstanceCreditSpecificationsInput struct {
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - instance-id - The ID of the instance.
- Filters []types.Filter
-
- // The instance IDs.
- //
- // Default: Describes all your instances.
- //
- // Constraints: Maximum 1000 explicitly specified instance IDs.
- InstanceIds []string
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // You cannot specify this parameter and the instance IDs parameter in the same
- // call.
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeInstanceCreditSpecificationsOutput struct {
-
- // Information about the credit option for CPU usage of an instance.
- InstanceCreditSpecifications []types.InstanceCreditSpecification
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeInstanceCreditSpecificationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeInstanceCreditSpecifications{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeInstanceCreditSpecifications{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeInstanceCreditSpecifications"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeInstanceCreditSpecifications(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeInstanceCreditSpecificationsPaginatorOptions is the paginator options
-// for DescribeInstanceCreditSpecifications
-type DescribeInstanceCreditSpecificationsPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // You cannot specify this parameter and the instance IDs parameter in the same
- // call.
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeInstanceCreditSpecificationsPaginator is a paginator for
-// DescribeInstanceCreditSpecifications
-type DescribeInstanceCreditSpecificationsPaginator struct {
- options DescribeInstanceCreditSpecificationsPaginatorOptions
- client DescribeInstanceCreditSpecificationsAPIClient
- params *DescribeInstanceCreditSpecificationsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeInstanceCreditSpecificationsPaginator returns a new
-// DescribeInstanceCreditSpecificationsPaginator
-func NewDescribeInstanceCreditSpecificationsPaginator(client DescribeInstanceCreditSpecificationsAPIClient, params *DescribeInstanceCreditSpecificationsInput, optFns ...func(*DescribeInstanceCreditSpecificationsPaginatorOptions)) *DescribeInstanceCreditSpecificationsPaginator {
- if params == nil {
- params = &DescribeInstanceCreditSpecificationsInput{}
- }
-
- options := DescribeInstanceCreditSpecificationsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeInstanceCreditSpecificationsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeInstanceCreditSpecificationsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeInstanceCreditSpecifications page.
-func (p *DescribeInstanceCreditSpecificationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeInstanceCreditSpecificationsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeInstanceCreditSpecifications(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeInstanceCreditSpecificationsAPIClient is a client that implements the
-// DescribeInstanceCreditSpecifications operation.
-type DescribeInstanceCreditSpecificationsAPIClient interface {
- DescribeInstanceCreditSpecifications(context.Context, *DescribeInstanceCreditSpecificationsInput, ...func(*Options)) (*DescribeInstanceCreditSpecificationsOutput, error)
-}
-
-var _ DescribeInstanceCreditSpecificationsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeInstanceCreditSpecifications(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeInstanceCreditSpecifications",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceEventNotificationAttributes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceEventNotificationAttributes.go
deleted file mode 100644
index ff3f7f984..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceEventNotificationAttributes.go
+++ /dev/null
@@ -1,159 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the tag keys that are registered to appear in scheduled event
-// notifications for resources in the current Region.
-func (c *Client) DescribeInstanceEventNotificationAttributes(ctx context.Context, params *DescribeInstanceEventNotificationAttributesInput, optFns ...func(*Options)) (*DescribeInstanceEventNotificationAttributesOutput, error) {
- if params == nil {
- params = &DescribeInstanceEventNotificationAttributesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceEventNotificationAttributes", params, optFns, c.addOperationDescribeInstanceEventNotificationAttributesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeInstanceEventNotificationAttributesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeInstanceEventNotificationAttributesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DescribeInstanceEventNotificationAttributesOutput struct {
-
- // Information about the registered tag keys.
- InstanceTagAttribute *types.InstanceTagNotificationAttribute
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeInstanceEventNotificationAttributesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeInstanceEventNotificationAttributes{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeInstanceEventNotificationAttributes{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeInstanceEventNotificationAttributes"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeInstanceEventNotificationAttributes(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeInstanceEventNotificationAttributes(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeInstanceEventNotificationAttributes",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceEventWindows.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceEventWindows.go
deleted file mode 100644
index d7286441c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceEventWindows.go
+++ /dev/null
@@ -1,317 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified event windows or all event windows.
-//
-// If you specify event window IDs, the output includes information for only the
-// specified event windows. If you specify filters, the output includes information
-// for only those event windows that meet the filter criteria. If you do not
-// specify event windows IDs or filters, the output includes information for all
-// event windows, which can affect performance. We recommend that you use
-// pagination to ensure that the operation returns quickly and successfully.
-//
-// For more information, see [Define event windows for scheduled events] in the Amazon EC2 User Guide.
-//
-// [Define event windows for scheduled events]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html
-func (c *Client) DescribeInstanceEventWindows(ctx context.Context, params *DescribeInstanceEventWindowsInput, optFns ...func(*Options)) (*DescribeInstanceEventWindowsOutput, error) {
- if params == nil {
- params = &DescribeInstanceEventWindowsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceEventWindows", params, optFns, c.addOperationDescribeInstanceEventWindowsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeInstanceEventWindowsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Describe instance event windows by InstanceEventWindow.
-type DescribeInstanceEventWindowsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - dedicated-host-id - The event windows associated with the specified
- // Dedicated Host ID.
- //
- // - event-window-name - The event windows associated with the specified names.
- //
- // - instance-id - The event windows associated with the specified instance ID.
- //
- // - instance-tag - The event windows associated with the specified tag and value.
- //
- // - instance-tag-key - The event windows associated with the specified tag key,
- // regardless of the value.
- //
- // - instance-tag-value - The event windows associated with the specified tag
- // value, regardless of the key.
- //
- // - tag: - The key/value combination of a tag assigned to the event window. Use
- // the tag key in the filter name and the tag value as the filter value. For
- // example, to find all resources that have a tag with the key Owner and the
- // value CMX , specify tag:Owner for the filter name and CMX for the filter
- // value.
- //
- // - tag-key - The key of a tag assigned to the event window. Use this filter to
- // find all event windows that have a tag with a specific key, regardless of the
- // tag value.
- //
- // - tag-value - The value of a tag assigned to the event window. Use this filter
- // to find all event windows that have a tag with a specific value, regardless of
- // the tag key.
- Filters []types.Filter
-
- // The IDs of the event windows.
- InstanceEventWindowIds []string
-
- // The maximum number of results to return in a single call. To retrieve the
- // remaining results, make another call with the returned NextToken value. This
- // value can be between 20 and 500. You cannot specify this parameter and the event
- // window IDs parameter in the same call.
- MaxResults *int32
-
- // The token to request the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeInstanceEventWindowsOutput struct {
-
- // Information about the event windows.
- InstanceEventWindows []types.InstanceEventWindow
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeInstanceEventWindowsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeInstanceEventWindows{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeInstanceEventWindows{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeInstanceEventWindows"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeInstanceEventWindows(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeInstanceEventWindowsPaginatorOptions is the paginator options for
-// DescribeInstanceEventWindows
-type DescribeInstanceEventWindowsPaginatorOptions struct {
- // The maximum number of results to return in a single call. To retrieve the
- // remaining results, make another call with the returned NextToken value. This
- // value can be between 20 and 500. You cannot specify this parameter and the event
- // window IDs parameter in the same call.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeInstanceEventWindowsPaginator is a paginator for
-// DescribeInstanceEventWindows
-type DescribeInstanceEventWindowsPaginator struct {
- options DescribeInstanceEventWindowsPaginatorOptions
- client DescribeInstanceEventWindowsAPIClient
- params *DescribeInstanceEventWindowsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeInstanceEventWindowsPaginator returns a new
-// DescribeInstanceEventWindowsPaginator
-func NewDescribeInstanceEventWindowsPaginator(client DescribeInstanceEventWindowsAPIClient, params *DescribeInstanceEventWindowsInput, optFns ...func(*DescribeInstanceEventWindowsPaginatorOptions)) *DescribeInstanceEventWindowsPaginator {
- if params == nil {
- params = &DescribeInstanceEventWindowsInput{}
- }
-
- options := DescribeInstanceEventWindowsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeInstanceEventWindowsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeInstanceEventWindowsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeInstanceEventWindows page.
-func (p *DescribeInstanceEventWindowsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeInstanceEventWindowsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeInstanceEventWindows(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeInstanceEventWindowsAPIClient is a client that implements the
-// DescribeInstanceEventWindows operation.
-type DescribeInstanceEventWindowsAPIClient interface {
- DescribeInstanceEventWindows(context.Context, *DescribeInstanceEventWindowsInput, ...func(*Options)) (*DescribeInstanceEventWindowsOutput, error)
-}
-
-var _ DescribeInstanceEventWindowsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeInstanceEventWindows(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeInstanceEventWindows",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceImageMetadata.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceImageMetadata.go
deleted file mode 100644
index 4a7901896..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceImageMetadata.go
+++ /dev/null
@@ -1,348 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the AMI that was used to launch an instance, even if the AMI is
-// deprecated, deregistered, made private (no longer public or shared with your
-// account), or not allowed.
-//
-// If you specify instance IDs, the output includes information for only the
-// specified instances. If you specify filters, the output includes information for
-// only those instances that meet the filter criteria. If you do not specify
-// instance IDs or filters, the output includes information for all instances,
-// which can affect performance.
-//
-// If you specify an instance ID that is not valid, an instance that doesn't
-// exist, or an instance that you do not own, an error ( InvalidInstanceID.NotFound
-// ) is returned.
-//
-// Recently terminated instances might appear in the returned results. This
-// interval is usually less than one hour.
-//
-// In the rare case where an Availability Zone is experiencing a service
-// disruption and you specify instance IDs that are in the affected Availability
-// Zone, or do not specify any instance IDs at all, the call fails. If you specify
-// only instance IDs that are in an unaffected Availability Zone, the call works
-// normally.
-//
-// The order of the elements in the response, including those within nested
-// structures, might vary. Applications should not assume the elements appear in a
-// particular order.
-func (c *Client) DescribeInstanceImageMetadata(ctx context.Context, params *DescribeInstanceImageMetadataInput, optFns ...func(*Options)) (*DescribeInstanceImageMetadataOutput, error) {
- if params == nil {
- params = &DescribeInstanceImageMetadataInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceImageMetadata", params, optFns, c.addOperationDescribeInstanceImageMetadataMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeInstanceImageMetadataOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeInstanceImageMetadataInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - availability-zone - The name of the Availability Zone (for example,
- // us-west-2a ) or Local Zone (for example, us-west-2-lax-1b ) of the instance.
- //
- // - instance-id - The ID of the instance.
- //
- // - image-allowed - A Boolean that indicates whether the image meets the
- // criteria specified for Allowed AMIs.
- //
- // - instance-state-name - The state of the instance ( pending | running |
- // shutting-down | terminated | stopping | stopped ).
- //
- // - instance-type - The type of instance (for example, t3.micro ).
- //
- // - launch-time - The time when the instance was launched, in the ISO 8601
- // format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for example,
- // 2023-09-29T11:04:43.305Z . You can use a wildcard ( * ), for example,
- // 2023-09-29T* , which matches an entire day.
- //
- // - owner-alias - The owner alias ( amazon | aws-marketplace | aws-backup-vault
- // ). The valid aliases are defined in an Amazon-maintained list. This is not the
- // Amazon Web Services account alias that can be set using the IAM console. We
- // recommend that you use the Owner request parameter instead of this filter.
- //
- // - owner-id - The Amazon Web Services account ID of the owner. We recommend
- // that you use the Owner request parameter instead of this filter.
- //
- // - tag: - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- //
- // - zone-id - The ID of the Availability Zone (for example, usw2-az2 ) or Local
- // Zone (for example, usw2-lax1-az1 ) of the instance.
- Filters []types.Filter
-
- // The instance IDs.
- //
- // If you don't specify an instance ID or filters, the output includes information
- // for all instances.
- InstanceIds []string
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // Default: 1000
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeInstanceImageMetadataOutput struct {
-
- // Information about the instance and the AMI used to launch the instance.
- InstanceImageMetadata []types.InstanceImageMetadata
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeInstanceImageMetadataMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeInstanceImageMetadata{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeInstanceImageMetadata{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeInstanceImageMetadata"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeInstanceImageMetadata(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeInstanceImageMetadataPaginatorOptions is the paginator options for
-// DescribeInstanceImageMetadata
-type DescribeInstanceImageMetadataPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // Default: 1000
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeInstanceImageMetadataPaginator is a paginator for
-// DescribeInstanceImageMetadata
-type DescribeInstanceImageMetadataPaginator struct {
- options DescribeInstanceImageMetadataPaginatorOptions
- client DescribeInstanceImageMetadataAPIClient
- params *DescribeInstanceImageMetadataInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeInstanceImageMetadataPaginator returns a new
-// DescribeInstanceImageMetadataPaginator
-func NewDescribeInstanceImageMetadataPaginator(client DescribeInstanceImageMetadataAPIClient, params *DescribeInstanceImageMetadataInput, optFns ...func(*DescribeInstanceImageMetadataPaginatorOptions)) *DescribeInstanceImageMetadataPaginator {
- if params == nil {
- params = &DescribeInstanceImageMetadataInput{}
- }
-
- options := DescribeInstanceImageMetadataPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeInstanceImageMetadataPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeInstanceImageMetadataPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeInstanceImageMetadata page.
-func (p *DescribeInstanceImageMetadataPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeInstanceImageMetadataOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeInstanceImageMetadata(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeInstanceImageMetadataAPIClient is a client that implements the
-// DescribeInstanceImageMetadata operation.
-type DescribeInstanceImageMetadataAPIClient interface {
- DescribeInstanceImageMetadata(context.Context, *DescribeInstanceImageMetadataInput, ...func(*Options)) (*DescribeInstanceImageMetadataOutput, error)
-}
-
-var _ DescribeInstanceImageMetadataAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeInstanceImageMetadata(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeInstanceImageMetadata",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceStatus.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceStatus.go
deleted file mode 100644
index 407713a10..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceStatus.go
+++ /dev/null
@@ -1,772 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "errors"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- smithy "github.com/aws/smithy-go"
- "github.com/aws/smithy-go/middleware"
- smithytime "github.com/aws/smithy-go/time"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- smithywaiter "github.com/aws/smithy-go/waiter"
- "time"
-)
-
-// Describes the status of the specified instances or all of your instances. By
-// default, only running instances are described, unless you specifically indicate
-// to return the status of all instances.
-//
-// Instance status includes the following components:
-//
-// - Status checks - Amazon EC2 performs status checks on running EC2 instances
-// to identify hardware and software issues. For more information, see [Status checks for your instances]and [Troubleshoot instances with failed status checks]in
-// the Amazon EC2 User Guide.
-//
-// - Scheduled events - Amazon EC2 can schedule events (such as reboot, stop, or
-// terminate) for your instances related to hardware issues, software updates, or
-// system maintenance. For more information, see [Scheduled events for your instances]in the Amazon EC2 User Guide.
-//
-// - Instance state - You can manage your instances from the moment you launch
-// them through their termination. For more information, see [Instance lifecycle]in the Amazon EC2
-// User Guide.
-//
-// The Amazon EC2 API follows an eventual consistency model. This means that the
-// result of an API command you run that creates or modifies resources might not be
-// immediately available to all subsequent commands you run. For guidance on how to
-// manage eventual consistency, see [Eventual consistency in the Amazon EC2 API]in the Amazon EC2 Developer Guide.
-//
-// The order of the elements in the response, including those within nested
-// structures, might vary. Applications should not assume the elements appear in a
-// particular order.
-//
-// [Troubleshoot instances with failed status checks]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstances.html
-// [Instance lifecycle]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html
-// [Status checks for your instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-system-instance-status-check.html
-// [Eventual consistency in the Amazon EC2 API]: https://docs.aws.amazon.com/ec2/latest/devguide/eventual-consistency.html
-// [Scheduled events for your instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instances-status-check_sched.html
-func (c *Client) DescribeInstanceStatus(ctx context.Context, params *DescribeInstanceStatusInput, optFns ...func(*Options)) (*DescribeInstanceStatusOutput, error) {
- if params == nil {
- params = &DescribeInstanceStatusInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceStatus", params, optFns, c.addOperationDescribeInstanceStatusMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeInstanceStatusOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeInstanceStatusInput struct {
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - availability-zone - The Availability Zone of the instance.
- //
- // - event.code - The code for the scheduled event ( instance-reboot |
- // system-reboot | system-maintenance | instance-retirement | instance-stop ).
- //
- // - event.description - A description of the event.
- //
- // - event.instance-event-id - The ID of the event whose date and time you are
- // modifying.
- //
- // - event.not-after - The latest end time for the scheduled event (for example,
- // 2014-09-15T17:15:20.000Z ).
- //
- // - event.not-before - The earliest start time for the scheduled event (for
- // example, 2014-09-15T17:15:20.000Z ).
- //
- // - event.not-before-deadline - The deadline for starting the event (for
- // example, 2014-09-15T17:15:20.000Z ).
- //
- // - instance-state-code - The code for the instance state, as a 16-bit unsigned
- // integer. The high byte is used for internal purposes and should be ignored. The
- // low byte is set based on the state represented. The valid values are 0
- // (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping), and
- // 80 (stopped).
- //
- // - instance-state-name - The state of the instance ( pending | running |
- // shutting-down | terminated | stopping | stopped ).
- //
- // - instance-status.reachability - Filters on instance status where the name is
- // reachability ( passed | failed | initializing | insufficient-data ).
- //
- // - instance-status.status - The status of the instance ( ok | impaired |
- // initializing | insufficient-data | not-applicable ).
- //
- // - operator.managed - A Boolean that indicates whether this is a managed
- // instance.
- //
- // - operator.principal - The principal that manages the instance. Only valid for
- // managed instances, where managed is true .
- //
- // - system-status.reachability - Filters on system status where the name is
- // reachability ( passed | failed | initializing | insufficient-data ).
- //
- // - system-status.status - The system status of the instance ( ok | impaired |
- // initializing | insufficient-data | not-applicable ).
- //
- // - attached-ebs-status.status - The status of the attached EBS volume for the
- // instance ( ok | impaired | initializing | insufficient-data | not-applicable ).
- Filters []types.Filter
-
- // When true , includes the health status for all instances. When false , includes
- // the health status for running instances only.
- //
- // Default: false
- IncludeAllInstances *bool
-
- // The instance IDs.
- //
- // Default: Describes all your instances.
- //
- // Constraints: Maximum 100 explicitly specified instance IDs.
- InstanceIds []string
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // You cannot specify this parameter and the instance IDs parameter in the same
- // request.
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeInstanceStatusOutput struct {
-
- // Information about the status of the instances.
- InstanceStatuses []types.InstanceStatus
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeInstanceStatusMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeInstanceStatus{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeInstanceStatus{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeInstanceStatus"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeInstanceStatus(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// InstanceStatusOkWaiterOptions are waiter options for InstanceStatusOkWaiter
-type InstanceStatusOkWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // InstanceStatusOkWaiter will use default minimum delay of 15 seconds. Note that
- // MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, InstanceStatusOkWaiter will use default max delay of 120 seconds.
- // Note that MaxDelay must resolve to value greater than or equal to the MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeInstanceStatusInput, *DescribeInstanceStatusOutput, error) (bool, error)
-}
-
-// InstanceStatusOkWaiter defines the waiters for InstanceStatusOk
-type InstanceStatusOkWaiter struct {
- client DescribeInstanceStatusAPIClient
-
- options InstanceStatusOkWaiterOptions
-}
-
-// NewInstanceStatusOkWaiter constructs a InstanceStatusOkWaiter.
-func NewInstanceStatusOkWaiter(client DescribeInstanceStatusAPIClient, optFns ...func(*InstanceStatusOkWaiterOptions)) *InstanceStatusOkWaiter {
- options := InstanceStatusOkWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = instanceStatusOkStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &InstanceStatusOkWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for InstanceStatusOk waiter. The maxWaitDur is
-// the maximum wait duration the waiter will wait. The maxWaitDur is required and
-// must be greater than zero.
-func (w *InstanceStatusOkWaiter) Wait(ctx context.Context, params *DescribeInstanceStatusInput, maxWaitDur time.Duration, optFns ...func(*InstanceStatusOkWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for InstanceStatusOk waiter and returns
-// the output of the successful operation. The maxWaitDur is the maximum wait
-// duration the waiter will wait. The maxWaitDur is required and must be greater
-// than zero.
-func (w *InstanceStatusOkWaiter) WaitForOutput(ctx context.Context, params *DescribeInstanceStatusInput, maxWaitDur time.Duration, optFns ...func(*InstanceStatusOkWaiterOptions)) (*DescribeInstanceStatusOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeInstanceStatus(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for InstanceStatusOk waiter")
-}
-
-func instanceStatusOkStateRetryable(ctx context.Context, input *DescribeInstanceStatusInput, output *DescribeInstanceStatusOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.InstanceStatuses
- var v2 []types.SummaryStatus
- for _, v := range v1 {
- v3 := v.InstanceStatus
- var v4 types.SummaryStatus
- if v3 != nil {
- v5 := v3.Status
- v4 = v5
- }
- v2 = append(v2, v4)
- }
- expectedValue := "ok"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err != nil {
- var apiErr smithy.APIError
- ok := errors.As(err, &apiErr)
- if !ok {
- return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err)
- }
-
- if "InvalidInstanceID.NotFound" == apiErr.ErrorCode() {
- return true, nil
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// SystemStatusOkWaiterOptions are waiter options for SystemStatusOkWaiter
-type SystemStatusOkWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // SystemStatusOkWaiter will use default minimum delay of 15 seconds. Note that
- // MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, SystemStatusOkWaiter will use default max delay of 120 seconds.
- // Note that MaxDelay must resolve to value greater than or equal to the MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeInstanceStatusInput, *DescribeInstanceStatusOutput, error) (bool, error)
-}
-
-// SystemStatusOkWaiter defines the waiters for SystemStatusOk
-type SystemStatusOkWaiter struct {
- client DescribeInstanceStatusAPIClient
-
- options SystemStatusOkWaiterOptions
-}
-
-// NewSystemStatusOkWaiter constructs a SystemStatusOkWaiter.
-func NewSystemStatusOkWaiter(client DescribeInstanceStatusAPIClient, optFns ...func(*SystemStatusOkWaiterOptions)) *SystemStatusOkWaiter {
- options := SystemStatusOkWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = systemStatusOkStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &SystemStatusOkWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for SystemStatusOk waiter. The maxWaitDur is the
-// maximum wait duration the waiter will wait. The maxWaitDur is required and must
-// be greater than zero.
-func (w *SystemStatusOkWaiter) Wait(ctx context.Context, params *DescribeInstanceStatusInput, maxWaitDur time.Duration, optFns ...func(*SystemStatusOkWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for SystemStatusOk waiter and returns
-// the output of the successful operation. The maxWaitDur is the maximum wait
-// duration the waiter will wait. The maxWaitDur is required and must be greater
-// than zero.
-func (w *SystemStatusOkWaiter) WaitForOutput(ctx context.Context, params *DescribeInstanceStatusInput, maxWaitDur time.Duration, optFns ...func(*SystemStatusOkWaiterOptions)) (*DescribeInstanceStatusOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeInstanceStatus(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for SystemStatusOk waiter")
-}
-
-func systemStatusOkStateRetryable(ctx context.Context, input *DescribeInstanceStatusInput, output *DescribeInstanceStatusOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.InstanceStatuses
- var v2 []types.SummaryStatus
- for _, v := range v1 {
- v3 := v.SystemStatus
- var v4 types.SummaryStatus
- if v3 != nil {
- v5 := v3.Status
- v4 = v5
- }
- v2 = append(v2, v4)
- }
- expectedValue := "ok"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// DescribeInstanceStatusPaginatorOptions is the paginator options for
-// DescribeInstanceStatus
-type DescribeInstanceStatusPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // You cannot specify this parameter and the instance IDs parameter in the same
- // request.
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeInstanceStatusPaginator is a paginator for DescribeInstanceStatus
-type DescribeInstanceStatusPaginator struct {
- options DescribeInstanceStatusPaginatorOptions
- client DescribeInstanceStatusAPIClient
- params *DescribeInstanceStatusInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeInstanceStatusPaginator returns a new DescribeInstanceStatusPaginator
-func NewDescribeInstanceStatusPaginator(client DescribeInstanceStatusAPIClient, params *DescribeInstanceStatusInput, optFns ...func(*DescribeInstanceStatusPaginatorOptions)) *DescribeInstanceStatusPaginator {
- if params == nil {
- params = &DescribeInstanceStatusInput{}
- }
-
- options := DescribeInstanceStatusPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeInstanceStatusPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeInstanceStatusPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeInstanceStatus page.
-func (p *DescribeInstanceStatusPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeInstanceStatusOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeInstanceStatus(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeInstanceStatusAPIClient is a client that implements the
-// DescribeInstanceStatus operation.
-type DescribeInstanceStatusAPIClient interface {
- DescribeInstanceStatus(context.Context, *DescribeInstanceStatusInput, ...func(*Options)) (*DescribeInstanceStatusOutput, error)
-}
-
-var _ DescribeInstanceStatusAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeInstanceStatus(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeInstanceStatus",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceTopology.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceTopology.go
deleted file mode 100644
index 26726f3df..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceTopology.go
+++ /dev/null
@@ -1,327 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes a tree-based hierarchy that represents the physical host placement of
-// your EC2 instances within an Availability Zone or Local Zone. You can use this
-// information to determine the relative proximity of your EC2 instances within the
-// Amazon Web Services network to support your tightly coupled workloads.
-//
-// Instance topology is supported for specific instance types only. For more
-// information, see [Prerequisites for Amazon EC2 instance topology]in the Amazon EC2 User Guide.
-//
-// The Amazon EC2 API follows an eventual consistency model due to the distributed
-// nature of the system supporting it. As a result, when you call the
-// DescribeInstanceTopology API command immediately after launching instances, the
-// response might return a null value for capacityBlockId because the data might
-// not have fully propagated across all subsystems. For more information, see [Eventual consistency in the Amazon EC2 API]in
-// the Amazon EC2 Developer Guide.
-//
-// For more information, see [Amazon EC2 instance topology] in the Amazon EC2 User Guide.
-//
-// [Prerequisites for Amazon EC2 instance topology]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-topology-prerequisites.html
-// [Amazon EC2 instance topology]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-topology.html
-// [Eventual consistency in the Amazon EC2 API]: https://docs.aws.amazon.com/ec2/latest/devguide/eventual-consistency.html
-func (c *Client) DescribeInstanceTopology(ctx context.Context, params *DescribeInstanceTopologyInput, optFns ...func(*Options)) (*DescribeInstanceTopologyOutput, error) {
- if params == nil {
- params = &DescribeInstanceTopologyInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceTopology", params, optFns, c.addOperationDescribeInstanceTopologyMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeInstanceTopologyOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeInstanceTopologyInput struct {
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - availability-zone - The name of the Availability Zone (for example,
- // us-west-2a ) or Local Zone (for example, us-west-2-lax-1b ) that the instance
- // is in.
- //
- // - instance-type - The instance type (for example, p4d.24xlarge ) or instance
- // family (for example, p4d* ). You can use the * wildcard to match zero or more
- // characters, or the ? wildcard to match zero or one character.
- //
- // - zone-id - The ID of the Availability Zone (for example, usw2-az2 ) or Local
- // Zone (for example, usw2-lax1-az1 ) that the instance is in.
- Filters []types.Filter
-
- // The name of the placement group that each instance is in.
- //
- // Constraints: Maximum 100 explicitly specified placement group names.
- GroupNames []string
-
- // The instance IDs.
- //
- // Default: Describes all your instances.
- //
- // Constraints: Maximum 100 explicitly specified instance IDs.
- InstanceIds []string
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // You can't specify this parameter and the instance IDs parameter in the same
- // request.
- //
- // Default: 20
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeInstanceTopologyOutput struct {
-
- // Information about the topology of each instance.
- Instances []types.InstanceTopology
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeInstanceTopologyMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeInstanceTopology{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeInstanceTopology{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeInstanceTopology"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeInstanceTopology(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeInstanceTopologyPaginatorOptions is the paginator options for
-// DescribeInstanceTopology
-type DescribeInstanceTopologyPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // You can't specify this parameter and the instance IDs parameter in the same
- // request.
- //
- // Default: 20
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeInstanceTopologyPaginator is a paginator for DescribeInstanceTopology
-type DescribeInstanceTopologyPaginator struct {
- options DescribeInstanceTopologyPaginatorOptions
- client DescribeInstanceTopologyAPIClient
- params *DescribeInstanceTopologyInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeInstanceTopologyPaginator returns a new
-// DescribeInstanceTopologyPaginator
-func NewDescribeInstanceTopologyPaginator(client DescribeInstanceTopologyAPIClient, params *DescribeInstanceTopologyInput, optFns ...func(*DescribeInstanceTopologyPaginatorOptions)) *DescribeInstanceTopologyPaginator {
- if params == nil {
- params = &DescribeInstanceTopologyInput{}
- }
-
- options := DescribeInstanceTopologyPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeInstanceTopologyPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeInstanceTopologyPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeInstanceTopology page.
-func (p *DescribeInstanceTopologyPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeInstanceTopologyOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeInstanceTopology(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeInstanceTopologyAPIClient is a client that implements the
-// DescribeInstanceTopology operation.
-type DescribeInstanceTopologyAPIClient interface {
- DescribeInstanceTopology(context.Context, *DescribeInstanceTopologyInput, ...func(*Options)) (*DescribeInstanceTopologyOutput, error)
-}
-
-var _ DescribeInstanceTopologyAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeInstanceTopology(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeInstanceTopology",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceTypeOfferings.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceTypeOfferings.go
deleted file mode 100644
index 6e09eb761..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceTypeOfferings.go
+++ /dev/null
@@ -1,300 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Lists the instance types that are offered for the specified location. If no
-// location is specified, the default is to list the instance types that are
-// offered in the current Region.
-func (c *Client) DescribeInstanceTypeOfferings(ctx context.Context, params *DescribeInstanceTypeOfferingsInput, optFns ...func(*Options)) (*DescribeInstanceTypeOfferingsOutput, error) {
- if params == nil {
- params = &DescribeInstanceTypeOfferingsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceTypeOfferings", params, optFns, c.addOperationDescribeInstanceTypeOfferingsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeInstanceTypeOfferingsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeInstanceTypeOfferingsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. Filter names and values are case-sensitive.
- //
- // - instance-type - The instance type. For a list of possible values, see [Instance].
- //
- // - location - The location. For a list of possible identifiers, see [Regions and Zones].
- //
- // [Instance]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_Instance.html
- // [Regions and Zones]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html
- Filters []types.Filter
-
- // The location type.
- //
- // - availability-zone - The Availability Zone. When you specify a location
- // filter, it must be an Availability Zone for the current Region.
- //
- // - availability-zone-id - The AZ ID. When you specify a location filter, it
- // must be an AZ ID for the current Region.
- //
- // - outpost - The Outpost ARN. When you specify a location filter, it must be an
- // Outpost ARN for the current Region.
- //
- // - region - The current Region. If you specify a location filter, it must match
- // the current Region.
- LocationType types.LocationType
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeInstanceTypeOfferingsOutput struct {
-
- // The instance types offered in the location.
- InstanceTypeOfferings []types.InstanceTypeOffering
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeInstanceTypeOfferingsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeInstanceTypeOfferings{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeInstanceTypeOfferings{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeInstanceTypeOfferings"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeInstanceTypeOfferings(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeInstanceTypeOfferingsPaginatorOptions is the paginator options for
-// DescribeInstanceTypeOfferings
-type DescribeInstanceTypeOfferingsPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeInstanceTypeOfferingsPaginator is a paginator for
-// DescribeInstanceTypeOfferings
-type DescribeInstanceTypeOfferingsPaginator struct {
- options DescribeInstanceTypeOfferingsPaginatorOptions
- client DescribeInstanceTypeOfferingsAPIClient
- params *DescribeInstanceTypeOfferingsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeInstanceTypeOfferingsPaginator returns a new
-// DescribeInstanceTypeOfferingsPaginator
-func NewDescribeInstanceTypeOfferingsPaginator(client DescribeInstanceTypeOfferingsAPIClient, params *DescribeInstanceTypeOfferingsInput, optFns ...func(*DescribeInstanceTypeOfferingsPaginatorOptions)) *DescribeInstanceTypeOfferingsPaginator {
- if params == nil {
- params = &DescribeInstanceTypeOfferingsInput{}
- }
-
- options := DescribeInstanceTypeOfferingsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeInstanceTypeOfferingsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeInstanceTypeOfferingsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeInstanceTypeOfferings page.
-func (p *DescribeInstanceTypeOfferingsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeInstanceTypeOfferingsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeInstanceTypeOfferings(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeInstanceTypeOfferingsAPIClient is a client that implements the
-// DescribeInstanceTypeOfferings operation.
-type DescribeInstanceTypeOfferingsAPIClient interface {
- DescribeInstanceTypeOfferings(context.Context, *DescribeInstanceTypeOfferingsInput, ...func(*Options)) (*DescribeInstanceTypeOfferingsOutput, error)
-}
-
-var _ DescribeInstanceTypeOfferingsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeInstanceTypeOfferings(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeInstanceTypeOfferings",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceTypes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceTypes.go
deleted file mode 100644
index 50cb30890..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceTypes.go
+++ /dev/null
@@ -1,432 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified instance types. By default, all instance types for the
-// current Region are described. Alternatively, you can filter the results.
-func (c *Client) DescribeInstanceTypes(ctx context.Context, params *DescribeInstanceTypesInput, optFns ...func(*Options)) (*DescribeInstanceTypesOutput, error) {
- if params == nil {
- params = &DescribeInstanceTypesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceTypes", params, optFns, c.addOperationDescribeInstanceTypesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeInstanceTypesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeInstanceTypesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. Filter names and values are case-sensitive.
- //
- // - auto-recovery-supported - Indicates whether Amazon CloudWatch action based
- // recovery is supported ( true | false ).
- //
- // - bare-metal - Indicates whether it is a bare metal instance type ( true |
- // false ).
- //
- // - burstable-performance-supported - Indicates whether the instance type is a
- // burstable performance T instance type ( true | false ).
- //
- // - current-generation - Indicates whether this instance type is the latest
- // generation instance type of an instance family ( true | false ).
- //
- // - dedicated-hosts-supported - Indicates whether the instance type supports
- // Dedicated Hosts. ( true | false )
- //
- // - ebs-info.ebs-optimized-info.baseline-bandwidth-in-mbps - The baseline
- // bandwidth performance for an EBS-optimized instance type, in Mbps.
- //
- // - ebs-info.ebs-optimized-info.baseline-iops - The baseline input/output
- // storage operations per second for an EBS-optimized instance type.
- //
- // - ebs-info.ebs-optimized-info.baseline-throughput-in-mbps - The baseline
- // throughput performance for an EBS-optimized instance type, in MB/s.
- //
- // - ebs-info.ebs-optimized-info.maximum-bandwidth-in-mbps - The maximum
- // bandwidth performance for an EBS-optimized instance type, in Mbps.
- //
- // - ebs-info.ebs-optimized-info.maximum-iops - The maximum input/output storage
- // operations per second for an EBS-optimized instance type.
- //
- // - ebs-info.ebs-optimized-info.maximum-throughput-in-mbps - The maximum
- // throughput performance for an EBS-optimized instance type, in MB/s.
- //
- // - ebs-info.ebs-optimized-support - Indicates whether the instance type is
- // EBS-optimized ( supported | unsupported | default ).
- //
- // - ebs-info.encryption-support - Indicates whether EBS encryption is supported (
- // supported | unsupported ).
- //
- // - ebs-info.nvme-support - Indicates whether non-volatile memory express (NVMe)
- // is supported for EBS volumes ( required | supported | unsupported ).
- //
- // - free-tier-eligible - Indicates whether the instance type is eligible to use
- // in the free tier ( true | false ).
- //
- // - hibernation-supported - Indicates whether On-Demand hibernation is supported
- // ( true | false ).
- //
- // - hypervisor - The hypervisor ( nitro | xen ).
- //
- // - instance-storage-info.disk.count - The number of local disks.
- //
- // - instance-storage-info.disk.size-in-gb - The storage size of each instance
- // storage disk, in GB.
- //
- // - instance-storage-info.disk.type - The storage technology for the local
- // instance storage disks ( hdd | ssd ).
- //
- // - instance-storage-info.encryption-support - Indicates whether data is
- // encrypted at rest ( required | supported | unsupported ).
- //
- // - instance-storage-info.nvme-support - Indicates whether non-volatile memory
- // express (NVMe) is supported for instance store ( required | supported |
- // unsupported ).
- //
- // - instance-storage-info.total-size-in-gb - The total amount of storage
- // available from all local instance storage, in GB.
- //
- // - instance-storage-supported - Indicates whether the instance type has local
- // instance storage ( true | false ).
- //
- // - instance-type - The instance type (for example c5.2xlarge or c5*).
- //
- // - memory-info.size-in-mib - The memory size.
- //
- // - network-info.bandwidth-weightings - For instances that support bandwidth
- // weighting to boost performance ( default , vpc-1 , ebs-1 ).
- //
- // - network-info.efa-info.maximum-efa-interfaces - The maximum number of Elastic
- // Fabric Adapters (EFAs) per instance.
- //
- // - network-info.efa-supported - Indicates whether the instance type supports
- // Elastic Fabric Adapter (EFA) ( true | false ).
- //
- // - network-info.ena-support - Indicates whether Elastic Network Adapter (ENA)
- // is supported or required ( required | supported | unsupported ).
- //
- // - network-info.flexible-ena-queues-support - Indicates whether an instance
- // supports flexible ENA queues ( supported | unsupported ).
- //
- // - network-info.encryption-in-transit-supported - Indicates whether the
- // instance type automatically encrypts in-transit traffic between instances (
- // true | false ).
- //
- // - network-info.ipv4-addresses-per-interface - The maximum number of private
- // IPv4 addresses per network interface.
- //
- // - network-info.ipv6-addresses-per-interface - The maximum number of private
- // IPv6 addresses per network interface.
- //
- // - network-info.ipv6-supported - Indicates whether the instance type supports
- // IPv6 ( true | false ).
- //
- // - network-info.maximum-network-cards - The maximum number of network cards per
- // instance.
- //
- // - network-info.maximum-network-interfaces - The maximum number of network
- // interfaces per instance.
- //
- // - network-info.network-performance - The network performance (for example, "25
- // Gigabit").
- //
- // - nitro-enclaves-support - Indicates whether Nitro Enclaves is supported (
- // supported | unsupported ).
- //
- // - nitro-tpm-support - Indicates whether NitroTPM is supported ( supported |
- // unsupported ).
- //
- // - nitro-tpm-info.supported-versions - The supported NitroTPM version ( 2.0 ).
- //
- // - processor-info.supported-architecture - The CPU architecture ( arm64 | i386
- // | x86_64 ).
- //
- // - processor-info.sustained-clock-speed-in-ghz - The CPU clock speed, in GHz.
- //
- // - processor-info.supported-features - The supported CPU features ( amd-sev-snp
- // ).
- //
- // - reboot-migration-support - Indicates whether enabling reboot migration is
- // supported ( supported | unsupported ).
- //
- // - supported-boot-mode - The boot mode ( legacy-bios | uefi ).
- //
- // - supported-root-device-type - The root device type ( ebs | instance-store ).
- //
- // - supported-usage-class - The usage class ( on-demand | spot | capacity-block
- // ).
- //
- // - supported-virtualization-type - The virtualization type ( hvm | paravirtual
- // ).
- //
- // - vcpu-info.default-cores - The default number of cores for the instance type.
- //
- // - vcpu-info.default-threads-per-core - The default number of threads per core
- // for the instance type.
- //
- // - vcpu-info.default-vcpus - The default number of vCPUs for the instance type.
- //
- // - vcpu-info.valid-cores - The number of cores that can be configured for the
- // instance type.
- //
- // - vcpu-info.valid-threads-per-core - The number of threads per core that can
- // be configured for the instance type. For example, "1" or "1,2".
- Filters []types.Filter
-
- // The instance types.
- InstanceTypes []types.InstanceType
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeInstanceTypesOutput struct {
-
- // The instance type.
- InstanceTypes []types.InstanceTypeInfo
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeInstanceTypesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeInstanceTypes{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeInstanceTypes{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeInstanceTypes"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeInstanceTypes(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeInstanceTypesPaginatorOptions is the paginator options for
-// DescribeInstanceTypes
-type DescribeInstanceTypesPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeInstanceTypesPaginator is a paginator for DescribeInstanceTypes
-type DescribeInstanceTypesPaginator struct {
- options DescribeInstanceTypesPaginatorOptions
- client DescribeInstanceTypesAPIClient
- params *DescribeInstanceTypesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeInstanceTypesPaginator returns a new DescribeInstanceTypesPaginator
-func NewDescribeInstanceTypesPaginator(client DescribeInstanceTypesAPIClient, params *DescribeInstanceTypesInput, optFns ...func(*DescribeInstanceTypesPaginatorOptions)) *DescribeInstanceTypesPaginator {
- if params == nil {
- params = &DescribeInstanceTypesInput{}
- }
-
- options := DescribeInstanceTypesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeInstanceTypesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeInstanceTypesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeInstanceTypes page.
-func (p *DescribeInstanceTypesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeInstanceTypesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeInstanceTypes(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeInstanceTypesAPIClient is a client that implements the
-// DescribeInstanceTypes operation.
-type DescribeInstanceTypesAPIClient interface {
- DescribeInstanceTypes(context.Context, *DescribeInstanceTypesInput, ...func(*Options)) (*DescribeInstanceTypesOutput, error)
-}
-
-var _ DescribeInstanceTypesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeInstanceTypes(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeInstanceTypes",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstances.go
deleted file mode 100644
index 95f59c7fc..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstances.go
+++ /dev/null
@@ -1,1772 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "errors"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- smithy "github.com/aws/smithy-go"
- "github.com/aws/smithy-go/middleware"
- smithytime "github.com/aws/smithy-go/time"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- smithywaiter "github.com/aws/smithy-go/waiter"
- "strconv"
- "time"
-)
-
-// Describes the specified instances or all instances.
-//
-// If you specify instance IDs, the output includes information for only the
-// specified instances. If you specify filters, the output includes information for
-// only those instances that meet the filter criteria. If you do not specify
-// instance IDs or filters, the output includes information for all instances,
-// which can affect performance. We recommend that you use pagination to ensure
-// that the operation returns quickly and successfully.
-//
-// If you specify an instance ID that is not valid, an error is returned. If you
-// specify an instance that you do not own, it is not included in the output.
-//
-// Recently terminated instances might appear in the returned results. This
-// interval is usually less than one hour.
-//
-// If you describe instances in the rare case where an Availability Zone is
-// experiencing a service disruption and you specify instance IDs that are in the
-// affected zone, or do not specify any instance IDs at all, the call fails. If you
-// describe instances and specify only instance IDs that are in an unaffected zone,
-// the call works normally.
-//
-// The Amazon EC2 API follows an eventual consistency model. This means that the
-// result of an API command you run that creates or modifies resources might not be
-// immediately available to all subsequent commands you run. For guidance on how to
-// manage eventual consistency, see [Eventual consistency in the Amazon EC2 API]in the Amazon EC2 Developer Guide.
-//
-// We strongly recommend using only paginated requests. Unpaginated requests are
-// susceptible to throttling and timeouts.
-//
-// The order of the elements in the response, including those within nested
-// structures, might vary. Applications should not assume the elements appear in a
-// particular order.
-//
-// [Eventual consistency in the Amazon EC2 API]: https://docs.aws.amazon.com/ec2/latest/devguide/eventual-consistency.html
-func (c *Client) DescribeInstances(ctx context.Context, params *DescribeInstancesInput, optFns ...func(*Options)) (*DescribeInstancesOutput, error) {
- if params == nil {
- params = &DescribeInstancesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeInstances", params, optFns, c.addOperationDescribeInstancesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeInstancesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeInstancesInput struct {
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - affinity - The affinity setting for an instance running on a Dedicated Host (
- // default | host ).
- //
- // - architecture - The instance architecture ( i386 | x86_64 | arm64 ).
- //
- // - availability-zone - The Availability Zone of the instance.
- //
- // - block-device-mapping.attach-time - The attach time for an EBS volume mapped
- // to the instance, for example, 2022-09-15T17:15:20.000Z .
- //
- // - block-device-mapping.delete-on-termination - A Boolean that indicates
- // whether the EBS volume is deleted on instance termination.
- //
- // - block-device-mapping.device-name - The device name specified in the block
- // device mapping (for example, /dev/sdh or xvdh ).
- //
- // - block-device-mapping.status - The status for the EBS volume ( attaching |
- // attached | detaching | detached ).
- //
- // - block-device-mapping.volume-id - The volume ID of the EBS volume.
- //
- // - boot-mode - The boot mode that was specified by the AMI ( legacy-bios | uefi
- // | uefi-preferred ).
- //
- // - capacity-reservation-id - The ID of the Capacity Reservation into which the
- // instance was launched.
- //
- // - capacity-reservation-specification.capacity-reservation-preference - The
- // instance's Capacity Reservation preference ( open | none ).
- //
- // -
- // capacity-reservation-specification.capacity-reservation-target.capacity-reservation-id
- // - The ID of the targeted Capacity Reservation.
- //
- // -
- // capacity-reservation-specification.capacity-reservation-target.capacity-reservation-resource-group-arn
- // - The ARN of the targeted Capacity Reservation group.
- //
- // - client-token - The idempotency token you provided when you launched the
- // instance.
- //
- // - current-instance-boot-mode - The boot mode that is used to launch the
- // instance at launch or start ( legacy-bios | uefi ).
- //
- // - dns-name - The public DNS name of the instance.
- //
- // - ebs-optimized - A Boolean that indicates whether the instance is optimized
- // for Amazon EBS I/O.
- //
- // - ena-support - A Boolean that indicates whether the instance is enabled for
- // enhanced networking with ENA.
- //
- // - enclave-options.enabled - A Boolean that indicates whether the instance is
- // enabled for Amazon Web Services Nitro Enclaves.
- //
- // - hibernation-options.configured - A Boolean that indicates whether the
- // instance is enabled for hibernation. A value of true means that the instance
- // is enabled for hibernation.
- //
- // - host-id - The ID of the Dedicated Host on which the instance is running, if
- // applicable.
- //
- // - hypervisor - The hypervisor type of the instance ( ovm | xen ). The value
- // xen is used for both Xen and Nitro hypervisors.
- //
- // - iam-instance-profile.arn - The instance profile associated with the
- // instance. Specified as an ARN.
- //
- // - iam-instance-profile.id - The instance profile associated with the instance.
- // Specified as an ID.
- //
- // - image-id - The ID of the image used to launch the instance.
- //
- // - instance-id - The ID of the instance.
- //
- // - instance-lifecycle - Indicates whether this is a Spot Instance, a Scheduled
- // Instance, or a Capacity Block ( spot | scheduled | capacity-block ).
- //
- // - instance-state-code - The state of the instance, as a 16-bit unsigned
- // integer. The high byte is used for internal purposes and should be ignored. The
- // low byte is set based on the state represented. The valid values are: 0
- // (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping), and
- // 80 (stopped).
- //
- // - instance-state-name - The state of the instance ( pending | running |
- // shutting-down | terminated | stopping | stopped ).
- //
- // - instance-type - The type of instance (for example, t2.micro ).
- //
- // - instance.group-id - The ID of the security group for the instance.
- //
- // - instance.group-name - The name of the security group for the instance.
- //
- // - ip-address - The public IPv4 address of the instance.
- //
- // - ipv6-address - The IPv6 address of the instance.
- //
- // - kernel-id - The kernel ID.
- //
- // - key-name - The name of the key pair used when the instance was launched.
- //
- // - launch-index - When launching multiple instances, this is the index for the
- // instance in the launch group (for example, 0, 1, 2, and so on).
- //
- // - launch-time - The time when the instance was launched, in the ISO 8601
- // format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for example,
- // 2021-09-29T11:04:43.305Z . You can use a wildcard ( * ), for example,
- // 2021-09-29T* , which matches an entire day.
- //
- // - maintenance-options.auto-recovery - The current automatic recovery behavior
- // of the instance ( disabled | default ).
- //
- // - metadata-options.http-endpoint - The status of access to the HTTP metadata
- // endpoint on your instance ( enabled | disabled )
- //
- // - metadata-options.http-protocol-ipv4 - Indicates whether the IPv4 endpoint is
- // enabled ( disabled | enabled ).
- //
- // - metadata-options.http-protocol-ipv6 - Indicates whether the IPv6 endpoint is
- // enabled ( disabled | enabled ).
- //
- // - metadata-options.http-put-response-hop-limit - The HTTP metadata request put
- // response hop limit (integer, possible values 1 to 64 )
- //
- // - metadata-options.http-tokens - The metadata request authorization state (
- // optional | required )
- //
- // - metadata-options.instance-metadata-tags - The status of access to instance
- // tags from the instance metadata ( enabled | disabled )
- //
- // - metadata-options.state - The state of the metadata option changes ( pending
- // | applied ).
- //
- // - monitoring-state - Indicates whether detailed monitoring is enabled (
- // disabled | enabled ).
- //
- // - network-interface.addresses.association.allocation-id - The allocation ID.
- //
- // - network-interface.addresses.association.association-id - The association ID.
- //
- // - network-interface.addresses.association.carrier-ip - The carrier IP address.
- //
- // - network-interface.addresses.association.customer-owned-ip - The
- // customer-owned IP address.
- //
- // - network-interface.addresses.association.ip-owner-id - The owner ID of the
- // private IPv4 address associated with the network interface.
- //
- // - network-interface.addresses.association.public-dns-name - The public DNS
- // name.
- //
- // - network-interface.addresses.association.public-ip - The ID of the
- // association of an Elastic IP address (IPv4) with a network interface.
- //
- // - network-interface.addresses.primary - Specifies whether the IPv4 address of
- // the network interface is the primary private IPv4 address.
- //
- // - network-interface.addresses.private-dns-name - The private DNS name.
- //
- // - network-interface.addresses.private-ip-address - The private IPv4 address
- // associated with the network interface.
- //
- // - network-interface.association.allocation-id - The allocation ID returned
- // when you allocated the Elastic IP address (IPv4) for your network interface.
- //
- // - network-interface.association.association-id - The association ID returned
- // when the network interface was associated with an IPv4 address.
- //
- // - network-interface.association.carrier-ip - The customer-owned IP address.
- //
- // - network-interface.association.customer-owned-ip - The customer-owned IP
- // address.
- //
- // - network-interface.association.ip-owner-id - The owner of the Elastic IP
- // address (IPv4) associated with the network interface.
- //
- // - network-interface.association.public-dns-name - The public DNS name.
- //
- // - network-interface.association.public-ip - The address of the Elastic IP
- // address (IPv4) bound to the network interface.
- //
- // - network-interface.attachment.attach-time - The time that the network
- // interface was attached to an instance.
- //
- // - network-interface.attachment.attachment-id - The ID of the interface
- // attachment.
- //
- // - network-interface.attachment.delete-on-termination - Specifies whether the
- // attachment is deleted when an instance is terminated.
- //
- // - network-interface.attachment.device-index - The device index to which the
- // network interface is attached.
- //
- // - network-interface.attachment.instance-id - The ID of the instance to which
- // the network interface is attached.
- //
- // - network-interface.attachment.instance-owner-id - The owner ID of the
- // instance to which the network interface is attached.
- //
- // - network-interface.attachment.network-card-index - The index of the network
- // card.
- //
- // - network-interface.attachment.status - The status of the attachment (
- // attaching | attached | detaching | detached ).
- //
- // - network-interface.availability-zone - The Availability Zone for the network
- // interface.
- //
- // - network-interface.deny-all-igw-traffic - A Boolean that indicates whether a
- // network interface with an IPv6 address is unreachable from the public internet.
- //
- // - network-interface.description - The description of the network interface.
- //
- // - network-interface.group-id - The ID of a security group associated with the
- // network interface.
- //
- // - network-interface.group-name - The name of a security group associated with
- // the network interface.
- //
- // - network-interface.ipv4-prefixes.ipv4-prefix - The IPv4 prefixes that are
- // assigned to the network interface.
- //
- // - network-interface.ipv6-address - The IPv6 address associated with the
- // network interface.
- //
- // - network-interface.ipv6-addresses.ipv6-address - The IPv6 address associated
- // with the network interface.
- //
- // - network-interface.ipv6-addresses.is-primary-ipv6 - A Boolean that indicates
- // whether this is the primary IPv6 address.
- //
- // - network-interface.ipv6-native - A Boolean that indicates whether this is an
- // IPv6 only network interface.
- //
- // - network-interface.ipv6-prefixes.ipv6-prefix - The IPv6 prefix assigned to
- // the network interface.
- //
- // - network-interface.mac-address - The MAC address of the network interface.
- //
- // - network-interface.network-interface-id - The ID of the network interface.
- //
- // - network-interface.operator.managed - A Boolean that indicates whether the
- // instance has a managed network interface.
- //
- // - network-interface.operator.principal - The principal that manages the
- // network interface. Only valid for instances with managed network interfaces,
- // where managed is true .
- //
- // - network-interface.outpost-arn - The ARN of the Outpost.
- //
- // - network-interface.owner-id - The ID of the owner of the network interface.
- //
- // - network-interface.private-dns-name - The private DNS name of the network
- // interface.
- //
- // - network-interface.private-ip-address - The private IPv4 address.
- //
- // - network-interface.public-dns-name - The public DNS name.
- //
- // - network-interface.requester-id - The requester ID for the network interface.
- //
- // - network-interface.requester-managed - Indicates whether the network
- // interface is being managed by Amazon Web Services.
- //
- // - network-interface.status - The status of the network interface ( available )
- // | in-use ).
- //
- // - network-interface.source-dest-check - Whether the network interface performs
- // source/destination checking. A value of true means that checking is enabled,
- // and false means that checking is disabled. The value must be false for the
- // network interface to perform network address translation (NAT) in your VPC.
- //
- // - network-interface.subnet-id - The ID of the subnet for the network interface.
- //
- // - network-interface.tag-key - The key of a tag assigned to the network
- // interface.
- //
- // - network-interface.tag-value - The value of a tag assigned to the network
- // interface.
- //
- // - network-interface.vpc-id - The ID of the VPC for the network interface.
- //
- // - network-performance-options.bandwidth-weighting - Where the performance
- // boost is applied, if applicable. Valid values: default , vpc-1 , ebs-1 .
- //
- // - operator.managed - A Boolean that indicates whether this is a managed
- // instance.
- //
- // - operator.principal - The principal that manages the instance. Only valid for
- // managed instances, where managed is true .
- //
- // - outpost-arn - The Amazon Resource Name (ARN) of the Outpost.
- //
- // - owner-id - The Amazon Web Services account ID of the instance owner.
- //
- // - placement-group-name - The name of the placement group for the instance.
- //
- // - placement-partition-number - The partition in which the instance is located.
- //
- // - platform - The platform. To list only Windows instances, use windows .
- //
- // - platform-details - The platform ( Linux/UNIX | Red Hat BYOL Linux | Red Hat
- // Enterprise Linux | Red Hat Enterprise Linux with HA | Red Hat Enterprise
- // Linux with SQL Server Standard and HA | Red Hat Enterprise Linux with SQL
- // Server Enterprise and HA | Red Hat Enterprise Linux with SQL Server Standard |
- // Red Hat Enterprise Linux with SQL Server Web | Red Hat Enterprise Linux with
- // SQL Server Enterprise | SQL Server Enterprise | SQL Server Standard | SQL
- // Server Web | SUSE Linux | Ubuntu Pro | Windows | Windows BYOL | Windows with
- // SQL Server Enterprise | Windows with SQL Server Standard | Windows with SQL
- // Server Web ).
- //
- // - private-dns-name - The private IPv4 DNS name of the instance.
- //
- // - private-dns-name-options.enable-resource-name-dns-a-record - A Boolean that
- // indicates whether to respond to DNS queries for instance hostnames with DNS A
- // records.
- //
- // - private-dns-name-options.enable-resource-name-dns-aaaa-record - A Boolean
- // that indicates whether to respond to DNS queries for instance hostnames with DNS
- // AAAA records.
- //
- // - private-dns-name-options.hostname-type - The type of hostname ( ip-name |
- // resource-name ).
- //
- // - private-ip-address - The private IPv4 address of the instance. This can only
- // be used to filter by the primary IP address of the network interface attached to
- // the instance. To filter by additional IP addresses assigned to the network
- // interface, use the filter network-interface.addresses.private-ip-address .
- //
- // - product-code - The product code associated with the AMI used to launch the
- // instance.
- //
- // - product-code.type - The type of product code ( devpay | marketplace ).
- //
- // - ramdisk-id - The RAM disk ID.
- //
- // - reason - The reason for the current state of the instance (for example,
- // shows "User Initiated [date]" when you stop or terminate the instance). Similar
- // to the state-reason-code filter.
- //
- // - requester-id - The ID of the entity that launched the instance on your
- // behalf (for example, Amazon Web Services Management Console, Auto Scaling, and
- // so on).
- //
- // - reservation-id - The ID of the instance's reservation. A reservation ID is
- // created any time you launch an instance. A reservation ID has a one-to-one
- // relationship with an instance launch request, but can be associated with more
- // than one instance if you launch multiple instances using the same launch
- // request. For example, if you launch one instance, you get one reservation ID. If
- // you launch ten instances using the same launch request, you also get one
- // reservation ID.
- //
- // - root-device-name - The device name of the root device volume (for example,
- // /dev/sda1 ).
- //
- // - root-device-type - The type of the root device volume ( ebs | instance-store
- // ).
- //
- // - source-dest-check - Indicates whether the instance performs
- // source/destination checking. A value of true means that checking is enabled,
- // and false means that checking is disabled. The value must be false for the
- // instance to perform network address translation (NAT) in your VPC.
- //
- // - spot-instance-request-id - The ID of the Spot Instance request.
- //
- // - state-reason-code - The reason code for the state change.
- //
- // - state-reason-message - A message that describes the state change.
- //
- // - subnet-id - The ID of the subnet for the instance.
- //
- // - tag: - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources that have a tag with a specific key, regardless of the tag value.
- //
- // - tenancy - The tenancy of an instance ( dedicated | default | host ).
- //
- // - tpm-support - Indicates if the instance is configured for NitroTPM support (
- // v2.0 ).
- //
- // - usage-operation - The usage operation value for the instance ( RunInstances
- // | RunInstances:00g0 | RunInstances:0010 | RunInstances:1010 |
- // RunInstances:1014 | RunInstances:1110 | RunInstances:0014 | RunInstances:0210
- // | RunInstances:0110 | RunInstances:0100 | RunInstances:0004 |
- // RunInstances:0200 | RunInstances:000g | RunInstances:0g00 | RunInstances:0002
- // | RunInstances:0800 | RunInstances:0102 | RunInstances:0006 |
- // RunInstances:0202 ).
- //
- // - usage-operation-update-time - The time that the usage operation was last
- // updated, for example, 2022-09-15T17:15:20.000Z .
- //
- // - virtualization-type - The virtualization type of the instance ( paravirtual
- // | hvm ).
- //
- // - vpc-id - The ID of the VPC that the instance is running in.
- Filters []types.Filter
-
- // The instance IDs.
- //
- // Default: Describes all your instances.
- InstanceIds []string
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // You cannot specify this parameter and the instance IDs parameter in the same
- // request.
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeInstancesOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Information about the reservations.
- Reservations []types.Reservation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeInstances{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeInstances{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeInstances"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeInstances(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// InstanceExistsWaiterOptions are waiter options for InstanceExistsWaiter
-type InstanceExistsWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // InstanceExistsWaiter will use default minimum delay of 5 seconds. Note that
- // MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, InstanceExistsWaiter will use default max delay of 120 seconds.
- // Note that MaxDelay must resolve to value greater than or equal to the MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeInstancesInput, *DescribeInstancesOutput, error) (bool, error)
-}
-
-// InstanceExistsWaiter defines the waiters for InstanceExists
-type InstanceExistsWaiter struct {
- client DescribeInstancesAPIClient
-
- options InstanceExistsWaiterOptions
-}
-
-// NewInstanceExistsWaiter constructs a InstanceExistsWaiter.
-func NewInstanceExistsWaiter(client DescribeInstancesAPIClient, optFns ...func(*InstanceExistsWaiterOptions)) *InstanceExistsWaiter {
- options := InstanceExistsWaiterOptions{}
- options.MinDelay = 5 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = instanceExistsStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &InstanceExistsWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for InstanceExists waiter. The maxWaitDur is the
-// maximum wait duration the waiter will wait. The maxWaitDur is required and must
-// be greater than zero.
-func (w *InstanceExistsWaiter) Wait(ctx context.Context, params *DescribeInstancesInput, maxWaitDur time.Duration, optFns ...func(*InstanceExistsWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for InstanceExists waiter and returns
-// the output of the successful operation. The maxWaitDur is the maximum wait
-// duration the waiter will wait. The maxWaitDur is required and must be greater
-// than zero.
-func (w *InstanceExistsWaiter) WaitForOutput(ctx context.Context, params *DescribeInstancesInput, maxWaitDur time.Duration, optFns ...func(*InstanceExistsWaiterOptions)) (*DescribeInstancesOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeInstances(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for InstanceExists waiter")
-}
-
-func instanceExistsStateRetryable(ctx context.Context, input *DescribeInstancesInput, output *DescribeInstancesOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.Reservations
- v2 := len(v1)
- v3 := 0
- v4 := int64(v2) > int64(v3)
- expectedValue := "true"
- bv, err := strconv.ParseBool(expectedValue)
- if err != nil {
- return false, fmt.Errorf("error parsing boolean from string %w", err)
- }
- if v4 == bv {
- return false, nil
- }
- }
-
- if err != nil {
- var apiErr smithy.APIError
- ok := errors.As(err, &apiErr)
- if !ok {
- return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err)
- }
-
- if "InvalidInstanceID.NotFound" == apiErr.ErrorCode() {
- return true, nil
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// InstanceRunningWaiterOptions are waiter options for InstanceRunningWaiter
-type InstanceRunningWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // InstanceRunningWaiter will use default minimum delay of 15 seconds. Note that
- // MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, InstanceRunningWaiter will use default max delay of 120 seconds.
- // Note that MaxDelay must resolve to value greater than or equal to the MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeInstancesInput, *DescribeInstancesOutput, error) (bool, error)
-}
-
-// InstanceRunningWaiter defines the waiters for InstanceRunning
-type InstanceRunningWaiter struct {
- client DescribeInstancesAPIClient
-
- options InstanceRunningWaiterOptions
-}
-
-// NewInstanceRunningWaiter constructs a InstanceRunningWaiter.
-func NewInstanceRunningWaiter(client DescribeInstancesAPIClient, optFns ...func(*InstanceRunningWaiterOptions)) *InstanceRunningWaiter {
- options := InstanceRunningWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = instanceRunningStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &InstanceRunningWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for InstanceRunning waiter. The maxWaitDur is
-// the maximum wait duration the waiter will wait. The maxWaitDur is required and
-// must be greater than zero.
-func (w *InstanceRunningWaiter) Wait(ctx context.Context, params *DescribeInstancesInput, maxWaitDur time.Duration, optFns ...func(*InstanceRunningWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for InstanceRunning waiter and returns
-// the output of the successful operation. The maxWaitDur is the maximum wait
-// duration the waiter will wait. The maxWaitDur is required and must be greater
-// than zero.
-func (w *InstanceRunningWaiter) WaitForOutput(ctx context.Context, params *DescribeInstancesInput, maxWaitDur time.Duration, optFns ...func(*InstanceRunningWaiterOptions)) (*DescribeInstancesOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeInstances(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for InstanceRunning waiter")
-}
-
-func instanceRunningStateRetryable(ctx context.Context, input *DescribeInstancesInput, output *DescribeInstancesOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.Reservations
- var v2 [][]types.Instance
- for _, v := range v1 {
- v3 := v.Instances
- v2 = append(v2, v3)
- }
- var v4 []types.Instance
- for _, v := range v2 {
- v4 = append(v4, v...)
- }
- var v5 []types.InstanceStateName
- for _, v := range v4 {
- v6 := v.State
- var v7 types.InstanceStateName
- if v6 != nil {
- v8 := v6.Name
- v7 = v8
- }
- v5 = append(v5, v7)
- }
- expectedValue := "running"
- match := len(v5) > 0
- for _, v := range v5 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err == nil {
- v1 := output.Reservations
- var v2 [][]types.Instance
- for _, v := range v1 {
- v3 := v.Instances
- v2 = append(v2, v3)
- }
- var v4 []types.Instance
- for _, v := range v2 {
- v4 = append(v4, v...)
- }
- var v5 []types.InstanceStateName
- for _, v := range v4 {
- v6 := v.State
- var v7 types.InstanceStateName
- if v6 != nil {
- v8 := v6.Name
- v7 = v8
- }
- v5 = append(v5, v7)
- }
- expectedValue := "shutting-down"
- var match bool
- for _, v := range v5 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err == nil {
- v1 := output.Reservations
- var v2 [][]types.Instance
- for _, v := range v1 {
- v3 := v.Instances
- v2 = append(v2, v3)
- }
- var v4 []types.Instance
- for _, v := range v2 {
- v4 = append(v4, v...)
- }
- var v5 []types.InstanceStateName
- for _, v := range v4 {
- v6 := v.State
- var v7 types.InstanceStateName
- if v6 != nil {
- v8 := v6.Name
- v7 = v8
- }
- v5 = append(v5, v7)
- }
- expectedValue := "terminated"
- var match bool
- for _, v := range v5 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err == nil {
- v1 := output.Reservations
- var v2 [][]types.Instance
- for _, v := range v1 {
- v3 := v.Instances
- v2 = append(v2, v3)
- }
- var v4 []types.Instance
- for _, v := range v2 {
- v4 = append(v4, v...)
- }
- var v5 []types.InstanceStateName
- for _, v := range v4 {
- v6 := v.State
- var v7 types.InstanceStateName
- if v6 != nil {
- v8 := v6.Name
- v7 = v8
- }
- v5 = append(v5, v7)
- }
- expectedValue := "stopping"
- var match bool
- for _, v := range v5 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err != nil {
- var apiErr smithy.APIError
- ok := errors.As(err, &apiErr)
- if !ok {
- return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err)
- }
-
- if "InvalidInstanceID.NotFound" == apiErr.ErrorCode() {
- return true, nil
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// InstanceStoppedWaiterOptions are waiter options for InstanceStoppedWaiter
-type InstanceStoppedWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // InstanceStoppedWaiter will use default minimum delay of 15 seconds. Note that
- // MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, InstanceStoppedWaiter will use default max delay of 120 seconds.
- // Note that MaxDelay must resolve to value greater than or equal to the MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeInstancesInput, *DescribeInstancesOutput, error) (bool, error)
-}
-
-// InstanceStoppedWaiter defines the waiters for InstanceStopped
-type InstanceStoppedWaiter struct {
- client DescribeInstancesAPIClient
-
- options InstanceStoppedWaiterOptions
-}
-
-// NewInstanceStoppedWaiter constructs a InstanceStoppedWaiter.
-func NewInstanceStoppedWaiter(client DescribeInstancesAPIClient, optFns ...func(*InstanceStoppedWaiterOptions)) *InstanceStoppedWaiter {
- options := InstanceStoppedWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = instanceStoppedStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &InstanceStoppedWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for InstanceStopped waiter. The maxWaitDur is
-// the maximum wait duration the waiter will wait. The maxWaitDur is required and
-// must be greater than zero.
-func (w *InstanceStoppedWaiter) Wait(ctx context.Context, params *DescribeInstancesInput, maxWaitDur time.Duration, optFns ...func(*InstanceStoppedWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for InstanceStopped waiter and returns
-// the output of the successful operation. The maxWaitDur is the maximum wait
-// duration the waiter will wait. The maxWaitDur is required and must be greater
-// than zero.
-func (w *InstanceStoppedWaiter) WaitForOutput(ctx context.Context, params *DescribeInstancesInput, maxWaitDur time.Duration, optFns ...func(*InstanceStoppedWaiterOptions)) (*DescribeInstancesOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeInstances(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for InstanceStopped waiter")
-}
-
-func instanceStoppedStateRetryable(ctx context.Context, input *DescribeInstancesInput, output *DescribeInstancesOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.Reservations
- var v2 [][]types.Instance
- for _, v := range v1 {
- v3 := v.Instances
- v2 = append(v2, v3)
- }
- var v4 []types.Instance
- for _, v := range v2 {
- v4 = append(v4, v...)
- }
- var v5 []types.InstanceStateName
- for _, v := range v4 {
- v6 := v.State
- var v7 types.InstanceStateName
- if v6 != nil {
- v8 := v6.Name
- v7 = v8
- }
- v5 = append(v5, v7)
- }
- expectedValue := "stopped"
- match := len(v5) > 0
- for _, v := range v5 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err == nil {
- v1 := output.Reservations
- var v2 [][]types.Instance
- for _, v := range v1 {
- v3 := v.Instances
- v2 = append(v2, v3)
- }
- var v4 []types.Instance
- for _, v := range v2 {
- v4 = append(v4, v...)
- }
- var v5 []types.InstanceStateName
- for _, v := range v4 {
- v6 := v.State
- var v7 types.InstanceStateName
- if v6 != nil {
- v8 := v6.Name
- v7 = v8
- }
- v5 = append(v5, v7)
- }
- expectedValue := "pending"
- var match bool
- for _, v := range v5 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err == nil {
- v1 := output.Reservations
- var v2 [][]types.Instance
- for _, v := range v1 {
- v3 := v.Instances
- v2 = append(v2, v3)
- }
- var v4 []types.Instance
- for _, v := range v2 {
- v4 = append(v4, v...)
- }
- var v5 []types.InstanceStateName
- for _, v := range v4 {
- v6 := v.State
- var v7 types.InstanceStateName
- if v6 != nil {
- v8 := v6.Name
- v7 = v8
- }
- v5 = append(v5, v7)
- }
- expectedValue := "terminated"
- var match bool
- for _, v := range v5 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// InstanceTerminatedWaiterOptions are waiter options for InstanceTerminatedWaiter
-type InstanceTerminatedWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // InstanceTerminatedWaiter will use default minimum delay of 15 seconds. Note that
- // MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, InstanceTerminatedWaiter will use default max delay of 120 seconds.
- // Note that MaxDelay must resolve to value greater than or equal to the MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeInstancesInput, *DescribeInstancesOutput, error) (bool, error)
-}
-
-// InstanceTerminatedWaiter defines the waiters for InstanceTerminated
-type InstanceTerminatedWaiter struct {
- client DescribeInstancesAPIClient
-
- options InstanceTerminatedWaiterOptions
-}
-
-// NewInstanceTerminatedWaiter constructs a InstanceTerminatedWaiter.
-func NewInstanceTerminatedWaiter(client DescribeInstancesAPIClient, optFns ...func(*InstanceTerminatedWaiterOptions)) *InstanceTerminatedWaiter {
- options := InstanceTerminatedWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = instanceTerminatedStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &InstanceTerminatedWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for InstanceTerminated waiter. The maxWaitDur is
-// the maximum wait duration the waiter will wait. The maxWaitDur is required and
-// must be greater than zero.
-func (w *InstanceTerminatedWaiter) Wait(ctx context.Context, params *DescribeInstancesInput, maxWaitDur time.Duration, optFns ...func(*InstanceTerminatedWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for InstanceTerminated waiter and
-// returns the output of the successful operation. The maxWaitDur is the maximum
-// wait duration the waiter will wait. The maxWaitDur is required and must be
-// greater than zero.
-func (w *InstanceTerminatedWaiter) WaitForOutput(ctx context.Context, params *DescribeInstancesInput, maxWaitDur time.Duration, optFns ...func(*InstanceTerminatedWaiterOptions)) (*DescribeInstancesOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeInstances(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for InstanceTerminated waiter")
-}
-
-func instanceTerminatedStateRetryable(ctx context.Context, input *DescribeInstancesInput, output *DescribeInstancesOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.Reservations
- var v2 [][]types.Instance
- for _, v := range v1 {
- v3 := v.Instances
- v2 = append(v2, v3)
- }
- var v4 []types.Instance
- for _, v := range v2 {
- v4 = append(v4, v...)
- }
- var v5 []types.InstanceStateName
- for _, v := range v4 {
- v6 := v.State
- var v7 types.InstanceStateName
- if v6 != nil {
- v8 := v6.Name
- v7 = v8
- }
- v5 = append(v5, v7)
- }
- expectedValue := "terminated"
- match := len(v5) > 0
- for _, v := range v5 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err == nil {
- v1 := output.Reservations
- var v2 [][]types.Instance
- for _, v := range v1 {
- v3 := v.Instances
- v2 = append(v2, v3)
- }
- var v4 []types.Instance
- for _, v := range v2 {
- v4 = append(v4, v...)
- }
- var v5 []types.InstanceStateName
- for _, v := range v4 {
- v6 := v.State
- var v7 types.InstanceStateName
- if v6 != nil {
- v8 := v6.Name
- v7 = v8
- }
- v5 = append(v5, v7)
- }
- expectedValue := "pending"
- var match bool
- for _, v := range v5 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err == nil {
- v1 := output.Reservations
- var v2 [][]types.Instance
- for _, v := range v1 {
- v3 := v.Instances
- v2 = append(v2, v3)
- }
- var v4 []types.Instance
- for _, v := range v2 {
- v4 = append(v4, v...)
- }
- var v5 []types.InstanceStateName
- for _, v := range v4 {
- v6 := v.State
- var v7 types.InstanceStateName
- if v6 != nil {
- v8 := v6.Name
- v7 = v8
- }
- v5 = append(v5, v7)
- }
- expectedValue := "stopping"
- var match bool
- for _, v := range v5 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// DescribeInstancesPaginatorOptions is the paginator options for DescribeInstances
-type DescribeInstancesPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // You cannot specify this parameter and the instance IDs parameter in the same
- // request.
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeInstancesPaginator is a paginator for DescribeInstances
-type DescribeInstancesPaginator struct {
- options DescribeInstancesPaginatorOptions
- client DescribeInstancesAPIClient
- params *DescribeInstancesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeInstancesPaginator returns a new DescribeInstancesPaginator
-func NewDescribeInstancesPaginator(client DescribeInstancesAPIClient, params *DescribeInstancesInput, optFns ...func(*DescribeInstancesPaginatorOptions)) *DescribeInstancesPaginator {
- if params == nil {
- params = &DescribeInstancesInput{}
- }
-
- options := DescribeInstancesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeInstancesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeInstancesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeInstances page.
-func (p *DescribeInstancesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeInstancesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeInstances(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeInstancesAPIClient is a client that implements the DescribeInstances
-// operation.
-type DescribeInstancesAPIClient interface {
- DescribeInstances(context.Context, *DescribeInstancesInput, ...func(*Options)) (*DescribeInstancesOutput, error)
-}
-
-var _ DescribeInstancesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeInstances(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeInstances",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInternetGateways.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInternetGateways.go
deleted file mode 100644
index b8a246ec4..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInternetGateways.go
+++ /dev/null
@@ -1,507 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "errors"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- smithy "github.com/aws/smithy-go"
- "github.com/aws/smithy-go/middleware"
- smithytime "github.com/aws/smithy-go/time"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- smithywaiter "github.com/aws/smithy-go/waiter"
- "strconv"
- "time"
-)
-
-// Describes your internet gateways. The default is to describe all your internet
-// gateways. Alternatively, you can specify specific internet gateway IDs or filter
-// the results to include only the internet gateways that match specific criteria.
-func (c *Client) DescribeInternetGateways(ctx context.Context, params *DescribeInternetGatewaysInput, optFns ...func(*Options)) (*DescribeInternetGatewaysOutput, error) {
- if params == nil {
- params = &DescribeInternetGatewaysInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeInternetGateways", params, optFns, c.addOperationDescribeInternetGatewaysMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeInternetGatewaysOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeInternetGatewaysInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - attachment.state - The current state of the attachment between the gateway
- // and the VPC ( available ). Present only if a VPC is attached.
- //
- // - attachment.vpc-id - The ID of an attached VPC.
- //
- // - internet-gateway-id - The ID of the Internet gateway.
- //
- // - owner-id - The ID of the Amazon Web Services account that owns the internet
- // gateway.
- //
- // - tag - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- Filters []types.Filter
-
- // The IDs of the internet gateways.
- //
- // Default: Describes all your internet gateways.
- InternetGatewayIds []string
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeInternetGatewaysOutput struct {
-
- // Information about the internet gateways.
- InternetGateways []types.InternetGateway
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeInternetGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeInternetGateways{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeInternetGateways{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeInternetGateways"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeInternetGateways(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// InternetGatewayExistsWaiterOptions are waiter options for
-// InternetGatewayExistsWaiter
-type InternetGatewayExistsWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // InternetGatewayExistsWaiter will use default minimum delay of 5 seconds. Note
- // that MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, InternetGatewayExistsWaiter will use default max delay of 120
- // seconds. Note that MaxDelay must resolve to value greater than or equal to the
- // MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeInternetGatewaysInput, *DescribeInternetGatewaysOutput, error) (bool, error)
-}
-
-// InternetGatewayExistsWaiter defines the waiters for InternetGatewayExists
-type InternetGatewayExistsWaiter struct {
- client DescribeInternetGatewaysAPIClient
-
- options InternetGatewayExistsWaiterOptions
-}
-
-// NewInternetGatewayExistsWaiter constructs a InternetGatewayExistsWaiter.
-func NewInternetGatewayExistsWaiter(client DescribeInternetGatewaysAPIClient, optFns ...func(*InternetGatewayExistsWaiterOptions)) *InternetGatewayExistsWaiter {
- options := InternetGatewayExistsWaiterOptions{}
- options.MinDelay = 5 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = internetGatewayExistsStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &InternetGatewayExistsWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for InternetGatewayExists waiter. The maxWaitDur
-// is the maximum wait duration the waiter will wait. The maxWaitDur is required
-// and must be greater than zero.
-func (w *InternetGatewayExistsWaiter) Wait(ctx context.Context, params *DescribeInternetGatewaysInput, maxWaitDur time.Duration, optFns ...func(*InternetGatewayExistsWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for InternetGatewayExists waiter and
-// returns the output of the successful operation. The maxWaitDur is the maximum
-// wait duration the waiter will wait. The maxWaitDur is required and must be
-// greater than zero.
-func (w *InternetGatewayExistsWaiter) WaitForOutput(ctx context.Context, params *DescribeInternetGatewaysInput, maxWaitDur time.Duration, optFns ...func(*InternetGatewayExistsWaiterOptions)) (*DescribeInternetGatewaysOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeInternetGateways(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for InternetGatewayExists waiter")
-}
-
-func internetGatewayExistsStateRetryable(ctx context.Context, input *DescribeInternetGatewaysInput, output *DescribeInternetGatewaysOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.InternetGateways
- var v2 []string
- for _, v := range v1 {
- v3 := v.InternetGatewayId
- if v3 != nil {
- v2 = append(v2, *v3)
- }
- }
- v4 := len(v2)
- v5 := 0
- v6 := int64(v4) > int64(v5)
- expectedValue := "true"
- bv, err := strconv.ParseBool(expectedValue)
- if err != nil {
- return false, fmt.Errorf("error parsing boolean from string %w", err)
- }
- if v6 == bv {
- return false, nil
- }
- }
-
- if err != nil {
- var apiErr smithy.APIError
- ok := errors.As(err, &apiErr)
- if !ok {
- return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err)
- }
-
- if "InvalidInternetGateway.NotFound" == apiErr.ErrorCode() {
- return true, nil
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// DescribeInternetGatewaysPaginatorOptions is the paginator options for
-// DescribeInternetGateways
-type DescribeInternetGatewaysPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeInternetGatewaysPaginator is a paginator for DescribeInternetGateways
-type DescribeInternetGatewaysPaginator struct {
- options DescribeInternetGatewaysPaginatorOptions
- client DescribeInternetGatewaysAPIClient
- params *DescribeInternetGatewaysInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeInternetGatewaysPaginator returns a new
-// DescribeInternetGatewaysPaginator
-func NewDescribeInternetGatewaysPaginator(client DescribeInternetGatewaysAPIClient, params *DescribeInternetGatewaysInput, optFns ...func(*DescribeInternetGatewaysPaginatorOptions)) *DescribeInternetGatewaysPaginator {
- if params == nil {
- params = &DescribeInternetGatewaysInput{}
- }
-
- options := DescribeInternetGatewaysPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeInternetGatewaysPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeInternetGatewaysPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeInternetGateways page.
-func (p *DescribeInternetGatewaysPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeInternetGatewaysOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeInternetGateways(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeInternetGatewaysAPIClient is a client that implements the
-// DescribeInternetGateways operation.
-type DescribeInternetGatewaysAPIClient interface {
- DescribeInternetGateways(context.Context, *DescribeInternetGatewaysInput, ...func(*Options)) (*DescribeInternetGatewaysOutput, error)
-}
-
-var _ DescribeInternetGatewaysAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeInternetGateways(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeInternetGateways",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpamByoasn.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpamByoasn.go
deleted file mode 100644
index 73ff267a1..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpamByoasn.go
+++ /dev/null
@@ -1,173 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes your Autonomous System Numbers (ASNs), their provisioning statuses,
-// and the BYOIP CIDRs with which they are associated. For more information, see [Tutorial: Bring your ASN to IPAM]
-// in the Amazon VPC IPAM guide.
-//
-// [Tutorial: Bring your ASN to IPAM]: https://docs.aws.amazon.com/vpc/latest/ipam/tutorials-byoasn.html
-func (c *Client) DescribeIpamByoasn(ctx context.Context, params *DescribeIpamByoasnInput, optFns ...func(*Options)) (*DescribeIpamByoasnOutput, error) {
- if params == nil {
- params = &DescribeIpamByoasnInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeIpamByoasn", params, optFns, c.addOperationDescribeIpamByoasnMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeIpamByoasnOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeIpamByoasnInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeIpamByoasnOutput struct {
-
- // ASN and BYOIP CIDR associations.
- Byoasns []types.Byoasn
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeIpamByoasnMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeIpamByoasn{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeIpamByoasn{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeIpamByoasn"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeIpamByoasn(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeIpamByoasn(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeIpamByoasn",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpamExternalResourceVerificationTokens.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpamExternalResourceVerificationTokens.go
deleted file mode 100644
index a86e9b168..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpamExternalResourceVerificationTokens.go
+++ /dev/null
@@ -1,200 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describe verification tokens. A verification token is an Amazon Web
-// Services-generated random value that you can use to prove ownership of an
-// external resource. For example, you can use a verification token to validate
-// that you control a public IP address range when you bring an IP address range to
-// Amazon Web Services (BYOIP).
-func (c *Client) DescribeIpamExternalResourceVerificationTokens(ctx context.Context, params *DescribeIpamExternalResourceVerificationTokensInput, optFns ...func(*Options)) (*DescribeIpamExternalResourceVerificationTokensOutput, error) {
- if params == nil {
- params = &DescribeIpamExternalResourceVerificationTokensInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeIpamExternalResourceVerificationTokens", params, optFns, c.addOperationDescribeIpamExternalResourceVerificationTokensMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeIpamExternalResourceVerificationTokensOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeIpamExternalResourceVerificationTokensInput struct {
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters for the request. For more information about filtering, see [Filtering CLI output].
- //
- // Available filters:
- //
- // - ipam-arn
- //
- // - ipam-external-resource-verification-token-arn
- //
- // - ipam-external-resource-verification-token-id
- //
- // - ipam-id
- //
- // - ipam-region
- //
- // - state
- //
- // - status
- //
- // - token-name
- //
- // - token-value
- //
- // [Filtering CLI output]: https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html
- Filters []types.Filter
-
- // Verification token IDs.
- IpamExternalResourceVerificationTokenIds []string
-
- // The maximum number of tokens to return in one page of results.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeIpamExternalResourceVerificationTokensOutput struct {
-
- // Verification tokens.
- IpamExternalResourceVerificationTokens []types.IpamExternalResourceVerificationToken
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeIpamExternalResourceVerificationTokensMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeIpamExternalResourceVerificationTokens{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeIpamExternalResourceVerificationTokens{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeIpamExternalResourceVerificationTokens"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeIpamExternalResourceVerificationTokens(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeIpamExternalResourceVerificationTokens(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeIpamExternalResourceVerificationTokens",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpamPools.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpamPools.go
deleted file mode 100644
index 471e20f9f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpamPools.go
+++ /dev/null
@@ -1,269 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Get information about your IPAM pools.
-func (c *Client) DescribeIpamPools(ctx context.Context, params *DescribeIpamPoolsInput, optFns ...func(*Options)) (*DescribeIpamPoolsOutput, error) {
- if params == nil {
- params = &DescribeIpamPoolsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeIpamPools", params, optFns, c.addOperationDescribeIpamPoolsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeIpamPoolsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeIpamPoolsInput struct {
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters for the request. For more information about filtering, see [Filtering CLI output].
- //
- // [Filtering CLI output]: https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html
- Filters []types.Filter
-
- // The IDs of the IPAM pools you would like information on.
- IpamPoolIds []string
-
- // The maximum number of results to return in the request.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeIpamPoolsOutput struct {
-
- // Information about the IPAM pools.
- IpamPools []types.IpamPool
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeIpamPoolsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeIpamPools{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeIpamPools{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeIpamPools"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeIpamPools(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeIpamPoolsPaginatorOptions is the paginator options for DescribeIpamPools
-type DescribeIpamPoolsPaginatorOptions struct {
- // The maximum number of results to return in the request.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeIpamPoolsPaginator is a paginator for DescribeIpamPools
-type DescribeIpamPoolsPaginator struct {
- options DescribeIpamPoolsPaginatorOptions
- client DescribeIpamPoolsAPIClient
- params *DescribeIpamPoolsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeIpamPoolsPaginator returns a new DescribeIpamPoolsPaginator
-func NewDescribeIpamPoolsPaginator(client DescribeIpamPoolsAPIClient, params *DescribeIpamPoolsInput, optFns ...func(*DescribeIpamPoolsPaginatorOptions)) *DescribeIpamPoolsPaginator {
- if params == nil {
- params = &DescribeIpamPoolsInput{}
- }
-
- options := DescribeIpamPoolsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeIpamPoolsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeIpamPoolsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeIpamPools page.
-func (p *DescribeIpamPoolsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeIpamPoolsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeIpamPools(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeIpamPoolsAPIClient is a client that implements the DescribeIpamPools
-// operation.
-type DescribeIpamPoolsAPIClient interface {
- DescribeIpamPools(context.Context, *DescribeIpamPoolsInput, ...func(*Options)) (*DescribeIpamPoolsOutput, error)
-}
-
-var _ DescribeIpamPoolsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeIpamPools(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeIpamPools",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpamResourceDiscoveries.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpamResourceDiscoveries.go
deleted file mode 100644
index a05766632..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpamResourceDiscoveries.go
+++ /dev/null
@@ -1,273 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes IPAM resource discoveries. A resource discovery is an IPAM component
-// that enables IPAM to manage and monitor resources that belong to the owning
-// account.
-func (c *Client) DescribeIpamResourceDiscoveries(ctx context.Context, params *DescribeIpamResourceDiscoveriesInput, optFns ...func(*Options)) (*DescribeIpamResourceDiscoveriesOutput, error) {
- if params == nil {
- params = &DescribeIpamResourceDiscoveriesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeIpamResourceDiscoveries", params, optFns, c.addOperationDescribeIpamResourceDiscoveriesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeIpamResourceDiscoveriesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeIpamResourceDiscoveriesInput struct {
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The resource discovery filters.
- Filters []types.Filter
-
- // The IPAM resource discovery IDs.
- IpamResourceDiscoveryIds []string
-
- // The maximum number of resource discoveries to return in one page of results.
- MaxResults *int32
-
- // Specify the pagination token from a previous request to retrieve the next page
- // of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeIpamResourceDiscoveriesOutput struct {
-
- // The resource discoveries.
- IpamResourceDiscoveries []types.IpamResourceDiscovery
-
- // Specify the pagination token from a previous request to retrieve the next page
- // of results.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeIpamResourceDiscoveriesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeIpamResourceDiscoveries{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeIpamResourceDiscoveries{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeIpamResourceDiscoveries"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeIpamResourceDiscoveries(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeIpamResourceDiscoveriesPaginatorOptions is the paginator options for
-// DescribeIpamResourceDiscoveries
-type DescribeIpamResourceDiscoveriesPaginatorOptions struct {
- // The maximum number of resource discoveries to return in one page of results.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeIpamResourceDiscoveriesPaginator is a paginator for
-// DescribeIpamResourceDiscoveries
-type DescribeIpamResourceDiscoveriesPaginator struct {
- options DescribeIpamResourceDiscoveriesPaginatorOptions
- client DescribeIpamResourceDiscoveriesAPIClient
- params *DescribeIpamResourceDiscoveriesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeIpamResourceDiscoveriesPaginator returns a new
-// DescribeIpamResourceDiscoveriesPaginator
-func NewDescribeIpamResourceDiscoveriesPaginator(client DescribeIpamResourceDiscoveriesAPIClient, params *DescribeIpamResourceDiscoveriesInput, optFns ...func(*DescribeIpamResourceDiscoveriesPaginatorOptions)) *DescribeIpamResourceDiscoveriesPaginator {
- if params == nil {
- params = &DescribeIpamResourceDiscoveriesInput{}
- }
-
- options := DescribeIpamResourceDiscoveriesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeIpamResourceDiscoveriesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeIpamResourceDiscoveriesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeIpamResourceDiscoveries page.
-func (p *DescribeIpamResourceDiscoveriesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeIpamResourceDiscoveriesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeIpamResourceDiscoveries(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeIpamResourceDiscoveriesAPIClient is a client that implements the
-// DescribeIpamResourceDiscoveries operation.
-type DescribeIpamResourceDiscoveriesAPIClient interface {
- DescribeIpamResourceDiscoveries(context.Context, *DescribeIpamResourceDiscoveriesInput, ...func(*Options)) (*DescribeIpamResourceDiscoveriesOutput, error)
-}
-
-var _ DescribeIpamResourceDiscoveriesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeIpamResourceDiscoveries(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeIpamResourceDiscoveries",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpamResourceDiscoveryAssociations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpamResourceDiscoveryAssociations.go
deleted file mode 100644
index 0eb7134e1..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpamResourceDiscoveryAssociations.go
+++ /dev/null
@@ -1,275 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes resource discovery association with an Amazon VPC IPAM. An associated
-// resource discovery is a resource discovery that has been associated with an
-// IPAM..
-func (c *Client) DescribeIpamResourceDiscoveryAssociations(ctx context.Context, params *DescribeIpamResourceDiscoveryAssociationsInput, optFns ...func(*Options)) (*DescribeIpamResourceDiscoveryAssociationsOutput, error) {
- if params == nil {
- params = &DescribeIpamResourceDiscoveryAssociationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeIpamResourceDiscoveryAssociations", params, optFns, c.addOperationDescribeIpamResourceDiscoveryAssociationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeIpamResourceDiscoveryAssociationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeIpamResourceDiscoveryAssociationsInput struct {
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The resource discovery association filters.
- Filters []types.Filter
-
- // The resource discovery association IDs.
- IpamResourceDiscoveryAssociationIds []string
-
- // The maximum number of resource discovery associations to return in one page of
- // results.
- MaxResults *int32
-
- // Specify the pagination token from a previous request to retrieve the next page
- // of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeIpamResourceDiscoveryAssociationsOutput struct {
-
- // The resource discovery associations.
- IpamResourceDiscoveryAssociations []types.IpamResourceDiscoveryAssociation
-
- // Specify the pagination token from a previous request to retrieve the next page
- // of results.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeIpamResourceDiscoveryAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeIpamResourceDiscoveryAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeIpamResourceDiscoveryAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeIpamResourceDiscoveryAssociations"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeIpamResourceDiscoveryAssociations(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeIpamResourceDiscoveryAssociationsPaginatorOptions is the paginator
-// options for DescribeIpamResourceDiscoveryAssociations
-type DescribeIpamResourceDiscoveryAssociationsPaginatorOptions struct {
- // The maximum number of resource discovery associations to return in one page of
- // results.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeIpamResourceDiscoveryAssociationsPaginator is a paginator for
-// DescribeIpamResourceDiscoveryAssociations
-type DescribeIpamResourceDiscoveryAssociationsPaginator struct {
- options DescribeIpamResourceDiscoveryAssociationsPaginatorOptions
- client DescribeIpamResourceDiscoveryAssociationsAPIClient
- params *DescribeIpamResourceDiscoveryAssociationsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeIpamResourceDiscoveryAssociationsPaginator returns a new
-// DescribeIpamResourceDiscoveryAssociationsPaginator
-func NewDescribeIpamResourceDiscoveryAssociationsPaginator(client DescribeIpamResourceDiscoveryAssociationsAPIClient, params *DescribeIpamResourceDiscoveryAssociationsInput, optFns ...func(*DescribeIpamResourceDiscoveryAssociationsPaginatorOptions)) *DescribeIpamResourceDiscoveryAssociationsPaginator {
- if params == nil {
- params = &DescribeIpamResourceDiscoveryAssociationsInput{}
- }
-
- options := DescribeIpamResourceDiscoveryAssociationsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeIpamResourceDiscoveryAssociationsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeIpamResourceDiscoveryAssociationsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeIpamResourceDiscoveryAssociations page.
-func (p *DescribeIpamResourceDiscoveryAssociationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeIpamResourceDiscoveryAssociationsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeIpamResourceDiscoveryAssociations(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeIpamResourceDiscoveryAssociationsAPIClient is a client that implements
-// the DescribeIpamResourceDiscoveryAssociations operation.
-type DescribeIpamResourceDiscoveryAssociationsAPIClient interface {
- DescribeIpamResourceDiscoveryAssociations(context.Context, *DescribeIpamResourceDiscoveryAssociationsInput, ...func(*Options)) (*DescribeIpamResourceDiscoveryAssociationsOutput, error)
-}
-
-var _ DescribeIpamResourceDiscoveryAssociationsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeIpamResourceDiscoveryAssociations(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeIpamResourceDiscoveryAssociations",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpamScopes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpamScopes.go
deleted file mode 100644
index 2dfa57ea8..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpamScopes.go
+++ /dev/null
@@ -1,270 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Get information about your IPAM scopes.
-func (c *Client) DescribeIpamScopes(ctx context.Context, params *DescribeIpamScopesInput, optFns ...func(*Options)) (*DescribeIpamScopesOutput, error) {
- if params == nil {
- params = &DescribeIpamScopesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeIpamScopes", params, optFns, c.addOperationDescribeIpamScopesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeIpamScopesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeIpamScopesInput struct {
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters for the request. For more information about filtering, see [Filtering CLI output].
- //
- // [Filtering CLI output]: https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html
- Filters []types.Filter
-
- // The IDs of the scopes you want information on.
- IpamScopeIds []string
-
- // The maximum number of results to return in the request.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeIpamScopesOutput struct {
-
- // The scopes you want information on.
- IpamScopes []types.IpamScope
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeIpamScopesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeIpamScopes{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeIpamScopes{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeIpamScopes"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeIpamScopes(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeIpamScopesPaginatorOptions is the paginator options for
-// DescribeIpamScopes
-type DescribeIpamScopesPaginatorOptions struct {
- // The maximum number of results to return in the request.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeIpamScopesPaginator is a paginator for DescribeIpamScopes
-type DescribeIpamScopesPaginator struct {
- options DescribeIpamScopesPaginatorOptions
- client DescribeIpamScopesAPIClient
- params *DescribeIpamScopesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeIpamScopesPaginator returns a new DescribeIpamScopesPaginator
-func NewDescribeIpamScopesPaginator(client DescribeIpamScopesAPIClient, params *DescribeIpamScopesInput, optFns ...func(*DescribeIpamScopesPaginatorOptions)) *DescribeIpamScopesPaginator {
- if params == nil {
- params = &DescribeIpamScopesInput{}
- }
-
- options := DescribeIpamScopesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeIpamScopesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeIpamScopesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeIpamScopes page.
-func (p *DescribeIpamScopesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeIpamScopesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeIpamScopes(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeIpamScopesAPIClient is a client that implements the DescribeIpamScopes
-// operation.
-type DescribeIpamScopesAPIClient interface {
- DescribeIpamScopes(context.Context, *DescribeIpamScopesInput, ...func(*Options)) (*DescribeIpamScopesOutput, error)
-}
-
-var _ DescribeIpamScopesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeIpamScopes(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeIpamScopes",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpams.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpams.go
deleted file mode 100644
index 2e071f051..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpams.go
+++ /dev/null
@@ -1,272 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Get information about your IPAM pools.
-//
-// For more information, see [What is IPAM?] in the Amazon VPC IPAM User Guide.
-//
-// [What is IPAM?]: https://docs.aws.amazon.com/vpc/latest/ipam/what-is-it-ipam.html
-func (c *Client) DescribeIpams(ctx context.Context, params *DescribeIpamsInput, optFns ...func(*Options)) (*DescribeIpamsOutput, error) {
- if params == nil {
- params = &DescribeIpamsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeIpams", params, optFns, c.addOperationDescribeIpamsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeIpamsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeIpamsInput struct {
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters for the request. For more information about filtering, see [Filtering CLI output].
- //
- // [Filtering CLI output]: https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html
- Filters []types.Filter
-
- // The IDs of the IPAMs you want information on.
- IpamIds []string
-
- // The maximum number of results to return in the request.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeIpamsOutput struct {
-
- // Information about the IPAMs.
- Ipams []types.Ipam
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeIpamsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeIpams{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeIpams{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeIpams"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeIpams(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeIpamsPaginatorOptions is the paginator options for DescribeIpams
-type DescribeIpamsPaginatorOptions struct {
- // The maximum number of results to return in the request.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeIpamsPaginator is a paginator for DescribeIpams
-type DescribeIpamsPaginator struct {
- options DescribeIpamsPaginatorOptions
- client DescribeIpamsAPIClient
- params *DescribeIpamsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeIpamsPaginator returns a new DescribeIpamsPaginator
-func NewDescribeIpamsPaginator(client DescribeIpamsAPIClient, params *DescribeIpamsInput, optFns ...func(*DescribeIpamsPaginatorOptions)) *DescribeIpamsPaginator {
- if params == nil {
- params = &DescribeIpamsInput{}
- }
-
- options := DescribeIpamsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeIpamsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeIpamsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeIpams page.
-func (p *DescribeIpamsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeIpamsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeIpams(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeIpamsAPIClient is a client that implements the DescribeIpams operation.
-type DescribeIpamsAPIClient interface {
- DescribeIpams(context.Context, *DescribeIpamsInput, ...func(*Options)) (*DescribeIpamsOutput, error)
-}
-
-var _ DescribeIpamsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeIpams(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeIpams",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpv6Pools.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpv6Pools.go
deleted file mode 100644
index efc198981..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpv6Pools.go
+++ /dev/null
@@ -1,277 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes your IPv6 address pools.
-func (c *Client) DescribeIpv6Pools(ctx context.Context, params *DescribeIpv6PoolsInput, optFns ...func(*Options)) (*DescribeIpv6PoolsOutput, error) {
- if params == nil {
- params = &DescribeIpv6PoolsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeIpv6Pools", params, optFns, c.addOperationDescribeIpv6PoolsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeIpv6PoolsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeIpv6PoolsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - tag : - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The IDs of the IPv6 address pools.
- PoolIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeIpv6PoolsOutput struct {
-
- // Information about the IPv6 address pools.
- Ipv6Pools []types.Ipv6Pool
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeIpv6PoolsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeIpv6Pools{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeIpv6Pools{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeIpv6Pools"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeIpv6Pools(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeIpv6PoolsPaginatorOptions is the paginator options for DescribeIpv6Pools
-type DescribeIpv6PoolsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeIpv6PoolsPaginator is a paginator for DescribeIpv6Pools
-type DescribeIpv6PoolsPaginator struct {
- options DescribeIpv6PoolsPaginatorOptions
- client DescribeIpv6PoolsAPIClient
- params *DescribeIpv6PoolsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeIpv6PoolsPaginator returns a new DescribeIpv6PoolsPaginator
-func NewDescribeIpv6PoolsPaginator(client DescribeIpv6PoolsAPIClient, params *DescribeIpv6PoolsInput, optFns ...func(*DescribeIpv6PoolsPaginatorOptions)) *DescribeIpv6PoolsPaginator {
- if params == nil {
- params = &DescribeIpv6PoolsInput{}
- }
-
- options := DescribeIpv6PoolsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeIpv6PoolsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeIpv6PoolsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeIpv6Pools page.
-func (p *DescribeIpv6PoolsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeIpv6PoolsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeIpv6Pools(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeIpv6PoolsAPIClient is a client that implements the DescribeIpv6Pools
-// operation.
-type DescribeIpv6PoolsAPIClient interface {
- DescribeIpv6Pools(context.Context, *DescribeIpv6PoolsInput, ...func(*Options)) (*DescribeIpv6PoolsOutput, error)
-}
-
-var _ DescribeIpv6PoolsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeIpv6Pools(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeIpv6Pools",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeKeyPairs.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeKeyPairs.go
deleted file mode 100644
index 13f13a7b2..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeKeyPairs.go
+++ /dev/null
@@ -1,405 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "errors"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- smithy "github.com/aws/smithy-go"
- "github.com/aws/smithy-go/middleware"
- smithytime "github.com/aws/smithy-go/time"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- smithywaiter "github.com/aws/smithy-go/waiter"
- "strconv"
- "time"
-)
-
-// Describes the specified key pairs or all of your key pairs.
-//
-// For more information about key pairs, see [Amazon EC2 key pairs] in the Amazon EC2 User Guide.
-//
-// [Amazon EC2 key pairs]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html
-func (c *Client) DescribeKeyPairs(ctx context.Context, params *DescribeKeyPairsInput, optFns ...func(*Options)) (*DescribeKeyPairsOutput, error) {
- if params == nil {
- params = &DescribeKeyPairsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeKeyPairs", params, optFns, c.addOperationDescribeKeyPairsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeKeyPairsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeKeyPairsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - key-pair-id - The ID of the key pair.
- //
- // - fingerprint - The fingerprint of the key pair.
- //
- // - key-name - The name of the key pair.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- //
- // - tag : - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- Filters []types.Filter
-
- // If true , the public key material is included in the response.
- //
- // Default: false
- IncludePublicKey *bool
-
- // The key pair names.
- //
- // Default: Describes all of your key pairs.
- KeyNames []string
-
- // The IDs of the key pairs.
- KeyPairIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeKeyPairsOutput struct {
-
- // Information about the key pairs.
- KeyPairs []types.KeyPairInfo
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeKeyPairsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeKeyPairs{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeKeyPairs{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeKeyPairs"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeKeyPairs(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// KeyPairExistsWaiterOptions are waiter options for KeyPairExistsWaiter
-type KeyPairExistsWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // KeyPairExistsWaiter will use default minimum delay of 5 seconds. Note that
- // MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, KeyPairExistsWaiter will use default max delay of 120 seconds. Note
- // that MaxDelay must resolve to value greater than or equal to the MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeKeyPairsInput, *DescribeKeyPairsOutput, error) (bool, error)
-}
-
-// KeyPairExistsWaiter defines the waiters for KeyPairExists
-type KeyPairExistsWaiter struct {
- client DescribeKeyPairsAPIClient
-
- options KeyPairExistsWaiterOptions
-}
-
-// NewKeyPairExistsWaiter constructs a KeyPairExistsWaiter.
-func NewKeyPairExistsWaiter(client DescribeKeyPairsAPIClient, optFns ...func(*KeyPairExistsWaiterOptions)) *KeyPairExistsWaiter {
- options := KeyPairExistsWaiterOptions{}
- options.MinDelay = 5 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = keyPairExistsStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &KeyPairExistsWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for KeyPairExists waiter. The maxWaitDur is the
-// maximum wait duration the waiter will wait. The maxWaitDur is required and must
-// be greater than zero.
-func (w *KeyPairExistsWaiter) Wait(ctx context.Context, params *DescribeKeyPairsInput, maxWaitDur time.Duration, optFns ...func(*KeyPairExistsWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for KeyPairExists waiter and returns
-// the output of the successful operation. The maxWaitDur is the maximum wait
-// duration the waiter will wait. The maxWaitDur is required and must be greater
-// than zero.
-func (w *KeyPairExistsWaiter) WaitForOutput(ctx context.Context, params *DescribeKeyPairsInput, maxWaitDur time.Duration, optFns ...func(*KeyPairExistsWaiterOptions)) (*DescribeKeyPairsOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeKeyPairs(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for KeyPairExists waiter")
-}
-
-func keyPairExistsStateRetryable(ctx context.Context, input *DescribeKeyPairsInput, output *DescribeKeyPairsOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.KeyPairs
- var v2 []string
- for _, v := range v1 {
- v3 := v.KeyName
- if v3 != nil {
- v2 = append(v2, *v3)
- }
- }
- v4 := len(v2)
- v5 := 0
- v6 := int64(v4) > int64(v5)
- expectedValue := "true"
- bv, err := strconv.ParseBool(expectedValue)
- if err != nil {
- return false, fmt.Errorf("error parsing boolean from string %w", err)
- }
- if v6 == bv {
- return false, nil
- }
- }
-
- if err != nil {
- var apiErr smithy.APIError
- ok := errors.As(err, &apiErr)
- if !ok {
- return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err)
- }
-
- if "InvalidKeyPair.NotFound" == apiErr.ErrorCode() {
- return true, nil
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// DescribeKeyPairsAPIClient is a client that implements the DescribeKeyPairs
-// operation.
-type DescribeKeyPairsAPIClient interface {
- DescribeKeyPairs(context.Context, *DescribeKeyPairsInput, ...func(*Options)) (*DescribeKeyPairsOutput, error)
-}
-
-var _ DescribeKeyPairsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeKeyPairs(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeKeyPairs",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLaunchTemplateVersions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLaunchTemplateVersions.go
deleted file mode 100644
index 8ada63ca1..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLaunchTemplateVersions.go
+++ /dev/null
@@ -1,359 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more versions of a specified launch template. You can describe
-// all versions, individual versions, or a range of versions. You can also describe
-// all the latest versions or all the default versions of all the launch templates
-// in your account.
-func (c *Client) DescribeLaunchTemplateVersions(ctx context.Context, params *DescribeLaunchTemplateVersionsInput, optFns ...func(*Options)) (*DescribeLaunchTemplateVersionsOutput, error) {
- if params == nil {
- params = &DescribeLaunchTemplateVersionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeLaunchTemplateVersions", params, optFns, c.addOperationDescribeLaunchTemplateVersionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeLaunchTemplateVersionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeLaunchTemplateVersionsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - create-time - The time the launch template version was created.
- //
- // - ebs-optimized - A boolean that indicates whether the instance is optimized
- // for Amazon EBS I/O.
- //
- // - http-endpoint - Indicates whether the HTTP metadata endpoint on your
- // instances is enabled ( enabled | disabled ).
- //
- // - http-protocol-ipv4 - Indicates whether the IPv4 endpoint for the instance
- // metadata service is enabled ( enabled | disabled ).
- //
- // - host-resource-group-arn - The ARN of the host resource group in which to
- // launch the instances.
- //
- // - http-tokens - The state of token usage for your instance metadata requests (
- // optional | required ).
- //
- // - iam-instance-profile - The ARN of the IAM instance profile.
- //
- // - image-id - The ID of the AMI.
- //
- // - instance-type - The instance type.
- //
- // - is-default-version - A boolean that indicates whether the launch template
- // version is the default version.
- //
- // - kernel-id - The kernel ID.
- //
- // - license-configuration-arn - The ARN of the license configuration.
- //
- // - network-card-index - The index of the network card.
- //
- // - ram-disk-id - The RAM disk ID.
- Filters []types.Filter
-
- // The ID of the launch template.
- //
- // To describe one or more versions of a specified launch template, you must
- // specify either the launch template ID or the launch template name, but not both.
- //
- // To describe all the latest or default launch template versions in your account,
- // you must omit this parameter.
- LaunchTemplateId *string
-
- // The name of the launch template.
- //
- // To describe one or more versions of a specified launch template, you must
- // specify either the launch template name or the launch template ID, but not both.
- //
- // To describe all the latest or default launch template versions in your account,
- // you must omit this parameter.
- LaunchTemplateName *string
-
- // The maximum number of results to return in a single call. To retrieve the
- // remaining results, make another call with the returned NextToken value. This
- // value can be between 1 and 200.
- MaxResults *int32
-
- // The version number up to which to describe launch template versions.
- MaxVersion *string
-
- // The version number after which to describe launch template versions.
- MinVersion *string
-
- // The token to request the next page of results.
- NextToken *string
-
- // If true , and if a Systems Manager parameter is specified for ImageId , the AMI
- // ID is displayed in the response for imageId .
- //
- // If false , and if a Systems Manager parameter is specified for ImageId , the
- // parameter is displayed in the response for imageId .
- //
- // For more information, see [Use a Systems Manager parameter instead of an AMI ID] in the Amazon EC2 User Guide.
- //
- // Default: false
- //
- // [Use a Systems Manager parameter instead of an AMI ID]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-launch-template.html#use-an-ssm-parameter-instead-of-an-ami-id
- ResolveAlias *bool
-
- // One or more versions of the launch template. Valid values depend on whether you
- // are describing a specified launch template (by ID or name) or all launch
- // templates in your account.
- //
- // To describe one or more versions of a specified launch template, valid values
- // are $Latest , $Default , and numbers.
- //
- // To describe all launch templates in your account that are defined as the latest
- // version, the valid value is $Latest . To describe all launch templates in your
- // account that are defined as the default version, the valid value is $Default .
- // You can specify $Latest and $Default in the same request. You cannot specify
- // numbers.
- Versions []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeLaunchTemplateVersionsOutput struct {
-
- // Information about the launch template versions.
- LaunchTemplateVersions []types.LaunchTemplateVersion
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeLaunchTemplateVersionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeLaunchTemplateVersions{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeLaunchTemplateVersions{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeLaunchTemplateVersions"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeLaunchTemplateVersions(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeLaunchTemplateVersionsPaginatorOptions is the paginator options for
-// DescribeLaunchTemplateVersions
-type DescribeLaunchTemplateVersionsPaginatorOptions struct {
- // The maximum number of results to return in a single call. To retrieve the
- // remaining results, make another call with the returned NextToken value. This
- // value can be between 1 and 200.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeLaunchTemplateVersionsPaginator is a paginator for
-// DescribeLaunchTemplateVersions
-type DescribeLaunchTemplateVersionsPaginator struct {
- options DescribeLaunchTemplateVersionsPaginatorOptions
- client DescribeLaunchTemplateVersionsAPIClient
- params *DescribeLaunchTemplateVersionsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeLaunchTemplateVersionsPaginator returns a new
-// DescribeLaunchTemplateVersionsPaginator
-func NewDescribeLaunchTemplateVersionsPaginator(client DescribeLaunchTemplateVersionsAPIClient, params *DescribeLaunchTemplateVersionsInput, optFns ...func(*DescribeLaunchTemplateVersionsPaginatorOptions)) *DescribeLaunchTemplateVersionsPaginator {
- if params == nil {
- params = &DescribeLaunchTemplateVersionsInput{}
- }
-
- options := DescribeLaunchTemplateVersionsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeLaunchTemplateVersionsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeLaunchTemplateVersionsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeLaunchTemplateVersions page.
-func (p *DescribeLaunchTemplateVersionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeLaunchTemplateVersionsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeLaunchTemplateVersions(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeLaunchTemplateVersionsAPIClient is a client that implements the
-// DescribeLaunchTemplateVersions operation.
-type DescribeLaunchTemplateVersionsAPIClient interface {
- DescribeLaunchTemplateVersions(context.Context, *DescribeLaunchTemplateVersionsInput, ...func(*Options)) (*DescribeLaunchTemplateVersionsOutput, error)
-}
-
-var _ DescribeLaunchTemplateVersionsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeLaunchTemplateVersions(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeLaunchTemplateVersions",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLaunchTemplates.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLaunchTemplates.go
deleted file mode 100644
index 9e972034c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLaunchTemplates.go
+++ /dev/null
@@ -1,288 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more launch templates.
-func (c *Client) DescribeLaunchTemplates(ctx context.Context, params *DescribeLaunchTemplatesInput, optFns ...func(*Options)) (*DescribeLaunchTemplatesOutput, error) {
- if params == nil {
- params = &DescribeLaunchTemplatesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeLaunchTemplates", params, optFns, c.addOperationDescribeLaunchTemplatesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeLaunchTemplatesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeLaunchTemplatesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - create-time - The time the launch template was created.
- //
- // - launch-template-name - The name of the launch template.
- //
- // - tag : - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- Filters []types.Filter
-
- // One or more launch template IDs.
- LaunchTemplateIds []string
-
- // One or more launch template names.
- LaunchTemplateNames []string
-
- // The maximum number of results to return in a single call. To retrieve the
- // remaining results, make another call with the returned NextToken value. This
- // value can be between 1 and 200.
- MaxResults *int32
-
- // The token to request the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeLaunchTemplatesOutput struct {
-
- // Information about the launch templates.
- LaunchTemplates []types.LaunchTemplate
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeLaunchTemplatesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeLaunchTemplates{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeLaunchTemplates{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeLaunchTemplates"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeLaunchTemplates(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeLaunchTemplatesPaginatorOptions is the paginator options for
-// DescribeLaunchTemplates
-type DescribeLaunchTemplatesPaginatorOptions struct {
- // The maximum number of results to return in a single call. To retrieve the
- // remaining results, make another call with the returned NextToken value. This
- // value can be between 1 and 200.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeLaunchTemplatesPaginator is a paginator for DescribeLaunchTemplates
-type DescribeLaunchTemplatesPaginator struct {
- options DescribeLaunchTemplatesPaginatorOptions
- client DescribeLaunchTemplatesAPIClient
- params *DescribeLaunchTemplatesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeLaunchTemplatesPaginator returns a new
-// DescribeLaunchTemplatesPaginator
-func NewDescribeLaunchTemplatesPaginator(client DescribeLaunchTemplatesAPIClient, params *DescribeLaunchTemplatesInput, optFns ...func(*DescribeLaunchTemplatesPaginatorOptions)) *DescribeLaunchTemplatesPaginator {
- if params == nil {
- params = &DescribeLaunchTemplatesInput{}
- }
-
- options := DescribeLaunchTemplatesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeLaunchTemplatesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeLaunchTemplatesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeLaunchTemplates page.
-func (p *DescribeLaunchTemplatesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeLaunchTemplatesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeLaunchTemplates(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeLaunchTemplatesAPIClient is a client that implements the
-// DescribeLaunchTemplates operation.
-type DescribeLaunchTemplatesAPIClient interface {
- DescribeLaunchTemplates(context.Context, *DescribeLaunchTemplatesInput, ...func(*Options)) (*DescribeLaunchTemplatesOutput, error)
-}
-
-var _ DescribeLaunchTemplatesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeLaunchTemplates(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeLaunchTemplates",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations.go
deleted file mode 100644
index 2779c2a8e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations.go
+++ /dev/null
@@ -1,295 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the associations between virtual interface groups and local gateway
-// route tables.
-func (c *Client) DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(ctx context.Context, params *DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, optFns ...func(*Options)) (*DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput, error) {
- if params == nil {
- params = &DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations", params, optFns, c.addOperationDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - local-gateway-id - The ID of a local gateway.
- //
- // - local-gateway-route-table-arn - The Amazon Resource Name (ARN) of the local
- // gateway route table for the virtual interface group.
- //
- // - local-gateway-route-table-id - The ID of the local gateway route table.
- //
- // - local-gateway-route-table-virtual-interface-group-association-id - The ID of
- // the association.
- //
- // - local-gateway-route-table-virtual-interface-group-id - The ID of the virtual
- // interface group.
- //
- // - owner-id - The ID of the Amazon Web Services account that owns the local
- // gateway virtual interface group association.
- //
- // - state - The state of the association.
- Filters []types.Filter
-
- // The IDs of the associations.
- LocalGatewayRouteTableVirtualInterfaceGroupAssociationIds []string
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput struct {
-
- // Information about the associations.
- LocalGatewayRouteTableVirtualInterfaceGroupAssociations []types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginatorOptions
-// is the paginator options for
-// DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations
-type DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginator is a
-// paginator for DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations
-type DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginator struct {
- options DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginatorOptions
- client DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsAPIClient
- params *DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginator
-// returns a new
-// DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginator
-func NewDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginator(client DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsAPIClient, params *DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, optFns ...func(*DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginatorOptions)) *DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginator {
- if params == nil {
- params = &DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput{}
- }
-
- options := DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next
-// DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations page.
-func (p *DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsAPIClient is a
-// client that implements the
-// DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations operation.
-type DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsAPIClient interface {
- DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(context.Context, *DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, ...func(*Options)) (*DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput, error)
-}
-
-var _ DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTableVpcAssociations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTableVpcAssociations.go
deleted file mode 100644
index 3bee2c82a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTableVpcAssociations.go
+++ /dev/null
@@ -1,289 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified associations between VPCs and local gateway route
-// tables.
-func (c *Client) DescribeLocalGatewayRouteTableVpcAssociations(ctx context.Context, params *DescribeLocalGatewayRouteTableVpcAssociationsInput, optFns ...func(*Options)) (*DescribeLocalGatewayRouteTableVpcAssociationsOutput, error) {
- if params == nil {
- params = &DescribeLocalGatewayRouteTableVpcAssociationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeLocalGatewayRouteTableVpcAssociations", params, optFns, c.addOperationDescribeLocalGatewayRouteTableVpcAssociationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeLocalGatewayRouteTableVpcAssociationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeLocalGatewayRouteTableVpcAssociationsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - local-gateway-id - The ID of a local gateway.
- //
- // - local-gateway-route-table-arn - The Amazon Resource Name (ARN) of the local
- // gateway route table for the association.
- //
- // - local-gateway-route-table-id - The ID of the local gateway route table.
- //
- // - local-gateway-route-table-vpc-association-id - The ID of the association.
- //
- // - owner-id - The ID of the Amazon Web Services account that owns the local
- // gateway route table for the association.
- //
- // - state - The state of the association.
- //
- // - vpc-id - The ID of the VPC.
- Filters []types.Filter
-
- // The IDs of the associations.
- LocalGatewayRouteTableVpcAssociationIds []string
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeLocalGatewayRouteTableVpcAssociationsOutput struct {
-
- // Information about the associations.
- LocalGatewayRouteTableVpcAssociations []types.LocalGatewayRouteTableVpcAssociation
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeLocalGatewayRouteTableVpcAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeLocalGatewayRouteTableVpcAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVpcAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeLocalGatewayRouteTableVpcAssociations"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeLocalGatewayRouteTableVpcAssociations(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeLocalGatewayRouteTableVpcAssociationsPaginatorOptions is the paginator
-// options for DescribeLocalGatewayRouteTableVpcAssociations
-type DescribeLocalGatewayRouteTableVpcAssociationsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeLocalGatewayRouteTableVpcAssociationsPaginator is a paginator for
-// DescribeLocalGatewayRouteTableVpcAssociations
-type DescribeLocalGatewayRouteTableVpcAssociationsPaginator struct {
- options DescribeLocalGatewayRouteTableVpcAssociationsPaginatorOptions
- client DescribeLocalGatewayRouteTableVpcAssociationsAPIClient
- params *DescribeLocalGatewayRouteTableVpcAssociationsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeLocalGatewayRouteTableVpcAssociationsPaginator returns a new
-// DescribeLocalGatewayRouteTableVpcAssociationsPaginator
-func NewDescribeLocalGatewayRouteTableVpcAssociationsPaginator(client DescribeLocalGatewayRouteTableVpcAssociationsAPIClient, params *DescribeLocalGatewayRouteTableVpcAssociationsInput, optFns ...func(*DescribeLocalGatewayRouteTableVpcAssociationsPaginatorOptions)) *DescribeLocalGatewayRouteTableVpcAssociationsPaginator {
- if params == nil {
- params = &DescribeLocalGatewayRouteTableVpcAssociationsInput{}
- }
-
- options := DescribeLocalGatewayRouteTableVpcAssociationsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeLocalGatewayRouteTableVpcAssociationsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeLocalGatewayRouteTableVpcAssociationsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeLocalGatewayRouteTableVpcAssociations page.
-func (p *DescribeLocalGatewayRouteTableVpcAssociationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeLocalGatewayRouteTableVpcAssociationsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeLocalGatewayRouteTableVpcAssociations(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeLocalGatewayRouteTableVpcAssociationsAPIClient is a client that
-// implements the DescribeLocalGatewayRouteTableVpcAssociations operation.
-type DescribeLocalGatewayRouteTableVpcAssociationsAPIClient interface {
- DescribeLocalGatewayRouteTableVpcAssociations(context.Context, *DescribeLocalGatewayRouteTableVpcAssociationsInput, ...func(*Options)) (*DescribeLocalGatewayRouteTableVpcAssociationsOutput, error)
-}
-
-var _ DescribeLocalGatewayRouteTableVpcAssociationsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeLocalGatewayRouteTableVpcAssociations(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeLocalGatewayRouteTableVpcAssociations",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTables.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTables.go
deleted file mode 100644
index 08f7a1fa2..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTables.go
+++ /dev/null
@@ -1,287 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more local gateway route tables. By default, all local gateway
-// route tables are described. Alternatively, you can filter the results.
-func (c *Client) DescribeLocalGatewayRouteTables(ctx context.Context, params *DescribeLocalGatewayRouteTablesInput, optFns ...func(*Options)) (*DescribeLocalGatewayRouteTablesOutput, error) {
- if params == nil {
- params = &DescribeLocalGatewayRouteTablesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeLocalGatewayRouteTables", params, optFns, c.addOperationDescribeLocalGatewayRouteTablesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeLocalGatewayRouteTablesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeLocalGatewayRouteTablesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - local-gateway-id - The ID of a local gateway.
- //
- // - local-gateway-route-table-arn - The Amazon Resource Name (ARN) of the local
- // gateway route table.
- //
- // - local-gateway-route-table-id - The ID of a local gateway route table.
- //
- // - outpost-arn - The Amazon Resource Name (ARN) of the Outpost.
- //
- // - owner-id - The ID of the Amazon Web Services account that owns the local
- // gateway route table.
- //
- // - state - The state of the local gateway route table.
- Filters []types.Filter
-
- // The IDs of the local gateway route tables.
- LocalGatewayRouteTableIds []string
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeLocalGatewayRouteTablesOutput struct {
-
- // Information about the local gateway route tables.
- LocalGatewayRouteTables []types.LocalGatewayRouteTable
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeLocalGatewayRouteTablesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeLocalGatewayRouteTables{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeLocalGatewayRouteTables{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeLocalGatewayRouteTables"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeLocalGatewayRouteTables(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeLocalGatewayRouteTablesPaginatorOptions is the paginator options for
-// DescribeLocalGatewayRouteTables
-type DescribeLocalGatewayRouteTablesPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeLocalGatewayRouteTablesPaginator is a paginator for
-// DescribeLocalGatewayRouteTables
-type DescribeLocalGatewayRouteTablesPaginator struct {
- options DescribeLocalGatewayRouteTablesPaginatorOptions
- client DescribeLocalGatewayRouteTablesAPIClient
- params *DescribeLocalGatewayRouteTablesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeLocalGatewayRouteTablesPaginator returns a new
-// DescribeLocalGatewayRouteTablesPaginator
-func NewDescribeLocalGatewayRouteTablesPaginator(client DescribeLocalGatewayRouteTablesAPIClient, params *DescribeLocalGatewayRouteTablesInput, optFns ...func(*DescribeLocalGatewayRouteTablesPaginatorOptions)) *DescribeLocalGatewayRouteTablesPaginator {
- if params == nil {
- params = &DescribeLocalGatewayRouteTablesInput{}
- }
-
- options := DescribeLocalGatewayRouteTablesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeLocalGatewayRouteTablesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeLocalGatewayRouteTablesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeLocalGatewayRouteTables page.
-func (p *DescribeLocalGatewayRouteTablesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeLocalGatewayRouteTablesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeLocalGatewayRouteTables(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeLocalGatewayRouteTablesAPIClient is a client that implements the
-// DescribeLocalGatewayRouteTables operation.
-type DescribeLocalGatewayRouteTablesAPIClient interface {
- DescribeLocalGatewayRouteTables(context.Context, *DescribeLocalGatewayRouteTablesInput, ...func(*Options)) (*DescribeLocalGatewayRouteTablesOutput, error)
-}
-
-var _ DescribeLocalGatewayRouteTablesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeLocalGatewayRouteTables(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeLocalGatewayRouteTables",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaceGroups.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaceGroups.go
deleted file mode 100644
index 0c23a9035..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaceGroups.go
+++ /dev/null
@@ -1,282 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified local gateway virtual interface groups.
-func (c *Client) DescribeLocalGatewayVirtualInterfaceGroups(ctx context.Context, params *DescribeLocalGatewayVirtualInterfaceGroupsInput, optFns ...func(*Options)) (*DescribeLocalGatewayVirtualInterfaceGroupsOutput, error) {
- if params == nil {
- params = &DescribeLocalGatewayVirtualInterfaceGroupsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeLocalGatewayVirtualInterfaceGroups", params, optFns, c.addOperationDescribeLocalGatewayVirtualInterfaceGroupsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeLocalGatewayVirtualInterfaceGroupsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeLocalGatewayVirtualInterfaceGroupsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - local-gateway-id - The ID of a local gateway.
- //
- // - local-gateway-virtual-interface-group-id - The ID of the virtual interface
- // group.
- //
- // - local-gateway-virtual-interface-id - The ID of the virtual interface.
- //
- // - owner-id - The ID of the Amazon Web Services account that owns the local
- // gateway virtual interface group.
- Filters []types.Filter
-
- // The IDs of the virtual interface groups.
- LocalGatewayVirtualInterfaceGroupIds []string
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeLocalGatewayVirtualInterfaceGroupsOutput struct {
-
- // The virtual interface groups.
- LocalGatewayVirtualInterfaceGroups []types.LocalGatewayVirtualInterfaceGroup
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeLocalGatewayVirtualInterfaceGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeLocalGatewayVirtualInterfaceGroups{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaceGroups{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeLocalGatewayVirtualInterfaceGroups"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeLocalGatewayVirtualInterfaceGroups(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeLocalGatewayVirtualInterfaceGroupsPaginatorOptions is the paginator
-// options for DescribeLocalGatewayVirtualInterfaceGroups
-type DescribeLocalGatewayVirtualInterfaceGroupsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeLocalGatewayVirtualInterfaceGroupsPaginator is a paginator for
-// DescribeLocalGatewayVirtualInterfaceGroups
-type DescribeLocalGatewayVirtualInterfaceGroupsPaginator struct {
- options DescribeLocalGatewayVirtualInterfaceGroupsPaginatorOptions
- client DescribeLocalGatewayVirtualInterfaceGroupsAPIClient
- params *DescribeLocalGatewayVirtualInterfaceGroupsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeLocalGatewayVirtualInterfaceGroupsPaginator returns a new
-// DescribeLocalGatewayVirtualInterfaceGroupsPaginator
-func NewDescribeLocalGatewayVirtualInterfaceGroupsPaginator(client DescribeLocalGatewayVirtualInterfaceGroupsAPIClient, params *DescribeLocalGatewayVirtualInterfaceGroupsInput, optFns ...func(*DescribeLocalGatewayVirtualInterfaceGroupsPaginatorOptions)) *DescribeLocalGatewayVirtualInterfaceGroupsPaginator {
- if params == nil {
- params = &DescribeLocalGatewayVirtualInterfaceGroupsInput{}
- }
-
- options := DescribeLocalGatewayVirtualInterfaceGroupsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeLocalGatewayVirtualInterfaceGroupsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeLocalGatewayVirtualInterfaceGroupsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeLocalGatewayVirtualInterfaceGroups page.
-func (p *DescribeLocalGatewayVirtualInterfaceGroupsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeLocalGatewayVirtualInterfaceGroupsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeLocalGatewayVirtualInterfaceGroups(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeLocalGatewayVirtualInterfaceGroupsAPIClient is a client that implements
-// the DescribeLocalGatewayVirtualInterfaceGroups operation.
-type DescribeLocalGatewayVirtualInterfaceGroupsAPIClient interface {
- DescribeLocalGatewayVirtualInterfaceGroups(context.Context, *DescribeLocalGatewayVirtualInterfaceGroupsInput, ...func(*Options)) (*DescribeLocalGatewayVirtualInterfaceGroupsOutput, error)
-}
-
-var _ DescribeLocalGatewayVirtualInterfaceGroupsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeLocalGatewayVirtualInterfaceGroups(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeLocalGatewayVirtualInterfaceGroups",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaces.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaces.go
deleted file mode 100644
index 324ccdeaf..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaces.go
+++ /dev/null
@@ -1,290 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified local gateway virtual interfaces.
-func (c *Client) DescribeLocalGatewayVirtualInterfaces(ctx context.Context, params *DescribeLocalGatewayVirtualInterfacesInput, optFns ...func(*Options)) (*DescribeLocalGatewayVirtualInterfacesOutput, error) {
- if params == nil {
- params = &DescribeLocalGatewayVirtualInterfacesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeLocalGatewayVirtualInterfaces", params, optFns, c.addOperationDescribeLocalGatewayVirtualInterfacesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeLocalGatewayVirtualInterfacesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeLocalGatewayVirtualInterfacesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - local-address - The local address.
- //
- // - local-bgp-asn - The Border Gateway Protocol (BGP) Autonomous System Number
- // (ASN) of the local gateway.
- //
- // - local-gateway-id - The ID of the local gateway.
- //
- // - local-gateway-virtual-interface-id - The ID of the virtual interface.
- //
- // - owner-id - The ID of the Amazon Web Services account that owns the local
- // gateway virtual interface.
- //
- // - peer-address - The peer address.
- //
- // - peer-bgp-asn - The peer BGP ASN.
- //
- // - vlan - The ID of the VLAN.
- Filters []types.Filter
-
- // The IDs of the virtual interfaces.
- LocalGatewayVirtualInterfaceIds []string
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeLocalGatewayVirtualInterfacesOutput struct {
-
- // Information about the virtual interfaces.
- LocalGatewayVirtualInterfaces []types.LocalGatewayVirtualInterface
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeLocalGatewayVirtualInterfacesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeLocalGatewayVirtualInterfaces{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaces{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeLocalGatewayVirtualInterfaces"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeLocalGatewayVirtualInterfaces(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeLocalGatewayVirtualInterfacesPaginatorOptions is the paginator options
-// for DescribeLocalGatewayVirtualInterfaces
-type DescribeLocalGatewayVirtualInterfacesPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeLocalGatewayVirtualInterfacesPaginator is a paginator for
-// DescribeLocalGatewayVirtualInterfaces
-type DescribeLocalGatewayVirtualInterfacesPaginator struct {
- options DescribeLocalGatewayVirtualInterfacesPaginatorOptions
- client DescribeLocalGatewayVirtualInterfacesAPIClient
- params *DescribeLocalGatewayVirtualInterfacesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeLocalGatewayVirtualInterfacesPaginator returns a new
-// DescribeLocalGatewayVirtualInterfacesPaginator
-func NewDescribeLocalGatewayVirtualInterfacesPaginator(client DescribeLocalGatewayVirtualInterfacesAPIClient, params *DescribeLocalGatewayVirtualInterfacesInput, optFns ...func(*DescribeLocalGatewayVirtualInterfacesPaginatorOptions)) *DescribeLocalGatewayVirtualInterfacesPaginator {
- if params == nil {
- params = &DescribeLocalGatewayVirtualInterfacesInput{}
- }
-
- options := DescribeLocalGatewayVirtualInterfacesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeLocalGatewayVirtualInterfacesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeLocalGatewayVirtualInterfacesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeLocalGatewayVirtualInterfaces page.
-func (p *DescribeLocalGatewayVirtualInterfacesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeLocalGatewayVirtualInterfacesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeLocalGatewayVirtualInterfaces(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeLocalGatewayVirtualInterfacesAPIClient is a client that implements the
-// DescribeLocalGatewayVirtualInterfaces operation.
-type DescribeLocalGatewayVirtualInterfacesAPIClient interface {
- DescribeLocalGatewayVirtualInterfaces(context.Context, *DescribeLocalGatewayVirtualInterfacesInput, ...func(*Options)) (*DescribeLocalGatewayVirtualInterfacesOutput, error)
-}
-
-var _ DescribeLocalGatewayVirtualInterfacesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeLocalGatewayVirtualInterfaces(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeLocalGatewayVirtualInterfaces",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGateways.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGateways.go
deleted file mode 100644
index 149c9a316..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGateways.go
+++ /dev/null
@@ -1,280 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more local gateways. By default, all local gateways are
-// described. Alternatively, you can filter the results.
-func (c *Client) DescribeLocalGateways(ctx context.Context, params *DescribeLocalGatewaysInput, optFns ...func(*Options)) (*DescribeLocalGatewaysOutput, error) {
- if params == nil {
- params = &DescribeLocalGatewaysInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeLocalGateways", params, optFns, c.addOperationDescribeLocalGatewaysMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeLocalGatewaysOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeLocalGatewaysInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - local-gateway-id - The ID of a local gateway.
- //
- // - outpost-arn - The Amazon Resource Name (ARN) of the Outpost.
- //
- // - owner-id - The ID of the Amazon Web Services account that owns the local
- // gateway.
- //
- // - state - The state of the association.
- Filters []types.Filter
-
- // The IDs of the local gateways.
- LocalGatewayIds []string
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeLocalGatewaysOutput struct {
-
- // Information about the local gateways.
- LocalGateways []types.LocalGateway
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeLocalGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeLocalGateways{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeLocalGateways{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeLocalGateways"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeLocalGateways(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeLocalGatewaysPaginatorOptions is the paginator options for
-// DescribeLocalGateways
-type DescribeLocalGatewaysPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeLocalGatewaysPaginator is a paginator for DescribeLocalGateways
-type DescribeLocalGatewaysPaginator struct {
- options DescribeLocalGatewaysPaginatorOptions
- client DescribeLocalGatewaysAPIClient
- params *DescribeLocalGatewaysInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeLocalGatewaysPaginator returns a new DescribeLocalGatewaysPaginator
-func NewDescribeLocalGatewaysPaginator(client DescribeLocalGatewaysAPIClient, params *DescribeLocalGatewaysInput, optFns ...func(*DescribeLocalGatewaysPaginatorOptions)) *DescribeLocalGatewaysPaginator {
- if params == nil {
- params = &DescribeLocalGatewaysInput{}
- }
-
- options := DescribeLocalGatewaysPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeLocalGatewaysPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeLocalGatewaysPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeLocalGateways page.
-func (p *DescribeLocalGatewaysPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeLocalGatewaysOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeLocalGateways(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeLocalGatewaysAPIClient is a client that implements the
-// DescribeLocalGateways operation.
-type DescribeLocalGatewaysAPIClient interface {
- DescribeLocalGateways(context.Context, *DescribeLocalGatewaysInput, ...func(*Options)) (*DescribeLocalGatewaysOutput, error)
-}
-
-var _ DescribeLocalGatewaysAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeLocalGateways(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeLocalGateways",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLockedSnapshots.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLockedSnapshots.go
deleted file mode 100644
index 5ad0e5f0e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLockedSnapshots.go
+++ /dev/null
@@ -1,182 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the lock status for a snapshot.
-func (c *Client) DescribeLockedSnapshots(ctx context.Context, params *DescribeLockedSnapshotsInput, optFns ...func(*Options)) (*DescribeLockedSnapshotsOutput, error) {
- if params == nil {
- params = &DescribeLockedSnapshotsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeLockedSnapshots", params, optFns, c.addOperationDescribeLockedSnapshotsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeLockedSnapshotsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeLockedSnapshotsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - lock-state - The state of the snapshot lock ( compliance-cooloff |
- // governance | compliance | expired ).
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- // The IDs of the snapshots for which to view the lock status.
- SnapshotIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeLockedSnapshotsOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Information about the snapshots.
- Snapshots []types.LockedSnapshotsInfo
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeLockedSnapshotsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeLockedSnapshots{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeLockedSnapshots{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeLockedSnapshots"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeLockedSnapshots(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeLockedSnapshots(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeLockedSnapshots",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeMacHosts.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeMacHosts.go
deleted file mode 100644
index d5a8111a0..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeMacHosts.go
+++ /dev/null
@@ -1,272 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified EC2 Mac Dedicated Host or all of your EC2 Mac Dedicated
-// Hosts.
-func (c *Client) DescribeMacHosts(ctx context.Context, params *DescribeMacHostsInput, optFns ...func(*Options)) (*DescribeMacHostsOutput, error) {
- if params == nil {
- params = &DescribeMacHostsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeMacHosts", params, optFns, c.addOperationDescribeMacHostsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeMacHostsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeMacHostsInput struct {
-
- // The filters.
- //
- // - availability-zone - The Availability Zone of the EC2 Mac Dedicated Host.
- //
- // - instance-type - The instance type size that the EC2 Mac Dedicated Host is
- // configured to support.
- Filters []types.Filter
-
- // The IDs of the EC2 Mac Dedicated Hosts.
- HostIds []string
-
- // The maximum number of results to return for the request in a single page. The
- // remaining results can be seen by sending another request with the returned
- // nextToken value. This value can be between 5 and 500. If maxResults is given a
- // larger value than 500, you receive an error.
- MaxResults *int32
-
- // The token to use to retrieve the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeMacHostsOutput struct {
-
- // Information about the EC2 Mac Dedicated Hosts.
- MacHosts []types.MacHost
-
- // The token to use to retrieve the next page of results.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeMacHostsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeMacHosts{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeMacHosts{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeMacHosts"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeMacHosts(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeMacHostsPaginatorOptions is the paginator options for DescribeMacHosts
-type DescribeMacHostsPaginatorOptions struct {
- // The maximum number of results to return for the request in a single page. The
- // remaining results can be seen by sending another request with the returned
- // nextToken value. This value can be between 5 and 500. If maxResults is given a
- // larger value than 500, you receive an error.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeMacHostsPaginator is a paginator for DescribeMacHosts
-type DescribeMacHostsPaginator struct {
- options DescribeMacHostsPaginatorOptions
- client DescribeMacHostsAPIClient
- params *DescribeMacHostsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeMacHostsPaginator returns a new DescribeMacHostsPaginator
-func NewDescribeMacHostsPaginator(client DescribeMacHostsAPIClient, params *DescribeMacHostsInput, optFns ...func(*DescribeMacHostsPaginatorOptions)) *DescribeMacHostsPaginator {
- if params == nil {
- params = &DescribeMacHostsInput{}
- }
-
- options := DescribeMacHostsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeMacHostsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeMacHostsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeMacHosts page.
-func (p *DescribeMacHostsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeMacHostsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeMacHosts(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeMacHostsAPIClient is a client that implements the DescribeMacHosts
-// operation.
-type DescribeMacHostsAPIClient interface {
- DescribeMacHosts(context.Context, *DescribeMacHostsInput, ...func(*Options)) (*DescribeMacHostsOutput, error)
-}
-
-var _ DescribeMacHostsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeMacHosts(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeMacHosts",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeMacModificationTasks.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeMacModificationTasks.go
deleted file mode 100644
index 7735bdd53..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeMacModificationTasks.go
+++ /dev/null
@@ -1,293 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes a System Integrity Protection (SIP) modification task or volume
-// ownership delegation task for an Amazon EC2 Mac instance. For more information,
-// see [Configure SIP for Amazon EC2 instances]in the Amazon EC2 User Guide.
-//
-// [Configure SIP for Amazon EC2 instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/mac-sip-settings.html#mac-sip-configure
-func (c *Client) DescribeMacModificationTasks(ctx context.Context, params *DescribeMacModificationTasksInput, optFns ...func(*Options)) (*DescribeMacModificationTasksOutput, error) {
- if params == nil {
- params = &DescribeMacModificationTasksInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeMacModificationTasks", params, optFns, c.addOperationDescribeMacModificationTasksMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeMacModificationTasksOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeMacModificationTasksInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Specifies one or more filters for the request:
- //
- // - instance-id - The ID of the instance for which the task was created.
- //
- // - task-state - The state of the task ( successful | failed | in-progress |
- // pending ).
- //
- // - mac-system-integrity-protection-configuration.sip-status - The overall SIP
- // state requested in the task ( enabled | disabled ).
- //
- // - start-time - The date and time the task was created.
- //
- // - task-type - The type of task ( sip-modification |
- // volume-ownership-delegation ).
- Filters []types.Filter
-
- // The ID of task.
- MacModificationTaskIds []string
-
- // The maximum number of results to return for the request in a single page. The
- // remaining results can be seen by sending another request with the returned
- // nextToken value. This value can be between 5 and 500. If maxResults is given a
- // larger value than 500, you receive an error.
- MaxResults *int32
-
- // The token to use to retrieve the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeMacModificationTasksOutput struct {
-
- // Information about the tasks.
- MacModificationTasks []types.MacModificationTask
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeMacModificationTasksMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeMacModificationTasks{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeMacModificationTasks{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeMacModificationTasks"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeMacModificationTasks(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeMacModificationTasksPaginatorOptions is the paginator options for
-// DescribeMacModificationTasks
-type DescribeMacModificationTasksPaginatorOptions struct {
- // The maximum number of results to return for the request in a single page. The
- // remaining results can be seen by sending another request with the returned
- // nextToken value. This value can be between 5 and 500. If maxResults is given a
- // larger value than 500, you receive an error.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeMacModificationTasksPaginator is a paginator for
-// DescribeMacModificationTasks
-type DescribeMacModificationTasksPaginator struct {
- options DescribeMacModificationTasksPaginatorOptions
- client DescribeMacModificationTasksAPIClient
- params *DescribeMacModificationTasksInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeMacModificationTasksPaginator returns a new
-// DescribeMacModificationTasksPaginator
-func NewDescribeMacModificationTasksPaginator(client DescribeMacModificationTasksAPIClient, params *DescribeMacModificationTasksInput, optFns ...func(*DescribeMacModificationTasksPaginatorOptions)) *DescribeMacModificationTasksPaginator {
- if params == nil {
- params = &DescribeMacModificationTasksInput{}
- }
-
- options := DescribeMacModificationTasksPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeMacModificationTasksPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeMacModificationTasksPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeMacModificationTasks page.
-func (p *DescribeMacModificationTasksPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeMacModificationTasksOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeMacModificationTasks(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeMacModificationTasksAPIClient is a client that implements the
-// DescribeMacModificationTasks operation.
-type DescribeMacModificationTasksAPIClient interface {
- DescribeMacModificationTasks(context.Context, *DescribeMacModificationTasksInput, ...func(*Options)) (*DescribeMacModificationTasksOutput, error)
-}
-
-var _ DescribeMacModificationTasksAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeMacModificationTasks(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeMacModificationTasks",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeManagedPrefixLists.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeManagedPrefixLists.go
deleted file mode 100644
index ae7d45ca5..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeManagedPrefixLists.go
+++ /dev/null
@@ -1,281 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes your managed prefix lists and any Amazon Web Services-managed prefix
-// lists.
-//
-// To view the entries for your prefix list, use GetManagedPrefixListEntries.
-func (c *Client) DescribeManagedPrefixLists(ctx context.Context, params *DescribeManagedPrefixListsInput, optFns ...func(*Options)) (*DescribeManagedPrefixListsOutput, error) {
- if params == nil {
- params = &DescribeManagedPrefixListsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeManagedPrefixLists", params, optFns, c.addOperationDescribeManagedPrefixListsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeManagedPrefixListsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeManagedPrefixListsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - owner-id - The ID of the prefix list owner.
- //
- // - prefix-list-id - The ID of the prefix list.
- //
- // - prefix-list-name - The name of the prefix list.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // One or more prefix list IDs.
- PrefixListIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeManagedPrefixListsOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the prefix lists.
- PrefixLists []types.ManagedPrefixList
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeManagedPrefixListsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeManagedPrefixLists{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeManagedPrefixLists{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeManagedPrefixLists"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeManagedPrefixLists(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeManagedPrefixListsPaginatorOptions is the paginator options for
-// DescribeManagedPrefixLists
-type DescribeManagedPrefixListsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeManagedPrefixListsPaginator is a paginator for
-// DescribeManagedPrefixLists
-type DescribeManagedPrefixListsPaginator struct {
- options DescribeManagedPrefixListsPaginatorOptions
- client DescribeManagedPrefixListsAPIClient
- params *DescribeManagedPrefixListsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeManagedPrefixListsPaginator returns a new
-// DescribeManagedPrefixListsPaginator
-func NewDescribeManagedPrefixListsPaginator(client DescribeManagedPrefixListsAPIClient, params *DescribeManagedPrefixListsInput, optFns ...func(*DescribeManagedPrefixListsPaginatorOptions)) *DescribeManagedPrefixListsPaginator {
- if params == nil {
- params = &DescribeManagedPrefixListsInput{}
- }
-
- options := DescribeManagedPrefixListsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeManagedPrefixListsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeManagedPrefixListsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeManagedPrefixLists page.
-func (p *DescribeManagedPrefixListsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeManagedPrefixListsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeManagedPrefixLists(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeManagedPrefixListsAPIClient is a client that implements the
-// DescribeManagedPrefixLists operation.
-type DescribeManagedPrefixListsAPIClient interface {
- DescribeManagedPrefixLists(context.Context, *DescribeManagedPrefixListsInput, ...func(*Options)) (*DescribeManagedPrefixListsOutput, error)
-}
-
-var _ DescribeManagedPrefixListsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeManagedPrefixLists(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeManagedPrefixLists",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeMovingAddresses.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeMovingAddresses.go
deleted file mode 100644
index 32c78c828..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeMovingAddresses.go
+++ /dev/null
@@ -1,286 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// This action is deprecated.
-//
-// Describes your Elastic IP addresses that are being moved from or being restored
-// to the EC2-Classic platform. This request does not return information about any
-// other Elastic IP addresses in your account.
-func (c *Client) DescribeMovingAddresses(ctx context.Context, params *DescribeMovingAddressesInput, optFns ...func(*Options)) (*DescribeMovingAddressesOutput, error) {
- if params == nil {
- params = &DescribeMovingAddressesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeMovingAddresses", params, optFns, c.addOperationDescribeMovingAddressesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeMovingAddressesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeMovingAddressesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - moving-status - The status of the Elastic IP address ( MovingToVpc |
- // RestoringToClassic ).
- Filters []types.Filter
-
- // The maximum number of results to return for the request in a single page. The
- // remaining results of the initial request can be seen by sending another request
- // with the returned NextToken value. This value can be between 5 and 1000; if
- // MaxResults is given a value outside of this range, an error is returned.
- //
- // Default: If no value is provided, the default is 1000.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // One or more Elastic IP addresses.
- PublicIps []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeMovingAddressesOutput struct {
-
- // The status for each Elastic IP address.
- MovingAddressStatuses []types.MovingAddressStatus
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeMovingAddressesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeMovingAddresses{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeMovingAddresses{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeMovingAddresses"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeMovingAddresses(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeMovingAddressesPaginatorOptions is the paginator options for
-// DescribeMovingAddresses
-type DescribeMovingAddressesPaginatorOptions struct {
- // The maximum number of results to return for the request in a single page. The
- // remaining results of the initial request can be seen by sending another request
- // with the returned NextToken value. This value can be between 5 and 1000; if
- // MaxResults is given a value outside of this range, an error is returned.
- //
- // Default: If no value is provided, the default is 1000.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeMovingAddressesPaginator is a paginator for DescribeMovingAddresses
-type DescribeMovingAddressesPaginator struct {
- options DescribeMovingAddressesPaginatorOptions
- client DescribeMovingAddressesAPIClient
- params *DescribeMovingAddressesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeMovingAddressesPaginator returns a new
-// DescribeMovingAddressesPaginator
-func NewDescribeMovingAddressesPaginator(client DescribeMovingAddressesAPIClient, params *DescribeMovingAddressesInput, optFns ...func(*DescribeMovingAddressesPaginatorOptions)) *DescribeMovingAddressesPaginator {
- if params == nil {
- params = &DescribeMovingAddressesInput{}
- }
-
- options := DescribeMovingAddressesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeMovingAddressesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeMovingAddressesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeMovingAddresses page.
-func (p *DescribeMovingAddressesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeMovingAddressesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeMovingAddresses(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeMovingAddressesAPIClient is a client that implements the
-// DescribeMovingAddresses operation.
-type DescribeMovingAddressesAPIClient interface {
- DescribeMovingAddresses(context.Context, *DescribeMovingAddressesInput, ...func(*Options)) (*DescribeMovingAddressesOutput, error)
-}
-
-var _ DescribeMovingAddressesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeMovingAddresses(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeMovingAddresses",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNatGateways.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNatGateways.go
deleted file mode 100644
index 1a7ff3e95..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNatGateways.go
+++ /dev/null
@@ -1,762 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "errors"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- smithy "github.com/aws/smithy-go"
- "github.com/aws/smithy-go/middleware"
- smithytime "github.com/aws/smithy-go/time"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- smithywaiter "github.com/aws/smithy-go/waiter"
- "time"
-)
-
-// Describes your NAT gateways. The default is to describe all your NAT gateways.
-// Alternatively, you can specify specific NAT gateway IDs or filter the results to
-// include only the NAT gateways that match specific criteria.
-func (c *Client) DescribeNatGateways(ctx context.Context, params *DescribeNatGatewaysInput, optFns ...func(*Options)) (*DescribeNatGatewaysOutput, error) {
- if params == nil {
- params = &DescribeNatGatewaysInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeNatGateways", params, optFns, c.addOperationDescribeNatGatewaysMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeNatGatewaysOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeNatGatewaysInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - nat-gateway-id - The ID of the NAT gateway.
- //
- // - state - The state of the NAT gateway ( pending | failed | available |
- // deleting | deleted ).
- //
- // - subnet-id - The ID of the subnet in which the NAT gateway resides.
- //
- // - tag - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- //
- // - vpc-id - The ID of the VPC in which the NAT gateway resides.
- Filter []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The IDs of the NAT gateways.
- NatGatewayIds []string
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeNatGatewaysOutput struct {
-
- // Information about the NAT gateways.
- NatGateways []types.NatGateway
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeNatGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeNatGateways{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeNatGateways{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeNatGateways"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeNatGateways(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// NatGatewayAvailableWaiterOptions are waiter options for
-// NatGatewayAvailableWaiter
-type NatGatewayAvailableWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // NatGatewayAvailableWaiter will use default minimum delay of 15 seconds. Note
- // that MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, NatGatewayAvailableWaiter will use default max delay of 120
- // seconds. Note that MaxDelay must resolve to value greater than or equal to the
- // MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeNatGatewaysInput, *DescribeNatGatewaysOutput, error) (bool, error)
-}
-
-// NatGatewayAvailableWaiter defines the waiters for NatGatewayAvailable
-type NatGatewayAvailableWaiter struct {
- client DescribeNatGatewaysAPIClient
-
- options NatGatewayAvailableWaiterOptions
-}
-
-// NewNatGatewayAvailableWaiter constructs a NatGatewayAvailableWaiter.
-func NewNatGatewayAvailableWaiter(client DescribeNatGatewaysAPIClient, optFns ...func(*NatGatewayAvailableWaiterOptions)) *NatGatewayAvailableWaiter {
- options := NatGatewayAvailableWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = natGatewayAvailableStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &NatGatewayAvailableWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for NatGatewayAvailable waiter. The maxWaitDur
-// is the maximum wait duration the waiter will wait. The maxWaitDur is required
-// and must be greater than zero.
-func (w *NatGatewayAvailableWaiter) Wait(ctx context.Context, params *DescribeNatGatewaysInput, maxWaitDur time.Duration, optFns ...func(*NatGatewayAvailableWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for NatGatewayAvailable waiter and
-// returns the output of the successful operation. The maxWaitDur is the maximum
-// wait duration the waiter will wait. The maxWaitDur is required and must be
-// greater than zero.
-func (w *NatGatewayAvailableWaiter) WaitForOutput(ctx context.Context, params *DescribeNatGatewaysInput, maxWaitDur time.Duration, optFns ...func(*NatGatewayAvailableWaiterOptions)) (*DescribeNatGatewaysOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeNatGateways(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for NatGatewayAvailable waiter")
-}
-
-func natGatewayAvailableStateRetryable(ctx context.Context, input *DescribeNatGatewaysInput, output *DescribeNatGatewaysOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.NatGateways
- var v2 []types.NatGatewayState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "available"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err == nil {
- v1 := output.NatGateways
- var v2 []types.NatGatewayState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "failed"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err == nil {
- v1 := output.NatGateways
- var v2 []types.NatGatewayState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "deleting"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err == nil {
- v1 := output.NatGateways
- var v2 []types.NatGatewayState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "deleted"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err != nil {
- var apiErr smithy.APIError
- ok := errors.As(err, &apiErr)
- if !ok {
- return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err)
- }
-
- if "NatGatewayNotFound" == apiErr.ErrorCode() {
- return true, nil
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// NatGatewayDeletedWaiterOptions are waiter options for NatGatewayDeletedWaiter
-type NatGatewayDeletedWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // NatGatewayDeletedWaiter will use default minimum delay of 15 seconds. Note that
- // MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, NatGatewayDeletedWaiter will use default max delay of 120 seconds.
- // Note that MaxDelay must resolve to value greater than or equal to the MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeNatGatewaysInput, *DescribeNatGatewaysOutput, error) (bool, error)
-}
-
-// NatGatewayDeletedWaiter defines the waiters for NatGatewayDeleted
-type NatGatewayDeletedWaiter struct {
- client DescribeNatGatewaysAPIClient
-
- options NatGatewayDeletedWaiterOptions
-}
-
-// NewNatGatewayDeletedWaiter constructs a NatGatewayDeletedWaiter.
-func NewNatGatewayDeletedWaiter(client DescribeNatGatewaysAPIClient, optFns ...func(*NatGatewayDeletedWaiterOptions)) *NatGatewayDeletedWaiter {
- options := NatGatewayDeletedWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = natGatewayDeletedStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &NatGatewayDeletedWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for NatGatewayDeleted waiter. The maxWaitDur is
-// the maximum wait duration the waiter will wait. The maxWaitDur is required and
-// must be greater than zero.
-func (w *NatGatewayDeletedWaiter) Wait(ctx context.Context, params *DescribeNatGatewaysInput, maxWaitDur time.Duration, optFns ...func(*NatGatewayDeletedWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for NatGatewayDeleted waiter and
-// returns the output of the successful operation. The maxWaitDur is the maximum
-// wait duration the waiter will wait. The maxWaitDur is required and must be
-// greater than zero.
-func (w *NatGatewayDeletedWaiter) WaitForOutput(ctx context.Context, params *DescribeNatGatewaysInput, maxWaitDur time.Duration, optFns ...func(*NatGatewayDeletedWaiterOptions)) (*DescribeNatGatewaysOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeNatGateways(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for NatGatewayDeleted waiter")
-}
-
-func natGatewayDeletedStateRetryable(ctx context.Context, input *DescribeNatGatewaysInput, output *DescribeNatGatewaysOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.NatGateways
- var v2 []types.NatGatewayState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "deleted"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err != nil {
- var apiErr smithy.APIError
- ok := errors.As(err, &apiErr)
- if !ok {
- return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err)
- }
-
- if "NatGatewayNotFound" == apiErr.ErrorCode() {
- return false, nil
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// DescribeNatGatewaysPaginatorOptions is the paginator options for
-// DescribeNatGateways
-type DescribeNatGatewaysPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeNatGatewaysPaginator is a paginator for DescribeNatGateways
-type DescribeNatGatewaysPaginator struct {
- options DescribeNatGatewaysPaginatorOptions
- client DescribeNatGatewaysAPIClient
- params *DescribeNatGatewaysInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeNatGatewaysPaginator returns a new DescribeNatGatewaysPaginator
-func NewDescribeNatGatewaysPaginator(client DescribeNatGatewaysAPIClient, params *DescribeNatGatewaysInput, optFns ...func(*DescribeNatGatewaysPaginatorOptions)) *DescribeNatGatewaysPaginator {
- if params == nil {
- params = &DescribeNatGatewaysInput{}
- }
-
- options := DescribeNatGatewaysPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeNatGatewaysPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeNatGatewaysPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeNatGateways page.
-func (p *DescribeNatGatewaysPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeNatGatewaysOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeNatGateways(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeNatGatewaysAPIClient is a client that implements the
-// DescribeNatGateways operation.
-type DescribeNatGatewaysAPIClient interface {
- DescribeNatGateways(context.Context, *DescribeNatGatewaysInput, ...func(*Options)) (*DescribeNatGatewaysOutput, error)
-}
-
-var _ DescribeNatGatewaysAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeNatGateways(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeNatGateways",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkAcls.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkAcls.go
deleted file mode 100644
index 20d11aa0c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkAcls.go
+++ /dev/null
@@ -1,330 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes your network ACLs. The default is to describe all your network ACLs.
-// Alternatively, you can specify specific network ACL IDs or filter the results to
-// include only the network ACLs that match specific criteria.
-//
-// For more information, see [Network ACLs] in the Amazon VPC User Guide.
-//
-// [Network ACLs]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-network-acls.html
-func (c *Client) DescribeNetworkAcls(ctx context.Context, params *DescribeNetworkAclsInput, optFns ...func(*Options)) (*DescribeNetworkAclsOutput, error) {
- if params == nil {
- params = &DescribeNetworkAclsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeNetworkAcls", params, optFns, c.addOperationDescribeNetworkAclsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeNetworkAclsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeNetworkAclsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - association.association-id - The ID of an association ID for the ACL.
- //
- // - association.network-acl-id - The ID of the network ACL involved in the
- // association.
- //
- // - association.subnet-id - The ID of the subnet involved in the association.
- //
- // - default - Indicates whether the ACL is the default network ACL for the VPC.
- //
- // - entry.cidr - The IPv4 CIDR range specified in the entry.
- //
- // - entry.icmp.code - The ICMP code specified in the entry, if any.
- //
- // - entry.icmp.type - The ICMP type specified in the entry, if any.
- //
- // - entry.ipv6-cidr - The IPv6 CIDR range specified in the entry.
- //
- // - entry.port-range.from - The start of the port range specified in the entry.
- //
- // - entry.port-range.to - The end of the port range specified in the entry.
- //
- // - entry.protocol - The protocol specified in the entry ( tcp | udp | icmp or a
- // protocol number).
- //
- // - entry.rule-action - Allows or denies the matching traffic ( allow | deny ).
- //
- // - entry.egress - A Boolean that indicates the type of rule. Specify true for
- // egress rules, or false for ingress rules.
- //
- // - entry.rule-number - The number of an entry (in other words, rule) in the set
- // of ACL entries.
- //
- // - network-acl-id - The ID of the network ACL.
- //
- // - owner-id - The ID of the Amazon Web Services account that owns the network
- // ACL.
- //
- // - tag - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- //
- // - vpc-id - The ID of the VPC for the network ACL.
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The IDs of the network ACLs.
- NetworkAclIds []string
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeNetworkAclsOutput struct {
-
- // Information about the network ACLs.
- NetworkAcls []types.NetworkAcl
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeNetworkAclsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeNetworkAcls{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeNetworkAcls{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeNetworkAcls"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeNetworkAcls(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeNetworkAclsPaginatorOptions is the paginator options for
-// DescribeNetworkAcls
-type DescribeNetworkAclsPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeNetworkAclsPaginator is a paginator for DescribeNetworkAcls
-type DescribeNetworkAclsPaginator struct {
- options DescribeNetworkAclsPaginatorOptions
- client DescribeNetworkAclsAPIClient
- params *DescribeNetworkAclsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeNetworkAclsPaginator returns a new DescribeNetworkAclsPaginator
-func NewDescribeNetworkAclsPaginator(client DescribeNetworkAclsAPIClient, params *DescribeNetworkAclsInput, optFns ...func(*DescribeNetworkAclsPaginatorOptions)) *DescribeNetworkAclsPaginator {
- if params == nil {
- params = &DescribeNetworkAclsInput{}
- }
-
- options := DescribeNetworkAclsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeNetworkAclsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeNetworkAclsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeNetworkAcls page.
-func (p *DescribeNetworkAclsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeNetworkAclsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeNetworkAcls(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeNetworkAclsAPIClient is a client that implements the
-// DescribeNetworkAcls operation.
-type DescribeNetworkAclsAPIClient interface {
- DescribeNetworkAcls(context.Context, *DescribeNetworkAclsInput, ...func(*Options)) (*DescribeNetworkAclsOutput, error)
-}
-
-var _ DescribeNetworkAclsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeNetworkAcls(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeNetworkAcls",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsAccessScopeAnalyses.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsAccessScopeAnalyses.go
deleted file mode 100644
index 65390b5ce..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsAccessScopeAnalyses.go
+++ /dev/null
@@ -1,284 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Describes the specified Network Access Scope analyses.
-func (c *Client) DescribeNetworkInsightsAccessScopeAnalyses(ctx context.Context, params *DescribeNetworkInsightsAccessScopeAnalysesInput, optFns ...func(*Options)) (*DescribeNetworkInsightsAccessScopeAnalysesOutput, error) {
- if params == nil {
- params = &DescribeNetworkInsightsAccessScopeAnalysesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeNetworkInsightsAccessScopeAnalyses", params, optFns, c.addOperationDescribeNetworkInsightsAccessScopeAnalysesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeNetworkInsightsAccessScopeAnalysesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeNetworkInsightsAccessScopeAnalysesInput struct {
-
- // Filters the results based on the start time. The analysis must have started on
- // or after this time.
- AnalysisStartTimeBegin *time.Time
-
- // Filters the results based on the start time. The analysis must have started on
- // or before this time.
- AnalysisStartTimeEnd *time.Time
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // There are no supported filters.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The IDs of the Network Access Scope analyses.
- NetworkInsightsAccessScopeAnalysisIds []string
-
- // The ID of the Network Access Scope.
- NetworkInsightsAccessScopeId *string
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeNetworkInsightsAccessScopeAnalysesOutput struct {
-
- // The Network Access Scope analyses.
- NetworkInsightsAccessScopeAnalyses []types.NetworkInsightsAccessScopeAnalysis
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeNetworkInsightsAccessScopeAnalysesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeNetworkInsightsAccessScopeAnalyses{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeNetworkInsightsAccessScopeAnalyses{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeNetworkInsightsAccessScopeAnalyses"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeNetworkInsightsAccessScopeAnalyses(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeNetworkInsightsAccessScopeAnalysesPaginatorOptions is the paginator
-// options for DescribeNetworkInsightsAccessScopeAnalyses
-type DescribeNetworkInsightsAccessScopeAnalysesPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeNetworkInsightsAccessScopeAnalysesPaginator is a paginator for
-// DescribeNetworkInsightsAccessScopeAnalyses
-type DescribeNetworkInsightsAccessScopeAnalysesPaginator struct {
- options DescribeNetworkInsightsAccessScopeAnalysesPaginatorOptions
- client DescribeNetworkInsightsAccessScopeAnalysesAPIClient
- params *DescribeNetworkInsightsAccessScopeAnalysesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeNetworkInsightsAccessScopeAnalysesPaginator returns a new
-// DescribeNetworkInsightsAccessScopeAnalysesPaginator
-func NewDescribeNetworkInsightsAccessScopeAnalysesPaginator(client DescribeNetworkInsightsAccessScopeAnalysesAPIClient, params *DescribeNetworkInsightsAccessScopeAnalysesInput, optFns ...func(*DescribeNetworkInsightsAccessScopeAnalysesPaginatorOptions)) *DescribeNetworkInsightsAccessScopeAnalysesPaginator {
- if params == nil {
- params = &DescribeNetworkInsightsAccessScopeAnalysesInput{}
- }
-
- options := DescribeNetworkInsightsAccessScopeAnalysesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeNetworkInsightsAccessScopeAnalysesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeNetworkInsightsAccessScopeAnalysesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeNetworkInsightsAccessScopeAnalyses page.
-func (p *DescribeNetworkInsightsAccessScopeAnalysesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeNetworkInsightsAccessScopeAnalysesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeNetworkInsightsAccessScopeAnalyses(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeNetworkInsightsAccessScopeAnalysesAPIClient is a client that implements
-// the DescribeNetworkInsightsAccessScopeAnalyses operation.
-type DescribeNetworkInsightsAccessScopeAnalysesAPIClient interface {
- DescribeNetworkInsightsAccessScopeAnalyses(context.Context, *DescribeNetworkInsightsAccessScopeAnalysesInput, ...func(*Options)) (*DescribeNetworkInsightsAccessScopeAnalysesOutput, error)
-}
-
-var _ DescribeNetworkInsightsAccessScopeAnalysesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeNetworkInsightsAccessScopeAnalyses(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeNetworkInsightsAccessScopeAnalyses",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsAccessScopes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsAccessScopes.go
deleted file mode 100644
index f18f0f544..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsAccessScopes.go
+++ /dev/null
@@ -1,272 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified Network Access Scopes.
-func (c *Client) DescribeNetworkInsightsAccessScopes(ctx context.Context, params *DescribeNetworkInsightsAccessScopesInput, optFns ...func(*Options)) (*DescribeNetworkInsightsAccessScopesOutput, error) {
- if params == nil {
- params = &DescribeNetworkInsightsAccessScopesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeNetworkInsightsAccessScopes", params, optFns, c.addOperationDescribeNetworkInsightsAccessScopesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeNetworkInsightsAccessScopesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeNetworkInsightsAccessScopesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // There are no supported filters.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The IDs of the Network Access Scopes.
- NetworkInsightsAccessScopeIds []string
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeNetworkInsightsAccessScopesOutput struct {
-
- // The Network Access Scopes.
- NetworkInsightsAccessScopes []types.NetworkInsightsAccessScope
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeNetworkInsightsAccessScopesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeNetworkInsightsAccessScopes{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeNetworkInsightsAccessScopes{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeNetworkInsightsAccessScopes"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeNetworkInsightsAccessScopes(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeNetworkInsightsAccessScopesPaginatorOptions is the paginator options
-// for DescribeNetworkInsightsAccessScopes
-type DescribeNetworkInsightsAccessScopesPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeNetworkInsightsAccessScopesPaginator is a paginator for
-// DescribeNetworkInsightsAccessScopes
-type DescribeNetworkInsightsAccessScopesPaginator struct {
- options DescribeNetworkInsightsAccessScopesPaginatorOptions
- client DescribeNetworkInsightsAccessScopesAPIClient
- params *DescribeNetworkInsightsAccessScopesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeNetworkInsightsAccessScopesPaginator returns a new
-// DescribeNetworkInsightsAccessScopesPaginator
-func NewDescribeNetworkInsightsAccessScopesPaginator(client DescribeNetworkInsightsAccessScopesAPIClient, params *DescribeNetworkInsightsAccessScopesInput, optFns ...func(*DescribeNetworkInsightsAccessScopesPaginatorOptions)) *DescribeNetworkInsightsAccessScopesPaginator {
- if params == nil {
- params = &DescribeNetworkInsightsAccessScopesInput{}
- }
-
- options := DescribeNetworkInsightsAccessScopesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeNetworkInsightsAccessScopesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeNetworkInsightsAccessScopesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeNetworkInsightsAccessScopes page.
-func (p *DescribeNetworkInsightsAccessScopesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeNetworkInsightsAccessScopesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeNetworkInsightsAccessScopes(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeNetworkInsightsAccessScopesAPIClient is a client that implements the
-// DescribeNetworkInsightsAccessScopes operation.
-type DescribeNetworkInsightsAccessScopesAPIClient interface {
- DescribeNetworkInsightsAccessScopes(context.Context, *DescribeNetworkInsightsAccessScopesInput, ...func(*Options)) (*DescribeNetworkInsightsAccessScopesOutput, error)
-}
-
-var _ DescribeNetworkInsightsAccessScopesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeNetworkInsightsAccessScopes(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeNetworkInsightsAccessScopes",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsAnalyses.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsAnalyses.go
deleted file mode 100644
index a53cffe6c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsAnalyses.go
+++ /dev/null
@@ -1,288 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Describes one or more of your network insights analyses.
-func (c *Client) DescribeNetworkInsightsAnalyses(ctx context.Context, params *DescribeNetworkInsightsAnalysesInput, optFns ...func(*Options)) (*DescribeNetworkInsightsAnalysesOutput, error) {
- if params == nil {
- params = &DescribeNetworkInsightsAnalysesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeNetworkInsightsAnalyses", params, optFns, c.addOperationDescribeNetworkInsightsAnalysesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeNetworkInsightsAnalysesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeNetworkInsightsAnalysesInput struct {
-
- // The time when the network insights analyses ended.
- AnalysisEndTime *time.Time
-
- // The time when the network insights analyses started.
- AnalysisStartTime *time.Time
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters. The following are the possible values:
- //
- // - path-found - A Boolean value that indicates whether a feasible path is
- // found.
- //
- // - status - The status of the analysis (running | succeeded | failed).
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The ID of the network insights analyses. You must specify either analysis IDs
- // or a path ID.
- NetworkInsightsAnalysisIds []string
-
- // The ID of the path. You must specify either a path ID or analysis IDs.
- NetworkInsightsPathId *string
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeNetworkInsightsAnalysesOutput struct {
-
- // Information about the network insights analyses.
- NetworkInsightsAnalyses []types.NetworkInsightsAnalysis
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeNetworkInsightsAnalysesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeNetworkInsightsAnalyses{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeNetworkInsightsAnalyses{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeNetworkInsightsAnalyses"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeNetworkInsightsAnalyses(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeNetworkInsightsAnalysesPaginatorOptions is the paginator options for
-// DescribeNetworkInsightsAnalyses
-type DescribeNetworkInsightsAnalysesPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeNetworkInsightsAnalysesPaginator is a paginator for
-// DescribeNetworkInsightsAnalyses
-type DescribeNetworkInsightsAnalysesPaginator struct {
- options DescribeNetworkInsightsAnalysesPaginatorOptions
- client DescribeNetworkInsightsAnalysesAPIClient
- params *DescribeNetworkInsightsAnalysesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeNetworkInsightsAnalysesPaginator returns a new
-// DescribeNetworkInsightsAnalysesPaginator
-func NewDescribeNetworkInsightsAnalysesPaginator(client DescribeNetworkInsightsAnalysesAPIClient, params *DescribeNetworkInsightsAnalysesInput, optFns ...func(*DescribeNetworkInsightsAnalysesPaginatorOptions)) *DescribeNetworkInsightsAnalysesPaginator {
- if params == nil {
- params = &DescribeNetworkInsightsAnalysesInput{}
- }
-
- options := DescribeNetworkInsightsAnalysesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeNetworkInsightsAnalysesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeNetworkInsightsAnalysesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeNetworkInsightsAnalyses page.
-func (p *DescribeNetworkInsightsAnalysesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeNetworkInsightsAnalysesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeNetworkInsightsAnalyses(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeNetworkInsightsAnalysesAPIClient is a client that implements the
-// DescribeNetworkInsightsAnalyses operation.
-type DescribeNetworkInsightsAnalysesAPIClient interface {
- DescribeNetworkInsightsAnalyses(context.Context, *DescribeNetworkInsightsAnalysesInput, ...func(*Options)) (*DescribeNetworkInsightsAnalysesOutput, error)
-}
-
-var _ DescribeNetworkInsightsAnalysesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeNetworkInsightsAnalyses(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeNetworkInsightsAnalyses",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsPaths.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsPaths.go
deleted file mode 100644
index b0094826b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsPaths.go
+++ /dev/null
@@ -1,300 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more of your paths.
-func (c *Client) DescribeNetworkInsightsPaths(ctx context.Context, params *DescribeNetworkInsightsPathsInput, optFns ...func(*Options)) (*DescribeNetworkInsightsPathsOutput, error) {
- if params == nil {
- params = &DescribeNetworkInsightsPathsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeNetworkInsightsPaths", params, optFns, c.addOperationDescribeNetworkInsightsPathsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeNetworkInsightsPathsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeNetworkInsightsPathsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters. The following are the possible values:
- //
- // - destination - The ID of the resource.
- //
- // - filter-at-source.source-address - The source IPv4 address at the source.
- //
- // - filter-at-source.source-port-range - The source port range at the source.
- //
- // - filter-at-source.destination-address - The destination IPv4 address at the
- // source.
- //
- // - filter-at-source.destination-port-range - The destination port range at the
- // source.
- //
- // - filter-at-destination.source-address - The source IPv4 address at the
- // destination.
- //
- // - filter-at-destination.source-port-range - The source port range at the
- // destination.
- //
- // - filter-at-destination.destination-address - The destination IPv4 address at
- // the destination.
- //
- // - filter-at-destination.destination-port-range - The destination port range
- // at the destination.
- //
- // - protocol - The protocol.
- //
- // - source - The ID of the resource.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The IDs of the paths.
- NetworkInsightsPathIds []string
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeNetworkInsightsPathsOutput struct {
-
- // Information about the paths.
- NetworkInsightsPaths []types.NetworkInsightsPath
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeNetworkInsightsPathsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeNetworkInsightsPaths{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeNetworkInsightsPaths{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeNetworkInsightsPaths"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeNetworkInsightsPaths(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeNetworkInsightsPathsPaginatorOptions is the paginator options for
-// DescribeNetworkInsightsPaths
-type DescribeNetworkInsightsPathsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeNetworkInsightsPathsPaginator is a paginator for
-// DescribeNetworkInsightsPaths
-type DescribeNetworkInsightsPathsPaginator struct {
- options DescribeNetworkInsightsPathsPaginatorOptions
- client DescribeNetworkInsightsPathsAPIClient
- params *DescribeNetworkInsightsPathsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeNetworkInsightsPathsPaginator returns a new
-// DescribeNetworkInsightsPathsPaginator
-func NewDescribeNetworkInsightsPathsPaginator(client DescribeNetworkInsightsPathsAPIClient, params *DescribeNetworkInsightsPathsInput, optFns ...func(*DescribeNetworkInsightsPathsPaginatorOptions)) *DescribeNetworkInsightsPathsPaginator {
- if params == nil {
- params = &DescribeNetworkInsightsPathsInput{}
- }
-
- options := DescribeNetworkInsightsPathsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeNetworkInsightsPathsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeNetworkInsightsPathsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeNetworkInsightsPaths page.
-func (p *DescribeNetworkInsightsPathsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeNetworkInsightsPathsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeNetworkInsightsPaths(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeNetworkInsightsPathsAPIClient is a client that implements the
-// DescribeNetworkInsightsPaths operation.
-type DescribeNetworkInsightsPathsAPIClient interface {
- DescribeNetworkInsightsPaths(context.Context, *DescribeNetworkInsightsPathsInput, ...func(*Options)) (*DescribeNetworkInsightsPathsOutput, error)
-}
-
-var _ DescribeNetworkInsightsPathsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeNetworkInsightsPaths(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeNetworkInsightsPaths",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfaceAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfaceAttribute.go
deleted file mode 100644
index 2d4709a52..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfaceAttribute.go
+++ /dev/null
@@ -1,189 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes a network interface attribute. You can specify only one attribute at
-// a time.
-func (c *Client) DescribeNetworkInterfaceAttribute(ctx context.Context, params *DescribeNetworkInterfaceAttributeInput, optFns ...func(*Options)) (*DescribeNetworkInterfaceAttributeOutput, error) {
- if params == nil {
- params = &DescribeNetworkInterfaceAttributeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeNetworkInterfaceAttribute", params, optFns, c.addOperationDescribeNetworkInterfaceAttributeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeNetworkInterfaceAttributeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DescribeNetworkInterfaceAttribute.
-type DescribeNetworkInterfaceAttributeInput struct {
-
- // The ID of the network interface.
- //
- // This member is required.
- NetworkInterfaceId *string
-
- // The attribute of the network interface. This parameter is required.
- Attribute types.NetworkInterfaceAttribute
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of DescribeNetworkInterfaceAttribute.
-type DescribeNetworkInterfaceAttributeOutput struct {
-
- // Indicates whether to assign a public IPv4 address to a network interface. This
- // option can be enabled for any network interface but will only apply to the
- // primary network interface (eth0).
- AssociatePublicIpAddress *bool
-
- // The attachment (if any) of the network interface.
- Attachment *types.NetworkInterfaceAttachment
-
- // The description of the network interface.
- Description *types.AttributeValue
-
- // The security groups associated with the network interface.
- Groups []types.GroupIdentifier
-
- // The ID of the network interface.
- NetworkInterfaceId *string
-
- // Indicates whether source/destination checking is enabled.
- SourceDestCheck *types.AttributeBooleanValue
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeNetworkInterfaceAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeNetworkInterfaceAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeNetworkInterfaceAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeNetworkInterfaceAttribute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDescribeNetworkInterfaceAttributeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeNetworkInterfaceAttribute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeNetworkInterfaceAttribute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeNetworkInterfaceAttribute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfacePermissions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfacePermissions.go
deleted file mode 100644
index c9d088e27..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfacePermissions.go
+++ /dev/null
@@ -1,291 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the permissions for your network interfaces.
-func (c *Client) DescribeNetworkInterfacePermissions(ctx context.Context, params *DescribeNetworkInterfacePermissionsInput, optFns ...func(*Options)) (*DescribeNetworkInterfacePermissionsOutput, error) {
- if params == nil {
- params = &DescribeNetworkInterfacePermissionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeNetworkInterfacePermissions", params, optFns, c.addOperationDescribeNetworkInterfacePermissionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeNetworkInterfacePermissionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DescribeNetworkInterfacePermissions.
-type DescribeNetworkInterfacePermissionsInput struct {
-
- // One or more filters.
- //
- // - network-interface-permission.network-interface-permission-id - The ID of the
- // permission.
- //
- // - network-interface-permission.network-interface-id - The ID of the network
- // interface.
- //
- // - network-interface-permission.aws-account-id - The Amazon Web Services
- // account ID.
- //
- // - network-interface-permission.aws-service - The Amazon Web Services service.
- //
- // - network-interface-permission.permission - The type of permission (
- // INSTANCE-ATTACH | EIP-ASSOCIATE ).
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. If this
- // parameter is not specified, up to 50 results are returned by default. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The network interface permission IDs.
- NetworkInterfacePermissionIds []string
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-// Contains the output for DescribeNetworkInterfacePermissions.
-type DescribeNetworkInterfacePermissionsOutput struct {
-
- // The network interface permissions.
- NetworkInterfacePermissions []types.NetworkInterfacePermission
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeNetworkInterfacePermissionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeNetworkInterfacePermissions{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeNetworkInterfacePermissions{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeNetworkInterfacePermissions"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeNetworkInterfacePermissions(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeNetworkInterfacePermissionsPaginatorOptions is the paginator options
-// for DescribeNetworkInterfacePermissions
-type DescribeNetworkInterfacePermissionsPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. If this
- // parameter is not specified, up to 50 results are returned by default. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeNetworkInterfacePermissionsPaginator is a paginator for
-// DescribeNetworkInterfacePermissions
-type DescribeNetworkInterfacePermissionsPaginator struct {
- options DescribeNetworkInterfacePermissionsPaginatorOptions
- client DescribeNetworkInterfacePermissionsAPIClient
- params *DescribeNetworkInterfacePermissionsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeNetworkInterfacePermissionsPaginator returns a new
-// DescribeNetworkInterfacePermissionsPaginator
-func NewDescribeNetworkInterfacePermissionsPaginator(client DescribeNetworkInterfacePermissionsAPIClient, params *DescribeNetworkInterfacePermissionsInput, optFns ...func(*DescribeNetworkInterfacePermissionsPaginatorOptions)) *DescribeNetworkInterfacePermissionsPaginator {
- if params == nil {
- params = &DescribeNetworkInterfacePermissionsInput{}
- }
-
- options := DescribeNetworkInterfacePermissionsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeNetworkInterfacePermissionsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeNetworkInterfacePermissionsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeNetworkInterfacePermissions page.
-func (p *DescribeNetworkInterfacePermissionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeNetworkInterfacePermissionsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeNetworkInterfacePermissions(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeNetworkInterfacePermissionsAPIClient is a client that implements the
-// DescribeNetworkInterfacePermissions operation.
-type DescribeNetworkInterfacePermissionsAPIClient interface {
- DescribeNetworkInterfacePermissions(context.Context, *DescribeNetworkInterfacePermissionsInput, ...func(*Options)) (*DescribeNetworkInterfacePermissionsOutput, error)
-}
-
-var _ DescribeNetworkInterfacePermissionsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeNetworkInterfacePermissions(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeNetworkInterfacePermissions",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfaces.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfaces.go
deleted file mode 100644
index 4ef897907..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfaces.go
+++ /dev/null
@@ -1,604 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "errors"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- smithy "github.com/aws/smithy-go"
- "github.com/aws/smithy-go/middleware"
- smithytime "github.com/aws/smithy-go/time"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- smithywaiter "github.com/aws/smithy-go/waiter"
- "time"
-)
-
-// Describes the specified network interfaces or all your network interfaces.
-//
-// If you have a large number of network interfaces, the operation fails unless
-// you use pagination or one of the following filters: group-id , mac-address ,
-// private-dns-name , private-ip-address , subnet-id , or vpc-id .
-//
-// We strongly recommend using only paginated requests. Unpaginated requests are
-// susceptible to throttling and timeouts.
-func (c *Client) DescribeNetworkInterfaces(ctx context.Context, params *DescribeNetworkInterfacesInput, optFns ...func(*Options)) (*DescribeNetworkInterfacesOutput, error) {
- if params == nil {
- params = &DescribeNetworkInterfacesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeNetworkInterfaces", params, optFns, c.addOperationDescribeNetworkInterfacesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeNetworkInterfacesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DescribeNetworkInterfaces.
-type DescribeNetworkInterfacesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - association.allocation-id - The allocation ID returned when you allocated
- // the Elastic IP address (IPv4) for your network interface.
- //
- // - association.association-id - The association ID returned when the network
- // interface was associated with an IPv4 address.
- //
- // - addresses.association.owner-id - The owner ID of the addresses associated
- // with the network interface.
- //
- // - addresses.association.public-ip - The association ID returned when the
- // network interface was associated with the Elastic IP address (IPv4).
- //
- // - addresses.primary - Whether the private IPv4 address is the primary IP
- // address associated with the network interface.
- //
- // - addresses.private-ip-address - The private IPv4 addresses associated with
- // the network interface.
- //
- // - association.ip-owner-id - The owner of the Elastic IP address (IPv4)
- // associated with the network interface.
- //
- // - association.public-ip - The address of the Elastic IP address (IPv4) bound
- // to the network interface.
- //
- // - association.public-dns-name - The public DNS name for the network interface
- // (IPv4).
- //
- // - attachment.attach-time - The time that the network interface was attached to
- // an instance.
- //
- // - attachment.attachment-id - The ID of the interface attachment.
- //
- // - attachment.delete-on-termination - Indicates whether the attachment is
- // deleted when an instance is terminated.
- //
- // - attachment.device-index - The device index to which the network interface is
- // attached.
- //
- // - attachment.instance-id - The ID of the instance to which the network
- // interface is attached.
- //
- // - attachment.instance-owner-id - The owner ID of the instance to which the
- // network interface is attached.
- //
- // - attachment.status - The status of the attachment ( attaching | attached |
- // detaching | detached ).
- //
- // - availability-zone - The Availability Zone of the network interface.
- //
- // - description - The description of the network interface.
- //
- // - group-id - The ID of a security group associated with the network interface.
- //
- // - ipv6-addresses.ipv6-address - An IPv6 address associated with the network
- // interface.
- //
- // - interface-type - The type of network interface ( api_gateway_managed |
- // aws_codestar_connections_managed | branch | ec2_instance_connect_endpoint |
- // efa | efa-only | efs | evs | gateway_load_balancer |
- // gateway_load_balancer_endpoint | global_accelerator_managed | interface |
- // iot_rules_managed | lambda | load_balancer | nat_gateway |
- // network_load_balancer | quicksight | transit_gateway | trunk | vpc_endpoint ).
- //
- // - mac-address - The MAC address of the network interface.
- //
- // - network-interface-id - The ID of the network interface.
- //
- // - operator.managed - A Boolean that indicates whether this is a managed
- // network interface.
- //
- // - operator.principal - The principal that manages the network interface. Only
- // valid for managed network interfaces, where managed is true .
- //
- // - owner-id - The Amazon Web Services account ID of the network interface owner.
- //
- // - private-dns-name - The private DNS name of the network interface (IPv4).
- //
- // - private-ip-address - The private IPv4 address or addresses of the network
- // interface.
- //
- // - requester-id - The alias or Amazon Web Services account ID of the principal
- // or service that created the network interface.
- //
- // - requester-managed - Indicates whether the network interface is being managed
- // by an Amazon Web Services service (for example, Amazon Web Services Management
- // Console, Auto Scaling, and so on).
- //
- // - source-dest-check - Indicates whether the network interface performs
- // source/destination checking. A value of true means checking is enabled, and
- // false means checking is disabled. The value must be false for the network
- // interface to perform network address translation (NAT) in your VPC.
- //
- // - status - The status of the network interface. If the network interface is
- // not attached to an instance, the status is available ; if a network interface
- // is attached to an instance the status is in-use .
- //
- // - subnet-id - The ID of the subnet for the network interface.
- //
- // - tag : - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- //
- // - vpc-id - The ID of the VPC for the network interface.
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. You cannot
- // specify this parameter and the network interface IDs parameter in the same
- // request. For more information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The network interface IDs.
- //
- // Default: Describes all your network interfaces.
- NetworkInterfaceIds []string
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeNetworkInterfacesOutput struct {
-
- // Information about the network interfaces.
- NetworkInterfaces []types.NetworkInterface
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeNetworkInterfacesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeNetworkInterfaces{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeNetworkInterfaces{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeNetworkInterfaces"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeNetworkInterfaces(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// NetworkInterfaceAvailableWaiterOptions are waiter options for
-// NetworkInterfaceAvailableWaiter
-type NetworkInterfaceAvailableWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // NetworkInterfaceAvailableWaiter will use default minimum delay of 20 seconds.
- // Note that MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, NetworkInterfaceAvailableWaiter will use default max delay of 120
- // seconds. Note that MaxDelay must resolve to value greater than or equal to the
- // MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeNetworkInterfacesInput, *DescribeNetworkInterfacesOutput, error) (bool, error)
-}
-
-// NetworkInterfaceAvailableWaiter defines the waiters for
-// NetworkInterfaceAvailable
-type NetworkInterfaceAvailableWaiter struct {
- client DescribeNetworkInterfacesAPIClient
-
- options NetworkInterfaceAvailableWaiterOptions
-}
-
-// NewNetworkInterfaceAvailableWaiter constructs a NetworkInterfaceAvailableWaiter.
-func NewNetworkInterfaceAvailableWaiter(client DescribeNetworkInterfacesAPIClient, optFns ...func(*NetworkInterfaceAvailableWaiterOptions)) *NetworkInterfaceAvailableWaiter {
- options := NetworkInterfaceAvailableWaiterOptions{}
- options.MinDelay = 20 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = networkInterfaceAvailableStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &NetworkInterfaceAvailableWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for NetworkInterfaceAvailable waiter. The
-// maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is
-// required and must be greater than zero.
-func (w *NetworkInterfaceAvailableWaiter) Wait(ctx context.Context, params *DescribeNetworkInterfacesInput, maxWaitDur time.Duration, optFns ...func(*NetworkInterfaceAvailableWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for NetworkInterfaceAvailable waiter
-// and returns the output of the successful operation. The maxWaitDur is the
-// maximum wait duration the waiter will wait. The maxWaitDur is required and must
-// be greater than zero.
-func (w *NetworkInterfaceAvailableWaiter) WaitForOutput(ctx context.Context, params *DescribeNetworkInterfacesInput, maxWaitDur time.Duration, optFns ...func(*NetworkInterfaceAvailableWaiterOptions)) (*DescribeNetworkInterfacesOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeNetworkInterfaces(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for NetworkInterfaceAvailable waiter")
-}
-
-func networkInterfaceAvailableStateRetryable(ctx context.Context, input *DescribeNetworkInterfacesInput, output *DescribeNetworkInterfacesOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.NetworkInterfaces
- var v2 []types.NetworkInterfaceStatus
- for _, v := range v1 {
- v3 := v.Status
- v2 = append(v2, v3)
- }
- expectedValue := "available"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err != nil {
- var apiErr smithy.APIError
- ok := errors.As(err, &apiErr)
- if !ok {
- return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err)
- }
-
- if "InvalidNetworkInterfaceID.NotFound" == apiErr.ErrorCode() {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// DescribeNetworkInterfacesPaginatorOptions is the paginator options for
-// DescribeNetworkInterfaces
-type DescribeNetworkInterfacesPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. You cannot
- // specify this parameter and the network interface IDs parameter in the same
- // request. For more information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeNetworkInterfacesPaginator is a paginator for DescribeNetworkInterfaces
-type DescribeNetworkInterfacesPaginator struct {
- options DescribeNetworkInterfacesPaginatorOptions
- client DescribeNetworkInterfacesAPIClient
- params *DescribeNetworkInterfacesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeNetworkInterfacesPaginator returns a new
-// DescribeNetworkInterfacesPaginator
-func NewDescribeNetworkInterfacesPaginator(client DescribeNetworkInterfacesAPIClient, params *DescribeNetworkInterfacesInput, optFns ...func(*DescribeNetworkInterfacesPaginatorOptions)) *DescribeNetworkInterfacesPaginator {
- if params == nil {
- params = &DescribeNetworkInterfacesInput{}
- }
-
- options := DescribeNetworkInterfacesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeNetworkInterfacesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeNetworkInterfacesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeNetworkInterfaces page.
-func (p *DescribeNetworkInterfacesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeNetworkInterfacesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeNetworkInterfaces(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeNetworkInterfacesAPIClient is a client that implements the
-// DescribeNetworkInterfaces operation.
-type DescribeNetworkInterfacesAPIClient interface {
- DescribeNetworkInterfaces(context.Context, *DescribeNetworkInterfacesInput, ...func(*Options)) (*DescribeNetworkInterfacesOutput, error)
-}
-
-var _ DescribeNetworkInterfacesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeNetworkInterfaces(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeNetworkInterfaces",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeOutpostLags.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeOutpostLags.go
deleted file mode 100644
index cbcf158e1..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeOutpostLags.go
+++ /dev/null
@@ -1,204 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the Outposts link aggregation groups (LAGs).
-//
-// LAGs are only available for second-generation Outposts racks at this time.
-func (c *Client) DescribeOutpostLags(ctx context.Context, params *DescribeOutpostLagsInput, optFns ...func(*Options)) (*DescribeOutpostLagsOutput, error) {
- if params == nil {
- params = &DescribeOutpostLagsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeOutpostLags", params, optFns, c.addOperationDescribeOutpostLagsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeOutpostLagsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeOutpostLagsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters to use for narrowing down the request. The following filters are
- // supported:
- //
- // - service-link-virtual-interface-id - The ID of the service link virtual
- // interface.
- //
- // - service-link-virtual-interface-arn - The ARN of the service link virtual
- // interface.
- //
- // - outpost-id - The Outpost ID.
- //
- // - outpost-arn - The Outpost ARN.
- //
- // - owner-id - The ID of the Amazon Web Services account that owns the service
- // link virtual interface.
- //
- // - vlan - The ID of the address pool.
- //
- // - local-address - The local address.
- //
- // - peer-address - The peer address.
- //
- // - peer-bgp-asn - The peer BGP ASN.
- //
- // - outpost-lag-id - The Outpost LAG ID.
- //
- // - configuration-state - The configuration state of the service link virtual
- // interface.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The IDs of the Outpost LAGs.
- OutpostLagIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeOutpostLagsOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // The Outpost LAGs.
- OutpostLags []types.OutpostLag
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeOutpostLagsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeOutpostLags{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeOutpostLags{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeOutpostLags"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeOutpostLags(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeOutpostLags(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeOutpostLags",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePlacementGroups.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePlacementGroups.go
deleted file mode 100644
index 36c492b1a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePlacementGroups.go
+++ /dev/null
@@ -1,203 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified placement groups or all of your placement groups.
-//
-// To describe a specific placement group that is shared with your account, you
-// must specify the ID of the placement group using the GroupId parameter.
-// Specifying the name of a shared placement group using the GroupNames parameter
-// will result in an error.
-//
-// For more information, see [Placement groups] in the Amazon EC2 User Guide.
-//
-// [Placement groups]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html
-func (c *Client) DescribePlacementGroups(ctx context.Context, params *DescribePlacementGroupsInput, optFns ...func(*Options)) (*DescribePlacementGroupsOutput, error) {
- if params == nil {
- params = &DescribePlacementGroupsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribePlacementGroups", params, optFns, c.addOperationDescribePlacementGroupsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribePlacementGroupsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribePlacementGroupsInput struct {
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - group-name - The name of the placement group.
- //
- // - group-arn - The Amazon Resource Name (ARN) of the placement group.
- //
- // - spread-level - The spread level for the placement group ( host | rack ).
- //
- // - state - The state of the placement group ( pending | available | deleting |
- // deleted ).
- //
- // - strategy - The strategy of the placement group ( cluster | spread |
- // partition ).
- //
- // - tag: - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources that have a tag with a specific key, regardless of the tag value.
- Filters []types.Filter
-
- // The IDs of the placement groups.
- GroupIds []string
-
- // The names of the placement groups.
- //
- // Constraints:
- //
- // - You can specify a name only if the placement group is owned by your account.
- //
- // - If a placement group is shared with your account, specifying the name
- // results in an error. You must use the GroupId parameter instead.
- GroupNames []string
-
- noSmithyDocumentSerde
-}
-
-type DescribePlacementGroupsOutput struct {
-
- // Information about the placement groups.
- PlacementGroups []types.PlacementGroup
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribePlacementGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribePlacementGroups{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribePlacementGroups{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribePlacementGroups"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribePlacementGroups(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribePlacementGroups(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribePlacementGroups",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePrefixLists.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePrefixLists.go
deleted file mode 100644
index 0deb7e144..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePrefixLists.go
+++ /dev/null
@@ -1,278 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes available Amazon Web Services services in a prefix list format, which
-// includes the prefix list name and prefix list ID of the service and the IP
-// address range for the service.
-//
-// We recommend that you use DescribeManagedPrefixLists instead.
-func (c *Client) DescribePrefixLists(ctx context.Context, params *DescribePrefixListsInput, optFns ...func(*Options)) (*DescribePrefixListsOutput, error) {
- if params == nil {
- params = &DescribePrefixListsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribePrefixLists", params, optFns, c.addOperationDescribePrefixListsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribePrefixListsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribePrefixListsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - prefix-list-id : The ID of a prefix list.
- //
- // - prefix-list-name : The name of a prefix list.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // One or more prefix list IDs.
- PrefixListIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribePrefixListsOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // All available prefix lists.
- PrefixLists []types.PrefixList
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribePrefixListsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribePrefixLists{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribePrefixLists{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribePrefixLists"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribePrefixLists(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribePrefixListsPaginatorOptions is the paginator options for
-// DescribePrefixLists
-type DescribePrefixListsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribePrefixListsPaginator is a paginator for DescribePrefixLists
-type DescribePrefixListsPaginator struct {
- options DescribePrefixListsPaginatorOptions
- client DescribePrefixListsAPIClient
- params *DescribePrefixListsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribePrefixListsPaginator returns a new DescribePrefixListsPaginator
-func NewDescribePrefixListsPaginator(client DescribePrefixListsAPIClient, params *DescribePrefixListsInput, optFns ...func(*DescribePrefixListsPaginatorOptions)) *DescribePrefixListsPaginator {
- if params == nil {
- params = &DescribePrefixListsInput{}
- }
-
- options := DescribePrefixListsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribePrefixListsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribePrefixListsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribePrefixLists page.
-func (p *DescribePrefixListsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribePrefixListsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribePrefixLists(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribePrefixListsAPIClient is a client that implements the
-// DescribePrefixLists operation.
-type DescribePrefixListsAPIClient interface {
- DescribePrefixLists(context.Context, *DescribePrefixListsInput, ...func(*Options)) (*DescribePrefixListsOutput, error)
-}
-
-var _ DescribePrefixListsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribePrefixLists(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribePrefixLists",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePrincipalIdFormat.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePrincipalIdFormat.go
deleted file mode 100644
index e4a5c9618..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePrincipalIdFormat.go
+++ /dev/null
@@ -1,290 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the ID format settings for the root user and all IAM roles and IAM
-// users that have explicitly specified a longer ID (17-character ID) preference.
-//
-// By default, all IAM roles and IAM users default to the same ID settings as the
-// root user, unless they explicitly override the settings. This request is useful
-// for identifying those IAM users and IAM roles that have overridden the default
-// ID settings.
-//
-// The following resource types support longer IDs: bundle | conversion-task |
-// customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association
-// | export-task | flow-log | image | import-task | instance | internet-gateway |
-// network-acl | network-acl-association | network-interface |
-// network-interface-attachment | prefix-list | reservation | route-table |
-// route-table-association | security-group | snapshot | subnet |
-// subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association |
-// vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway .
-func (c *Client) DescribePrincipalIdFormat(ctx context.Context, params *DescribePrincipalIdFormatInput, optFns ...func(*Options)) (*DescribePrincipalIdFormatOutput, error) {
- if params == nil {
- params = &DescribePrincipalIdFormatInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribePrincipalIdFormat", params, optFns, c.addOperationDescribePrincipalIdFormatMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribePrincipalIdFormatOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribePrincipalIdFormatInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The maximum number of results to return in a single call. To retrieve the
- // remaining results, make another call with the returned NextToken value.
- MaxResults *int32
-
- // The token to request the next page of results.
- NextToken *string
-
- // The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
- // | elastic-ip-allocation | elastic-ip-association | export-task | flow-log |
- // image | import-task | instance | internet-gateway | network-acl |
- // network-acl-association | network-interface | network-interface-attachment |
- // prefix-list | reservation | route-table | route-table-association |
- // security-group | snapshot | subnet | subnet-cidr-block-association | volume |
- // vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection |
- // vpn-connection | vpn-gateway
- Resources []string
-
- noSmithyDocumentSerde
-}
-
-type DescribePrincipalIdFormatOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the ID format settings for the ARN.
- Principals []types.PrincipalIdFormat
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribePrincipalIdFormatMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribePrincipalIdFormat{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribePrincipalIdFormat{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribePrincipalIdFormat"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribePrincipalIdFormat(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribePrincipalIdFormatPaginatorOptions is the paginator options for
-// DescribePrincipalIdFormat
-type DescribePrincipalIdFormatPaginatorOptions struct {
- // The maximum number of results to return in a single call. To retrieve the
- // remaining results, make another call with the returned NextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribePrincipalIdFormatPaginator is a paginator for DescribePrincipalIdFormat
-type DescribePrincipalIdFormatPaginator struct {
- options DescribePrincipalIdFormatPaginatorOptions
- client DescribePrincipalIdFormatAPIClient
- params *DescribePrincipalIdFormatInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribePrincipalIdFormatPaginator returns a new
-// DescribePrincipalIdFormatPaginator
-func NewDescribePrincipalIdFormatPaginator(client DescribePrincipalIdFormatAPIClient, params *DescribePrincipalIdFormatInput, optFns ...func(*DescribePrincipalIdFormatPaginatorOptions)) *DescribePrincipalIdFormatPaginator {
- if params == nil {
- params = &DescribePrincipalIdFormatInput{}
- }
-
- options := DescribePrincipalIdFormatPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribePrincipalIdFormatPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribePrincipalIdFormatPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribePrincipalIdFormat page.
-func (p *DescribePrincipalIdFormatPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribePrincipalIdFormatOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribePrincipalIdFormat(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribePrincipalIdFormatAPIClient is a client that implements the
-// DescribePrincipalIdFormat operation.
-type DescribePrincipalIdFormatAPIClient interface {
- DescribePrincipalIdFormat(context.Context, *DescribePrincipalIdFormatInput, ...func(*Options)) (*DescribePrincipalIdFormatOutput, error)
-}
-
-var _ DescribePrincipalIdFormatAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribePrincipalIdFormat(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribePrincipalIdFormat",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePublicIpv4Pools.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePublicIpv4Pools.go
deleted file mode 100644
index c230b91d2..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePublicIpv4Pools.go
+++ /dev/null
@@ -1,273 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified IPv4 address pools.
-func (c *Client) DescribePublicIpv4Pools(ctx context.Context, params *DescribePublicIpv4PoolsInput, optFns ...func(*Options)) (*DescribePublicIpv4PoolsOutput, error) {
- if params == nil {
- params = &DescribePublicIpv4PoolsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribePublicIpv4Pools", params, optFns, c.addOperationDescribePublicIpv4PoolsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribePublicIpv4PoolsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribePublicIpv4PoolsInput struct {
-
- // One or more filters.
- //
- // - tag : - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The IDs of the address pools.
- PoolIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribePublicIpv4PoolsOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the address pools.
- PublicIpv4Pools []types.PublicIpv4Pool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribePublicIpv4PoolsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribePublicIpv4Pools{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribePublicIpv4Pools{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribePublicIpv4Pools"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribePublicIpv4Pools(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribePublicIpv4PoolsPaginatorOptions is the paginator options for
-// DescribePublicIpv4Pools
-type DescribePublicIpv4PoolsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribePublicIpv4PoolsPaginator is a paginator for DescribePublicIpv4Pools
-type DescribePublicIpv4PoolsPaginator struct {
- options DescribePublicIpv4PoolsPaginatorOptions
- client DescribePublicIpv4PoolsAPIClient
- params *DescribePublicIpv4PoolsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribePublicIpv4PoolsPaginator returns a new
-// DescribePublicIpv4PoolsPaginator
-func NewDescribePublicIpv4PoolsPaginator(client DescribePublicIpv4PoolsAPIClient, params *DescribePublicIpv4PoolsInput, optFns ...func(*DescribePublicIpv4PoolsPaginatorOptions)) *DescribePublicIpv4PoolsPaginator {
- if params == nil {
- params = &DescribePublicIpv4PoolsInput{}
- }
-
- options := DescribePublicIpv4PoolsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribePublicIpv4PoolsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribePublicIpv4PoolsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribePublicIpv4Pools page.
-func (p *DescribePublicIpv4PoolsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribePublicIpv4PoolsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribePublicIpv4Pools(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribePublicIpv4PoolsAPIClient is a client that implements the
-// DescribePublicIpv4Pools operation.
-type DescribePublicIpv4PoolsAPIClient interface {
- DescribePublicIpv4Pools(context.Context, *DescribePublicIpv4PoolsInput, ...func(*Options)) (*DescribePublicIpv4PoolsOutput, error)
-}
-
-var _ DescribePublicIpv4PoolsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribePublicIpv4Pools(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribePublicIpv4Pools",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRegions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRegions.go
deleted file mode 100644
index 3176e0cf3..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRegions.go
+++ /dev/null
@@ -1,189 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the Regions that are enabled for your account, or all Regions.
-//
-// For a list of the Regions supported by Amazon EC2, see [Amazon EC2 service endpoints].
-//
-// For information about enabling and disabling Regions for your account, see [Specify which Amazon Web Services Regions your account can use] in
-// the Amazon Web Services Account Management Reference Guide.
-//
-// The order of the elements in the response, including those within nested
-// structures, might vary. Applications should not assume the elements appear in a
-// particular order.
-//
-// [Specify which Amazon Web Services Regions your account can use]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-regions.html
-// [Amazon EC2 service endpoints]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-endpoints.html
-func (c *Client) DescribeRegions(ctx context.Context, params *DescribeRegionsInput, optFns ...func(*Options)) (*DescribeRegionsOutput, error) {
- if params == nil {
- params = &DescribeRegionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeRegions", params, optFns, c.addOperationDescribeRegionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeRegionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeRegionsInput struct {
-
- // Indicates whether to display all Regions, including Regions that are disabled
- // for your account.
- AllRegions *bool
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - endpoint - The endpoint of the Region (for example,
- // ec2.us-east-1.amazonaws.com ).
- //
- // - opt-in-status - The opt-in status of the Region ( opt-in-not-required |
- // opted-in | not-opted-in ).
- //
- // - region-name - The name of the Region (for example, us-east-1 ).
- Filters []types.Filter
-
- // The names of the Regions. You can specify any Regions, whether they are enabled
- // and disabled for your account.
- RegionNames []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeRegionsOutput struct {
-
- // Information about the Regions.
- Regions []types.Region
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeRegionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeRegions{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeRegions{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeRegions"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeRegions(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeRegions(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeRegions",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReplaceRootVolumeTasks.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReplaceRootVolumeTasks.go
deleted file mode 100644
index 0209a20ab..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReplaceRootVolumeTasks.go
+++ /dev/null
@@ -1,285 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes a root volume replacement task. For more information, see [Replace a root volume] in the
-// Amazon EC2 User Guide.
-//
-// [Replace a root volume]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/replace-root.html
-func (c *Client) DescribeReplaceRootVolumeTasks(ctx context.Context, params *DescribeReplaceRootVolumeTasksInput, optFns ...func(*Options)) (*DescribeReplaceRootVolumeTasksOutput, error) {
- if params == nil {
- params = &DescribeReplaceRootVolumeTasksInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeReplaceRootVolumeTasks", params, optFns, c.addOperationDescribeReplaceRootVolumeTasksMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeReplaceRootVolumeTasksOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeReplaceRootVolumeTasksInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Filter to use:
- //
- // - instance-id - The ID of the instance for which the root volume replacement
- // task was created.
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- // The ID of the root volume replacement task to view.
- ReplaceRootVolumeTaskIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeReplaceRootVolumeTasksOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Information about the root volume replacement task.
- ReplaceRootVolumeTasks []types.ReplaceRootVolumeTask
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeReplaceRootVolumeTasksMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeReplaceRootVolumeTasks{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeReplaceRootVolumeTasks{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeReplaceRootVolumeTasks"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeReplaceRootVolumeTasks(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeReplaceRootVolumeTasksPaginatorOptions is the paginator options for
-// DescribeReplaceRootVolumeTasks
-type DescribeReplaceRootVolumeTasksPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeReplaceRootVolumeTasksPaginator is a paginator for
-// DescribeReplaceRootVolumeTasks
-type DescribeReplaceRootVolumeTasksPaginator struct {
- options DescribeReplaceRootVolumeTasksPaginatorOptions
- client DescribeReplaceRootVolumeTasksAPIClient
- params *DescribeReplaceRootVolumeTasksInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeReplaceRootVolumeTasksPaginator returns a new
-// DescribeReplaceRootVolumeTasksPaginator
-func NewDescribeReplaceRootVolumeTasksPaginator(client DescribeReplaceRootVolumeTasksAPIClient, params *DescribeReplaceRootVolumeTasksInput, optFns ...func(*DescribeReplaceRootVolumeTasksPaginatorOptions)) *DescribeReplaceRootVolumeTasksPaginator {
- if params == nil {
- params = &DescribeReplaceRootVolumeTasksInput{}
- }
-
- options := DescribeReplaceRootVolumeTasksPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeReplaceRootVolumeTasksPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeReplaceRootVolumeTasksPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeReplaceRootVolumeTasks page.
-func (p *DescribeReplaceRootVolumeTasksPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeReplaceRootVolumeTasksOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeReplaceRootVolumeTasks(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeReplaceRootVolumeTasksAPIClient is a client that implements the
-// DescribeReplaceRootVolumeTasks operation.
-type DescribeReplaceRootVolumeTasksAPIClient interface {
- DescribeReplaceRootVolumeTasks(context.Context, *DescribeReplaceRootVolumeTasksInput, ...func(*Options)) (*DescribeReplaceRootVolumeTasksOutput, error)
-}
-
-var _ DescribeReplaceRootVolumeTasksAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeReplaceRootVolumeTasks(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeReplaceRootVolumeTasks",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstances.go
deleted file mode 100644
index 7e120c1d6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstances.go
+++ /dev/null
@@ -1,230 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more of the Reserved Instances that you purchased.
-//
-// For more information about Reserved Instances, see [Reserved Instances] in the Amazon EC2 User
-// Guide.
-//
-// The order of the elements in the response, including those within nested
-// structures, might vary. Applications should not assume the elements appear in a
-// particular order.
-//
-// [Reserved Instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html
-func (c *Client) DescribeReservedInstances(ctx context.Context, params *DescribeReservedInstancesInput, optFns ...func(*Options)) (*DescribeReservedInstancesOutput, error) {
- if params == nil {
- params = &DescribeReservedInstancesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeReservedInstances", params, optFns, c.addOperationDescribeReservedInstancesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeReservedInstancesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DescribeReservedInstances.
-type DescribeReservedInstancesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - availability-zone - The Availability Zone where the Reserved Instance can be
- // used.
- //
- // - availability-zone-id - The ID of the Availability Zone where the Reserved
- // Instance can be used.
- //
- // - duration - The duration of the Reserved Instance (one year or three years),
- // in seconds ( 31536000 | 94608000 ).
- //
- // - end - The time when the Reserved Instance expires (for example,
- // 2015-08-07T11:54:42.000Z).
- //
- // - fixed-price - The purchase price of the Reserved Instance (for example,
- // 9800.0).
- //
- // - instance-type - The instance type that is covered by the reservation.
- //
- // - scope - The scope of the Reserved Instance ( Region or Availability Zone ).
- //
- // - product-description - The Reserved Instance product platform description (
- // Linux/UNIX | Linux with SQL Server Standard | Linux with SQL Server Web |
- // Linux with SQL Server Enterprise | SUSE Linux | Red Hat Enterprise Linux |
- // Red Hat Enterprise Linux with HA | Windows | Windows with SQL Server Standard
- // | Windows with SQL Server Web | Windows with SQL Server Enterprise ).
- //
- // - reserved-instances-id - The ID of the Reserved Instance.
- //
- // - start - The time at which the Reserved Instance purchase request was placed
- // (for example, 2014-08-07T11:54:42.000Z).
- //
- // - state - The state of the Reserved Instance ( payment-pending | active |
- // payment-failed | retired ).
- //
- // - tag: - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- //
- // - usage-price - The usage price of the Reserved Instance, per hour (for
- // example, 0.84).
- Filters []types.Filter
-
- // Describes whether the Reserved Instance is Standard or Convertible.
- OfferingClass types.OfferingClassType
-
- // The Reserved Instance offering type. If you are using tools that predate the
- // 2011-11-01 API version, you only have access to the Medium Utilization Reserved
- // Instance offering type.
- OfferingType types.OfferingTypeValues
-
- // One or more Reserved Instance IDs.
- //
- // Default: Describes all your Reserved Instances, or only those otherwise
- // specified.
- ReservedInstancesIds []string
-
- noSmithyDocumentSerde
-}
-
-// Contains the output for DescribeReservedInstances.
-type DescribeReservedInstancesOutput struct {
-
- // A list of Reserved Instances.
- ReservedInstances []types.ReservedInstances
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeReservedInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeReservedInstances{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeReservedInstances{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeReservedInstances"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeReservedInstances(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeReservedInstances(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeReservedInstances",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesListings.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesListings.go
deleted file mode 100644
index f1b25d597..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesListings.go
+++ /dev/null
@@ -1,197 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes your account's Reserved Instance listings in the Reserved Instance
-// Marketplace.
-//
-// The Reserved Instance Marketplace matches sellers who want to resell Reserved
-// Instance capacity that they no longer need with buyers who want to purchase
-// additional capacity. Reserved Instances bought and sold through the Reserved
-// Instance Marketplace work like any other Reserved Instances.
-//
-// As a seller, you choose to list some or all of your Reserved Instances, and you
-// specify the upfront price to receive for them. Your Reserved Instances are then
-// listed in the Reserved Instance Marketplace and are available for purchase.
-//
-// As a buyer, you specify the configuration of the Reserved Instance to purchase,
-// and the Marketplace matches what you're searching for with what's available. The
-// Marketplace first sells the lowest priced Reserved Instances to you, and
-// continues to sell available Reserved Instance listings to you until your demand
-// is met. You are charged based on the total price of all of the listings that you
-// purchase.
-//
-// For more information, see [Sell in the Reserved Instance Marketplace] in the Amazon EC2 User Guide.
-//
-// The order of the elements in the response, including those within nested
-// structures, might vary. Applications should not assume the elements appear in a
-// particular order.
-//
-// [Sell in the Reserved Instance Marketplace]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html
-func (c *Client) DescribeReservedInstancesListings(ctx context.Context, params *DescribeReservedInstancesListingsInput, optFns ...func(*Options)) (*DescribeReservedInstancesListingsOutput, error) {
- if params == nil {
- params = &DescribeReservedInstancesListingsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeReservedInstancesListings", params, optFns, c.addOperationDescribeReservedInstancesListingsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeReservedInstancesListingsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DescribeReservedInstancesListings.
-type DescribeReservedInstancesListingsInput struct {
-
- // One or more filters.
- //
- // - reserved-instances-id - The ID of the Reserved Instances.
- //
- // - reserved-instances-listing-id - The ID of the Reserved Instances listing.
- //
- // - status - The status of the Reserved Instance listing ( pending | active |
- // cancelled | closed ).
- //
- // - status-message - The reason for the status.
- Filters []types.Filter
-
- // One or more Reserved Instance IDs.
- ReservedInstancesId *string
-
- // One or more Reserved Instance listing IDs.
- ReservedInstancesListingId *string
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of DescribeReservedInstancesListings.
-type DescribeReservedInstancesListingsOutput struct {
-
- // Information about the Reserved Instance listing.
- ReservedInstancesListings []types.ReservedInstancesListing
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeReservedInstancesListingsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeReservedInstancesListings{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeReservedInstancesListings{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeReservedInstancesListings"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeReservedInstancesListings(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeReservedInstancesListings(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeReservedInstancesListings",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesModifications.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesModifications.go
deleted file mode 100644
index 5c6a12b50..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesModifications.go
+++ /dev/null
@@ -1,295 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the modifications made to your Reserved Instances. If no parameter is
-// specified, information about all your Reserved Instances modification requests
-// is returned. If a modification ID is specified, only information about the
-// specific modification is returned.
-//
-// For more information, see [Modify Reserved Instances] in the Amazon EC2 User Guide.
-//
-// The order of the elements in the response, including those within nested
-// structures, might vary. Applications should not assume the elements appear in a
-// particular order.
-//
-// [Modify Reserved Instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html
-func (c *Client) DescribeReservedInstancesModifications(ctx context.Context, params *DescribeReservedInstancesModificationsInput, optFns ...func(*Options)) (*DescribeReservedInstancesModificationsOutput, error) {
- if params == nil {
- params = &DescribeReservedInstancesModificationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeReservedInstancesModifications", params, optFns, c.addOperationDescribeReservedInstancesModificationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeReservedInstancesModificationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DescribeReservedInstancesModifications.
-type DescribeReservedInstancesModificationsInput struct {
-
- // One or more filters.
- //
- // - client-token - The idempotency token for the modification request.
- //
- // - create-date - The time when the modification request was created.
- //
- // - effective-date - The time when the modification becomes effective.
- //
- // - modification-result.reserved-instances-id - The ID for the Reserved
- // Instances created as part of the modification request. This ID is only available
- // when the status of the modification is fulfilled .
- //
- // - modification-result.target-configuration.availability-zone - The
- // Availability Zone for the new Reserved Instances.
- //
- // - modification-result.target-configuration.availability-zone-id - The ID of
- // the Availability Zone for the new Reserved Instances.
- //
- // - modification-result.target-configuration.instance-count - The number of new
- // Reserved Instances.
- //
- // - modification-result.target-configuration.instance-type - The instance type
- // of the new Reserved Instances.
- //
- // - reserved-instances-id - The ID of the Reserved Instances modified.
- //
- // - reserved-instances-modification-id - The ID of the modification request.
- //
- // - status - The status of the Reserved Instances modification request (
- // processing | fulfilled | failed ).
- //
- // - status-message - The reason for the status.
- //
- // - update-date - The time when the modification request was last updated.
- Filters []types.Filter
-
- // The token to retrieve the next page of results.
- NextToken *string
-
- // IDs for the submitted modification request.
- ReservedInstancesModificationIds []string
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of DescribeReservedInstancesModifications.
-type DescribeReservedInstancesModificationsOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // The Reserved Instance modification information.
- ReservedInstancesModifications []types.ReservedInstancesModification
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeReservedInstancesModificationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeReservedInstancesModifications{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeReservedInstancesModifications{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeReservedInstancesModifications"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeReservedInstancesModifications(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeReservedInstancesModificationsPaginatorOptions is the paginator options
-// for DescribeReservedInstancesModifications
-type DescribeReservedInstancesModificationsPaginatorOptions struct {
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeReservedInstancesModificationsPaginator is a paginator for
-// DescribeReservedInstancesModifications
-type DescribeReservedInstancesModificationsPaginator struct {
- options DescribeReservedInstancesModificationsPaginatorOptions
- client DescribeReservedInstancesModificationsAPIClient
- params *DescribeReservedInstancesModificationsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeReservedInstancesModificationsPaginator returns a new
-// DescribeReservedInstancesModificationsPaginator
-func NewDescribeReservedInstancesModificationsPaginator(client DescribeReservedInstancesModificationsAPIClient, params *DescribeReservedInstancesModificationsInput, optFns ...func(*DescribeReservedInstancesModificationsPaginatorOptions)) *DescribeReservedInstancesModificationsPaginator {
- if params == nil {
- params = &DescribeReservedInstancesModificationsInput{}
- }
-
- options := DescribeReservedInstancesModificationsPaginatorOptions{}
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeReservedInstancesModificationsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeReservedInstancesModificationsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeReservedInstancesModifications page.
-func (p *DescribeReservedInstancesModificationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeReservedInstancesModificationsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeReservedInstancesModifications(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeReservedInstancesModificationsAPIClient is a client that implements the
-// DescribeReservedInstancesModifications operation.
-type DescribeReservedInstancesModificationsAPIClient interface {
- DescribeReservedInstancesModifications(context.Context, *DescribeReservedInstancesModificationsInput, ...func(*Options)) (*DescribeReservedInstancesModificationsOutput, error)
-}
-
-var _ DescribeReservedInstancesModificationsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeReservedInstancesModifications(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeReservedInstancesModifications",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesOfferings.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesOfferings.go
deleted file mode 100644
index 3e5ecd1b1..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesOfferings.go
+++ /dev/null
@@ -1,384 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes Reserved Instance offerings that are available for purchase. With
-// Reserved Instances, you purchase the right to launch instances for a period of
-// time. During that time period, you do not receive insufficient capacity errors,
-// and you pay a lower usage rate than the rate charged for On-Demand instances for
-// the actual time used.
-//
-// If you have listed your own Reserved Instances for sale in the Reserved
-// Instance Marketplace, they will be excluded from these results. This is to
-// ensure that you do not purchase your own Reserved Instances.
-//
-// For more information, see [Sell in the Reserved Instance Marketplace] in the Amazon EC2 User Guide.
-//
-// The order of the elements in the response, including those within nested
-// structures, might vary. Applications should not assume the elements appear in a
-// particular order.
-//
-// [Sell in the Reserved Instance Marketplace]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html
-func (c *Client) DescribeReservedInstancesOfferings(ctx context.Context, params *DescribeReservedInstancesOfferingsInput, optFns ...func(*Options)) (*DescribeReservedInstancesOfferingsOutput, error) {
- if params == nil {
- params = &DescribeReservedInstancesOfferingsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeReservedInstancesOfferings", params, optFns, c.addOperationDescribeReservedInstancesOfferingsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeReservedInstancesOfferingsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DescribeReservedInstancesOfferings.
-type DescribeReservedInstancesOfferingsInput struct {
-
- // The Availability Zone in which the Reserved Instance can be used.
- //
- // Either AvailabilityZone or AvailabilityZoneId can be specified, but not both.
- AvailabilityZone *string
-
- // The ID of the Availability Zone.
- //
- // Either AvailabilityZone or AvailabilityZoneId can be specified, but not both.
- AvailabilityZoneId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - availability-zone - The Availability Zone where the Reserved Instance can be
- // used.
- //
- // - availability-zone-id - The ID of the Availability Zone where the Reserved
- // Instance can be used.
- //
- // - duration - The duration of the Reserved Instance (for example, one year or
- // three years), in seconds ( 31536000 | 94608000 ).
- //
- // - fixed-price - The purchase price of the Reserved Instance (for example,
- // 9800.0).
- //
- // - instance-type - The instance type that is covered by the reservation.
- //
- // - marketplace - Set to true to show only Reserved Instance Marketplace
- // offerings. When this filter is not used, which is the default behavior, all
- // offerings from both Amazon Web Services and the Reserved Instance Marketplace
- // are listed.
- //
- // - product-description - The Reserved Instance product platform description (
- // Linux/UNIX | Linux with SQL Server Standard | Linux with SQL Server Web |
- // Linux with SQL Server Enterprise | SUSE Linux | Red Hat Enterprise Linux |
- // Red Hat Enterprise Linux with HA | Windows | Windows with SQL Server Standard
- // | Windows with SQL Server Web | Windows with SQL Server Enterprise ).
- //
- // - reserved-instances-offering-id - The Reserved Instances offering ID.
- //
- // - scope - The scope of the Reserved Instance ( Availability Zone or Region ).
- //
- // - usage-price - The usage price of the Reserved Instance, per hour (for
- // example, 0.84).
- Filters []types.Filter
-
- // Include Reserved Instance Marketplace offerings in the response.
- IncludeMarketplace *bool
-
- // The tenancy of the instances covered by the reservation. A Reserved Instance
- // with a tenancy of dedicated is applied to instances that run in a VPC on
- // single-tenant hardware (i.e., Dedicated Instances).
- //
- // Important: The host value cannot be used with this parameter. Use the default
- // or dedicated values only.
- //
- // Default: default
- InstanceTenancy types.Tenancy
-
- // The instance type that the reservation will cover (for example, m1.small ). For
- // more information, see [Amazon EC2 instance types]in the Amazon EC2 User Guide.
- //
- // [Amazon EC2 instance types]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html
- InstanceType types.InstanceType
-
- // The maximum duration (in seconds) to filter when searching for offerings.
- //
- // Default: 94608000 (3 years)
- MaxDuration *int64
-
- // The maximum number of instances to filter when searching for offerings.
- //
- // Default: 20
- MaxInstanceCount *int32
-
- // The maximum number of results to return for the request in a single page. The
- // remaining results of the initial request can be seen by sending another request
- // with the returned NextToken value. The maximum is 100.
- //
- // Default: 100
- MaxResults *int32
-
- // The minimum duration (in seconds) to filter when searching for offerings.
- //
- // Default: 2592000 (1 month)
- MinDuration *int64
-
- // The token to retrieve the next page of results.
- NextToken *string
-
- // The offering class of the Reserved Instance. Can be standard or convertible .
- OfferingClass types.OfferingClassType
-
- // The Reserved Instance offering type. If you are using tools that predate the
- // 2011-11-01 API version, you only have access to the Medium Utilization Reserved
- // Instance offering type.
- OfferingType types.OfferingTypeValues
-
- // The Reserved Instance product platform description. Instances that include
- // (Amazon VPC) in the description are for use with Amazon VPC.
- ProductDescription types.RIProductDescription
-
- // One or more Reserved Instances offering IDs.
- ReservedInstancesOfferingIds []string
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of DescribeReservedInstancesOfferings.
-type DescribeReservedInstancesOfferingsOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // A list of Reserved Instances offerings.
- ReservedInstancesOfferings []types.ReservedInstancesOffering
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeReservedInstancesOfferingsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeReservedInstancesOfferings{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeReservedInstancesOfferings{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeReservedInstancesOfferings"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeReservedInstancesOfferings(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeReservedInstancesOfferingsPaginatorOptions is the paginator options for
-// DescribeReservedInstancesOfferings
-type DescribeReservedInstancesOfferingsPaginatorOptions struct {
- // The maximum number of results to return for the request in a single page. The
- // remaining results of the initial request can be seen by sending another request
- // with the returned NextToken value. The maximum is 100.
- //
- // Default: 100
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeReservedInstancesOfferingsPaginator is a paginator for
-// DescribeReservedInstancesOfferings
-type DescribeReservedInstancesOfferingsPaginator struct {
- options DescribeReservedInstancesOfferingsPaginatorOptions
- client DescribeReservedInstancesOfferingsAPIClient
- params *DescribeReservedInstancesOfferingsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeReservedInstancesOfferingsPaginator returns a new
-// DescribeReservedInstancesOfferingsPaginator
-func NewDescribeReservedInstancesOfferingsPaginator(client DescribeReservedInstancesOfferingsAPIClient, params *DescribeReservedInstancesOfferingsInput, optFns ...func(*DescribeReservedInstancesOfferingsPaginatorOptions)) *DescribeReservedInstancesOfferingsPaginator {
- if params == nil {
- params = &DescribeReservedInstancesOfferingsInput{}
- }
-
- options := DescribeReservedInstancesOfferingsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeReservedInstancesOfferingsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeReservedInstancesOfferingsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeReservedInstancesOfferings page.
-func (p *DescribeReservedInstancesOfferingsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeReservedInstancesOfferingsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeReservedInstancesOfferings(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeReservedInstancesOfferingsAPIClient is a client that implements the
-// DescribeReservedInstancesOfferings operation.
-type DescribeReservedInstancesOfferingsAPIClient interface {
- DescribeReservedInstancesOfferings(context.Context, *DescribeReservedInstancesOfferingsInput, ...func(*Options)) (*DescribeReservedInstancesOfferingsOutput, error)
-}
-
-var _ DescribeReservedInstancesOfferingsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeReservedInstancesOfferings(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeReservedInstancesOfferings",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteServerEndpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteServerEndpoints.go
deleted file mode 100644
index fc17a9038..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteServerEndpoints.go
+++ /dev/null
@@ -1,279 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more route server endpoints.
-//
-// A route server endpoint is an Amazon Web Services-managed component inside a
-// subnet that facilitates [BGP (Border Gateway Protocol)]connections between your route server and your BGP
-// peers.
-//
-// For more information see [Dynamic routing in your VPC with VPC Route Server] in the Amazon VPC User Guide.
-//
-// [Dynamic routing in your VPC with VPC Route Server]: https://docs.aws.amazon.com/vpc/latest/userguide/dynamic-routing-route-server.html
-// [BGP (Border Gateway Protocol)]: https://en.wikipedia.org/wiki/Border_Gateway_Protocol
-func (c *Client) DescribeRouteServerEndpoints(ctx context.Context, params *DescribeRouteServerEndpointsInput, optFns ...func(*Options)) (*DescribeRouteServerEndpointsOutput, error) {
- if params == nil {
- params = &DescribeRouteServerEndpointsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeRouteServerEndpoints", params, optFns, c.addOperationDescribeRouteServerEndpointsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeRouteServerEndpointsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeRouteServerEndpointsInput struct {
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters to apply to the describe request.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The IDs of the route server endpoints to describe.
- RouteServerEndpointIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeRouteServerEndpointsOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the described route server endpoints.
- RouteServerEndpoints []types.RouteServerEndpoint
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeRouteServerEndpointsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeRouteServerEndpoints{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeRouteServerEndpoints{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeRouteServerEndpoints"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeRouteServerEndpoints(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeRouteServerEndpointsPaginatorOptions is the paginator options for
-// DescribeRouteServerEndpoints
-type DescribeRouteServerEndpointsPaginatorOptions struct {
- // The maximum number of results to return with a single call.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeRouteServerEndpointsPaginator is a paginator for
-// DescribeRouteServerEndpoints
-type DescribeRouteServerEndpointsPaginator struct {
- options DescribeRouteServerEndpointsPaginatorOptions
- client DescribeRouteServerEndpointsAPIClient
- params *DescribeRouteServerEndpointsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeRouteServerEndpointsPaginator returns a new
-// DescribeRouteServerEndpointsPaginator
-func NewDescribeRouteServerEndpointsPaginator(client DescribeRouteServerEndpointsAPIClient, params *DescribeRouteServerEndpointsInput, optFns ...func(*DescribeRouteServerEndpointsPaginatorOptions)) *DescribeRouteServerEndpointsPaginator {
- if params == nil {
- params = &DescribeRouteServerEndpointsInput{}
- }
-
- options := DescribeRouteServerEndpointsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeRouteServerEndpointsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeRouteServerEndpointsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeRouteServerEndpoints page.
-func (p *DescribeRouteServerEndpointsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeRouteServerEndpointsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeRouteServerEndpoints(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeRouteServerEndpointsAPIClient is a client that implements the
-// DescribeRouteServerEndpoints operation.
-type DescribeRouteServerEndpointsAPIClient interface {
- DescribeRouteServerEndpoints(context.Context, *DescribeRouteServerEndpointsInput, ...func(*Options)) (*DescribeRouteServerEndpointsOutput, error)
-}
-
-var _ DescribeRouteServerEndpointsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeRouteServerEndpoints(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeRouteServerEndpoints",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteServerPeers.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteServerPeers.go
deleted file mode 100644
index a8e4c2499..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteServerPeers.go
+++ /dev/null
@@ -1,284 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more route server peers.
-//
-// A route server peer is a session between a route server endpoint and the device
-// deployed in Amazon Web Services (such as a firewall appliance or other network
-// security function running on an EC2 instance). The device must meet these
-// requirements:
-//
-// - Have an elastic network interface in the VPC
-//
-// - Support BGP (Border Gateway Protocol)
-//
-// - Can initiate BGP sessions
-//
-// For more information see [Dynamic routing in your VPC with VPC Route Server] in the Amazon VPC User Guide.
-//
-// [Dynamic routing in your VPC with VPC Route Server]: https://docs.aws.amazon.com/vpc/latest/userguide/dynamic-routing-route-server.html
-func (c *Client) DescribeRouteServerPeers(ctx context.Context, params *DescribeRouteServerPeersInput, optFns ...func(*Options)) (*DescribeRouteServerPeersOutput, error) {
- if params == nil {
- params = &DescribeRouteServerPeersInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeRouteServerPeers", params, optFns, c.addOperationDescribeRouteServerPeersMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeRouteServerPeersOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeRouteServerPeersInput struct {
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters to apply to the describe request.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The IDs of the route server peers to describe.
- RouteServerPeerIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeRouteServerPeersOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the described route server peers.
- RouteServerPeers []types.RouteServerPeer
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeRouteServerPeersMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeRouteServerPeers{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeRouteServerPeers{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeRouteServerPeers"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeRouteServerPeers(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeRouteServerPeersPaginatorOptions is the paginator options for
-// DescribeRouteServerPeers
-type DescribeRouteServerPeersPaginatorOptions struct {
- // The maximum number of results to return with a single call.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeRouteServerPeersPaginator is a paginator for DescribeRouteServerPeers
-type DescribeRouteServerPeersPaginator struct {
- options DescribeRouteServerPeersPaginatorOptions
- client DescribeRouteServerPeersAPIClient
- params *DescribeRouteServerPeersInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeRouteServerPeersPaginator returns a new
-// DescribeRouteServerPeersPaginator
-func NewDescribeRouteServerPeersPaginator(client DescribeRouteServerPeersAPIClient, params *DescribeRouteServerPeersInput, optFns ...func(*DescribeRouteServerPeersPaginatorOptions)) *DescribeRouteServerPeersPaginator {
- if params == nil {
- params = &DescribeRouteServerPeersInput{}
- }
-
- options := DescribeRouteServerPeersPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeRouteServerPeersPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeRouteServerPeersPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeRouteServerPeers page.
-func (p *DescribeRouteServerPeersPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeRouteServerPeersOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeRouteServerPeers(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeRouteServerPeersAPIClient is a client that implements the
-// DescribeRouteServerPeers operation.
-type DescribeRouteServerPeersAPIClient interface {
- DescribeRouteServerPeers(context.Context, *DescribeRouteServerPeersInput, ...func(*Options)) (*DescribeRouteServerPeersOutput, error)
-}
-
-var _ DescribeRouteServerPeersAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeRouteServerPeers(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeRouteServerPeers",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteServers.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteServers.go
deleted file mode 100644
index 707aa374c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteServers.go
+++ /dev/null
@@ -1,292 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more route servers.
-//
-// Amazon VPC Route Server simplifies routing for traffic between workloads that
-// are deployed within a VPC and its internet gateways. With this feature, VPC
-// Route Server dynamically updates VPC and internet gateway route tables with your
-// preferred IPv4 or IPv6 routes to achieve routing fault tolerance for those
-// workloads. This enables you to automatically reroute traffic within a VPC, which
-// increases the manageability of VPC routing and interoperability with third-party
-// workloads.
-//
-// Route server supports the follow route table types:
-//
-// - VPC route tables not associated with subnets
-//
-// - Subnet route tables
-//
-// - Internet gateway route tables
-//
-// Route server does not support route tables associated with virtual private
-// gateways. To propagate routes into a transit gateway route table, use [Transit Gateway Connect].
-//
-// For more information see [Dynamic routing in your VPC with VPC Route Server] in the Amazon VPC User Guide.
-//
-// [Dynamic routing in your VPC with VPC Route Server]: https://docs.aws.amazon.com/vpc/latest/userguide/dynamic-routing-route-server.html
-// [Transit Gateway Connect]: https://docs.aws.amazon.com/vpc/latest/tgw/tgw-connect.html
-func (c *Client) DescribeRouteServers(ctx context.Context, params *DescribeRouteServersInput, optFns ...func(*Options)) (*DescribeRouteServersOutput, error) {
- if params == nil {
- params = &DescribeRouteServersInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeRouteServers", params, optFns, c.addOperationDescribeRouteServersMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeRouteServersOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeRouteServersInput struct {
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters to apply to the describe request.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The IDs of the route servers to describe.
- RouteServerIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeRouteServersOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the described route servers.
- RouteServers []types.RouteServer
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeRouteServersMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeRouteServers{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeRouteServers{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeRouteServers"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeRouteServers(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeRouteServersPaginatorOptions is the paginator options for
-// DescribeRouteServers
-type DescribeRouteServersPaginatorOptions struct {
- // The maximum number of results to return with a single call.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeRouteServersPaginator is a paginator for DescribeRouteServers
-type DescribeRouteServersPaginator struct {
- options DescribeRouteServersPaginatorOptions
- client DescribeRouteServersAPIClient
- params *DescribeRouteServersInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeRouteServersPaginator returns a new DescribeRouteServersPaginator
-func NewDescribeRouteServersPaginator(client DescribeRouteServersAPIClient, params *DescribeRouteServersInput, optFns ...func(*DescribeRouteServersPaginatorOptions)) *DescribeRouteServersPaginator {
- if params == nil {
- params = &DescribeRouteServersInput{}
- }
-
- options := DescribeRouteServersPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeRouteServersPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeRouteServersPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeRouteServers page.
-func (p *DescribeRouteServersPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeRouteServersOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeRouteServers(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeRouteServersAPIClient is a client that implements the
-// DescribeRouteServers operation.
-type DescribeRouteServersAPIClient interface {
- DescribeRouteServers(context.Context, *DescribeRouteServersInput, ...func(*Options)) (*DescribeRouteServersOutput, error)
-}
-
-var _ DescribeRouteServersAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeRouteServers(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeRouteServers",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteTables.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteTables.go
deleted file mode 100644
index 03215958a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteTables.go
+++ /dev/null
@@ -1,352 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes your route tables. The default is to describe all your route tables.
-// Alternatively, you can specify specific route table IDs or filter the results to
-// include only the route tables that match specific criteria.
-//
-// Each subnet in your VPC must be associated with a route table. If a subnet is
-// not explicitly associated with any route table, it is implicitly associated with
-// the main route table. This command does not return the subnet ID for implicit
-// associations.
-//
-// For more information, see [Route tables] in the Amazon VPC User Guide.
-//
-// [Route tables]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html
-func (c *Client) DescribeRouteTables(ctx context.Context, params *DescribeRouteTablesInput, optFns ...func(*Options)) (*DescribeRouteTablesOutput, error) {
- if params == nil {
- params = &DescribeRouteTablesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeRouteTables", params, optFns, c.addOperationDescribeRouteTablesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeRouteTablesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeRouteTablesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - association.gateway-id - The ID of the gateway involved in the association.
- //
- // - association.route-table-association-id - The ID of an association ID for the
- // route table.
- //
- // - association.route-table-id - The ID of the route table involved in the
- // association.
- //
- // - association.subnet-id - The ID of the subnet involved in the association.
- //
- // - association.main - Indicates whether the route table is the main route table
- // for the VPC ( true | false ). Route tables that do not have an association ID
- // are not returned in the response.
- //
- // - owner-id - The ID of the Amazon Web Services account that owns the route
- // table.
- //
- // - route-table-id - The ID of the route table.
- //
- // - route.destination-cidr-block - The IPv4 CIDR range specified in a route in
- // the table.
- //
- // - route.destination-ipv6-cidr-block - The IPv6 CIDR range specified in a route
- // in the route table.
- //
- // - route.destination-prefix-list-id - The ID (prefix) of the Amazon Web
- // Services service specified in a route in the table.
- //
- // - route.egress-only-internet-gateway-id - The ID of an egress-only Internet
- // gateway specified in a route in the route table.
- //
- // - route.gateway-id - The ID of a gateway specified in a route in the table.
- //
- // - route.instance-id - The ID of an instance specified in a route in the table.
- //
- // - route.nat-gateway-id - The ID of a NAT gateway.
- //
- // - route.transit-gateway-id - The ID of a transit gateway.
- //
- // - route.origin - Describes how the route was created. CreateRouteTable
- // indicates that the route was automatically created when the route table was
- // created; CreateRoute indicates that the route was manually added to the route
- // table; EnableVgwRoutePropagation indicates that the route was propagated by
- // route propagation.
- //
- // - route.state - The state of a route in the route table ( active | blackhole
- // ). The blackhole state indicates that the route's target isn't available (for
- // example, the specified gateway isn't attached to the VPC, the specified NAT
- // instance has been terminated, and so on).
- //
- // - route.vpc-peering-connection-id - The ID of a VPC peering connection
- // specified in a route in the table.
- //
- // - tag - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- //
- // - vpc-id - The ID of the VPC for the route table.
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- // The IDs of the route tables.
- RouteTableIds []string
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of DescribeRouteTables.
-type DescribeRouteTablesOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Information about the route tables.
- RouteTables []types.RouteTable
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeRouteTablesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeRouteTables{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeRouteTables{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeRouteTables"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeRouteTables(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeRouteTablesPaginatorOptions is the paginator options for
-// DescribeRouteTables
-type DescribeRouteTablesPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeRouteTablesPaginator is a paginator for DescribeRouteTables
-type DescribeRouteTablesPaginator struct {
- options DescribeRouteTablesPaginatorOptions
- client DescribeRouteTablesAPIClient
- params *DescribeRouteTablesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeRouteTablesPaginator returns a new DescribeRouteTablesPaginator
-func NewDescribeRouteTablesPaginator(client DescribeRouteTablesAPIClient, params *DescribeRouteTablesInput, optFns ...func(*DescribeRouteTablesPaginatorOptions)) *DescribeRouteTablesPaginator {
- if params == nil {
- params = &DescribeRouteTablesInput{}
- }
-
- options := DescribeRouteTablesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeRouteTablesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeRouteTablesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeRouteTables page.
-func (p *DescribeRouteTablesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeRouteTablesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeRouteTables(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeRouteTablesAPIClient is a client that implements the
-// DescribeRouteTables operation.
-type DescribeRouteTablesAPIClient interface {
- DescribeRouteTables(context.Context, *DescribeRouteTablesInput, ...func(*Options)) (*DescribeRouteTablesOutput, error)
-}
-
-var _ DescribeRouteTablesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeRouteTables(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeRouteTables",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeScheduledInstanceAvailability.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeScheduledInstanceAvailability.go
deleted file mode 100644
index 90c65d3a6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeScheduledInstanceAvailability.go
+++ /dev/null
@@ -1,310 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Finds available schedules that meet the specified criteria.
-//
-// You can search for an available schedule no more than 3 months in advance. You
-// must meet the minimum required duration of 1,200 hours per year. For example,
-// the minimum daily schedule is 4 hours, the minimum weekly schedule is 24 hours,
-// and the minimum monthly schedule is 100 hours.
-//
-// After you find a schedule that meets your needs, call PurchaseScheduledInstances to purchase Scheduled
-// Instances with that schedule.
-func (c *Client) DescribeScheduledInstanceAvailability(ctx context.Context, params *DescribeScheduledInstanceAvailabilityInput, optFns ...func(*Options)) (*DescribeScheduledInstanceAvailabilityOutput, error) {
- if params == nil {
- params = &DescribeScheduledInstanceAvailabilityInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeScheduledInstanceAvailability", params, optFns, c.addOperationDescribeScheduledInstanceAvailabilityMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeScheduledInstanceAvailabilityOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DescribeScheduledInstanceAvailability.
-type DescribeScheduledInstanceAvailabilityInput struct {
-
- // The time period for the first schedule to start.
- //
- // This member is required.
- FirstSlotStartTimeRange *types.SlotDateTimeRangeRequest
-
- // The schedule recurrence.
- //
- // This member is required.
- Recurrence *types.ScheduledInstanceRecurrenceRequest
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - availability-zone - The Availability Zone (for example, us-west-2a ).
- //
- // - instance-type - The instance type (for example, c4.large ).
- //
- // - platform - The platform ( Linux/UNIX or Windows ).
- Filters []types.Filter
-
- // The maximum number of results to return in a single call. This value can be
- // between 5 and 300. The default value is 300. To retrieve the remaining results,
- // make another call with the returned NextToken value.
- MaxResults *int32
-
- // The maximum available duration, in hours. This value must be greater than
- // MinSlotDurationInHours and less than 1,720.
- MaxSlotDurationInHours *int32
-
- // The minimum available duration, in hours. The minimum required duration is
- // 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the
- // minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100
- // hours.
- MinSlotDurationInHours *int32
-
- // The token for the next set of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of DescribeScheduledInstanceAvailability.
-type DescribeScheduledInstanceAvailabilityOutput struct {
-
- // The token required to retrieve the next set of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the available Scheduled Instances.
- ScheduledInstanceAvailabilitySet []types.ScheduledInstanceAvailability
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeScheduledInstanceAvailabilityMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeScheduledInstanceAvailability{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeScheduledInstanceAvailability{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeScheduledInstanceAvailability"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDescribeScheduledInstanceAvailabilityValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeScheduledInstanceAvailability(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeScheduledInstanceAvailabilityPaginatorOptions is the paginator options
-// for DescribeScheduledInstanceAvailability
-type DescribeScheduledInstanceAvailabilityPaginatorOptions struct {
- // The maximum number of results to return in a single call. This value can be
- // between 5 and 300. The default value is 300. To retrieve the remaining results,
- // make another call with the returned NextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeScheduledInstanceAvailabilityPaginator is a paginator for
-// DescribeScheduledInstanceAvailability
-type DescribeScheduledInstanceAvailabilityPaginator struct {
- options DescribeScheduledInstanceAvailabilityPaginatorOptions
- client DescribeScheduledInstanceAvailabilityAPIClient
- params *DescribeScheduledInstanceAvailabilityInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeScheduledInstanceAvailabilityPaginator returns a new
-// DescribeScheduledInstanceAvailabilityPaginator
-func NewDescribeScheduledInstanceAvailabilityPaginator(client DescribeScheduledInstanceAvailabilityAPIClient, params *DescribeScheduledInstanceAvailabilityInput, optFns ...func(*DescribeScheduledInstanceAvailabilityPaginatorOptions)) *DescribeScheduledInstanceAvailabilityPaginator {
- if params == nil {
- params = &DescribeScheduledInstanceAvailabilityInput{}
- }
-
- options := DescribeScheduledInstanceAvailabilityPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeScheduledInstanceAvailabilityPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeScheduledInstanceAvailabilityPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeScheduledInstanceAvailability page.
-func (p *DescribeScheduledInstanceAvailabilityPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeScheduledInstanceAvailabilityOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeScheduledInstanceAvailability(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeScheduledInstanceAvailabilityAPIClient is a client that implements the
-// DescribeScheduledInstanceAvailability operation.
-type DescribeScheduledInstanceAvailabilityAPIClient interface {
- DescribeScheduledInstanceAvailability(context.Context, *DescribeScheduledInstanceAvailabilityInput, ...func(*Options)) (*DescribeScheduledInstanceAvailabilityOutput, error)
-}
-
-var _ DescribeScheduledInstanceAvailabilityAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeScheduledInstanceAvailability(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeScheduledInstanceAvailability",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeScheduledInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeScheduledInstances.go
deleted file mode 100644
index 815204803..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeScheduledInstances.go
+++ /dev/null
@@ -1,285 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified Scheduled Instances or all your Scheduled Instances.
-func (c *Client) DescribeScheduledInstances(ctx context.Context, params *DescribeScheduledInstancesInput, optFns ...func(*Options)) (*DescribeScheduledInstancesOutput, error) {
- if params == nil {
- params = &DescribeScheduledInstancesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeScheduledInstances", params, optFns, c.addOperationDescribeScheduledInstancesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeScheduledInstancesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DescribeScheduledInstances.
-type DescribeScheduledInstancesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - availability-zone - The Availability Zone (for example, us-west-2a ).
- //
- // - instance-type - The instance type (for example, c4.large ).
- //
- // - platform - The platform ( Linux/UNIX or Windows ).
- Filters []types.Filter
-
- // The maximum number of results to return in a single call. This value can be
- // between 5 and 300. The default value is 100. To retrieve the remaining results,
- // make another call with the returned NextToken value.
- MaxResults *int32
-
- // The token for the next set of results.
- NextToken *string
-
- // The Scheduled Instance IDs.
- ScheduledInstanceIds []string
-
- // The time period for the first schedule to start.
- SlotStartTimeRange *types.SlotStartTimeRangeRequest
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of DescribeScheduledInstances.
-type DescribeScheduledInstancesOutput struct {
-
- // The token required to retrieve the next set of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the Scheduled Instances.
- ScheduledInstanceSet []types.ScheduledInstance
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeScheduledInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeScheduledInstances{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeScheduledInstances{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeScheduledInstances"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeScheduledInstances(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeScheduledInstancesPaginatorOptions is the paginator options for
-// DescribeScheduledInstances
-type DescribeScheduledInstancesPaginatorOptions struct {
- // The maximum number of results to return in a single call. This value can be
- // between 5 and 300. The default value is 100. To retrieve the remaining results,
- // make another call with the returned NextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeScheduledInstancesPaginator is a paginator for
-// DescribeScheduledInstances
-type DescribeScheduledInstancesPaginator struct {
- options DescribeScheduledInstancesPaginatorOptions
- client DescribeScheduledInstancesAPIClient
- params *DescribeScheduledInstancesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeScheduledInstancesPaginator returns a new
-// DescribeScheduledInstancesPaginator
-func NewDescribeScheduledInstancesPaginator(client DescribeScheduledInstancesAPIClient, params *DescribeScheduledInstancesInput, optFns ...func(*DescribeScheduledInstancesPaginatorOptions)) *DescribeScheduledInstancesPaginator {
- if params == nil {
- params = &DescribeScheduledInstancesInput{}
- }
-
- options := DescribeScheduledInstancesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeScheduledInstancesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeScheduledInstancesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeScheduledInstances page.
-func (p *DescribeScheduledInstancesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeScheduledInstancesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeScheduledInstances(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeScheduledInstancesAPIClient is a client that implements the
-// DescribeScheduledInstances operation.
-type DescribeScheduledInstancesAPIClient interface {
- DescribeScheduledInstances(context.Context, *DescribeScheduledInstancesInput, ...func(*Options)) (*DescribeScheduledInstancesOutput, error)
-}
-
-var _ DescribeScheduledInstancesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeScheduledInstances(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeScheduledInstances",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroupReferences.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroupReferences.go
deleted file mode 100644
index 2622e7886..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroupReferences.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the VPCs on the other side of a VPC peering or Transit Gateway
-// connection that are referencing the security groups you've specified in this
-// request.
-func (c *Client) DescribeSecurityGroupReferences(ctx context.Context, params *DescribeSecurityGroupReferencesInput, optFns ...func(*Options)) (*DescribeSecurityGroupReferencesOutput, error) {
- if params == nil {
- params = &DescribeSecurityGroupReferencesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeSecurityGroupReferences", params, optFns, c.addOperationDescribeSecurityGroupReferencesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeSecurityGroupReferencesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeSecurityGroupReferencesInput struct {
-
- // The IDs of the security groups in your account.
- //
- // This member is required.
- GroupId []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DescribeSecurityGroupReferencesOutput struct {
-
- // Information about the VPCs with the referencing security groups.
- SecurityGroupReferenceSet []types.SecurityGroupReference
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeSecurityGroupReferencesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSecurityGroupReferences{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeSecurityGroupReferences{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeSecurityGroupReferences"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDescribeSecurityGroupReferencesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeSecurityGroupReferences(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeSecurityGroupReferences(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeSecurityGroupReferences",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroupRules.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroupRules.go
deleted file mode 100644
index 07b729055..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroupRules.go
+++ /dev/null
@@ -1,290 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more of your security group rules.
-func (c *Client) DescribeSecurityGroupRules(ctx context.Context, params *DescribeSecurityGroupRulesInput, optFns ...func(*Options)) (*DescribeSecurityGroupRulesOutput, error) {
- if params == nil {
- params = &DescribeSecurityGroupRulesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeSecurityGroupRules", params, optFns, c.addOperationDescribeSecurityGroupRulesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeSecurityGroupRulesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeSecurityGroupRulesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - group-id - The ID of the security group.
- //
- // - security-group-rule-id - The ID of the security group rule.
- //
- // - tag : - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. This value
- // can be between 5 and 1000. If this parameter is not specified, then all items
- // are returned. For more information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- // The IDs of the security group rules.
- SecurityGroupRuleIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeSecurityGroupRulesOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Information about security group rules.
- SecurityGroupRules []types.SecurityGroupRule
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeSecurityGroupRulesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSecurityGroupRules{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeSecurityGroupRules{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeSecurityGroupRules"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeSecurityGroupRules(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeSecurityGroupRulesPaginatorOptions is the paginator options for
-// DescribeSecurityGroupRules
-type DescribeSecurityGroupRulesPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. This value
- // can be between 5 and 1000. If this parameter is not specified, then all items
- // are returned. For more information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeSecurityGroupRulesPaginator is a paginator for
-// DescribeSecurityGroupRules
-type DescribeSecurityGroupRulesPaginator struct {
- options DescribeSecurityGroupRulesPaginatorOptions
- client DescribeSecurityGroupRulesAPIClient
- params *DescribeSecurityGroupRulesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeSecurityGroupRulesPaginator returns a new
-// DescribeSecurityGroupRulesPaginator
-func NewDescribeSecurityGroupRulesPaginator(client DescribeSecurityGroupRulesAPIClient, params *DescribeSecurityGroupRulesInput, optFns ...func(*DescribeSecurityGroupRulesPaginatorOptions)) *DescribeSecurityGroupRulesPaginator {
- if params == nil {
- params = &DescribeSecurityGroupRulesInput{}
- }
-
- options := DescribeSecurityGroupRulesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeSecurityGroupRulesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeSecurityGroupRulesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeSecurityGroupRules page.
-func (p *DescribeSecurityGroupRulesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeSecurityGroupRulesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeSecurityGroupRules(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeSecurityGroupRulesAPIClient is a client that implements the
-// DescribeSecurityGroupRules operation.
-type DescribeSecurityGroupRulesAPIClient interface {
- DescribeSecurityGroupRules(context.Context, *DescribeSecurityGroupRulesInput, ...func(*Options)) (*DescribeSecurityGroupRulesOutput, error)
-}
-
-var _ DescribeSecurityGroupRulesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeSecurityGroupRules(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeSecurityGroupRules",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroupVpcAssociations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroupVpcAssociations.go
deleted file mode 100644
index 515e97135..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroupVpcAssociations.go
+++ /dev/null
@@ -1,781 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithytime "github.com/aws/smithy-go/time"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- smithywaiter "github.com/aws/smithy-go/waiter"
- "strconv"
- "time"
-)
-
-// Describes security group VPC associations made with [AssociateSecurityGroupVpc].
-//
-// [AssociateSecurityGroupVpc]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_AssociateSecurityGroupVpc.html
-func (c *Client) DescribeSecurityGroupVpcAssociations(ctx context.Context, params *DescribeSecurityGroupVpcAssociationsInput, optFns ...func(*Options)) (*DescribeSecurityGroupVpcAssociationsOutput, error) {
- if params == nil {
- params = &DescribeSecurityGroupVpcAssociationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeSecurityGroupVpcAssociations", params, optFns, c.addOperationDescribeSecurityGroupVpcAssociationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeSecurityGroupVpcAssociationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeSecurityGroupVpcAssociationsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Security group VPC association filters.
- //
- // - group-id : The security group ID.
- //
- // - group-owner-id : The group owner ID.
- //
- // - vpc-id : The ID of the associated VPC.
- //
- // - vpc-owner-id : The account ID of the VPC owner.
- //
- // - state : The state of the association.
- //
- // - tag: : The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key : The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeSecurityGroupVpcAssociationsOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // The security group VPC associations.
- SecurityGroupVpcAssociations []types.SecurityGroupVpcAssociation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeSecurityGroupVpcAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSecurityGroupVpcAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeSecurityGroupVpcAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeSecurityGroupVpcAssociations"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeSecurityGroupVpcAssociations(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// SecurityGroupVpcAssociationAssociatedWaiterOptions are waiter options for
-// SecurityGroupVpcAssociationAssociatedWaiter
-type SecurityGroupVpcAssociationAssociatedWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // SecurityGroupVpcAssociationAssociatedWaiter will use default minimum delay of 10
- // seconds. Note that MinDelay must resolve to a value lesser than or equal to the
- // MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, SecurityGroupVpcAssociationAssociatedWaiter will use default max
- // delay of 120 seconds. Note that MaxDelay must resolve to value greater than or
- // equal to the MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeSecurityGroupVpcAssociationsInput, *DescribeSecurityGroupVpcAssociationsOutput, error) (bool, error)
-}
-
-// SecurityGroupVpcAssociationAssociatedWaiter defines the waiters for
-// SecurityGroupVpcAssociationAssociated
-type SecurityGroupVpcAssociationAssociatedWaiter struct {
- client DescribeSecurityGroupVpcAssociationsAPIClient
-
- options SecurityGroupVpcAssociationAssociatedWaiterOptions
-}
-
-// NewSecurityGroupVpcAssociationAssociatedWaiter constructs a
-// SecurityGroupVpcAssociationAssociatedWaiter.
-func NewSecurityGroupVpcAssociationAssociatedWaiter(client DescribeSecurityGroupVpcAssociationsAPIClient, optFns ...func(*SecurityGroupVpcAssociationAssociatedWaiterOptions)) *SecurityGroupVpcAssociationAssociatedWaiter {
- options := SecurityGroupVpcAssociationAssociatedWaiterOptions{}
- options.MinDelay = 10 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = securityGroupVpcAssociationAssociatedStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &SecurityGroupVpcAssociationAssociatedWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for SecurityGroupVpcAssociationAssociated
-// waiter. The maxWaitDur is the maximum wait duration the waiter will wait. The
-// maxWaitDur is required and must be greater than zero.
-func (w *SecurityGroupVpcAssociationAssociatedWaiter) Wait(ctx context.Context, params *DescribeSecurityGroupVpcAssociationsInput, maxWaitDur time.Duration, optFns ...func(*SecurityGroupVpcAssociationAssociatedWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for
-// SecurityGroupVpcAssociationAssociated waiter and returns the output of the
-// successful operation. The maxWaitDur is the maximum wait duration the waiter
-// will wait. The maxWaitDur is required and must be greater than zero.
-func (w *SecurityGroupVpcAssociationAssociatedWaiter) WaitForOutput(ctx context.Context, params *DescribeSecurityGroupVpcAssociationsInput, maxWaitDur time.Duration, optFns ...func(*SecurityGroupVpcAssociationAssociatedWaiterOptions)) (*DescribeSecurityGroupVpcAssociationsOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeSecurityGroupVpcAssociations(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for SecurityGroupVpcAssociationAssociated waiter")
-}
-
-func securityGroupVpcAssociationAssociatedStateRetryable(ctx context.Context, input *DescribeSecurityGroupVpcAssociationsInput, output *DescribeSecurityGroupVpcAssociationsOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.SecurityGroupVpcAssociations
- var v2 []types.SecurityGroupVpcAssociationState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "associated"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err == nil {
- v1 := output.SecurityGroupVpcAssociations
- var v2 []types.SecurityGroupVpcAssociationState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "associating"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return true, nil
- }
- }
-
- if err == nil {
- v1 := output.SecurityGroupVpcAssociations
- var v2 []types.SecurityGroupVpcAssociationState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "association-failed"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// SecurityGroupVpcAssociationDisassociatedWaiterOptions are waiter options for
-// SecurityGroupVpcAssociationDisassociatedWaiter
-type SecurityGroupVpcAssociationDisassociatedWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // SecurityGroupVpcAssociationDisassociatedWaiter will use default minimum delay of
- // 10 seconds. Note that MinDelay must resolve to a value lesser than or equal to
- // the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, SecurityGroupVpcAssociationDisassociatedWaiter will use default max
- // delay of 120 seconds. Note that MaxDelay must resolve to value greater than or
- // equal to the MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeSecurityGroupVpcAssociationsInput, *DescribeSecurityGroupVpcAssociationsOutput, error) (bool, error)
-}
-
-// SecurityGroupVpcAssociationDisassociatedWaiter defines the waiters for
-// SecurityGroupVpcAssociationDisassociated
-type SecurityGroupVpcAssociationDisassociatedWaiter struct {
- client DescribeSecurityGroupVpcAssociationsAPIClient
-
- options SecurityGroupVpcAssociationDisassociatedWaiterOptions
-}
-
-// NewSecurityGroupVpcAssociationDisassociatedWaiter constructs a
-// SecurityGroupVpcAssociationDisassociatedWaiter.
-func NewSecurityGroupVpcAssociationDisassociatedWaiter(client DescribeSecurityGroupVpcAssociationsAPIClient, optFns ...func(*SecurityGroupVpcAssociationDisassociatedWaiterOptions)) *SecurityGroupVpcAssociationDisassociatedWaiter {
- options := SecurityGroupVpcAssociationDisassociatedWaiterOptions{}
- options.MinDelay = 10 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = securityGroupVpcAssociationDisassociatedStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &SecurityGroupVpcAssociationDisassociatedWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for SecurityGroupVpcAssociationDisassociated
-// waiter. The maxWaitDur is the maximum wait duration the waiter will wait. The
-// maxWaitDur is required and must be greater than zero.
-func (w *SecurityGroupVpcAssociationDisassociatedWaiter) Wait(ctx context.Context, params *DescribeSecurityGroupVpcAssociationsInput, maxWaitDur time.Duration, optFns ...func(*SecurityGroupVpcAssociationDisassociatedWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for
-// SecurityGroupVpcAssociationDisassociated waiter and returns the output of the
-// successful operation. The maxWaitDur is the maximum wait duration the waiter
-// will wait. The maxWaitDur is required and must be greater than zero.
-func (w *SecurityGroupVpcAssociationDisassociatedWaiter) WaitForOutput(ctx context.Context, params *DescribeSecurityGroupVpcAssociationsInput, maxWaitDur time.Duration, optFns ...func(*SecurityGroupVpcAssociationDisassociatedWaiterOptions)) (*DescribeSecurityGroupVpcAssociationsOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeSecurityGroupVpcAssociations(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for SecurityGroupVpcAssociationDisassociated waiter")
-}
-
-func securityGroupVpcAssociationDisassociatedStateRetryable(ctx context.Context, input *DescribeSecurityGroupVpcAssociationsInput, output *DescribeSecurityGroupVpcAssociationsOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.SecurityGroupVpcAssociations
- var v2 []types.SecurityGroupVpcAssociationState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "disassociated"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err == nil {
- v1 := output.SecurityGroupVpcAssociations
- var v2 []types.SecurityGroupVpcAssociationState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "disassociating"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return true, nil
- }
- }
-
- if err == nil {
- v1 := output.SecurityGroupVpcAssociations
- var v2 []types.SecurityGroupVpcAssociationState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "disassociation-failed"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err == nil {
- v1 := output.SecurityGroupVpcAssociations
- v2 := len(v1)
- v3 := 0
- v4 := int64(v2) == int64(v3)
- expectedValue := "true"
- bv, err := strconv.ParseBool(expectedValue)
- if err != nil {
- return false, fmt.Errorf("error parsing boolean from string %w", err)
- }
- if v4 == bv {
- return false, nil
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// DescribeSecurityGroupVpcAssociationsPaginatorOptions is the paginator options
-// for DescribeSecurityGroupVpcAssociations
-type DescribeSecurityGroupVpcAssociationsPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeSecurityGroupVpcAssociationsPaginator is a paginator for
-// DescribeSecurityGroupVpcAssociations
-type DescribeSecurityGroupVpcAssociationsPaginator struct {
- options DescribeSecurityGroupVpcAssociationsPaginatorOptions
- client DescribeSecurityGroupVpcAssociationsAPIClient
- params *DescribeSecurityGroupVpcAssociationsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeSecurityGroupVpcAssociationsPaginator returns a new
-// DescribeSecurityGroupVpcAssociationsPaginator
-func NewDescribeSecurityGroupVpcAssociationsPaginator(client DescribeSecurityGroupVpcAssociationsAPIClient, params *DescribeSecurityGroupVpcAssociationsInput, optFns ...func(*DescribeSecurityGroupVpcAssociationsPaginatorOptions)) *DescribeSecurityGroupVpcAssociationsPaginator {
- if params == nil {
- params = &DescribeSecurityGroupVpcAssociationsInput{}
- }
-
- options := DescribeSecurityGroupVpcAssociationsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeSecurityGroupVpcAssociationsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeSecurityGroupVpcAssociationsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeSecurityGroupVpcAssociations page.
-func (p *DescribeSecurityGroupVpcAssociationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeSecurityGroupVpcAssociationsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeSecurityGroupVpcAssociations(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeSecurityGroupVpcAssociationsAPIClient is a client that implements the
-// DescribeSecurityGroupVpcAssociations operation.
-type DescribeSecurityGroupVpcAssociationsAPIClient interface {
- DescribeSecurityGroupVpcAssociations(context.Context, *DescribeSecurityGroupVpcAssociationsInput, ...func(*Options)) (*DescribeSecurityGroupVpcAssociationsOutput, error)
-}
-
-var _ DescribeSecurityGroupVpcAssociationsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeSecurityGroupVpcAssociations(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeSecurityGroupVpcAssociations",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroups.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroups.go
deleted file mode 100644
index d2df992bc..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroups.go
+++ /dev/null
@@ -1,569 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "errors"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- smithy "github.com/aws/smithy-go"
- "github.com/aws/smithy-go/middleware"
- smithytime "github.com/aws/smithy-go/time"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- smithywaiter "github.com/aws/smithy-go/waiter"
- "strconv"
- "time"
-)
-
-// Describes the specified security groups or all of your security groups.
-func (c *Client) DescribeSecurityGroups(ctx context.Context, params *DescribeSecurityGroupsInput, optFns ...func(*Options)) (*DescribeSecurityGroupsOutput, error) {
- if params == nil {
- params = &DescribeSecurityGroupsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeSecurityGroups", params, optFns, c.addOperationDescribeSecurityGroupsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeSecurityGroupsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeSecurityGroupsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters. If using multiple filters for rules, the results include security
- // groups for which any combination of rules - not necessarily a single rule -
- // match all filters.
- //
- // - description - The description of the security group.
- //
- // - egress.ip-permission.cidr - An IPv4 CIDR block for an outbound security
- // group rule.
- //
- // - egress.ip-permission.from-port - For an outbound rule, the start of port
- // range for the TCP and UDP protocols, or an ICMP type number.
- //
- // - egress.ip-permission.group-id - The ID of a security group that has been
- // referenced in an outbound security group rule.
- //
- // - egress.ip-permission.group-name - The name of a security group that is
- // referenced in an outbound security group rule.
- //
- // - egress.ip-permission.ipv6-cidr - An IPv6 CIDR block for an outbound security
- // group rule.
- //
- // - egress.ip-permission.prefix-list-id - The ID of a prefix list to which a
- // security group rule allows outbound access.
- //
- // - egress.ip-permission.protocol - The IP protocol for an outbound security
- // group rule ( tcp | udp | icmp , a protocol number, or -1 for all protocols).
- //
- // - egress.ip-permission.to-port - For an outbound rule, the end of port range
- // for the TCP and UDP protocols, or an ICMP code.
- //
- // - egress.ip-permission.user-id - The ID of an Amazon Web Services account that
- // has been referenced in an outbound security group rule.
- //
- // - group-id - The ID of the security group.
- //
- // - group-name - The name of the security group.
- //
- // - ip-permission.cidr - An IPv4 CIDR block for an inbound security group rule.
- //
- // - ip-permission.from-port - For an inbound rule, the start of port range for
- // the TCP and UDP protocols, or an ICMP type number.
- //
- // - ip-permission.group-id - The ID of a security group that has been referenced
- // in an inbound security group rule.
- //
- // - ip-permission.group-name - The name of a security group that is referenced
- // in an inbound security group rule.
- //
- // - ip-permission.ipv6-cidr - An IPv6 CIDR block for an inbound security group
- // rule.
- //
- // - ip-permission.prefix-list-id - The ID of a prefix list from which a security
- // group rule allows inbound access.
- //
- // - ip-permission.protocol - The IP protocol for an inbound security group rule (
- // tcp | udp | icmp , a protocol number, or -1 for all protocols).
- //
- // - ip-permission.to-port - For an inbound rule, the end of port range for the
- // TCP and UDP protocols, or an ICMP code.
- //
- // - ip-permission.user-id - The ID of an Amazon Web Services account that has
- // been referenced in an inbound security group rule.
- //
- // - owner-id - The Amazon Web Services account ID of the owner of the security
- // group.
- //
- // - tag : - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- //
- // - vpc-id - The ID of the VPC specified when the security group was created.
- Filters []types.Filter
-
- // The IDs of the security groups. Required for security groups in a nondefault
- // VPC.
- //
- // Default: Describes all of your security groups.
- GroupIds []string
-
- // [Default VPC] The names of the security groups. You can specify either the
- // security group name or the security group ID.
- //
- // Default: Describes all of your security groups.
- GroupNames []string
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. This value
- // can be between 5 and 1000. If this parameter is not specified, then all items
- // are returned. For more information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeSecurityGroupsOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Information about the security groups.
- SecurityGroups []types.SecurityGroup
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeSecurityGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSecurityGroups{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeSecurityGroups{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeSecurityGroups"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeSecurityGroups(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// SecurityGroupExistsWaiterOptions are waiter options for
-// SecurityGroupExistsWaiter
-type SecurityGroupExistsWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // SecurityGroupExistsWaiter will use default minimum delay of 5 seconds. Note that
- // MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, SecurityGroupExistsWaiter will use default max delay of 120
- // seconds. Note that MaxDelay must resolve to value greater than or equal to the
- // MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeSecurityGroupsInput, *DescribeSecurityGroupsOutput, error) (bool, error)
-}
-
-// SecurityGroupExistsWaiter defines the waiters for SecurityGroupExists
-type SecurityGroupExistsWaiter struct {
- client DescribeSecurityGroupsAPIClient
-
- options SecurityGroupExistsWaiterOptions
-}
-
-// NewSecurityGroupExistsWaiter constructs a SecurityGroupExistsWaiter.
-func NewSecurityGroupExistsWaiter(client DescribeSecurityGroupsAPIClient, optFns ...func(*SecurityGroupExistsWaiterOptions)) *SecurityGroupExistsWaiter {
- options := SecurityGroupExistsWaiterOptions{}
- options.MinDelay = 5 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = securityGroupExistsStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &SecurityGroupExistsWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for SecurityGroupExists waiter. The maxWaitDur
-// is the maximum wait duration the waiter will wait. The maxWaitDur is required
-// and must be greater than zero.
-func (w *SecurityGroupExistsWaiter) Wait(ctx context.Context, params *DescribeSecurityGroupsInput, maxWaitDur time.Duration, optFns ...func(*SecurityGroupExistsWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for SecurityGroupExists waiter and
-// returns the output of the successful operation. The maxWaitDur is the maximum
-// wait duration the waiter will wait. The maxWaitDur is required and must be
-// greater than zero.
-func (w *SecurityGroupExistsWaiter) WaitForOutput(ctx context.Context, params *DescribeSecurityGroupsInput, maxWaitDur time.Duration, optFns ...func(*SecurityGroupExistsWaiterOptions)) (*DescribeSecurityGroupsOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeSecurityGroups(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for SecurityGroupExists waiter")
-}
-
-func securityGroupExistsStateRetryable(ctx context.Context, input *DescribeSecurityGroupsInput, output *DescribeSecurityGroupsOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.SecurityGroups
- var v2 []string
- for _, v := range v1 {
- v3 := v.GroupId
- if v3 != nil {
- v2 = append(v2, *v3)
- }
- }
- v4 := len(v2)
- v5 := 0
- v6 := int64(v4) > int64(v5)
- expectedValue := "true"
- bv, err := strconv.ParseBool(expectedValue)
- if err != nil {
- return false, fmt.Errorf("error parsing boolean from string %w", err)
- }
- if v6 == bv {
- return false, nil
- }
- }
-
- if err != nil {
- var apiErr smithy.APIError
- ok := errors.As(err, &apiErr)
- if !ok {
- return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err)
- }
-
- if "InvalidGroup.NotFound" == apiErr.ErrorCode() {
- return true, nil
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// DescribeSecurityGroupsPaginatorOptions is the paginator options for
-// DescribeSecurityGroups
-type DescribeSecurityGroupsPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. This value
- // can be between 5 and 1000. If this parameter is not specified, then all items
- // are returned. For more information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeSecurityGroupsPaginator is a paginator for DescribeSecurityGroups
-type DescribeSecurityGroupsPaginator struct {
- options DescribeSecurityGroupsPaginatorOptions
- client DescribeSecurityGroupsAPIClient
- params *DescribeSecurityGroupsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeSecurityGroupsPaginator returns a new DescribeSecurityGroupsPaginator
-func NewDescribeSecurityGroupsPaginator(client DescribeSecurityGroupsAPIClient, params *DescribeSecurityGroupsInput, optFns ...func(*DescribeSecurityGroupsPaginatorOptions)) *DescribeSecurityGroupsPaginator {
- if params == nil {
- params = &DescribeSecurityGroupsInput{}
- }
-
- options := DescribeSecurityGroupsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeSecurityGroupsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeSecurityGroupsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeSecurityGroups page.
-func (p *DescribeSecurityGroupsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeSecurityGroupsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeSecurityGroups(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeSecurityGroupsAPIClient is a client that implements the
-// DescribeSecurityGroups operation.
-type DescribeSecurityGroupsAPIClient interface {
- DescribeSecurityGroups(context.Context, *DescribeSecurityGroupsInput, ...func(*Options)) (*DescribeSecurityGroupsOutput, error)
-}
-
-var _ DescribeSecurityGroupsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeSecurityGroups(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeSecurityGroups",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeServiceLinkVirtualInterfaces.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeServiceLinkVirtualInterfaces.go
deleted file mode 100644
index 5c7bd7a46..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeServiceLinkVirtualInterfaces.go
+++ /dev/null
@@ -1,193 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the Outpost service link virtual interfaces.
-func (c *Client) DescribeServiceLinkVirtualInterfaces(ctx context.Context, params *DescribeServiceLinkVirtualInterfacesInput, optFns ...func(*Options)) (*DescribeServiceLinkVirtualInterfacesOutput, error) {
- if params == nil {
- params = &DescribeServiceLinkVirtualInterfacesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeServiceLinkVirtualInterfaces", params, optFns, c.addOperationDescribeServiceLinkVirtualInterfacesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeServiceLinkVirtualInterfacesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeServiceLinkVirtualInterfacesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters to use for narrowing down the request. The following filters are
- // supported:
- //
- // - outpost-lag-id - The ID of the Outpost LAG.
- //
- // - outpost-arn - The Outpost ARN.
- //
- // - owner-id - The ID of the Amazon Web Services account that owns the service
- // link virtual interface.
- //
- // - state - The state of the Outpost LAG.
- //
- // - vlan - The ID of the address pool.
- //
- // - service-link-virtual-interface-id - The ID of the service link virtual
- // interface.
- //
- // - local-gateway-virtual-interface-id - The ID of the local gateway virtual
- // interface.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The IDs of the service link virtual interfaces.
- ServiceLinkVirtualInterfaceIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeServiceLinkVirtualInterfacesOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Describes the service link virtual interfaces.
- ServiceLinkVirtualInterfaces []types.ServiceLinkVirtualInterface
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeServiceLinkVirtualInterfacesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeServiceLinkVirtualInterfaces{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeServiceLinkVirtualInterfaces{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeServiceLinkVirtualInterfaces"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeServiceLinkVirtualInterfaces(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeServiceLinkVirtualInterfaces(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeServiceLinkVirtualInterfaces",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSnapshotAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSnapshotAttribute.go
deleted file mode 100644
index c602e5ee9..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSnapshotAttribute.go
+++ /dev/null
@@ -1,183 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified attribute of the specified snapshot. You can specify
-// only one attribute at a time.
-//
-// For more information about EBS snapshots, see [Amazon EBS snapshots] in the Amazon EBS User Guide.
-//
-// [Amazon EBS snapshots]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-snapshots.html
-func (c *Client) DescribeSnapshotAttribute(ctx context.Context, params *DescribeSnapshotAttributeInput, optFns ...func(*Options)) (*DescribeSnapshotAttributeOutput, error) {
- if params == nil {
- params = &DescribeSnapshotAttributeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeSnapshotAttribute", params, optFns, c.addOperationDescribeSnapshotAttributeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeSnapshotAttributeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeSnapshotAttributeInput struct {
-
- // The snapshot attribute you would like to view.
- //
- // This member is required.
- Attribute types.SnapshotAttributeName
-
- // The ID of the EBS snapshot.
- //
- // This member is required.
- SnapshotId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DescribeSnapshotAttributeOutput struct {
-
- // The users and groups that have the permissions for creating volumes from the
- // snapshot.
- CreateVolumePermissions []types.CreateVolumePermission
-
- // The product codes.
- ProductCodes []types.ProductCode
-
- // The ID of the EBS snapshot.
- SnapshotId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeSnapshotAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSnapshotAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeSnapshotAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeSnapshotAttribute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDescribeSnapshotAttributeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeSnapshotAttribute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeSnapshotAttribute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeSnapshotAttribute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSnapshotTierStatus.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSnapshotTierStatus.go
deleted file mode 100644
index 01e185f0f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSnapshotTierStatus.go
+++ /dev/null
@@ -1,286 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the storage tier status of one or more Amazon EBS snapshots.
-func (c *Client) DescribeSnapshotTierStatus(ctx context.Context, params *DescribeSnapshotTierStatusInput, optFns ...func(*Options)) (*DescribeSnapshotTierStatusOutput, error) {
- if params == nil {
- params = &DescribeSnapshotTierStatusInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeSnapshotTierStatus", params, optFns, c.addOperationDescribeSnapshotTierStatusMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeSnapshotTierStatusOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeSnapshotTierStatusInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - snapshot-id - The snapshot ID.
- //
- // - volume-id - The ID of the volume the snapshot is for.
- //
- // - last-tiering-operation - The state of the last archive or restore action. (
- // archival-in-progress | archival-completed | archival-failed |
- // permanent-restore-in-progress | permanent-restore-completed |
- // permanent-restore-failed | temporary-restore-in-progress |
- // temporary-restore-completed | temporary-restore-failed )
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeSnapshotTierStatusOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Information about the snapshot's storage tier.
- SnapshotTierStatuses []types.SnapshotTierStatus
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeSnapshotTierStatusMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSnapshotTierStatus{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeSnapshotTierStatus{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeSnapshotTierStatus"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeSnapshotTierStatus(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeSnapshotTierStatusPaginatorOptions is the paginator options for
-// DescribeSnapshotTierStatus
-type DescribeSnapshotTierStatusPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeSnapshotTierStatusPaginator is a paginator for
-// DescribeSnapshotTierStatus
-type DescribeSnapshotTierStatusPaginator struct {
- options DescribeSnapshotTierStatusPaginatorOptions
- client DescribeSnapshotTierStatusAPIClient
- params *DescribeSnapshotTierStatusInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeSnapshotTierStatusPaginator returns a new
-// DescribeSnapshotTierStatusPaginator
-func NewDescribeSnapshotTierStatusPaginator(client DescribeSnapshotTierStatusAPIClient, params *DescribeSnapshotTierStatusInput, optFns ...func(*DescribeSnapshotTierStatusPaginatorOptions)) *DescribeSnapshotTierStatusPaginator {
- if params == nil {
- params = &DescribeSnapshotTierStatusInput{}
- }
-
- options := DescribeSnapshotTierStatusPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeSnapshotTierStatusPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeSnapshotTierStatusPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeSnapshotTierStatus page.
-func (p *DescribeSnapshotTierStatusPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeSnapshotTierStatusOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeSnapshotTierStatus(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeSnapshotTierStatusAPIClient is a client that implements the
-// DescribeSnapshotTierStatus operation.
-type DescribeSnapshotTierStatusAPIClient interface {
- DescribeSnapshotTierStatus(context.Context, *DescribeSnapshotTierStatusInput, ...func(*Options)) (*DescribeSnapshotTierStatusOutput, error)
-}
-
-var _ DescribeSnapshotTierStatusAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeSnapshotTierStatus(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeSnapshotTierStatus",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSnapshots.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSnapshots.go
deleted file mode 100644
index 7616f534c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSnapshots.go
+++ /dev/null
@@ -1,584 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithytime "github.com/aws/smithy-go/time"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- smithywaiter "github.com/aws/smithy-go/waiter"
- "time"
-)
-
-// Describes the specified EBS snapshots available to you or all of the EBS
-// snapshots available to you.
-//
-// The snapshots available to you include public snapshots, private snapshots that
-// you own, and private snapshots owned by other Amazon Web Services accounts for
-// which you have explicit create volume permissions.
-//
-// The create volume permissions fall into the following categories:
-//
-// - public: The owner of the snapshot granted create volume permissions for the
-// snapshot to the all group. All Amazon Web Services accounts have create volume
-// permissions for these snapshots.
-//
-// - explicit: The owner of the snapshot granted create volume permissions to a
-// specific Amazon Web Services account.
-//
-// - implicit: An Amazon Web Services account has implicit create volume
-// permissions for all snapshots it owns.
-//
-// The list of snapshots returned can be filtered by specifying snapshot IDs,
-// snapshot owners, or Amazon Web Services accounts with create volume permissions.
-// If no options are specified, Amazon EC2 returns all snapshots for which you have
-// create volume permissions.
-//
-// If you specify one or more snapshot IDs, only snapshots that have the specified
-// IDs are returned. If you specify an invalid snapshot ID, an error is returned.
-// If you specify a snapshot ID for which you do not have access, it is not
-// included in the returned results.
-//
-// If you specify one or more snapshot owners using the OwnerIds option, only
-// snapshots from the specified owners and for which you have access are returned.
-// The results can include the Amazon Web Services account IDs of the specified
-// owners, amazon for snapshots owned by Amazon, or self for snapshots that you
-// own.
-//
-// If you specify a list of restorable users, only snapshots with create snapshot
-// permissions for those users are returned. You can specify Amazon Web Services
-// account IDs (if you own the snapshots), self for snapshots for which you own or
-// have explicit permissions, or all for public snapshots.
-//
-// If you are describing a long list of snapshots, we recommend that you paginate
-// the output to make the list more manageable. For more information, see [Pagination].
-//
-// To get the state of fast snapshot restores for a snapshot, use DescribeFastSnapshotRestores.
-//
-// For more information about EBS snapshots, see [Amazon EBS snapshots] in the Amazon EBS User Guide.
-//
-// We strongly recommend using only paginated requests. Unpaginated requests are
-// susceptible to throttling and timeouts.
-//
-// [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
-// [Amazon EBS snapshots]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-snapshots.html
-func (c *Client) DescribeSnapshots(ctx context.Context, params *DescribeSnapshotsInput, optFns ...func(*Options)) (*DescribeSnapshotsOutput, error) {
- if params == nil {
- params = &DescribeSnapshotsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeSnapshots", params, optFns, c.addOperationDescribeSnapshotsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeSnapshotsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeSnapshotsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - description - A description of the snapshot.
- //
- // - encrypted - Indicates whether the snapshot is encrypted ( true | false )
- //
- // - owner-alias - The owner alias, from an Amazon-maintained list ( amazon ).
- // This is not the user-configured Amazon Web Services account alias set using the
- // IAM console. We recommend that you use the related parameter instead of this
- // filter.
- //
- // - owner-id - The Amazon Web Services account ID of the owner. We recommend
- // that you use the related parameter instead of this filter.
- //
- // - progress - The progress of the snapshot, as a percentage (for example, 80%).
- //
- // - snapshot-id - The snapshot ID.
- //
- // - start-time - The time stamp when the snapshot was initiated.
- //
- // - status - The status of the snapshot ( pending | completed | error ).
- //
- // - storage-tier - The storage tier of the snapshot ( archive | standard ).
- //
- // - transfer-type - The type of operation used to create the snapshot (
- // time-based | standard ).
- //
- // - tag : - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- //
- // - volume-id - The ID of the volume the snapshot is for.
- //
- // - volume-size - The size of the volume, in GiB.
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- // Scopes the results to snapshots with the specified owners. You can specify a
- // combination of Amazon Web Services account IDs, self , and amazon .
- OwnerIds []string
-
- // The IDs of the Amazon Web Services accounts that can create volumes from the
- // snapshot.
- RestorableByUserIds []string
-
- // The snapshot IDs.
- //
- // Default: Describes the snapshots for which you have create volume permissions.
- SnapshotIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeSnapshotsOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Information about the snapshots.
- Snapshots []types.Snapshot
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeSnapshotsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSnapshots{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeSnapshots{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeSnapshots"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeSnapshots(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// SnapshotCompletedWaiterOptions are waiter options for SnapshotCompletedWaiter
-type SnapshotCompletedWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // SnapshotCompletedWaiter will use default minimum delay of 15 seconds. Note that
- // MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, SnapshotCompletedWaiter will use default max delay of 120 seconds.
- // Note that MaxDelay must resolve to value greater than or equal to the MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeSnapshotsInput, *DescribeSnapshotsOutput, error) (bool, error)
-}
-
-// SnapshotCompletedWaiter defines the waiters for SnapshotCompleted
-type SnapshotCompletedWaiter struct {
- client DescribeSnapshotsAPIClient
-
- options SnapshotCompletedWaiterOptions
-}
-
-// NewSnapshotCompletedWaiter constructs a SnapshotCompletedWaiter.
-func NewSnapshotCompletedWaiter(client DescribeSnapshotsAPIClient, optFns ...func(*SnapshotCompletedWaiterOptions)) *SnapshotCompletedWaiter {
- options := SnapshotCompletedWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = snapshotCompletedStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &SnapshotCompletedWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for SnapshotCompleted waiter. The maxWaitDur is
-// the maximum wait duration the waiter will wait. The maxWaitDur is required and
-// must be greater than zero.
-func (w *SnapshotCompletedWaiter) Wait(ctx context.Context, params *DescribeSnapshotsInput, maxWaitDur time.Duration, optFns ...func(*SnapshotCompletedWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for SnapshotCompleted waiter and
-// returns the output of the successful operation. The maxWaitDur is the maximum
-// wait duration the waiter will wait. The maxWaitDur is required and must be
-// greater than zero.
-func (w *SnapshotCompletedWaiter) WaitForOutput(ctx context.Context, params *DescribeSnapshotsInput, maxWaitDur time.Duration, optFns ...func(*SnapshotCompletedWaiterOptions)) (*DescribeSnapshotsOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeSnapshots(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for SnapshotCompleted waiter")
-}
-
-func snapshotCompletedStateRetryable(ctx context.Context, input *DescribeSnapshotsInput, output *DescribeSnapshotsOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.Snapshots
- var v2 []types.SnapshotState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "completed"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err == nil {
- v1 := output.Snapshots
- var v2 []types.SnapshotState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "error"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// DescribeSnapshotsPaginatorOptions is the paginator options for DescribeSnapshots
-type DescribeSnapshotsPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeSnapshotsPaginator is a paginator for DescribeSnapshots
-type DescribeSnapshotsPaginator struct {
- options DescribeSnapshotsPaginatorOptions
- client DescribeSnapshotsAPIClient
- params *DescribeSnapshotsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeSnapshotsPaginator returns a new DescribeSnapshotsPaginator
-func NewDescribeSnapshotsPaginator(client DescribeSnapshotsAPIClient, params *DescribeSnapshotsInput, optFns ...func(*DescribeSnapshotsPaginatorOptions)) *DescribeSnapshotsPaginator {
- if params == nil {
- params = &DescribeSnapshotsInput{}
- }
-
- options := DescribeSnapshotsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeSnapshotsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeSnapshotsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeSnapshots page.
-func (p *DescribeSnapshotsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeSnapshotsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeSnapshots(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeSnapshotsAPIClient is a client that implements the DescribeSnapshots
-// operation.
-type DescribeSnapshotsAPIClient interface {
- DescribeSnapshots(context.Context, *DescribeSnapshotsInput, ...func(*Options)) (*DescribeSnapshotsOutput, error)
-}
-
-var _ DescribeSnapshotsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeSnapshots(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeSnapshots",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotDatafeedSubscription.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotDatafeedSubscription.go
deleted file mode 100644
index 67132b123..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotDatafeedSubscription.go
+++ /dev/null
@@ -1,163 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the data feed for Spot Instances. For more information, see [Spot Instance data feed] in the
-// Amazon EC2 User Guide.
-//
-// [Spot Instance data feed]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html
-func (c *Client) DescribeSpotDatafeedSubscription(ctx context.Context, params *DescribeSpotDatafeedSubscriptionInput, optFns ...func(*Options)) (*DescribeSpotDatafeedSubscriptionOutput, error) {
- if params == nil {
- params = &DescribeSpotDatafeedSubscriptionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeSpotDatafeedSubscription", params, optFns, c.addOperationDescribeSpotDatafeedSubscriptionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeSpotDatafeedSubscriptionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DescribeSpotDatafeedSubscription.
-type DescribeSpotDatafeedSubscriptionInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of DescribeSpotDatafeedSubscription.
-type DescribeSpotDatafeedSubscriptionOutput struct {
-
- // The Spot Instance data feed subscription.
- SpotDatafeedSubscription *types.SpotDatafeedSubscription
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeSpotDatafeedSubscriptionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSpotDatafeedSubscription{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeSpotDatafeedSubscription{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeSpotDatafeedSubscription"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeSpotDatafeedSubscription(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeSpotDatafeedSubscription(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeSpotDatafeedSubscription",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetInstances.go
deleted file mode 100644
index 35e558b2a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetInstances.go
+++ /dev/null
@@ -1,187 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the running instances for the specified Spot Fleet.
-func (c *Client) DescribeSpotFleetInstances(ctx context.Context, params *DescribeSpotFleetInstancesInput, optFns ...func(*Options)) (*DescribeSpotFleetInstancesOutput, error) {
- if params == nil {
- params = &DescribeSpotFleetInstancesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeSpotFleetInstances", params, optFns, c.addOperationDescribeSpotFleetInstancesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeSpotFleetInstancesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DescribeSpotFleetInstances.
-type DescribeSpotFleetInstancesInput struct {
-
- // The ID of the Spot Fleet request.
- //
- // This member is required.
- SpotFleetRequestId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of DescribeSpotFleetInstances.
-type DescribeSpotFleetInstancesOutput struct {
-
- // The running instances. This list is refreshed periodically and might be out of
- // date.
- ActiveInstances []types.ActiveInstance
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // The ID of the Spot Fleet request.
- SpotFleetRequestId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeSpotFleetInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSpotFleetInstances{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeSpotFleetInstances{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeSpotFleetInstances"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDescribeSpotFleetInstancesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeSpotFleetInstances(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeSpotFleetInstances(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeSpotFleetInstances",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetRequestHistory.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetRequestHistory.go
deleted file mode 100644
index 8a72bb8b2..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetRequestHistory.go
+++ /dev/null
@@ -1,215 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Describes the events for the specified Spot Fleet request during the specified
-// time.
-//
-// Spot Fleet events are delayed by up to 30 seconds before they can be described.
-// This ensures that you can query by the last evaluated time and not miss a
-// recorded event. Spot Fleet events are available for 48 hours.
-//
-// For more information, see [Monitor fleet events using Amazon EventBridge] in the Amazon EC2 User Guide.
-//
-// [Monitor fleet events using Amazon EventBridge]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/fleet-monitor.html
-func (c *Client) DescribeSpotFleetRequestHistory(ctx context.Context, params *DescribeSpotFleetRequestHistoryInput, optFns ...func(*Options)) (*DescribeSpotFleetRequestHistoryOutput, error) {
- if params == nil {
- params = &DescribeSpotFleetRequestHistoryInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeSpotFleetRequestHistory", params, optFns, c.addOperationDescribeSpotFleetRequestHistoryMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeSpotFleetRequestHistoryOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DescribeSpotFleetRequestHistory.
-type DescribeSpotFleetRequestHistoryInput struct {
-
- // The ID of the Spot Fleet request.
- //
- // This member is required.
- SpotFleetRequestId *string
-
- // The starting date and time for the events, in UTC format (for example,
- // YYYY-MM-DDTHH:MM:SSZ).
- //
- // This member is required.
- StartTime *time.Time
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The type of events to describe. By default, all events are described.
- EventType types.EventType
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of DescribeSpotFleetRequestHistory.
-type DescribeSpotFleetRequestHistoryOutput struct {
-
- // Information about the events in the history of the Spot Fleet request.
- HistoryRecords []types.HistoryRecord
-
- // The last date and time for the events, in UTC format (for example,
- // YYYY-MM-DDTHH:MM:SSZ). All records up to this time were retrieved.
- //
- // If nextToken indicates that there are more items, this value is not present.
- LastEvaluatedTime *time.Time
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // The ID of the Spot Fleet request.
- SpotFleetRequestId *string
-
- // The starting date and time for the events, in UTC format (for example,
- // YYYY-MM-DDTHH:MM:SSZ).
- StartTime *time.Time
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeSpotFleetRequestHistoryMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSpotFleetRequestHistory{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeSpotFleetRequestHistory{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeSpotFleetRequestHistory"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDescribeSpotFleetRequestHistoryValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeSpotFleetRequestHistory(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeSpotFleetRequestHistory(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeSpotFleetRequestHistory",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetRequests.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetRequests.go
deleted file mode 100644
index b97954c79..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetRequests.go
+++ /dev/null
@@ -1,280 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes your Spot Fleet requests.
-//
-// Spot Fleet requests are deleted 48 hours after they are canceled and their
-// instances are terminated.
-func (c *Client) DescribeSpotFleetRequests(ctx context.Context, params *DescribeSpotFleetRequestsInput, optFns ...func(*Options)) (*DescribeSpotFleetRequestsOutput, error) {
- if params == nil {
- params = &DescribeSpotFleetRequestsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeSpotFleetRequests", params, optFns, c.addOperationDescribeSpotFleetRequestsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeSpotFleetRequestsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DescribeSpotFleetRequests.
-type DescribeSpotFleetRequestsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // The IDs of the Spot Fleet requests.
- SpotFleetRequestIds []string
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of DescribeSpotFleetRequests.
-type DescribeSpotFleetRequestsOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Information about the configuration of your Spot Fleet.
- SpotFleetRequestConfigs []types.SpotFleetRequestConfig
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeSpotFleetRequestsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSpotFleetRequests{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeSpotFleetRequests{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeSpotFleetRequests"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeSpotFleetRequests(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeSpotFleetRequestsPaginatorOptions is the paginator options for
-// DescribeSpotFleetRequests
-type DescribeSpotFleetRequestsPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeSpotFleetRequestsPaginator is a paginator for DescribeSpotFleetRequests
-type DescribeSpotFleetRequestsPaginator struct {
- options DescribeSpotFleetRequestsPaginatorOptions
- client DescribeSpotFleetRequestsAPIClient
- params *DescribeSpotFleetRequestsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeSpotFleetRequestsPaginator returns a new
-// DescribeSpotFleetRequestsPaginator
-func NewDescribeSpotFleetRequestsPaginator(client DescribeSpotFleetRequestsAPIClient, params *DescribeSpotFleetRequestsInput, optFns ...func(*DescribeSpotFleetRequestsPaginatorOptions)) *DescribeSpotFleetRequestsPaginator {
- if params == nil {
- params = &DescribeSpotFleetRequestsInput{}
- }
-
- options := DescribeSpotFleetRequestsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeSpotFleetRequestsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeSpotFleetRequestsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeSpotFleetRequests page.
-func (p *DescribeSpotFleetRequestsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeSpotFleetRequestsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeSpotFleetRequests(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeSpotFleetRequestsAPIClient is a client that implements the
-// DescribeSpotFleetRequests operation.
-type DescribeSpotFleetRequestsAPIClient interface {
- DescribeSpotFleetRequests(context.Context, *DescribeSpotFleetRequestsInput, ...func(*Options)) (*DescribeSpotFleetRequestsOutput, error)
-}
-
-var _ DescribeSpotFleetRequestsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeSpotFleetRequests(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeSpotFleetRequests",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotInstanceRequests.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotInstanceRequests.go
deleted file mode 100644
index 01c017919..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotInstanceRequests.go
+++ /dev/null
@@ -1,756 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "errors"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- smithy "github.com/aws/smithy-go"
- "github.com/aws/smithy-go/middleware"
- smithytime "github.com/aws/smithy-go/time"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- smithywaiter "github.com/aws/smithy-go/waiter"
- "time"
-)
-
-// Describes the specified Spot Instance requests.
-//
-// You can use DescribeSpotInstanceRequests to find a running Spot Instance by
-// examining the response. If the status of the Spot Instance is fulfilled , the
-// instance ID appears in the response and contains the identifier of the instance.
-// Alternatively, you can use [DescribeInstances]with a filter to look for instances where the
-// instance lifecycle is spot .
-//
-// We recommend that you set MaxResults to a value between 5 and 1000 to limit the
-// number of items returned. This paginates the output, which makes the list more
-// manageable and returns the items faster. If the list of items exceeds your
-// MaxResults value, then that number of items is returned along with a NextToken
-// value that can be passed to a subsequent DescribeSpotInstanceRequests request
-// to retrieve the remaining items.
-//
-// Spot Instance requests are deleted four hours after they are canceled and their
-// instances are terminated.
-//
-// [DescribeInstances]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances
-func (c *Client) DescribeSpotInstanceRequests(ctx context.Context, params *DescribeSpotInstanceRequestsInput, optFns ...func(*Options)) (*DescribeSpotInstanceRequestsOutput, error) {
- if params == nil {
- params = &DescribeSpotInstanceRequestsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeSpotInstanceRequests", params, optFns, c.addOperationDescribeSpotInstanceRequestsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeSpotInstanceRequestsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DescribeSpotInstanceRequests.
-type DescribeSpotInstanceRequestsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - availability-zone-group - The Availability Zone group.
- //
- // - create-time - The time stamp when the Spot Instance request was created.
- //
- // - fault-code - The fault code related to the request.
- //
- // - fault-message - The fault message related to the request.
- //
- // - instance-id - The ID of the instance that fulfilled the request.
- //
- // - launch-group - The Spot Instance launch group.
- //
- // - launch.block-device-mapping.delete-on-termination - Indicates whether the
- // EBS volume is deleted on instance termination.
- //
- // - launch.block-device-mapping.device-name - The device name for the volume in
- // the block device mapping (for example, /dev/sdh or xvdh ).
- //
- // - launch.block-device-mapping.snapshot-id - The ID of the snapshot for the EBS
- // volume.
- //
- // - launch.block-device-mapping.volume-size - The size of the EBS volume, in GiB.
- //
- // - launch.block-device-mapping.volume-type - The type of EBS volume: gp2 or gp3
- // for General Purpose SSD, io1 or io2 for Provisioned IOPS SSD, st1 for
- // Throughput Optimized HDD, sc1 for Cold HDD, or standard for Magnetic.
- //
- // - launch.group-id - The ID of the security group for the instance.
- //
- // - launch.group-name - The name of the security group for the instance.
- //
- // - launch.image-id - The ID of the AMI.
- //
- // - launch.instance-type - The type of instance (for example, m3.medium ).
- //
- // - launch.kernel-id - The kernel ID.
- //
- // - launch.key-name - The name of the key pair the instance launched with.
- //
- // - launch.monitoring-enabled - Whether detailed monitoring is enabled for the
- // Spot Instance.
- //
- // - launch.ramdisk-id - The RAM disk ID.
- //
- // - launched-availability-zone - The Availability Zone in which the request is
- // launched.
- //
- // - network-interface.addresses.primary - Indicates whether the IP address is
- // the primary private IP address.
- //
- // - network-interface.delete-on-termination - Indicates whether the network
- // interface is deleted when the instance is terminated.
- //
- // - network-interface.description - A description of the network interface.
- //
- // - network-interface.device-index - The index of the device for the network
- // interface attachment on the instance.
- //
- // - network-interface.group-id - The ID of the security group associated with
- // the network interface.
- //
- // - network-interface.network-interface-id - The ID of the network interface.
- //
- // - network-interface.private-ip-address - The primary private IP address of the
- // network interface.
- //
- // - network-interface.subnet-id - The ID of the subnet for the instance.
- //
- // - product-description - The product description associated with the instance (
- // Linux/UNIX | Windows ).
- //
- // - spot-instance-request-id - The Spot Instance request ID.
- //
- // - spot-price - The maximum hourly price for any Spot Instance launched to
- // fulfill the request.
- //
- // - state - The state of the Spot Instance request ( open | active | closed |
- // cancelled | failed ). Spot request status information can help you track your
- // Amazon EC2 Spot Instance requests. For more information, see [Spot request status]in the Amazon
- // EC2 User Guide.
- //
- // - status-code - The short code describing the most recent evaluation of your
- // Spot Instance request.
- //
- // - status-message - The message explaining the status of the Spot Instance
- // request.
- //
- // - tag: - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- //
- // - type - The type of Spot Instance request ( one-time | persistent ).
- //
- // - valid-from - The start date of the request.
- //
- // - valid-until - The end date of the request.
- //
- // [Spot request status]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- // The IDs of the Spot Instance requests.
- SpotInstanceRequestIds []string
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of DescribeSpotInstanceRequests.
-type DescribeSpotInstanceRequestsOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // The Spot Instance requests.
- SpotInstanceRequests []types.SpotInstanceRequest
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeSpotInstanceRequestsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSpotInstanceRequests{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeSpotInstanceRequests{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeSpotInstanceRequests"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeSpotInstanceRequests(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// SpotInstanceRequestFulfilledWaiterOptions are waiter options for
-// SpotInstanceRequestFulfilledWaiter
-type SpotInstanceRequestFulfilledWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // SpotInstanceRequestFulfilledWaiter will use default minimum delay of 15 seconds.
- // Note that MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, SpotInstanceRequestFulfilledWaiter will use default max delay of
- // 120 seconds. Note that MaxDelay must resolve to value greater than or equal to
- // the MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeSpotInstanceRequestsInput, *DescribeSpotInstanceRequestsOutput, error) (bool, error)
-}
-
-// SpotInstanceRequestFulfilledWaiter defines the waiters for
-// SpotInstanceRequestFulfilled
-type SpotInstanceRequestFulfilledWaiter struct {
- client DescribeSpotInstanceRequestsAPIClient
-
- options SpotInstanceRequestFulfilledWaiterOptions
-}
-
-// NewSpotInstanceRequestFulfilledWaiter constructs a
-// SpotInstanceRequestFulfilledWaiter.
-func NewSpotInstanceRequestFulfilledWaiter(client DescribeSpotInstanceRequestsAPIClient, optFns ...func(*SpotInstanceRequestFulfilledWaiterOptions)) *SpotInstanceRequestFulfilledWaiter {
- options := SpotInstanceRequestFulfilledWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = spotInstanceRequestFulfilledStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &SpotInstanceRequestFulfilledWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for SpotInstanceRequestFulfilled waiter. The
-// maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is
-// required and must be greater than zero.
-func (w *SpotInstanceRequestFulfilledWaiter) Wait(ctx context.Context, params *DescribeSpotInstanceRequestsInput, maxWaitDur time.Duration, optFns ...func(*SpotInstanceRequestFulfilledWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for SpotInstanceRequestFulfilled waiter
-// and returns the output of the successful operation. The maxWaitDur is the
-// maximum wait duration the waiter will wait. The maxWaitDur is required and must
-// be greater than zero.
-func (w *SpotInstanceRequestFulfilledWaiter) WaitForOutput(ctx context.Context, params *DescribeSpotInstanceRequestsInput, maxWaitDur time.Duration, optFns ...func(*SpotInstanceRequestFulfilledWaiterOptions)) (*DescribeSpotInstanceRequestsOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeSpotInstanceRequests(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for SpotInstanceRequestFulfilled waiter")
-}
-
-func spotInstanceRequestFulfilledStateRetryable(ctx context.Context, input *DescribeSpotInstanceRequestsInput, output *DescribeSpotInstanceRequestsOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.SpotInstanceRequests
- var v2 []string
- for _, v := range v1 {
- v3 := v.Status
- var v4 *string
- if v3 != nil {
- v5 := v3.Code
- v4 = v5
- }
- if v4 != nil {
- v2 = append(v2, *v4)
- }
- }
- expectedValue := "fulfilled"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err == nil {
- v1 := output.SpotInstanceRequests
- var v2 []string
- for _, v := range v1 {
- v3 := v.Status
- var v4 *string
- if v3 != nil {
- v5 := v3.Code
- v4 = v5
- }
- if v4 != nil {
- v2 = append(v2, *v4)
- }
- }
- expectedValue := "request-canceled-and-instance-running"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err == nil {
- v1 := output.SpotInstanceRequests
- var v2 []string
- for _, v := range v1 {
- v3 := v.Status
- var v4 *string
- if v3 != nil {
- v5 := v3.Code
- v4 = v5
- }
- if v4 != nil {
- v2 = append(v2, *v4)
- }
- }
- expectedValue := "schedule-expired"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err == nil {
- v1 := output.SpotInstanceRequests
- var v2 []string
- for _, v := range v1 {
- v3 := v.Status
- var v4 *string
- if v3 != nil {
- v5 := v3.Code
- v4 = v5
- }
- if v4 != nil {
- v2 = append(v2, *v4)
- }
- }
- expectedValue := "canceled-before-fulfillment"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err == nil {
- v1 := output.SpotInstanceRequests
- var v2 []string
- for _, v := range v1 {
- v3 := v.Status
- var v4 *string
- if v3 != nil {
- v5 := v3.Code
- v4 = v5
- }
- if v4 != nil {
- v2 = append(v2, *v4)
- }
- }
- expectedValue := "bad-parameters"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err == nil {
- v1 := output.SpotInstanceRequests
- var v2 []string
- for _, v := range v1 {
- v3 := v.Status
- var v4 *string
- if v3 != nil {
- v5 := v3.Code
- v4 = v5
- }
- if v4 != nil {
- v2 = append(v2, *v4)
- }
- }
- expectedValue := "system-error"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err != nil {
- var apiErr smithy.APIError
- ok := errors.As(err, &apiErr)
- if !ok {
- return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err)
- }
-
- if "InvalidSpotInstanceRequestID.NotFound" == apiErr.ErrorCode() {
- return true, nil
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// DescribeSpotInstanceRequestsPaginatorOptions is the paginator options for
-// DescribeSpotInstanceRequests
-type DescribeSpotInstanceRequestsPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeSpotInstanceRequestsPaginator is a paginator for
-// DescribeSpotInstanceRequests
-type DescribeSpotInstanceRequestsPaginator struct {
- options DescribeSpotInstanceRequestsPaginatorOptions
- client DescribeSpotInstanceRequestsAPIClient
- params *DescribeSpotInstanceRequestsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeSpotInstanceRequestsPaginator returns a new
-// DescribeSpotInstanceRequestsPaginator
-func NewDescribeSpotInstanceRequestsPaginator(client DescribeSpotInstanceRequestsAPIClient, params *DescribeSpotInstanceRequestsInput, optFns ...func(*DescribeSpotInstanceRequestsPaginatorOptions)) *DescribeSpotInstanceRequestsPaginator {
- if params == nil {
- params = &DescribeSpotInstanceRequestsInput{}
- }
-
- options := DescribeSpotInstanceRequestsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeSpotInstanceRequestsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeSpotInstanceRequestsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeSpotInstanceRequests page.
-func (p *DescribeSpotInstanceRequestsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeSpotInstanceRequestsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeSpotInstanceRequests(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeSpotInstanceRequestsAPIClient is a client that implements the
-// DescribeSpotInstanceRequests operation.
-type DescribeSpotInstanceRequestsAPIClient interface {
- DescribeSpotInstanceRequests(context.Context, *DescribeSpotInstanceRequestsInput, ...func(*Options)) (*DescribeSpotInstanceRequestsOutput, error)
-}
-
-var _ DescribeSpotInstanceRequestsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeSpotInstanceRequests(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeSpotInstanceRequests",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotPriceHistory.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotPriceHistory.go
deleted file mode 100644
index fe8400c64..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotPriceHistory.go
+++ /dev/null
@@ -1,319 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Describes the Spot price history. For more information, see [Spot Instance pricing history] in the Amazon EC2
-// User Guide.
-//
-// When you specify a start and end time, the operation returns the prices of the
-// instance types within that time range. It also returns the last price change
-// before the start time, which is the effective price as of the start time.
-//
-// [Spot Instance pricing history]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances-history.html
-func (c *Client) DescribeSpotPriceHistory(ctx context.Context, params *DescribeSpotPriceHistoryInput, optFns ...func(*Options)) (*DescribeSpotPriceHistoryOutput, error) {
- if params == nil {
- params = &DescribeSpotPriceHistoryInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeSpotPriceHistory", params, optFns, c.addOperationDescribeSpotPriceHistoryMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeSpotPriceHistoryOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DescribeSpotPriceHistory.
-type DescribeSpotPriceHistoryInput struct {
-
- // Filters the results by the specified Availability Zone.
- AvailabilityZone *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The date and time, up to the current date, from which to stop retrieving the
- // price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- EndTime *time.Time
-
- // The filters.
- //
- // - availability-zone - The Availability Zone for which prices should be
- // returned.
- //
- // - instance-type - The type of instance (for example, m3.medium ).
- //
- // - product-description - The product description for the Spot price ( Linux/UNIX
- // | Red Hat Enterprise Linux | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) |
- // Red Hat Enterprise Linux (Amazon VPC) | SUSE Linux (Amazon VPC) | Windows
- // (Amazon VPC) ).
- //
- // - spot-price - The Spot price. The value must match exactly (or use wildcards;
- // greater than or less than comparison is not supported).
- //
- // - timestamp - The time stamp of the Spot price history, in UTC format (for
- // example, ddd MMM dd HH:mm:ss UTC YYYY). You can use wildcards ( * and ? ).
- // Greater than or less than comparison is not supported.
- Filters []types.Filter
-
- // Filters the results by the specified instance types.
- InstanceTypes []types.InstanceType
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- // Filters the results by the specified basic product descriptions.
- ProductDescriptions []string
-
- // The date and time, up to the past 90 days, from which to start retrieving the
- // price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- StartTime *time.Time
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of DescribeSpotPriceHistory.
-type DescribeSpotPriceHistoryOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is an empty string ( "" ) or null when there are no more items to return.
- NextToken *string
-
- // The historical Spot prices.
- SpotPriceHistory []types.SpotPrice
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeSpotPriceHistoryMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSpotPriceHistory{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeSpotPriceHistory{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeSpotPriceHistory"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeSpotPriceHistory(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeSpotPriceHistoryPaginatorOptions is the paginator options for
-// DescribeSpotPriceHistory
-type DescribeSpotPriceHistoryPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeSpotPriceHistoryPaginator is a paginator for DescribeSpotPriceHistory
-type DescribeSpotPriceHistoryPaginator struct {
- options DescribeSpotPriceHistoryPaginatorOptions
- client DescribeSpotPriceHistoryAPIClient
- params *DescribeSpotPriceHistoryInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeSpotPriceHistoryPaginator returns a new
-// DescribeSpotPriceHistoryPaginator
-func NewDescribeSpotPriceHistoryPaginator(client DescribeSpotPriceHistoryAPIClient, params *DescribeSpotPriceHistoryInput, optFns ...func(*DescribeSpotPriceHistoryPaginatorOptions)) *DescribeSpotPriceHistoryPaginator {
- if params == nil {
- params = &DescribeSpotPriceHistoryInput{}
- }
-
- options := DescribeSpotPriceHistoryPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeSpotPriceHistoryPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeSpotPriceHistoryPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeSpotPriceHistory page.
-func (p *DescribeSpotPriceHistoryPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeSpotPriceHistoryOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeSpotPriceHistory(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeSpotPriceHistoryAPIClient is a client that implements the
-// DescribeSpotPriceHistory operation.
-type DescribeSpotPriceHistoryAPIClient interface {
- DescribeSpotPriceHistory(context.Context, *DescribeSpotPriceHistoryInput, ...func(*Options)) (*DescribeSpotPriceHistoryOutput, error)
-}
-
-var _ DescribeSpotPriceHistoryAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeSpotPriceHistory(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeSpotPriceHistory",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeStaleSecurityGroups.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeStaleSecurityGroups.go
deleted file mode 100644
index 20cd68344..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeStaleSecurityGroups.go
+++ /dev/null
@@ -1,289 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the stale security group rules for security groups referenced across
-// a VPC peering connection, transit gateway connection, or with a security group
-// VPC association. Rules are stale when they reference a deleted security group.
-// Rules can also be stale if they reference a security group in a peer VPC for
-// which the VPC peering connection has been deleted, across a transit gateway
-// where the transit gateway has been deleted (or [the transit gateway security group referencing feature]has been disabled), or if a
-// security group VPC association has been disassociated.
-//
-// [the transit gateway security group referencing feature]: https://docs.aws.amazon.com/vpc/latest/tgw/tgw-vpc-attachments.html#vpc-attachment-security
-func (c *Client) DescribeStaleSecurityGroups(ctx context.Context, params *DescribeStaleSecurityGroupsInput, optFns ...func(*Options)) (*DescribeStaleSecurityGroupsOutput, error) {
- if params == nil {
- params = &DescribeStaleSecurityGroupsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeStaleSecurityGroups", params, optFns, c.addOperationDescribeStaleSecurityGroupsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeStaleSecurityGroupsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeStaleSecurityGroupsInput struct {
-
- // The ID of the VPC.
- //
- // This member is required.
- VpcId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeStaleSecurityGroupsOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Information about the stale security groups.
- StaleSecurityGroupSet []types.StaleSecurityGroup
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeStaleSecurityGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeStaleSecurityGroups{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeStaleSecurityGroups{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeStaleSecurityGroups"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDescribeStaleSecurityGroupsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeStaleSecurityGroups(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeStaleSecurityGroupsPaginatorOptions is the paginator options for
-// DescribeStaleSecurityGroups
-type DescribeStaleSecurityGroupsPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeStaleSecurityGroupsPaginator is a paginator for
-// DescribeStaleSecurityGroups
-type DescribeStaleSecurityGroupsPaginator struct {
- options DescribeStaleSecurityGroupsPaginatorOptions
- client DescribeStaleSecurityGroupsAPIClient
- params *DescribeStaleSecurityGroupsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeStaleSecurityGroupsPaginator returns a new
-// DescribeStaleSecurityGroupsPaginator
-func NewDescribeStaleSecurityGroupsPaginator(client DescribeStaleSecurityGroupsAPIClient, params *DescribeStaleSecurityGroupsInput, optFns ...func(*DescribeStaleSecurityGroupsPaginatorOptions)) *DescribeStaleSecurityGroupsPaginator {
- if params == nil {
- params = &DescribeStaleSecurityGroupsInput{}
- }
-
- options := DescribeStaleSecurityGroupsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeStaleSecurityGroupsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeStaleSecurityGroupsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeStaleSecurityGroups page.
-func (p *DescribeStaleSecurityGroupsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeStaleSecurityGroupsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeStaleSecurityGroups(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeStaleSecurityGroupsAPIClient is a client that implements the
-// DescribeStaleSecurityGroups operation.
-type DescribeStaleSecurityGroupsAPIClient interface {
- DescribeStaleSecurityGroups(context.Context, *DescribeStaleSecurityGroupsInput, ...func(*Options)) (*DescribeStaleSecurityGroupsOutput, error)
-}
-
-var _ DescribeStaleSecurityGroupsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeStaleSecurityGroups(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeStaleSecurityGroups",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeStoreImageTasks.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeStoreImageTasks.go
deleted file mode 100644
index c0b00346a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeStoreImageTasks.go
+++ /dev/null
@@ -1,548 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithytime "github.com/aws/smithy-go/time"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- smithywaiter "github.com/aws/smithy-go/waiter"
- "time"
-)
-
-// Describes the progress of the AMI store tasks. You can describe the store tasks
-// for specified AMIs. If you don't specify the AMIs, you get a paginated list of
-// store tasks from the last 31 days.
-//
-// For each AMI task, the response indicates if the task is InProgress , Completed
-// , or Failed . For tasks InProgress , the response shows the estimated progress
-// as a percentage.
-//
-// Tasks are listed in reverse chronological order. Currently, only tasks from the
-// past 31 days can be viewed.
-//
-// To use this API, you must have the required permissions. For more information,
-// see [Permissions for storing and restoring AMIs using S3]in the Amazon EC2 User Guide.
-//
-// For more information, see [Store and restore an AMI using S3] in the Amazon EC2 User Guide.
-//
-// [Store and restore an AMI using S3]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html
-// [Permissions for storing and restoring AMIs using S3]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/work-with-ami-store-restore.html#ami-s3-permissions
-func (c *Client) DescribeStoreImageTasks(ctx context.Context, params *DescribeStoreImageTasksInput, optFns ...func(*Options)) (*DescribeStoreImageTasksOutput, error) {
- if params == nil {
- params = &DescribeStoreImageTasksInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeStoreImageTasks", params, optFns, c.addOperationDescribeStoreImageTasksMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeStoreImageTasksOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeStoreImageTasksInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - task-state - Returns tasks in a certain state ( InProgress | Completed |
- // Failed )
- //
- // - bucket - Returns task information for tasks that targeted a specific bucket.
- // For the filter value, specify the bucket name.
- //
- // When you specify the ImageIds parameter, any filters that you specify are
- // ignored. To use the filters, you must remove the ImageIds parameter.
- Filters []types.Filter
-
- // The AMI IDs for which to show progress. Up to 20 AMI IDs can be included in a
- // request.
- ImageIds []string
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // You cannot specify this parameter and the ImageIds parameter in the same call.
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeStoreImageTasksOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // The information about the AMI store tasks.
- StoreImageTaskResults []types.StoreImageTaskResult
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeStoreImageTasksMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeStoreImageTasks{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeStoreImageTasks{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeStoreImageTasks"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeStoreImageTasks(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// StoreImageTaskCompleteWaiterOptions are waiter options for
-// StoreImageTaskCompleteWaiter
-type StoreImageTaskCompleteWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // StoreImageTaskCompleteWaiter will use default minimum delay of 5 seconds. Note
- // that MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, StoreImageTaskCompleteWaiter will use default max delay of 120
- // seconds. Note that MaxDelay must resolve to value greater than or equal to the
- // MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeStoreImageTasksInput, *DescribeStoreImageTasksOutput, error) (bool, error)
-}
-
-// StoreImageTaskCompleteWaiter defines the waiters for StoreImageTaskComplete
-type StoreImageTaskCompleteWaiter struct {
- client DescribeStoreImageTasksAPIClient
-
- options StoreImageTaskCompleteWaiterOptions
-}
-
-// NewStoreImageTaskCompleteWaiter constructs a StoreImageTaskCompleteWaiter.
-func NewStoreImageTaskCompleteWaiter(client DescribeStoreImageTasksAPIClient, optFns ...func(*StoreImageTaskCompleteWaiterOptions)) *StoreImageTaskCompleteWaiter {
- options := StoreImageTaskCompleteWaiterOptions{}
- options.MinDelay = 5 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = storeImageTaskCompleteStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &StoreImageTaskCompleteWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for StoreImageTaskComplete waiter. The
-// maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is
-// required and must be greater than zero.
-func (w *StoreImageTaskCompleteWaiter) Wait(ctx context.Context, params *DescribeStoreImageTasksInput, maxWaitDur time.Duration, optFns ...func(*StoreImageTaskCompleteWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for StoreImageTaskComplete waiter and
-// returns the output of the successful operation. The maxWaitDur is the maximum
-// wait duration the waiter will wait. The maxWaitDur is required and must be
-// greater than zero.
-func (w *StoreImageTaskCompleteWaiter) WaitForOutput(ctx context.Context, params *DescribeStoreImageTasksInput, maxWaitDur time.Duration, optFns ...func(*StoreImageTaskCompleteWaiterOptions)) (*DescribeStoreImageTasksOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeStoreImageTasks(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for StoreImageTaskComplete waiter")
-}
-
-func storeImageTaskCompleteStateRetryable(ctx context.Context, input *DescribeStoreImageTasksInput, output *DescribeStoreImageTasksOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.StoreImageTaskResults
- var v2 []string
- for _, v := range v1 {
- v3 := v.StoreTaskState
- if v3 != nil {
- v2 = append(v2, *v3)
- }
- }
- expectedValue := "Completed"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err == nil {
- v1 := output.StoreImageTaskResults
- var v2 []string
- for _, v := range v1 {
- v3 := v.StoreTaskState
- if v3 != nil {
- v2 = append(v2, *v3)
- }
- }
- expectedValue := "Failed"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err == nil {
- v1 := output.StoreImageTaskResults
- var v2 []string
- for _, v := range v1 {
- v3 := v.StoreTaskState
- if v3 != nil {
- v2 = append(v2, *v3)
- }
- }
- expectedValue := "InProgress"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return true, nil
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// DescribeStoreImageTasksPaginatorOptions is the paginator options for
-// DescribeStoreImageTasks
-type DescribeStoreImageTasksPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // You cannot specify this parameter and the ImageIds parameter in the same call.
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeStoreImageTasksPaginator is a paginator for DescribeStoreImageTasks
-type DescribeStoreImageTasksPaginator struct {
- options DescribeStoreImageTasksPaginatorOptions
- client DescribeStoreImageTasksAPIClient
- params *DescribeStoreImageTasksInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeStoreImageTasksPaginator returns a new
-// DescribeStoreImageTasksPaginator
-func NewDescribeStoreImageTasksPaginator(client DescribeStoreImageTasksAPIClient, params *DescribeStoreImageTasksInput, optFns ...func(*DescribeStoreImageTasksPaginatorOptions)) *DescribeStoreImageTasksPaginator {
- if params == nil {
- params = &DescribeStoreImageTasksInput{}
- }
-
- options := DescribeStoreImageTasksPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeStoreImageTasksPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeStoreImageTasksPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeStoreImageTasks page.
-func (p *DescribeStoreImageTasksPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeStoreImageTasksOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeStoreImageTasks(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeStoreImageTasksAPIClient is a client that implements the
-// DescribeStoreImageTasks operation.
-type DescribeStoreImageTasksAPIClient interface {
- DescribeStoreImageTasks(context.Context, *DescribeStoreImageTasksInput, ...func(*Options)) (*DescribeStoreImageTasksOutput, error)
-}
-
-var _ DescribeStoreImageTasksAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeStoreImageTasks(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeStoreImageTasks",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSubnets.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSubnets.go
deleted file mode 100644
index 7772da2b4..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSubnets.go
+++ /dev/null
@@ -1,553 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithytime "github.com/aws/smithy-go/time"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- smithywaiter "github.com/aws/smithy-go/waiter"
- "time"
-)
-
-// Describes your subnets. The default is to describe all your subnets.
-// Alternatively, you can specify specific subnet IDs or filter the results to
-// include only the subnets that match specific criteria.
-//
-// For more information, see [Subnets] in the Amazon VPC User Guide.
-//
-// [Subnets]: https://docs.aws.amazon.com/vpc/latest/userguide/configure-subnets.html
-func (c *Client) DescribeSubnets(ctx context.Context, params *DescribeSubnetsInput, optFns ...func(*Options)) (*DescribeSubnetsOutput, error) {
- if params == nil {
- params = &DescribeSubnetsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeSubnets", params, optFns, c.addOperationDescribeSubnetsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeSubnetsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeSubnetsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - availability-zone - The Availability Zone for the subnet. You can also use
- // availabilityZone as the filter name.
- //
- // - availability-zone-id - The ID of the Availability Zone for the subnet. You
- // can also use availabilityZoneId as the filter name.
- //
- // - available-ip-address-count - The number of IPv4 addresses in the subnet that
- // are available.
- //
- // - cidr-block - The IPv4 CIDR block of the subnet. The CIDR block you specify
- // must exactly match the subnet's CIDR block for information to be returned for
- // the subnet. You can also use cidr or cidrBlock as the filter names.
- //
- // - customer-owned-ipv4-pool - The customer-owned IPv4 address pool associated
- // with the subnet.
- //
- // - default-for-az - Indicates whether this is the default subnet for the
- // Availability Zone ( true | false ). You can also use defaultForAz as the
- // filter name.
- //
- // - enable-dns64 - Indicates whether DNS queries made to the Amazon-provided DNS
- // Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only
- // destinations.
- //
- // - enable-lni-at-device-index - Indicates the device position for local network
- // interfaces in this subnet. For example, 1 indicates local network interfaces
- // in this subnet are the secondary network interface (eth1).
- //
- // - ipv6-cidr-block-association.ipv6-cidr-block - An IPv6 CIDR block associated
- // with the subnet.
- //
- // - ipv6-cidr-block-association.association-id - An association ID for an IPv6
- // CIDR block associated with the subnet.
- //
- // - ipv6-cidr-block-association.state - The state of an IPv6 CIDR block
- // associated with the subnet.
- //
- // - ipv6-native - Indicates whether this is an IPv6 only subnet ( true | false ).
- //
- // - map-customer-owned-ip-on-launch - Indicates whether a network interface
- // created in this subnet (including a network interface created by RunInstances) receives a
- // customer-owned IPv4 address.
- //
- // - map-public-ip-on-launch - Indicates whether instances launched in this
- // subnet receive a public IPv4 address.
- //
- // - outpost-arn - The Amazon Resource Name (ARN) of the Outpost.
- //
- // - owner-id - The ID of the Amazon Web Services account that owns the subnet.
- //
- // - private-dns-name-options-on-launch.hostname-type - The type of hostname to
- // assign to instances in the subnet at launch. For IPv4-only and dual-stack (IPv4
- // and IPv6) subnets, an instance DNS name can be based on the instance IPv4
- // address (ip-name) or the instance ID (resource-name). For IPv6 only subnets, an
- // instance DNS name must be based on the instance ID (resource-name).
- //
- // - private-dns-name-options-on-launch.enable-resource-name-dns-a-record -
- // Indicates whether to respond to DNS queries for instance hostnames with DNS A
- // records.
- //
- // - private-dns-name-options-on-launch.enable-resource-name-dns-aaaa-record -
- // Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA
- // records.
- //
- // - state - The state of the subnet ( pending | available ).
- //
- // - subnet-arn - The Amazon Resource Name (ARN) of the subnet.
- //
- // - subnet-id - The ID of the subnet.
- //
- // - tag - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- //
- // - vpc-id - The ID of the VPC for the subnet.
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- // The IDs of the subnets.
- //
- // Default: Describes all your subnets.
- SubnetIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeSubnetsOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Information about the subnets.
- Subnets []types.Subnet
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeSubnetsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSubnets{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeSubnets{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeSubnets"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeSubnets(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// SubnetAvailableWaiterOptions are waiter options for SubnetAvailableWaiter
-type SubnetAvailableWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // SubnetAvailableWaiter will use default minimum delay of 15 seconds. Note that
- // MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, SubnetAvailableWaiter will use default max delay of 120 seconds.
- // Note that MaxDelay must resolve to value greater than or equal to the MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeSubnetsInput, *DescribeSubnetsOutput, error) (bool, error)
-}
-
-// SubnetAvailableWaiter defines the waiters for SubnetAvailable
-type SubnetAvailableWaiter struct {
- client DescribeSubnetsAPIClient
-
- options SubnetAvailableWaiterOptions
-}
-
-// NewSubnetAvailableWaiter constructs a SubnetAvailableWaiter.
-func NewSubnetAvailableWaiter(client DescribeSubnetsAPIClient, optFns ...func(*SubnetAvailableWaiterOptions)) *SubnetAvailableWaiter {
- options := SubnetAvailableWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = subnetAvailableStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &SubnetAvailableWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for SubnetAvailable waiter. The maxWaitDur is
-// the maximum wait duration the waiter will wait. The maxWaitDur is required and
-// must be greater than zero.
-func (w *SubnetAvailableWaiter) Wait(ctx context.Context, params *DescribeSubnetsInput, maxWaitDur time.Duration, optFns ...func(*SubnetAvailableWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for SubnetAvailable waiter and returns
-// the output of the successful operation. The maxWaitDur is the maximum wait
-// duration the waiter will wait. The maxWaitDur is required and must be greater
-// than zero.
-func (w *SubnetAvailableWaiter) WaitForOutput(ctx context.Context, params *DescribeSubnetsInput, maxWaitDur time.Duration, optFns ...func(*SubnetAvailableWaiterOptions)) (*DescribeSubnetsOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeSubnets(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for SubnetAvailable waiter")
-}
-
-func subnetAvailableStateRetryable(ctx context.Context, input *DescribeSubnetsInput, output *DescribeSubnetsOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.Subnets
- var v2 []types.SubnetState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "available"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// DescribeSubnetsPaginatorOptions is the paginator options for DescribeSubnets
-type DescribeSubnetsPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeSubnetsPaginator is a paginator for DescribeSubnets
-type DescribeSubnetsPaginator struct {
- options DescribeSubnetsPaginatorOptions
- client DescribeSubnetsAPIClient
- params *DescribeSubnetsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeSubnetsPaginator returns a new DescribeSubnetsPaginator
-func NewDescribeSubnetsPaginator(client DescribeSubnetsAPIClient, params *DescribeSubnetsInput, optFns ...func(*DescribeSubnetsPaginatorOptions)) *DescribeSubnetsPaginator {
- if params == nil {
- params = &DescribeSubnetsInput{}
- }
-
- options := DescribeSubnetsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeSubnetsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeSubnetsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeSubnets page.
-func (p *DescribeSubnetsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeSubnetsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeSubnets(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeSubnetsAPIClient is a client that implements the DescribeSubnets
-// operation.
-type DescribeSubnetsAPIClient interface {
- DescribeSubnets(context.Context, *DescribeSubnetsInput, ...func(*Options)) (*DescribeSubnetsOutput, error)
-}
-
-var _ DescribeSubnetsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeSubnets(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeSubnets",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTags.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTags.go
deleted file mode 100644
index 59193f8c6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTags.go
+++ /dev/null
@@ -1,298 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified tags for your EC2 resources.
-//
-// For more information about tags, see [Tag your Amazon EC2 resources] in the Amazon Elastic Compute Cloud User
-// Guide.
-//
-// We strongly recommend using only paginated requests. Unpaginated requests are
-// susceptible to throttling and timeouts.
-//
-// The order of the elements in the response, including those within nested
-// structures, might vary. Applications should not assume the elements appear in a
-// particular order.
-//
-// [Tag your Amazon EC2 resources]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html
-func (c *Client) DescribeTags(ctx context.Context, params *DescribeTagsInput, optFns ...func(*Options)) (*DescribeTagsOutput, error) {
- if params == nil {
- params = &DescribeTagsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeTags", params, optFns, c.addOperationDescribeTagsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeTagsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeTagsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - key - The tag key.
- //
- // - resource-id - The ID of the resource.
- //
- // - resource-type - The resource type. For a list of possible values, see [TagSpecification].
- //
- // - tag : - The key/value combination of the tag. For example, specify
- // "tag:Owner" for the filter name and "TeamA" for the filter value to find
- // resources with the tag "Owner=TeamA".
- //
- // - value - The tag value.
- //
- // [TagSpecification]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_TagSpecification.html
- Filters []types.Filter
-
- // The maximum number of items to return for this request. This value can be
- // between 5 and 1000. To get the next page of items, make another request with the
- // token returned in the output. For more information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeTagsOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // The tags.
- Tags []types.TagDescription
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeTagsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTags{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeTags{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeTags"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeTags(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeTagsPaginatorOptions is the paginator options for DescribeTags
-type DescribeTagsPaginatorOptions struct {
- // The maximum number of items to return for this request. This value can be
- // between 5 and 1000. To get the next page of items, make another request with the
- // token returned in the output. For more information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeTagsPaginator is a paginator for DescribeTags
-type DescribeTagsPaginator struct {
- options DescribeTagsPaginatorOptions
- client DescribeTagsAPIClient
- params *DescribeTagsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeTagsPaginator returns a new DescribeTagsPaginator
-func NewDescribeTagsPaginator(client DescribeTagsAPIClient, params *DescribeTagsInput, optFns ...func(*DescribeTagsPaginatorOptions)) *DescribeTagsPaginator {
- if params == nil {
- params = &DescribeTagsInput{}
- }
-
- options := DescribeTagsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeTagsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeTagsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeTags page.
-func (p *DescribeTagsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeTagsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeTags(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeTagsAPIClient is a client that implements the DescribeTags operation.
-type DescribeTagsAPIClient interface {
- DescribeTags(context.Context, *DescribeTagsInput, ...func(*Options)) (*DescribeTagsOutput, error)
-}
-
-var _ DescribeTagsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeTags(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeTags",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorFilterRules.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorFilterRules.go
deleted file mode 100644
index 3baf1a572..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorFilterRules.go
+++ /dev/null
@@ -1,202 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describe traffic mirror filters that determine the traffic that is mirrored.
-func (c *Client) DescribeTrafficMirrorFilterRules(ctx context.Context, params *DescribeTrafficMirrorFilterRulesInput, optFns ...func(*Options)) (*DescribeTrafficMirrorFilterRulesOutput, error) {
- if params == nil {
- params = &DescribeTrafficMirrorFilterRulesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeTrafficMirrorFilterRules", params, optFns, c.addOperationDescribeTrafficMirrorFilterRulesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeTrafficMirrorFilterRulesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeTrafficMirrorFilterRulesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Traffic mirror filters.
- //
- // - traffic-mirror-filter-rule-id : The ID of the Traffic Mirror rule.
- //
- // - traffic-mirror-filter-id : The ID of the filter that this rule is associated
- // with.
- //
- // - rule-number : The number of the Traffic Mirror rule.
- //
- // - rule-action : The action taken on the filtered traffic. Possible actions are
- // accept and reject .
- //
- // - traffic-direction : The traffic direction. Possible directions are ingress
- // and egress .
- //
- // - protocol : The protocol, for example UDP, assigned to the Traffic Mirror
- // rule.
- //
- // - source-cidr-block : The source CIDR block assigned to the Traffic Mirror
- // rule.
- //
- // - destination-cidr-block : The destination CIDR block assigned to the Traffic
- // Mirror rule.
- //
- // - description : The description of the Traffic Mirror rule.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // Traffic filter ID.
- TrafficMirrorFilterId *string
-
- // Traffic filter rule IDs.
- TrafficMirrorFilterRuleIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeTrafficMirrorFilterRulesOutput struct {
-
- // The token to use to retrieve the next page of results. The value is null when
- // there are no more results to return.
- NextToken *string
-
- // Traffic mirror rules.
- TrafficMirrorFilterRules []types.TrafficMirrorFilterRule
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeTrafficMirrorFilterRulesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTrafficMirrorFilterRules{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeTrafficMirrorFilterRules{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeTrafficMirrorFilterRules"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeTrafficMirrorFilterRules(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeTrafficMirrorFilterRules(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeTrafficMirrorFilterRules",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorFilters.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorFilters.go
deleted file mode 100644
index ce1db7e72..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorFilters.go
+++ /dev/null
@@ -1,276 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more Traffic Mirror filters.
-func (c *Client) DescribeTrafficMirrorFilters(ctx context.Context, params *DescribeTrafficMirrorFiltersInput, optFns ...func(*Options)) (*DescribeTrafficMirrorFiltersOutput, error) {
- if params == nil {
- params = &DescribeTrafficMirrorFiltersInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeTrafficMirrorFilters", params, optFns, c.addOperationDescribeTrafficMirrorFiltersMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeTrafficMirrorFiltersOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeTrafficMirrorFiltersInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. The possible values are:
- //
- // - description : The Traffic Mirror filter description.
- //
- // - traffic-mirror-filter-id : The ID of the Traffic Mirror filter.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The ID of the Traffic Mirror filter.
- TrafficMirrorFilterIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeTrafficMirrorFiltersOutput struct {
-
- // The token to use to retrieve the next page of results. The value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about one or more Traffic Mirror filters.
- TrafficMirrorFilters []types.TrafficMirrorFilter
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeTrafficMirrorFiltersMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTrafficMirrorFilters{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeTrafficMirrorFilters{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeTrafficMirrorFilters"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeTrafficMirrorFilters(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeTrafficMirrorFiltersPaginatorOptions is the paginator options for
-// DescribeTrafficMirrorFilters
-type DescribeTrafficMirrorFiltersPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeTrafficMirrorFiltersPaginator is a paginator for
-// DescribeTrafficMirrorFilters
-type DescribeTrafficMirrorFiltersPaginator struct {
- options DescribeTrafficMirrorFiltersPaginatorOptions
- client DescribeTrafficMirrorFiltersAPIClient
- params *DescribeTrafficMirrorFiltersInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeTrafficMirrorFiltersPaginator returns a new
-// DescribeTrafficMirrorFiltersPaginator
-func NewDescribeTrafficMirrorFiltersPaginator(client DescribeTrafficMirrorFiltersAPIClient, params *DescribeTrafficMirrorFiltersInput, optFns ...func(*DescribeTrafficMirrorFiltersPaginatorOptions)) *DescribeTrafficMirrorFiltersPaginator {
- if params == nil {
- params = &DescribeTrafficMirrorFiltersInput{}
- }
-
- options := DescribeTrafficMirrorFiltersPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeTrafficMirrorFiltersPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeTrafficMirrorFiltersPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeTrafficMirrorFilters page.
-func (p *DescribeTrafficMirrorFiltersPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeTrafficMirrorFiltersOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeTrafficMirrorFilters(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeTrafficMirrorFiltersAPIClient is a client that implements the
-// DescribeTrafficMirrorFilters operation.
-type DescribeTrafficMirrorFiltersAPIClient interface {
- DescribeTrafficMirrorFilters(context.Context, *DescribeTrafficMirrorFiltersInput, ...func(*Options)) (*DescribeTrafficMirrorFiltersOutput, error)
-}
-
-var _ DescribeTrafficMirrorFiltersAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeTrafficMirrorFilters(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeTrafficMirrorFilters",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorSessions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorSessions.go
deleted file mode 100644
index 5146c65fb..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorSessions.go
+++ /dev/null
@@ -1,293 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more Traffic Mirror sessions. By default, all Traffic Mirror
-// sessions are described. Alternatively, you can filter the results.
-func (c *Client) DescribeTrafficMirrorSessions(ctx context.Context, params *DescribeTrafficMirrorSessionsInput, optFns ...func(*Options)) (*DescribeTrafficMirrorSessionsOutput, error) {
- if params == nil {
- params = &DescribeTrafficMirrorSessionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeTrafficMirrorSessions", params, optFns, c.addOperationDescribeTrafficMirrorSessionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeTrafficMirrorSessionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeTrafficMirrorSessionsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. The possible values are:
- //
- // - description : The Traffic Mirror session description.
- //
- // - network-interface-id : The ID of the Traffic Mirror session network
- // interface.
- //
- // - owner-id : The ID of the account that owns the Traffic Mirror session.
- //
- // - packet-length : The assigned number of packets to mirror.
- //
- // - session-number : The assigned session number.
- //
- // - traffic-mirror-filter-id : The ID of the Traffic Mirror filter.
- //
- // - traffic-mirror-session-id : The ID of the Traffic Mirror session.
- //
- // - traffic-mirror-target-id : The ID of the Traffic Mirror target.
- //
- // - virtual-network-id : The virtual network ID of the Traffic Mirror session.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The ID of the Traffic Mirror session.
- TrafficMirrorSessionIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeTrafficMirrorSessionsOutput struct {
-
- // The token to use to retrieve the next page of results. The value is null when
- // there are no more results to return.
- NextToken *string
-
- // Describes one or more Traffic Mirror sessions. By default, all Traffic Mirror
- // sessions are described. Alternatively, you can filter the results.
- TrafficMirrorSessions []types.TrafficMirrorSession
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeTrafficMirrorSessionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTrafficMirrorSessions{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeTrafficMirrorSessions{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeTrafficMirrorSessions"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeTrafficMirrorSessions(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeTrafficMirrorSessionsPaginatorOptions is the paginator options for
-// DescribeTrafficMirrorSessions
-type DescribeTrafficMirrorSessionsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeTrafficMirrorSessionsPaginator is a paginator for
-// DescribeTrafficMirrorSessions
-type DescribeTrafficMirrorSessionsPaginator struct {
- options DescribeTrafficMirrorSessionsPaginatorOptions
- client DescribeTrafficMirrorSessionsAPIClient
- params *DescribeTrafficMirrorSessionsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeTrafficMirrorSessionsPaginator returns a new
-// DescribeTrafficMirrorSessionsPaginator
-func NewDescribeTrafficMirrorSessionsPaginator(client DescribeTrafficMirrorSessionsAPIClient, params *DescribeTrafficMirrorSessionsInput, optFns ...func(*DescribeTrafficMirrorSessionsPaginatorOptions)) *DescribeTrafficMirrorSessionsPaginator {
- if params == nil {
- params = &DescribeTrafficMirrorSessionsInput{}
- }
-
- options := DescribeTrafficMirrorSessionsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeTrafficMirrorSessionsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeTrafficMirrorSessionsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeTrafficMirrorSessions page.
-func (p *DescribeTrafficMirrorSessionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeTrafficMirrorSessionsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeTrafficMirrorSessions(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeTrafficMirrorSessionsAPIClient is a client that implements the
-// DescribeTrafficMirrorSessions operation.
-type DescribeTrafficMirrorSessionsAPIClient interface {
- DescribeTrafficMirrorSessions(context.Context, *DescribeTrafficMirrorSessionsInput, ...func(*Options)) (*DescribeTrafficMirrorSessionsOutput, error)
-}
-
-var _ DescribeTrafficMirrorSessionsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeTrafficMirrorSessions(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeTrafficMirrorSessions",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorTargets.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorTargets.go
deleted file mode 100644
index a36cc59ff..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorTargets.go
+++ /dev/null
@@ -1,284 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Information about one or more Traffic Mirror targets.
-func (c *Client) DescribeTrafficMirrorTargets(ctx context.Context, params *DescribeTrafficMirrorTargetsInput, optFns ...func(*Options)) (*DescribeTrafficMirrorTargetsOutput, error) {
- if params == nil {
- params = &DescribeTrafficMirrorTargetsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeTrafficMirrorTargets", params, optFns, c.addOperationDescribeTrafficMirrorTargetsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeTrafficMirrorTargetsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeTrafficMirrorTargetsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. The possible values are:
- //
- // - description : The Traffic Mirror target description.
- //
- // - network-interface-id : The ID of the Traffic Mirror session network
- // interface.
- //
- // - network-load-balancer-arn : The Amazon Resource Name (ARN) of the Network
- // Load Balancer that is associated with the session.
- //
- // - owner-id : The ID of the account that owns the Traffic Mirror session.
- //
- // - traffic-mirror-target-id : The ID of the Traffic Mirror target.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The ID of the Traffic Mirror targets.
- TrafficMirrorTargetIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeTrafficMirrorTargetsOutput struct {
-
- // The token to use to retrieve the next page of results. The value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about one or more Traffic Mirror targets.
- TrafficMirrorTargets []types.TrafficMirrorTarget
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeTrafficMirrorTargetsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTrafficMirrorTargets{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeTrafficMirrorTargets{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeTrafficMirrorTargets"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeTrafficMirrorTargets(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeTrafficMirrorTargetsPaginatorOptions is the paginator options for
-// DescribeTrafficMirrorTargets
-type DescribeTrafficMirrorTargetsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeTrafficMirrorTargetsPaginator is a paginator for
-// DescribeTrafficMirrorTargets
-type DescribeTrafficMirrorTargetsPaginator struct {
- options DescribeTrafficMirrorTargetsPaginatorOptions
- client DescribeTrafficMirrorTargetsAPIClient
- params *DescribeTrafficMirrorTargetsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeTrafficMirrorTargetsPaginator returns a new
-// DescribeTrafficMirrorTargetsPaginator
-func NewDescribeTrafficMirrorTargetsPaginator(client DescribeTrafficMirrorTargetsAPIClient, params *DescribeTrafficMirrorTargetsInput, optFns ...func(*DescribeTrafficMirrorTargetsPaginatorOptions)) *DescribeTrafficMirrorTargetsPaginator {
- if params == nil {
- params = &DescribeTrafficMirrorTargetsInput{}
- }
-
- options := DescribeTrafficMirrorTargetsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeTrafficMirrorTargetsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeTrafficMirrorTargetsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeTrafficMirrorTargets page.
-func (p *DescribeTrafficMirrorTargetsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeTrafficMirrorTargetsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeTrafficMirrorTargets(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeTrafficMirrorTargetsAPIClient is a client that implements the
-// DescribeTrafficMirrorTargets operation.
-type DescribeTrafficMirrorTargetsAPIClient interface {
- DescribeTrafficMirrorTargets(context.Context, *DescribeTrafficMirrorTargetsInput, ...func(*Options)) (*DescribeTrafficMirrorTargetsOutput, error)
-}
-
-var _ DescribeTrafficMirrorTargetsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeTrafficMirrorTargets(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeTrafficMirrorTargets",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayAttachments.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayAttachments.go
deleted file mode 100644
index 6e4406be0..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayAttachments.go
+++ /dev/null
@@ -1,299 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more attachments between resources and transit gateways. By
-// default, all attachments are described. Alternatively, you can filter the
-// results by attachment ID, attachment state, resource ID, or resource owner.
-func (c *Client) DescribeTransitGatewayAttachments(ctx context.Context, params *DescribeTransitGatewayAttachmentsInput, optFns ...func(*Options)) (*DescribeTransitGatewayAttachmentsOutput, error) {
- if params == nil {
- params = &DescribeTransitGatewayAttachmentsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGatewayAttachments", params, optFns, c.addOperationDescribeTransitGatewayAttachmentsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeTransitGatewayAttachmentsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeTransitGatewayAttachmentsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. The possible values are:
- //
- // - association.state - The state of the association ( associating | associated
- // | disassociating ).
- //
- // - association.transit-gateway-route-table-id - The ID of the route table for
- // the transit gateway.
- //
- // - resource-id - The ID of the resource.
- //
- // - resource-owner-id - The ID of the Amazon Web Services account that owns the
- // resource.
- //
- // - resource-type - The resource type. Valid values are vpc | vpn |
- // direct-connect-gateway | peering | connect .
- //
- // - state - The state of the attachment. Valid values are available | deleted |
- // deleting | failed | failing | initiatingRequest | modifying |
- // pendingAcceptance | pending | rollingBack | rejected | rejecting .
- //
- // - transit-gateway-attachment-id - The ID of the attachment.
- //
- // - transit-gateway-id - The ID of the transit gateway.
- //
- // - transit-gateway-owner-id - The ID of the Amazon Web Services account that
- // owns the transit gateway.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The IDs of the attachments.
- TransitGatewayAttachmentIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeTransitGatewayAttachmentsOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the attachments.
- TransitGatewayAttachments []types.TransitGatewayAttachment
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeTransitGatewayAttachmentsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTransitGatewayAttachments{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeTransitGatewayAttachments{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeTransitGatewayAttachments"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeTransitGatewayAttachments(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeTransitGatewayAttachmentsPaginatorOptions is the paginator options for
-// DescribeTransitGatewayAttachments
-type DescribeTransitGatewayAttachmentsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeTransitGatewayAttachmentsPaginator is a paginator for
-// DescribeTransitGatewayAttachments
-type DescribeTransitGatewayAttachmentsPaginator struct {
- options DescribeTransitGatewayAttachmentsPaginatorOptions
- client DescribeTransitGatewayAttachmentsAPIClient
- params *DescribeTransitGatewayAttachmentsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeTransitGatewayAttachmentsPaginator returns a new
-// DescribeTransitGatewayAttachmentsPaginator
-func NewDescribeTransitGatewayAttachmentsPaginator(client DescribeTransitGatewayAttachmentsAPIClient, params *DescribeTransitGatewayAttachmentsInput, optFns ...func(*DescribeTransitGatewayAttachmentsPaginatorOptions)) *DescribeTransitGatewayAttachmentsPaginator {
- if params == nil {
- params = &DescribeTransitGatewayAttachmentsInput{}
- }
-
- options := DescribeTransitGatewayAttachmentsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeTransitGatewayAttachmentsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeTransitGatewayAttachmentsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeTransitGatewayAttachments page.
-func (p *DescribeTransitGatewayAttachmentsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeTransitGatewayAttachmentsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeTransitGatewayAttachments(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeTransitGatewayAttachmentsAPIClient is a client that implements the
-// DescribeTransitGatewayAttachments operation.
-type DescribeTransitGatewayAttachmentsAPIClient interface {
- DescribeTransitGatewayAttachments(context.Context, *DescribeTransitGatewayAttachmentsInput, ...func(*Options)) (*DescribeTransitGatewayAttachmentsOutput, error)
-}
-
-var _ DescribeTransitGatewayAttachmentsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeTransitGatewayAttachments(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeTransitGatewayAttachments",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayConnectPeers.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayConnectPeers.go
deleted file mode 100644
index e09b552c5..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayConnectPeers.go
+++ /dev/null
@@ -1,279 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more Connect peers.
-func (c *Client) DescribeTransitGatewayConnectPeers(ctx context.Context, params *DescribeTransitGatewayConnectPeersInput, optFns ...func(*Options)) (*DescribeTransitGatewayConnectPeersOutput, error) {
- if params == nil {
- params = &DescribeTransitGatewayConnectPeersInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGatewayConnectPeers", params, optFns, c.addOperationDescribeTransitGatewayConnectPeersMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeTransitGatewayConnectPeersOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeTransitGatewayConnectPeersInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. The possible values are:
- //
- // - state - The state of the Connect peer ( pending | available | deleting |
- // deleted ).
- //
- // - transit-gateway-attachment-id - The ID of the attachment.
- //
- // - transit-gateway-connect-peer-id - The ID of the Connect peer.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The IDs of the Connect peers.
- TransitGatewayConnectPeerIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeTransitGatewayConnectPeersOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the Connect peers.
- TransitGatewayConnectPeers []types.TransitGatewayConnectPeer
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeTransitGatewayConnectPeersMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTransitGatewayConnectPeers{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeTransitGatewayConnectPeers{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeTransitGatewayConnectPeers"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeTransitGatewayConnectPeers(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeTransitGatewayConnectPeersPaginatorOptions is the paginator options for
-// DescribeTransitGatewayConnectPeers
-type DescribeTransitGatewayConnectPeersPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeTransitGatewayConnectPeersPaginator is a paginator for
-// DescribeTransitGatewayConnectPeers
-type DescribeTransitGatewayConnectPeersPaginator struct {
- options DescribeTransitGatewayConnectPeersPaginatorOptions
- client DescribeTransitGatewayConnectPeersAPIClient
- params *DescribeTransitGatewayConnectPeersInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeTransitGatewayConnectPeersPaginator returns a new
-// DescribeTransitGatewayConnectPeersPaginator
-func NewDescribeTransitGatewayConnectPeersPaginator(client DescribeTransitGatewayConnectPeersAPIClient, params *DescribeTransitGatewayConnectPeersInput, optFns ...func(*DescribeTransitGatewayConnectPeersPaginatorOptions)) *DescribeTransitGatewayConnectPeersPaginator {
- if params == nil {
- params = &DescribeTransitGatewayConnectPeersInput{}
- }
-
- options := DescribeTransitGatewayConnectPeersPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeTransitGatewayConnectPeersPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeTransitGatewayConnectPeersPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeTransitGatewayConnectPeers page.
-func (p *DescribeTransitGatewayConnectPeersPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeTransitGatewayConnectPeersOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeTransitGatewayConnectPeers(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeTransitGatewayConnectPeersAPIClient is a client that implements the
-// DescribeTransitGatewayConnectPeers operation.
-type DescribeTransitGatewayConnectPeersAPIClient interface {
- DescribeTransitGatewayConnectPeers(context.Context, *DescribeTransitGatewayConnectPeersInput, ...func(*Options)) (*DescribeTransitGatewayConnectPeersOutput, error)
-}
-
-var _ DescribeTransitGatewayConnectPeersAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeTransitGatewayConnectPeers(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeTransitGatewayConnectPeers",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayConnects.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayConnects.go
deleted file mode 100644
index 4af640cac..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayConnects.go
+++ /dev/null
@@ -1,285 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more Connect attachments.
-func (c *Client) DescribeTransitGatewayConnects(ctx context.Context, params *DescribeTransitGatewayConnectsInput, optFns ...func(*Options)) (*DescribeTransitGatewayConnectsOutput, error) {
- if params == nil {
- params = &DescribeTransitGatewayConnectsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGatewayConnects", params, optFns, c.addOperationDescribeTransitGatewayConnectsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeTransitGatewayConnectsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeTransitGatewayConnectsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. The possible values are:
- //
- // - options.protocol - The tunnel protocol ( gre ).
- //
- // - state - The state of the attachment ( initiating | initiatingRequest |
- // pendingAcceptance | rollingBack | pending | available | modifying | deleting |
- // deleted | failed | rejected | rejecting | failing ).
- //
- // - transit-gateway-attachment-id - The ID of the Connect attachment.
- //
- // - transit-gateway-id - The ID of the transit gateway.
- //
- // - transport-transit-gateway-attachment-id - The ID of the transit gateway
- // attachment from which the Connect attachment was created.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The IDs of the attachments.
- TransitGatewayAttachmentIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeTransitGatewayConnectsOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the Connect attachments.
- TransitGatewayConnects []types.TransitGatewayConnect
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeTransitGatewayConnectsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTransitGatewayConnects{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeTransitGatewayConnects{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeTransitGatewayConnects"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeTransitGatewayConnects(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeTransitGatewayConnectsPaginatorOptions is the paginator options for
-// DescribeTransitGatewayConnects
-type DescribeTransitGatewayConnectsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeTransitGatewayConnectsPaginator is a paginator for
-// DescribeTransitGatewayConnects
-type DescribeTransitGatewayConnectsPaginator struct {
- options DescribeTransitGatewayConnectsPaginatorOptions
- client DescribeTransitGatewayConnectsAPIClient
- params *DescribeTransitGatewayConnectsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeTransitGatewayConnectsPaginator returns a new
-// DescribeTransitGatewayConnectsPaginator
-func NewDescribeTransitGatewayConnectsPaginator(client DescribeTransitGatewayConnectsAPIClient, params *DescribeTransitGatewayConnectsInput, optFns ...func(*DescribeTransitGatewayConnectsPaginatorOptions)) *DescribeTransitGatewayConnectsPaginator {
- if params == nil {
- params = &DescribeTransitGatewayConnectsInput{}
- }
-
- options := DescribeTransitGatewayConnectsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeTransitGatewayConnectsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeTransitGatewayConnectsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeTransitGatewayConnects page.
-func (p *DescribeTransitGatewayConnectsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeTransitGatewayConnectsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeTransitGatewayConnects(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeTransitGatewayConnectsAPIClient is a client that implements the
-// DescribeTransitGatewayConnects operation.
-type DescribeTransitGatewayConnectsAPIClient interface {
- DescribeTransitGatewayConnects(context.Context, *DescribeTransitGatewayConnectsInput, ...func(*Options)) (*DescribeTransitGatewayConnectsOutput, error)
-}
-
-var _ DescribeTransitGatewayConnectsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeTransitGatewayConnects(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeTransitGatewayConnects",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayMulticastDomains.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayMulticastDomains.go
deleted file mode 100644
index 60d911ac6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayMulticastDomains.go
+++ /dev/null
@@ -1,280 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more transit gateway multicast domains.
-func (c *Client) DescribeTransitGatewayMulticastDomains(ctx context.Context, params *DescribeTransitGatewayMulticastDomainsInput, optFns ...func(*Options)) (*DescribeTransitGatewayMulticastDomainsOutput, error) {
- if params == nil {
- params = &DescribeTransitGatewayMulticastDomainsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGatewayMulticastDomains", params, optFns, c.addOperationDescribeTransitGatewayMulticastDomainsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeTransitGatewayMulticastDomainsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeTransitGatewayMulticastDomainsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. The possible values are:
- //
- // - state - The state of the transit gateway multicast domain. Valid values are
- // pending | available | deleting | deleted .
- //
- // - transit-gateway-id - The ID of the transit gateway.
- //
- // - transit-gateway-multicast-domain-id - The ID of the transit gateway
- // multicast domain.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The ID of the transit gateway multicast domain.
- TransitGatewayMulticastDomainIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeTransitGatewayMulticastDomainsOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the transit gateway multicast domains.
- TransitGatewayMulticastDomains []types.TransitGatewayMulticastDomain
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeTransitGatewayMulticastDomainsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTransitGatewayMulticastDomains{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeTransitGatewayMulticastDomains{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeTransitGatewayMulticastDomains"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeTransitGatewayMulticastDomains(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeTransitGatewayMulticastDomainsPaginatorOptions is the paginator options
-// for DescribeTransitGatewayMulticastDomains
-type DescribeTransitGatewayMulticastDomainsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeTransitGatewayMulticastDomainsPaginator is a paginator for
-// DescribeTransitGatewayMulticastDomains
-type DescribeTransitGatewayMulticastDomainsPaginator struct {
- options DescribeTransitGatewayMulticastDomainsPaginatorOptions
- client DescribeTransitGatewayMulticastDomainsAPIClient
- params *DescribeTransitGatewayMulticastDomainsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeTransitGatewayMulticastDomainsPaginator returns a new
-// DescribeTransitGatewayMulticastDomainsPaginator
-func NewDescribeTransitGatewayMulticastDomainsPaginator(client DescribeTransitGatewayMulticastDomainsAPIClient, params *DescribeTransitGatewayMulticastDomainsInput, optFns ...func(*DescribeTransitGatewayMulticastDomainsPaginatorOptions)) *DescribeTransitGatewayMulticastDomainsPaginator {
- if params == nil {
- params = &DescribeTransitGatewayMulticastDomainsInput{}
- }
-
- options := DescribeTransitGatewayMulticastDomainsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeTransitGatewayMulticastDomainsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeTransitGatewayMulticastDomainsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeTransitGatewayMulticastDomains page.
-func (p *DescribeTransitGatewayMulticastDomainsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeTransitGatewayMulticastDomainsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeTransitGatewayMulticastDomains(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeTransitGatewayMulticastDomainsAPIClient is a client that implements the
-// DescribeTransitGatewayMulticastDomains operation.
-type DescribeTransitGatewayMulticastDomainsAPIClient interface {
- DescribeTransitGatewayMulticastDomains(context.Context, *DescribeTransitGatewayMulticastDomainsInput, ...func(*Options)) (*DescribeTransitGatewayMulticastDomainsOutput, error)
-}
-
-var _ DescribeTransitGatewayMulticastDomainsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeTransitGatewayMulticastDomains(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeTransitGatewayMulticastDomains",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayPeeringAttachments.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayPeeringAttachments.go
deleted file mode 100644
index e15d5c6e4..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayPeeringAttachments.go
+++ /dev/null
@@ -1,293 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes your transit gateway peering attachments.
-func (c *Client) DescribeTransitGatewayPeeringAttachments(ctx context.Context, params *DescribeTransitGatewayPeeringAttachmentsInput, optFns ...func(*Options)) (*DescribeTransitGatewayPeeringAttachmentsOutput, error) {
- if params == nil {
- params = &DescribeTransitGatewayPeeringAttachmentsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGatewayPeeringAttachments", params, optFns, c.addOperationDescribeTransitGatewayPeeringAttachmentsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeTransitGatewayPeeringAttachmentsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeTransitGatewayPeeringAttachmentsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. The possible values are:
- //
- // - transit-gateway-attachment-id - The ID of the transit gateway attachment.
- //
- // - local-owner-id - The ID of your Amazon Web Services account.
- //
- // - remote-owner-id - The ID of the Amazon Web Services account in the remote
- // Region that owns the transit gateway.
- //
- // - state - The state of the peering attachment. Valid values are available |
- // deleted | deleting | failed | failing | initiatingRequest | modifying |
- // pendingAcceptance | pending | rollingBack | rejected | rejecting ).
- //
- // - tag : - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources that have a tag with a specific key, regardless of the tag value.
- //
- // - transit-gateway-id - The ID of the transit gateway.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // One or more IDs of the transit gateway peering attachments.
- TransitGatewayAttachmentIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeTransitGatewayPeeringAttachmentsOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // The transit gateway peering attachments.
- TransitGatewayPeeringAttachments []types.TransitGatewayPeeringAttachment
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeTransitGatewayPeeringAttachmentsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTransitGatewayPeeringAttachments{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeTransitGatewayPeeringAttachments{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeTransitGatewayPeeringAttachments"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeTransitGatewayPeeringAttachments(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeTransitGatewayPeeringAttachmentsPaginatorOptions is the paginator
-// options for DescribeTransitGatewayPeeringAttachments
-type DescribeTransitGatewayPeeringAttachmentsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeTransitGatewayPeeringAttachmentsPaginator is a paginator for
-// DescribeTransitGatewayPeeringAttachments
-type DescribeTransitGatewayPeeringAttachmentsPaginator struct {
- options DescribeTransitGatewayPeeringAttachmentsPaginatorOptions
- client DescribeTransitGatewayPeeringAttachmentsAPIClient
- params *DescribeTransitGatewayPeeringAttachmentsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeTransitGatewayPeeringAttachmentsPaginator returns a new
-// DescribeTransitGatewayPeeringAttachmentsPaginator
-func NewDescribeTransitGatewayPeeringAttachmentsPaginator(client DescribeTransitGatewayPeeringAttachmentsAPIClient, params *DescribeTransitGatewayPeeringAttachmentsInput, optFns ...func(*DescribeTransitGatewayPeeringAttachmentsPaginatorOptions)) *DescribeTransitGatewayPeeringAttachmentsPaginator {
- if params == nil {
- params = &DescribeTransitGatewayPeeringAttachmentsInput{}
- }
-
- options := DescribeTransitGatewayPeeringAttachmentsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeTransitGatewayPeeringAttachmentsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeTransitGatewayPeeringAttachmentsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeTransitGatewayPeeringAttachments page.
-func (p *DescribeTransitGatewayPeeringAttachmentsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeTransitGatewayPeeringAttachmentsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeTransitGatewayPeeringAttachments(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeTransitGatewayPeeringAttachmentsAPIClient is a client that implements
-// the DescribeTransitGatewayPeeringAttachments operation.
-type DescribeTransitGatewayPeeringAttachmentsAPIClient interface {
- DescribeTransitGatewayPeeringAttachments(context.Context, *DescribeTransitGatewayPeeringAttachmentsInput, ...func(*Options)) (*DescribeTransitGatewayPeeringAttachmentsOutput, error)
-}
-
-var _ DescribeTransitGatewayPeeringAttachmentsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeTransitGatewayPeeringAttachments(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeTransitGatewayPeeringAttachments",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayPolicyTables.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayPolicyTables.go
deleted file mode 100644
index 60fe0dcf7..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayPolicyTables.go
+++ /dev/null
@@ -1,271 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more transit gateway route policy tables.
-func (c *Client) DescribeTransitGatewayPolicyTables(ctx context.Context, params *DescribeTransitGatewayPolicyTablesInput, optFns ...func(*Options)) (*DescribeTransitGatewayPolicyTablesOutput, error) {
- if params == nil {
- params = &DescribeTransitGatewayPolicyTablesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGatewayPolicyTables", params, optFns, c.addOperationDescribeTransitGatewayPolicyTablesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeTransitGatewayPolicyTablesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeTransitGatewayPolicyTablesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters associated with the transit gateway policy table.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The IDs of the transit gateway policy tables.
- TransitGatewayPolicyTableIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeTransitGatewayPolicyTablesOutput struct {
-
- // The token for the next page of results.
- NextToken *string
-
- // Describes the transit gateway policy tables.
- TransitGatewayPolicyTables []types.TransitGatewayPolicyTable
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeTransitGatewayPolicyTablesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTransitGatewayPolicyTables{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeTransitGatewayPolicyTables{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeTransitGatewayPolicyTables"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeTransitGatewayPolicyTables(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeTransitGatewayPolicyTablesPaginatorOptions is the paginator options for
-// DescribeTransitGatewayPolicyTables
-type DescribeTransitGatewayPolicyTablesPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeTransitGatewayPolicyTablesPaginator is a paginator for
-// DescribeTransitGatewayPolicyTables
-type DescribeTransitGatewayPolicyTablesPaginator struct {
- options DescribeTransitGatewayPolicyTablesPaginatorOptions
- client DescribeTransitGatewayPolicyTablesAPIClient
- params *DescribeTransitGatewayPolicyTablesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeTransitGatewayPolicyTablesPaginator returns a new
-// DescribeTransitGatewayPolicyTablesPaginator
-func NewDescribeTransitGatewayPolicyTablesPaginator(client DescribeTransitGatewayPolicyTablesAPIClient, params *DescribeTransitGatewayPolicyTablesInput, optFns ...func(*DescribeTransitGatewayPolicyTablesPaginatorOptions)) *DescribeTransitGatewayPolicyTablesPaginator {
- if params == nil {
- params = &DescribeTransitGatewayPolicyTablesInput{}
- }
-
- options := DescribeTransitGatewayPolicyTablesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeTransitGatewayPolicyTablesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeTransitGatewayPolicyTablesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeTransitGatewayPolicyTables page.
-func (p *DescribeTransitGatewayPolicyTablesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeTransitGatewayPolicyTablesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeTransitGatewayPolicyTables(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeTransitGatewayPolicyTablesAPIClient is a client that implements the
-// DescribeTransitGatewayPolicyTables operation.
-type DescribeTransitGatewayPolicyTablesAPIClient interface {
- DescribeTransitGatewayPolicyTables(context.Context, *DescribeTransitGatewayPolicyTablesInput, ...func(*Options)) (*DescribeTransitGatewayPolicyTablesOutput, error)
-}
-
-var _ DescribeTransitGatewayPolicyTablesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeTransitGatewayPolicyTables(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeTransitGatewayPolicyTables",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayRouteTableAnnouncements.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayRouteTableAnnouncements.go
deleted file mode 100644
index ce275c6e7..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayRouteTableAnnouncements.go
+++ /dev/null
@@ -1,271 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more transit gateway route table advertisements.
-func (c *Client) DescribeTransitGatewayRouteTableAnnouncements(ctx context.Context, params *DescribeTransitGatewayRouteTableAnnouncementsInput, optFns ...func(*Options)) (*DescribeTransitGatewayRouteTableAnnouncementsOutput, error) {
- if params == nil {
- params = &DescribeTransitGatewayRouteTableAnnouncementsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGatewayRouteTableAnnouncements", params, optFns, c.addOperationDescribeTransitGatewayRouteTableAnnouncementsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeTransitGatewayRouteTableAnnouncementsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeTransitGatewayRouteTableAnnouncementsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters associated with the transit gateway policy table.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The IDs of the transit gateway route tables that are being advertised.
- TransitGatewayRouteTableAnnouncementIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeTransitGatewayRouteTableAnnouncementsOutput struct {
-
- // The token for the next page of results.
- NextToken *string
-
- // Describes the transit gateway route table announcement.
- TransitGatewayRouteTableAnnouncements []types.TransitGatewayRouteTableAnnouncement
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeTransitGatewayRouteTableAnnouncementsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTransitGatewayRouteTableAnnouncements{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeTransitGatewayRouteTableAnnouncements{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeTransitGatewayRouteTableAnnouncements"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeTransitGatewayRouteTableAnnouncements(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeTransitGatewayRouteTableAnnouncementsPaginatorOptions is the paginator
-// options for DescribeTransitGatewayRouteTableAnnouncements
-type DescribeTransitGatewayRouteTableAnnouncementsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeTransitGatewayRouteTableAnnouncementsPaginator is a paginator for
-// DescribeTransitGatewayRouteTableAnnouncements
-type DescribeTransitGatewayRouteTableAnnouncementsPaginator struct {
- options DescribeTransitGatewayRouteTableAnnouncementsPaginatorOptions
- client DescribeTransitGatewayRouteTableAnnouncementsAPIClient
- params *DescribeTransitGatewayRouteTableAnnouncementsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeTransitGatewayRouteTableAnnouncementsPaginator returns a new
-// DescribeTransitGatewayRouteTableAnnouncementsPaginator
-func NewDescribeTransitGatewayRouteTableAnnouncementsPaginator(client DescribeTransitGatewayRouteTableAnnouncementsAPIClient, params *DescribeTransitGatewayRouteTableAnnouncementsInput, optFns ...func(*DescribeTransitGatewayRouteTableAnnouncementsPaginatorOptions)) *DescribeTransitGatewayRouteTableAnnouncementsPaginator {
- if params == nil {
- params = &DescribeTransitGatewayRouteTableAnnouncementsInput{}
- }
-
- options := DescribeTransitGatewayRouteTableAnnouncementsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeTransitGatewayRouteTableAnnouncementsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeTransitGatewayRouteTableAnnouncementsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeTransitGatewayRouteTableAnnouncements page.
-func (p *DescribeTransitGatewayRouteTableAnnouncementsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeTransitGatewayRouteTableAnnouncementsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeTransitGatewayRouteTableAnnouncements(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeTransitGatewayRouteTableAnnouncementsAPIClient is a client that
-// implements the DescribeTransitGatewayRouteTableAnnouncements operation.
-type DescribeTransitGatewayRouteTableAnnouncementsAPIClient interface {
- DescribeTransitGatewayRouteTableAnnouncements(context.Context, *DescribeTransitGatewayRouteTableAnnouncementsInput, ...func(*Options)) (*DescribeTransitGatewayRouteTableAnnouncementsOutput, error)
-}
-
-var _ DescribeTransitGatewayRouteTableAnnouncementsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeTransitGatewayRouteTableAnnouncements(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeTransitGatewayRouteTableAnnouncements",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayRouteTables.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayRouteTables.go
deleted file mode 100644
index 93217a6e3..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayRouteTables.go
+++ /dev/null
@@ -1,286 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more transit gateway route tables. By default, all transit
-// gateway route tables are described. Alternatively, you can filter the results.
-func (c *Client) DescribeTransitGatewayRouteTables(ctx context.Context, params *DescribeTransitGatewayRouteTablesInput, optFns ...func(*Options)) (*DescribeTransitGatewayRouteTablesOutput, error) {
- if params == nil {
- params = &DescribeTransitGatewayRouteTablesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGatewayRouteTables", params, optFns, c.addOperationDescribeTransitGatewayRouteTablesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeTransitGatewayRouteTablesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeTransitGatewayRouteTablesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. The possible values are:
- //
- // - default-association-route-table - Indicates whether this is the default
- // association route table for the transit gateway ( true | false ).
- //
- // - default-propagation-route-table - Indicates whether this is the default
- // propagation route table for the transit gateway ( true | false ).
- //
- // - state - The state of the route table ( available | deleting | deleted |
- // pending ).
- //
- // - transit-gateway-id - The ID of the transit gateway.
- //
- // - transit-gateway-route-table-id - The ID of the transit gateway route table.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The IDs of the transit gateway route tables.
- TransitGatewayRouteTableIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeTransitGatewayRouteTablesOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the transit gateway route tables.
- TransitGatewayRouteTables []types.TransitGatewayRouteTable
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeTransitGatewayRouteTablesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTransitGatewayRouteTables{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeTransitGatewayRouteTables{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeTransitGatewayRouteTables"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeTransitGatewayRouteTables(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeTransitGatewayRouteTablesPaginatorOptions is the paginator options for
-// DescribeTransitGatewayRouteTables
-type DescribeTransitGatewayRouteTablesPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeTransitGatewayRouteTablesPaginator is a paginator for
-// DescribeTransitGatewayRouteTables
-type DescribeTransitGatewayRouteTablesPaginator struct {
- options DescribeTransitGatewayRouteTablesPaginatorOptions
- client DescribeTransitGatewayRouteTablesAPIClient
- params *DescribeTransitGatewayRouteTablesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeTransitGatewayRouteTablesPaginator returns a new
-// DescribeTransitGatewayRouteTablesPaginator
-func NewDescribeTransitGatewayRouteTablesPaginator(client DescribeTransitGatewayRouteTablesAPIClient, params *DescribeTransitGatewayRouteTablesInput, optFns ...func(*DescribeTransitGatewayRouteTablesPaginatorOptions)) *DescribeTransitGatewayRouteTablesPaginator {
- if params == nil {
- params = &DescribeTransitGatewayRouteTablesInput{}
- }
-
- options := DescribeTransitGatewayRouteTablesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeTransitGatewayRouteTablesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeTransitGatewayRouteTablesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeTransitGatewayRouteTables page.
-func (p *DescribeTransitGatewayRouteTablesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeTransitGatewayRouteTablesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeTransitGatewayRouteTables(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeTransitGatewayRouteTablesAPIClient is a client that implements the
-// DescribeTransitGatewayRouteTables operation.
-type DescribeTransitGatewayRouteTablesAPIClient interface {
- DescribeTransitGatewayRouteTables(context.Context, *DescribeTransitGatewayRouteTablesInput, ...func(*Options)) (*DescribeTransitGatewayRouteTablesOutput, error)
-}
-
-var _ DescribeTransitGatewayRouteTablesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeTransitGatewayRouteTables(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeTransitGatewayRouteTables",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayVpcAttachments.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayVpcAttachments.go
deleted file mode 100644
index 0a540fe13..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayVpcAttachments.go
+++ /dev/null
@@ -1,283 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more VPC attachments. By default, all VPC attachments are
-// described. Alternatively, you can filter the results.
-func (c *Client) DescribeTransitGatewayVpcAttachments(ctx context.Context, params *DescribeTransitGatewayVpcAttachmentsInput, optFns ...func(*Options)) (*DescribeTransitGatewayVpcAttachmentsOutput, error) {
- if params == nil {
- params = &DescribeTransitGatewayVpcAttachmentsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGatewayVpcAttachments", params, optFns, c.addOperationDescribeTransitGatewayVpcAttachmentsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeTransitGatewayVpcAttachmentsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeTransitGatewayVpcAttachmentsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. The possible values are:
- //
- // - state - The state of the attachment. Valid values are available | deleted |
- // deleting | failed | failing | initiatingRequest | modifying |
- // pendingAcceptance | pending | rollingBack | rejected | rejecting .
- //
- // - transit-gateway-attachment-id - The ID of the attachment.
- //
- // - transit-gateway-id - The ID of the transit gateway.
- //
- // - vpc-id - The ID of the VPC.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The IDs of the attachments.
- TransitGatewayAttachmentIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeTransitGatewayVpcAttachmentsOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the VPC attachments.
- TransitGatewayVpcAttachments []types.TransitGatewayVpcAttachment
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeTransitGatewayVpcAttachmentsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTransitGatewayVpcAttachments{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeTransitGatewayVpcAttachments{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeTransitGatewayVpcAttachments"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeTransitGatewayVpcAttachments(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeTransitGatewayVpcAttachmentsPaginatorOptions is the paginator options
-// for DescribeTransitGatewayVpcAttachments
-type DescribeTransitGatewayVpcAttachmentsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeTransitGatewayVpcAttachmentsPaginator is a paginator for
-// DescribeTransitGatewayVpcAttachments
-type DescribeTransitGatewayVpcAttachmentsPaginator struct {
- options DescribeTransitGatewayVpcAttachmentsPaginatorOptions
- client DescribeTransitGatewayVpcAttachmentsAPIClient
- params *DescribeTransitGatewayVpcAttachmentsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeTransitGatewayVpcAttachmentsPaginator returns a new
-// DescribeTransitGatewayVpcAttachmentsPaginator
-func NewDescribeTransitGatewayVpcAttachmentsPaginator(client DescribeTransitGatewayVpcAttachmentsAPIClient, params *DescribeTransitGatewayVpcAttachmentsInput, optFns ...func(*DescribeTransitGatewayVpcAttachmentsPaginatorOptions)) *DescribeTransitGatewayVpcAttachmentsPaginator {
- if params == nil {
- params = &DescribeTransitGatewayVpcAttachmentsInput{}
- }
-
- options := DescribeTransitGatewayVpcAttachmentsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeTransitGatewayVpcAttachmentsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeTransitGatewayVpcAttachmentsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeTransitGatewayVpcAttachments page.
-func (p *DescribeTransitGatewayVpcAttachmentsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeTransitGatewayVpcAttachmentsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeTransitGatewayVpcAttachments(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeTransitGatewayVpcAttachmentsAPIClient is a client that implements the
-// DescribeTransitGatewayVpcAttachments operation.
-type DescribeTransitGatewayVpcAttachmentsAPIClient interface {
- DescribeTransitGatewayVpcAttachments(context.Context, *DescribeTransitGatewayVpcAttachmentsInput, ...func(*Options)) (*DescribeTransitGatewayVpcAttachmentsOutput, error)
-}
-
-var _ DescribeTransitGatewayVpcAttachmentsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeTransitGatewayVpcAttachments(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeTransitGatewayVpcAttachments",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGateways.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGateways.go
deleted file mode 100644
index 1e2990d94..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGateways.go
+++ /dev/null
@@ -1,312 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more transit gateways. By default, all transit gateways are
-// described. Alternatively, you can filter the results.
-func (c *Client) DescribeTransitGateways(ctx context.Context, params *DescribeTransitGatewaysInput, optFns ...func(*Options)) (*DescribeTransitGatewaysOutput, error) {
- if params == nil {
- params = &DescribeTransitGatewaysInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGateways", params, optFns, c.addOperationDescribeTransitGatewaysMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeTransitGatewaysOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeTransitGatewaysInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. The possible values are:
- //
- // - options.propagation-default-route-table-id - The ID of the default
- // propagation route table.
- //
- // - options.amazon-side-asn - The private ASN for the Amazon side of a BGP
- // session.
- //
- // - options.association-default-route-table-id - The ID of the default
- // association route table.
- //
- // - options.auto-accept-shared-attachments - Indicates whether there is
- // automatic acceptance of attachment requests ( enable | disable ).
- //
- // - options.default-route-table-association - Indicates whether resource
- // attachments are automatically associated with the default association route
- // table ( enable | disable ).
- //
- // - options.default-route-table-propagation - Indicates whether resource
- // attachments automatically propagate routes to the default propagation route
- // table ( enable | disable ).
- //
- // - options.dns-support - Indicates whether DNS support is enabled ( enable |
- // disable ).
- //
- // - options.vpn-ecmp-support - Indicates whether Equal Cost Multipath Protocol
- // support is enabled ( enable | disable ).
- //
- // - owner-id - The ID of the Amazon Web Services account that owns the transit
- // gateway.
- //
- // - state - The state of the transit gateway ( available | deleted | deleting |
- // modifying | pending ).
- //
- // - transit-gateway-id - The ID of the transit gateway.
- //
- // - tag-key - The key/value combination of a tag assigned to the resource. Use
- // the tag key in the filter name and the tag value as the filter value. For
- // example, to find all resources that have a tag with the key Owner and the
- // value TeamA , specify tag:Owner for the filter name and TeamA for the filter
- // value.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The IDs of the transit gateways.
- TransitGatewayIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeTransitGatewaysOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the transit gateways.
- TransitGateways []types.TransitGateway
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeTransitGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTransitGateways{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeTransitGateways{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeTransitGateways"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeTransitGateways(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeTransitGatewaysPaginatorOptions is the paginator options for
-// DescribeTransitGateways
-type DescribeTransitGatewaysPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeTransitGatewaysPaginator is a paginator for DescribeTransitGateways
-type DescribeTransitGatewaysPaginator struct {
- options DescribeTransitGatewaysPaginatorOptions
- client DescribeTransitGatewaysAPIClient
- params *DescribeTransitGatewaysInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeTransitGatewaysPaginator returns a new
-// DescribeTransitGatewaysPaginator
-func NewDescribeTransitGatewaysPaginator(client DescribeTransitGatewaysAPIClient, params *DescribeTransitGatewaysInput, optFns ...func(*DescribeTransitGatewaysPaginatorOptions)) *DescribeTransitGatewaysPaginator {
- if params == nil {
- params = &DescribeTransitGatewaysInput{}
- }
-
- options := DescribeTransitGatewaysPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeTransitGatewaysPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeTransitGatewaysPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeTransitGateways page.
-func (p *DescribeTransitGatewaysPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeTransitGatewaysOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeTransitGateways(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeTransitGatewaysAPIClient is a client that implements the
-// DescribeTransitGateways operation.
-type DescribeTransitGatewaysAPIClient interface {
- DescribeTransitGateways(context.Context, *DescribeTransitGatewaysInput, ...func(*Options)) (*DescribeTransitGatewaysOutput, error)
-}
-
-var _ DescribeTransitGatewaysAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeTransitGateways(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeTransitGateways",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrunkInterfaceAssociations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrunkInterfaceAssociations.go
deleted file mode 100644
index a97b3b82d..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrunkInterfaceAssociations.go
+++ /dev/null
@@ -1,276 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more network interface trunk associations.
-func (c *Client) DescribeTrunkInterfaceAssociations(ctx context.Context, params *DescribeTrunkInterfaceAssociationsInput, optFns ...func(*Options)) (*DescribeTrunkInterfaceAssociationsOutput, error) {
- if params == nil {
- params = &DescribeTrunkInterfaceAssociationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeTrunkInterfaceAssociations", params, optFns, c.addOperationDescribeTrunkInterfaceAssociationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeTrunkInterfaceAssociationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeTrunkInterfaceAssociationsInput struct {
-
- // The IDs of the associations.
- AssociationIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - gre-key - The ID of a trunk interface association.
- //
- // - interface-protocol - The interface protocol. Valid values are VLAN and GRE .
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeTrunkInterfaceAssociationsOutput struct {
-
- // Information about the trunk associations.
- InterfaceAssociations []types.TrunkInterfaceAssociation
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeTrunkInterfaceAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTrunkInterfaceAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeTrunkInterfaceAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeTrunkInterfaceAssociations"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeTrunkInterfaceAssociations(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeTrunkInterfaceAssociationsPaginatorOptions is the paginator options for
-// DescribeTrunkInterfaceAssociations
-type DescribeTrunkInterfaceAssociationsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeTrunkInterfaceAssociationsPaginator is a paginator for
-// DescribeTrunkInterfaceAssociations
-type DescribeTrunkInterfaceAssociationsPaginator struct {
- options DescribeTrunkInterfaceAssociationsPaginatorOptions
- client DescribeTrunkInterfaceAssociationsAPIClient
- params *DescribeTrunkInterfaceAssociationsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeTrunkInterfaceAssociationsPaginator returns a new
-// DescribeTrunkInterfaceAssociationsPaginator
-func NewDescribeTrunkInterfaceAssociationsPaginator(client DescribeTrunkInterfaceAssociationsAPIClient, params *DescribeTrunkInterfaceAssociationsInput, optFns ...func(*DescribeTrunkInterfaceAssociationsPaginatorOptions)) *DescribeTrunkInterfaceAssociationsPaginator {
- if params == nil {
- params = &DescribeTrunkInterfaceAssociationsInput{}
- }
-
- options := DescribeTrunkInterfaceAssociationsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeTrunkInterfaceAssociationsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeTrunkInterfaceAssociationsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeTrunkInterfaceAssociations page.
-func (p *DescribeTrunkInterfaceAssociationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeTrunkInterfaceAssociationsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeTrunkInterfaceAssociations(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeTrunkInterfaceAssociationsAPIClient is a client that implements the
-// DescribeTrunkInterfaceAssociations operation.
-type DescribeTrunkInterfaceAssociationsAPIClient interface {
- DescribeTrunkInterfaceAssociations(context.Context, *DescribeTrunkInterfaceAssociationsInput, ...func(*Options)) (*DescribeTrunkInterfaceAssociationsOutput, error)
-}
-
-var _ DescribeTrunkInterfaceAssociationsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeTrunkInterfaceAssociations(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeTrunkInterfaceAssociations",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVerifiedAccessEndpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVerifiedAccessEndpoints.go
deleted file mode 100644
index cbe9f60a2..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVerifiedAccessEndpoints.go
+++ /dev/null
@@ -1,278 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified Amazon Web Services Verified Access endpoints.
-func (c *Client) DescribeVerifiedAccessEndpoints(ctx context.Context, params *DescribeVerifiedAccessEndpointsInput, optFns ...func(*Options)) (*DescribeVerifiedAccessEndpointsOutput, error) {
- if params == nil {
- params = &DescribeVerifiedAccessEndpointsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVerifiedAccessEndpoints", params, optFns, c.addOperationDescribeVerifiedAccessEndpointsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVerifiedAccessEndpointsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeVerifiedAccessEndpointsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. Filter names and values are case-sensitive.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The ID of the Verified Access endpoint.
- VerifiedAccessEndpointIds []string
-
- // The ID of the Verified Access group.
- VerifiedAccessGroupId *string
-
- // The ID of the Verified Access instance.
- VerifiedAccessInstanceId *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeVerifiedAccessEndpointsOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Details about the Verified Access endpoints.
- VerifiedAccessEndpoints []types.VerifiedAccessEndpoint
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVerifiedAccessEndpointsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVerifiedAccessEndpoints{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVerifiedAccessEndpoints{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVerifiedAccessEndpoints"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVerifiedAccessEndpoints(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeVerifiedAccessEndpointsPaginatorOptions is the paginator options for
-// DescribeVerifiedAccessEndpoints
-type DescribeVerifiedAccessEndpointsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeVerifiedAccessEndpointsPaginator is a paginator for
-// DescribeVerifiedAccessEndpoints
-type DescribeVerifiedAccessEndpointsPaginator struct {
- options DescribeVerifiedAccessEndpointsPaginatorOptions
- client DescribeVerifiedAccessEndpointsAPIClient
- params *DescribeVerifiedAccessEndpointsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeVerifiedAccessEndpointsPaginator returns a new
-// DescribeVerifiedAccessEndpointsPaginator
-func NewDescribeVerifiedAccessEndpointsPaginator(client DescribeVerifiedAccessEndpointsAPIClient, params *DescribeVerifiedAccessEndpointsInput, optFns ...func(*DescribeVerifiedAccessEndpointsPaginatorOptions)) *DescribeVerifiedAccessEndpointsPaginator {
- if params == nil {
- params = &DescribeVerifiedAccessEndpointsInput{}
- }
-
- options := DescribeVerifiedAccessEndpointsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeVerifiedAccessEndpointsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeVerifiedAccessEndpointsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeVerifiedAccessEndpoints page.
-func (p *DescribeVerifiedAccessEndpointsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeVerifiedAccessEndpointsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeVerifiedAccessEndpoints(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeVerifiedAccessEndpointsAPIClient is a client that implements the
-// DescribeVerifiedAccessEndpoints operation.
-type DescribeVerifiedAccessEndpointsAPIClient interface {
- DescribeVerifiedAccessEndpoints(context.Context, *DescribeVerifiedAccessEndpointsInput, ...func(*Options)) (*DescribeVerifiedAccessEndpointsOutput, error)
-}
-
-var _ DescribeVerifiedAccessEndpointsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeVerifiedAccessEndpoints(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVerifiedAccessEndpoints",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVerifiedAccessGroups.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVerifiedAccessGroups.go
deleted file mode 100644
index e51f27b5b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVerifiedAccessGroups.go
+++ /dev/null
@@ -1,275 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified Verified Access groups.
-func (c *Client) DescribeVerifiedAccessGroups(ctx context.Context, params *DescribeVerifiedAccessGroupsInput, optFns ...func(*Options)) (*DescribeVerifiedAccessGroupsOutput, error) {
- if params == nil {
- params = &DescribeVerifiedAccessGroupsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVerifiedAccessGroups", params, optFns, c.addOperationDescribeVerifiedAccessGroupsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVerifiedAccessGroupsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeVerifiedAccessGroupsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. Filter names and values are case-sensitive.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The ID of the Verified Access groups.
- VerifiedAccessGroupIds []string
-
- // The ID of the Verified Access instance.
- VerifiedAccessInstanceId *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeVerifiedAccessGroupsOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Details about the Verified Access groups.
- VerifiedAccessGroups []types.VerifiedAccessGroup
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVerifiedAccessGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVerifiedAccessGroups{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVerifiedAccessGroups{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVerifiedAccessGroups"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVerifiedAccessGroups(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeVerifiedAccessGroupsPaginatorOptions is the paginator options for
-// DescribeVerifiedAccessGroups
-type DescribeVerifiedAccessGroupsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeVerifiedAccessGroupsPaginator is a paginator for
-// DescribeVerifiedAccessGroups
-type DescribeVerifiedAccessGroupsPaginator struct {
- options DescribeVerifiedAccessGroupsPaginatorOptions
- client DescribeVerifiedAccessGroupsAPIClient
- params *DescribeVerifiedAccessGroupsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeVerifiedAccessGroupsPaginator returns a new
-// DescribeVerifiedAccessGroupsPaginator
-func NewDescribeVerifiedAccessGroupsPaginator(client DescribeVerifiedAccessGroupsAPIClient, params *DescribeVerifiedAccessGroupsInput, optFns ...func(*DescribeVerifiedAccessGroupsPaginatorOptions)) *DescribeVerifiedAccessGroupsPaginator {
- if params == nil {
- params = &DescribeVerifiedAccessGroupsInput{}
- }
-
- options := DescribeVerifiedAccessGroupsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeVerifiedAccessGroupsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeVerifiedAccessGroupsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeVerifiedAccessGroups page.
-func (p *DescribeVerifiedAccessGroupsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeVerifiedAccessGroupsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeVerifiedAccessGroups(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeVerifiedAccessGroupsAPIClient is a client that implements the
-// DescribeVerifiedAccessGroups operation.
-type DescribeVerifiedAccessGroupsAPIClient interface {
- DescribeVerifiedAccessGroups(context.Context, *DescribeVerifiedAccessGroupsInput, ...func(*Options)) (*DescribeVerifiedAccessGroupsOutput, error)
-}
-
-var _ DescribeVerifiedAccessGroupsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeVerifiedAccessGroups(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVerifiedAccessGroups",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVerifiedAccessInstanceLoggingConfigurations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVerifiedAccessInstanceLoggingConfigurations.go
deleted file mode 100644
index bb555f04f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVerifiedAccessInstanceLoggingConfigurations.go
+++ /dev/null
@@ -1,273 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified Amazon Web Services Verified Access instances.
-func (c *Client) DescribeVerifiedAccessInstanceLoggingConfigurations(ctx context.Context, params *DescribeVerifiedAccessInstanceLoggingConfigurationsInput, optFns ...func(*Options)) (*DescribeVerifiedAccessInstanceLoggingConfigurationsOutput, error) {
- if params == nil {
- params = &DescribeVerifiedAccessInstanceLoggingConfigurationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVerifiedAccessInstanceLoggingConfigurations", params, optFns, c.addOperationDescribeVerifiedAccessInstanceLoggingConfigurationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVerifiedAccessInstanceLoggingConfigurationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeVerifiedAccessInstanceLoggingConfigurationsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. Filter names and values are case-sensitive.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The IDs of the Verified Access instances.
- VerifiedAccessInstanceIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeVerifiedAccessInstanceLoggingConfigurationsOutput struct {
-
- // The logging configuration for the Verified Access instances.
- LoggingConfigurations []types.VerifiedAccessInstanceLoggingConfiguration
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVerifiedAccessInstanceLoggingConfigurationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVerifiedAccessInstanceLoggingConfigurations{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVerifiedAccessInstanceLoggingConfigurations{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVerifiedAccessInstanceLoggingConfigurations"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVerifiedAccessInstanceLoggingConfigurations(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeVerifiedAccessInstanceLoggingConfigurationsPaginatorOptions is the
-// paginator options for DescribeVerifiedAccessInstanceLoggingConfigurations
-type DescribeVerifiedAccessInstanceLoggingConfigurationsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeVerifiedAccessInstanceLoggingConfigurationsPaginator is a paginator for
-// DescribeVerifiedAccessInstanceLoggingConfigurations
-type DescribeVerifiedAccessInstanceLoggingConfigurationsPaginator struct {
- options DescribeVerifiedAccessInstanceLoggingConfigurationsPaginatorOptions
- client DescribeVerifiedAccessInstanceLoggingConfigurationsAPIClient
- params *DescribeVerifiedAccessInstanceLoggingConfigurationsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeVerifiedAccessInstanceLoggingConfigurationsPaginator returns a new
-// DescribeVerifiedAccessInstanceLoggingConfigurationsPaginator
-func NewDescribeVerifiedAccessInstanceLoggingConfigurationsPaginator(client DescribeVerifiedAccessInstanceLoggingConfigurationsAPIClient, params *DescribeVerifiedAccessInstanceLoggingConfigurationsInput, optFns ...func(*DescribeVerifiedAccessInstanceLoggingConfigurationsPaginatorOptions)) *DescribeVerifiedAccessInstanceLoggingConfigurationsPaginator {
- if params == nil {
- params = &DescribeVerifiedAccessInstanceLoggingConfigurationsInput{}
- }
-
- options := DescribeVerifiedAccessInstanceLoggingConfigurationsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeVerifiedAccessInstanceLoggingConfigurationsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeVerifiedAccessInstanceLoggingConfigurationsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeVerifiedAccessInstanceLoggingConfigurations
-// page.
-func (p *DescribeVerifiedAccessInstanceLoggingConfigurationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeVerifiedAccessInstanceLoggingConfigurationsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeVerifiedAccessInstanceLoggingConfigurations(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeVerifiedAccessInstanceLoggingConfigurationsAPIClient is a client that
-// implements the DescribeVerifiedAccessInstanceLoggingConfigurations operation.
-type DescribeVerifiedAccessInstanceLoggingConfigurationsAPIClient interface {
- DescribeVerifiedAccessInstanceLoggingConfigurations(context.Context, *DescribeVerifiedAccessInstanceLoggingConfigurationsInput, ...func(*Options)) (*DescribeVerifiedAccessInstanceLoggingConfigurationsOutput, error)
-}
-
-var _ DescribeVerifiedAccessInstanceLoggingConfigurationsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeVerifiedAccessInstanceLoggingConfigurations(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVerifiedAccessInstanceLoggingConfigurations",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVerifiedAccessInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVerifiedAccessInstances.go
deleted file mode 100644
index 7e1114ba3..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVerifiedAccessInstances.go
+++ /dev/null
@@ -1,272 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified Amazon Web Services Verified Access instances.
-func (c *Client) DescribeVerifiedAccessInstances(ctx context.Context, params *DescribeVerifiedAccessInstancesInput, optFns ...func(*Options)) (*DescribeVerifiedAccessInstancesOutput, error) {
- if params == nil {
- params = &DescribeVerifiedAccessInstancesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVerifiedAccessInstances", params, optFns, c.addOperationDescribeVerifiedAccessInstancesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVerifiedAccessInstancesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeVerifiedAccessInstancesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. Filter names and values are case-sensitive.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The IDs of the Verified Access instances.
- VerifiedAccessInstanceIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeVerifiedAccessInstancesOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Details about the Verified Access instances.
- VerifiedAccessInstances []types.VerifiedAccessInstance
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVerifiedAccessInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVerifiedAccessInstances{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVerifiedAccessInstances{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVerifiedAccessInstances"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVerifiedAccessInstances(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeVerifiedAccessInstancesPaginatorOptions is the paginator options for
-// DescribeVerifiedAccessInstances
-type DescribeVerifiedAccessInstancesPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeVerifiedAccessInstancesPaginator is a paginator for
-// DescribeVerifiedAccessInstances
-type DescribeVerifiedAccessInstancesPaginator struct {
- options DescribeVerifiedAccessInstancesPaginatorOptions
- client DescribeVerifiedAccessInstancesAPIClient
- params *DescribeVerifiedAccessInstancesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeVerifiedAccessInstancesPaginator returns a new
-// DescribeVerifiedAccessInstancesPaginator
-func NewDescribeVerifiedAccessInstancesPaginator(client DescribeVerifiedAccessInstancesAPIClient, params *DescribeVerifiedAccessInstancesInput, optFns ...func(*DescribeVerifiedAccessInstancesPaginatorOptions)) *DescribeVerifiedAccessInstancesPaginator {
- if params == nil {
- params = &DescribeVerifiedAccessInstancesInput{}
- }
-
- options := DescribeVerifiedAccessInstancesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeVerifiedAccessInstancesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeVerifiedAccessInstancesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeVerifiedAccessInstances page.
-func (p *DescribeVerifiedAccessInstancesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeVerifiedAccessInstancesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeVerifiedAccessInstances(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeVerifiedAccessInstancesAPIClient is a client that implements the
-// DescribeVerifiedAccessInstances operation.
-type DescribeVerifiedAccessInstancesAPIClient interface {
- DescribeVerifiedAccessInstances(context.Context, *DescribeVerifiedAccessInstancesInput, ...func(*Options)) (*DescribeVerifiedAccessInstancesOutput, error)
-}
-
-var _ DescribeVerifiedAccessInstancesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeVerifiedAccessInstances(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVerifiedAccessInstances",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVerifiedAccessTrustProviders.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVerifiedAccessTrustProviders.go
deleted file mode 100644
index 52f195203..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVerifiedAccessTrustProviders.go
+++ /dev/null
@@ -1,272 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified Amazon Web Services Verified Access trust providers.
-func (c *Client) DescribeVerifiedAccessTrustProviders(ctx context.Context, params *DescribeVerifiedAccessTrustProvidersInput, optFns ...func(*Options)) (*DescribeVerifiedAccessTrustProvidersOutput, error) {
- if params == nil {
- params = &DescribeVerifiedAccessTrustProvidersInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVerifiedAccessTrustProviders", params, optFns, c.addOperationDescribeVerifiedAccessTrustProvidersMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVerifiedAccessTrustProvidersOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeVerifiedAccessTrustProvidersInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. Filter names and values are case-sensitive.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The IDs of the Verified Access trust providers.
- VerifiedAccessTrustProviderIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeVerifiedAccessTrustProvidersOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Details about the Verified Access trust providers.
- VerifiedAccessTrustProviders []types.VerifiedAccessTrustProvider
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVerifiedAccessTrustProvidersMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVerifiedAccessTrustProviders{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVerifiedAccessTrustProviders{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVerifiedAccessTrustProviders"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVerifiedAccessTrustProviders(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeVerifiedAccessTrustProvidersPaginatorOptions is the paginator options
-// for DescribeVerifiedAccessTrustProviders
-type DescribeVerifiedAccessTrustProvidersPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeVerifiedAccessTrustProvidersPaginator is a paginator for
-// DescribeVerifiedAccessTrustProviders
-type DescribeVerifiedAccessTrustProvidersPaginator struct {
- options DescribeVerifiedAccessTrustProvidersPaginatorOptions
- client DescribeVerifiedAccessTrustProvidersAPIClient
- params *DescribeVerifiedAccessTrustProvidersInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeVerifiedAccessTrustProvidersPaginator returns a new
-// DescribeVerifiedAccessTrustProvidersPaginator
-func NewDescribeVerifiedAccessTrustProvidersPaginator(client DescribeVerifiedAccessTrustProvidersAPIClient, params *DescribeVerifiedAccessTrustProvidersInput, optFns ...func(*DescribeVerifiedAccessTrustProvidersPaginatorOptions)) *DescribeVerifiedAccessTrustProvidersPaginator {
- if params == nil {
- params = &DescribeVerifiedAccessTrustProvidersInput{}
- }
-
- options := DescribeVerifiedAccessTrustProvidersPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeVerifiedAccessTrustProvidersPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeVerifiedAccessTrustProvidersPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeVerifiedAccessTrustProviders page.
-func (p *DescribeVerifiedAccessTrustProvidersPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeVerifiedAccessTrustProvidersOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeVerifiedAccessTrustProviders(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeVerifiedAccessTrustProvidersAPIClient is a client that implements the
-// DescribeVerifiedAccessTrustProviders operation.
-type DescribeVerifiedAccessTrustProvidersAPIClient interface {
- DescribeVerifiedAccessTrustProviders(context.Context, *DescribeVerifiedAccessTrustProvidersInput, ...func(*Options)) (*DescribeVerifiedAccessTrustProvidersOutput, error)
-}
-
-var _ DescribeVerifiedAccessTrustProvidersAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeVerifiedAccessTrustProviders(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVerifiedAccessTrustProviders",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumeAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumeAttribute.go
deleted file mode 100644
index 5834d5dae..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumeAttribute.go
+++ /dev/null
@@ -1,182 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified attribute of the specified volume. You can specify only
-// one attribute at a time.
-//
-// For more information about EBS volumes, see [Amazon EBS volumes] in the Amazon EBS User Guide.
-//
-// [Amazon EBS volumes]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volumes.html
-func (c *Client) DescribeVolumeAttribute(ctx context.Context, params *DescribeVolumeAttributeInput, optFns ...func(*Options)) (*DescribeVolumeAttributeOutput, error) {
- if params == nil {
- params = &DescribeVolumeAttributeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVolumeAttribute", params, optFns, c.addOperationDescribeVolumeAttributeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVolumeAttributeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeVolumeAttributeInput struct {
-
- // The attribute of the volume. This parameter is required.
- //
- // This member is required.
- Attribute types.VolumeAttributeName
-
- // The ID of the volume.
- //
- // This member is required.
- VolumeId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DescribeVolumeAttributeOutput struct {
-
- // The state of autoEnableIO attribute.
- AutoEnableIO *types.AttributeBooleanValue
-
- // A list of product codes.
- ProductCodes []types.ProductCode
-
- // The ID of the volume.
- VolumeId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVolumeAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVolumeAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVolumeAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVolumeAttribute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDescribeVolumeAttributeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVolumeAttribute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeVolumeAttribute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVolumeAttribute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumeStatus.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumeStatus.go
deleted file mode 100644
index fa6238e61..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumeStatus.go
+++ /dev/null
@@ -1,348 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the status of the specified volumes. Volume status provides the
-// result of the checks performed on your volumes to determine events that can
-// impair the performance of your volumes. The performance of a volume can be
-// affected if an issue occurs on the volume's underlying host. If the volume's
-// underlying host experiences a power outage or system issue, after the system is
-// restored, there could be data inconsistencies on the volume. Volume events
-// notify you if this occurs. Volume actions notify you if any action needs to be
-// taken in response to the event.
-//
-// The DescribeVolumeStatus operation provides the following information about the
-// specified volumes:
-//
-// Status: Reflects the current status of the volume. The possible values are ok ,
-// impaired , warning , or insufficient-data . If all checks pass, the overall
-// status of the volume is ok . If the check fails, the overall status is impaired
-// . If the status is insufficient-data , then the checks might still be taking
-// place on your volume at the time. We recommend that you retry the request. For
-// more information about volume status, see [Monitor the status of your volumes]in the Amazon EBS User Guide.
-//
-// Events: Reflect the cause of a volume status and might require you to take
-// action. For example, if your volume returns an impaired status, then the volume
-// event might be potential-data-inconsistency . This means that your volume has
-// been affected by an issue with the underlying host, has all I/O operations
-// disabled, and might have inconsistent data.
-//
-// Actions: Reflect the actions you might have to take in response to an event.
-// For example, if the status of the volume is impaired and the volume event shows
-// potential-data-inconsistency , then the action shows enable-volume-io . This
-// means that you may want to enable the I/O operations for the volume by calling
-// the EnableVolumeIOaction and then check the volume for data consistency.
-//
-// Volume status is based on the volume status checks, and does not reflect the
-// volume state. Therefore, volume status does not indicate volumes in the error
-// state (for example, when a volume is incapable of accepting I/O.)
-//
-// The order of the elements in the response, including those within nested
-// structures, might vary. Applications should not assume the elements appear in a
-// particular order.
-//
-// [Monitor the status of your volumes]: https://docs.aws.amazon.com/ebs/latest/userguide/monitoring-volume-status.html
-func (c *Client) DescribeVolumeStatus(ctx context.Context, params *DescribeVolumeStatusInput, optFns ...func(*Options)) (*DescribeVolumeStatusOutput, error) {
- if params == nil {
- params = &DescribeVolumeStatusInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVolumeStatus", params, optFns, c.addOperationDescribeVolumeStatusMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVolumeStatusOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeVolumeStatusInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - action.code - The action code for the event (for example, enable-volume-io ).
- //
- // - action.description - A description of the action.
- //
- // - action.event-id - The event ID associated with the action.
- //
- // - availability-zone - The Availability Zone of the instance.
- //
- // - event.description - A description of the event.
- //
- // - event.event-id - The event ID.
- //
- // - event.event-type - The event type (for io-enabled : passed | failed ; for
- // io-performance : io-performance:degraded | io-performance:severely-degraded |
- // io-performance:stalled ).
- //
- // - event.not-after - The latest end time for the event.
- //
- // - event.not-before - The earliest start time for the event.
- //
- // - volume-status.details-name - The cause for volume-status.status ( io-enabled
- // | io-performance ).
- //
- // - volume-status.details-status - The status of volume-status.details-name (for
- // io-enabled : passed | failed ; for io-performance : normal | degraded |
- // severely-degraded | stalled ).
- //
- // - volume-status.status - The status of the volume ( ok | impaired | warning |
- // insufficient-data ).
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- // The IDs of the volumes.
- //
- // Default: Describes all your volumes.
- VolumeIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeVolumeStatusOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Information about the status of the volumes.
- VolumeStatuses []types.VolumeStatusItem
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVolumeStatusMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVolumeStatus{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVolumeStatus{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVolumeStatus"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVolumeStatus(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeVolumeStatusPaginatorOptions is the paginator options for
-// DescribeVolumeStatus
-type DescribeVolumeStatusPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeVolumeStatusPaginator is a paginator for DescribeVolumeStatus
-type DescribeVolumeStatusPaginator struct {
- options DescribeVolumeStatusPaginatorOptions
- client DescribeVolumeStatusAPIClient
- params *DescribeVolumeStatusInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeVolumeStatusPaginator returns a new DescribeVolumeStatusPaginator
-func NewDescribeVolumeStatusPaginator(client DescribeVolumeStatusAPIClient, params *DescribeVolumeStatusInput, optFns ...func(*DescribeVolumeStatusPaginatorOptions)) *DescribeVolumeStatusPaginator {
- if params == nil {
- params = &DescribeVolumeStatusInput{}
- }
-
- options := DescribeVolumeStatusPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeVolumeStatusPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeVolumeStatusPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeVolumeStatus page.
-func (p *DescribeVolumeStatusPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeVolumeStatusOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeVolumeStatus(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeVolumeStatusAPIClient is a client that implements the
-// DescribeVolumeStatus operation.
-type DescribeVolumeStatusAPIClient interface {
- DescribeVolumeStatus(context.Context, *DescribeVolumeStatusInput, ...func(*Options)) (*DescribeVolumeStatusOutput, error)
-}
-
-var _ DescribeVolumeStatusAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeVolumeStatus(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVolumeStatus",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumes.go
deleted file mode 100644
index 13b6f6246..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumes.go
+++ /dev/null
@@ -1,957 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "errors"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- smithy "github.com/aws/smithy-go"
- "github.com/aws/smithy-go/middleware"
- smithytime "github.com/aws/smithy-go/time"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- smithywaiter "github.com/aws/smithy-go/waiter"
- "time"
-)
-
-// Describes the specified EBS volumes or all of your EBS volumes.
-//
-// If you are describing a long list of volumes, we recommend that you paginate
-// the output to make the list more manageable. For more information, see [Pagination].
-//
-// For more information about EBS volumes, see [Amazon EBS volumes] in the Amazon EBS User Guide.
-//
-// We strongly recommend using only paginated requests. Unpaginated requests are
-// susceptible to throttling and timeouts.
-//
-// The order of the elements in the response, including those within nested
-// structures, might vary. Applications should not assume the elements appear in a
-// particular order.
-//
-// [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
-// [Amazon EBS volumes]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volumes.html
-func (c *Client) DescribeVolumes(ctx context.Context, params *DescribeVolumesInput, optFns ...func(*Options)) (*DescribeVolumesOutput, error) {
- if params == nil {
- params = &DescribeVolumesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVolumes", params, optFns, c.addOperationDescribeVolumesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVolumesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeVolumesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - attachment.attach-time - The time stamp when the attachment initiated.
- //
- // - attachment.delete-on-termination - Whether the volume is deleted on instance
- // termination.
- //
- // - attachment.device - The device name specified in the block device mapping
- // (for example, /dev/sda1 ).
- //
- // - attachment.instance-id - The ID of the instance the volume is attached to.
- //
- // - attachment.status - The attachment state ( attaching | attached | detaching
- // ).
- //
- // - availability-zone - The Availability Zone in which the volume was created.
- //
- // - create-time - The time stamp when the volume was created.
- //
- // - encrypted - Indicates whether the volume is encrypted ( true | false )
- //
- // - fast-restored - Indicates whether the volume was created from a snapshot
- // that is enabled for fast snapshot restore ( true | false ).
- //
- // - multi-attach-enabled - Indicates whether the volume is enabled for
- // Multi-Attach ( true | false )
- //
- // - operator.managed - A Boolean that indicates whether this is a managed volume.
- //
- // - operator.principal - The principal that manages the volume. Only valid for
- // managed volumes, where managed is true .
- //
- // - size - The size of the volume, in GiB.
- //
- // - snapshot-id - The snapshot from which the volume was created.
- //
- // - status - The state of the volume ( creating | available | in-use | deleting
- // | deleted | error ).
- //
- // - tag : - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- //
- // - volume-id - The volume ID.
- //
- // - volume-type - The Amazon EBS volume type ( gp2 | gp3 | io1 | io2 | st1 | sc1
- // | standard )
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- // The volume IDs. If not specified, then all volumes are included in the response.
- VolumeIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeVolumesOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Information about the volumes.
- Volumes []types.Volume
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVolumesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVolumes{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVolumes{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVolumes"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVolumes(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// VolumeAvailableWaiterOptions are waiter options for VolumeAvailableWaiter
-type VolumeAvailableWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // VolumeAvailableWaiter will use default minimum delay of 15 seconds. Note that
- // MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, VolumeAvailableWaiter will use default max delay of 120 seconds.
- // Note that MaxDelay must resolve to value greater than or equal to the MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeVolumesInput, *DescribeVolumesOutput, error) (bool, error)
-}
-
-// VolumeAvailableWaiter defines the waiters for VolumeAvailable
-type VolumeAvailableWaiter struct {
- client DescribeVolumesAPIClient
-
- options VolumeAvailableWaiterOptions
-}
-
-// NewVolumeAvailableWaiter constructs a VolumeAvailableWaiter.
-func NewVolumeAvailableWaiter(client DescribeVolumesAPIClient, optFns ...func(*VolumeAvailableWaiterOptions)) *VolumeAvailableWaiter {
- options := VolumeAvailableWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = volumeAvailableStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &VolumeAvailableWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for VolumeAvailable waiter. The maxWaitDur is
-// the maximum wait duration the waiter will wait. The maxWaitDur is required and
-// must be greater than zero.
-func (w *VolumeAvailableWaiter) Wait(ctx context.Context, params *DescribeVolumesInput, maxWaitDur time.Duration, optFns ...func(*VolumeAvailableWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for VolumeAvailable waiter and returns
-// the output of the successful operation. The maxWaitDur is the maximum wait
-// duration the waiter will wait. The maxWaitDur is required and must be greater
-// than zero.
-func (w *VolumeAvailableWaiter) WaitForOutput(ctx context.Context, params *DescribeVolumesInput, maxWaitDur time.Duration, optFns ...func(*VolumeAvailableWaiterOptions)) (*DescribeVolumesOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeVolumes(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for VolumeAvailable waiter")
-}
-
-func volumeAvailableStateRetryable(ctx context.Context, input *DescribeVolumesInput, output *DescribeVolumesOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.Volumes
- var v2 []types.VolumeState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "available"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err == nil {
- v1 := output.Volumes
- var v2 []types.VolumeState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "deleted"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// VolumeDeletedWaiterOptions are waiter options for VolumeDeletedWaiter
-type VolumeDeletedWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // VolumeDeletedWaiter will use default minimum delay of 15 seconds. Note that
- // MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, VolumeDeletedWaiter will use default max delay of 120 seconds. Note
- // that MaxDelay must resolve to value greater than or equal to the MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeVolumesInput, *DescribeVolumesOutput, error) (bool, error)
-}
-
-// VolumeDeletedWaiter defines the waiters for VolumeDeleted
-type VolumeDeletedWaiter struct {
- client DescribeVolumesAPIClient
-
- options VolumeDeletedWaiterOptions
-}
-
-// NewVolumeDeletedWaiter constructs a VolumeDeletedWaiter.
-func NewVolumeDeletedWaiter(client DescribeVolumesAPIClient, optFns ...func(*VolumeDeletedWaiterOptions)) *VolumeDeletedWaiter {
- options := VolumeDeletedWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = volumeDeletedStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &VolumeDeletedWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for VolumeDeleted waiter. The maxWaitDur is the
-// maximum wait duration the waiter will wait. The maxWaitDur is required and must
-// be greater than zero.
-func (w *VolumeDeletedWaiter) Wait(ctx context.Context, params *DescribeVolumesInput, maxWaitDur time.Duration, optFns ...func(*VolumeDeletedWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for VolumeDeleted waiter and returns
-// the output of the successful operation. The maxWaitDur is the maximum wait
-// duration the waiter will wait. The maxWaitDur is required and must be greater
-// than zero.
-func (w *VolumeDeletedWaiter) WaitForOutput(ctx context.Context, params *DescribeVolumesInput, maxWaitDur time.Duration, optFns ...func(*VolumeDeletedWaiterOptions)) (*DescribeVolumesOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeVolumes(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for VolumeDeleted waiter")
-}
-
-func volumeDeletedStateRetryable(ctx context.Context, input *DescribeVolumesInput, output *DescribeVolumesOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.Volumes
- var v2 []types.VolumeState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "deleted"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err != nil {
- var apiErr smithy.APIError
- ok := errors.As(err, &apiErr)
- if !ok {
- return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err)
- }
-
- if "InvalidVolume.NotFound" == apiErr.ErrorCode() {
- return false, nil
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// VolumeInUseWaiterOptions are waiter options for VolumeInUseWaiter
-type VolumeInUseWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // VolumeInUseWaiter will use default minimum delay of 15 seconds. Note that
- // MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, VolumeInUseWaiter will use default max delay of 120 seconds. Note
- // that MaxDelay must resolve to value greater than or equal to the MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeVolumesInput, *DescribeVolumesOutput, error) (bool, error)
-}
-
-// VolumeInUseWaiter defines the waiters for VolumeInUse
-type VolumeInUseWaiter struct {
- client DescribeVolumesAPIClient
-
- options VolumeInUseWaiterOptions
-}
-
-// NewVolumeInUseWaiter constructs a VolumeInUseWaiter.
-func NewVolumeInUseWaiter(client DescribeVolumesAPIClient, optFns ...func(*VolumeInUseWaiterOptions)) *VolumeInUseWaiter {
- options := VolumeInUseWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = volumeInUseStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &VolumeInUseWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for VolumeInUse waiter. The maxWaitDur is the
-// maximum wait duration the waiter will wait. The maxWaitDur is required and must
-// be greater than zero.
-func (w *VolumeInUseWaiter) Wait(ctx context.Context, params *DescribeVolumesInput, maxWaitDur time.Duration, optFns ...func(*VolumeInUseWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for VolumeInUse waiter and returns the
-// output of the successful operation. The maxWaitDur is the maximum wait duration
-// the waiter will wait. The maxWaitDur is required and must be greater than zero.
-func (w *VolumeInUseWaiter) WaitForOutput(ctx context.Context, params *DescribeVolumesInput, maxWaitDur time.Duration, optFns ...func(*VolumeInUseWaiterOptions)) (*DescribeVolumesOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeVolumes(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for VolumeInUse waiter")
-}
-
-func volumeInUseStateRetryable(ctx context.Context, input *DescribeVolumesInput, output *DescribeVolumesOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.Volumes
- var v2 []types.VolumeState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "in-use"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err == nil {
- v1 := output.Volumes
- var v2 []types.VolumeState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "deleted"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// DescribeVolumesPaginatorOptions is the paginator options for DescribeVolumes
-type DescribeVolumesPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeVolumesPaginator is a paginator for DescribeVolumes
-type DescribeVolumesPaginator struct {
- options DescribeVolumesPaginatorOptions
- client DescribeVolumesAPIClient
- params *DescribeVolumesInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeVolumesPaginator returns a new DescribeVolumesPaginator
-func NewDescribeVolumesPaginator(client DescribeVolumesAPIClient, params *DescribeVolumesInput, optFns ...func(*DescribeVolumesPaginatorOptions)) *DescribeVolumesPaginator {
- if params == nil {
- params = &DescribeVolumesInput{}
- }
-
- options := DescribeVolumesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeVolumesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeVolumesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeVolumes page.
-func (p *DescribeVolumesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeVolumesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeVolumes(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeVolumesAPIClient is a client that implements the DescribeVolumes
-// operation.
-type DescribeVolumesAPIClient interface {
- DescribeVolumes(context.Context, *DescribeVolumesInput, ...func(*Options)) (*DescribeVolumesOutput, error)
-}
-
-var _ DescribeVolumesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeVolumes(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVolumes",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumesModifications.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumesModifications.go
deleted file mode 100644
index 69e2e7ad8..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumesModifications.go
+++ /dev/null
@@ -1,309 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the most recent volume modification request for the specified EBS
-// volumes.
-//
-// For more information, see [Monitor the progress of volume modifications] in the Amazon EBS User Guide.
-//
-// [Monitor the progress of volume modifications]: https://docs.aws.amazon.com/ebs/latest/userguide/monitoring-volume-modifications.html
-func (c *Client) DescribeVolumesModifications(ctx context.Context, params *DescribeVolumesModificationsInput, optFns ...func(*Options)) (*DescribeVolumesModificationsOutput, error) {
- if params == nil {
- params = &DescribeVolumesModificationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVolumesModifications", params, optFns, c.addOperationDescribeVolumesModificationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVolumesModificationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeVolumesModificationsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - modification-state - The current modification state (modifying | optimizing
- // | completed | failed).
- //
- // - original-iops - The original IOPS rate of the volume.
- //
- // - original-size - The original size of the volume, in GiB.
- //
- // - original-volume-type - The original volume type of the volume (standard |
- // io1 | io2 | gp2 | sc1 | st1).
- //
- // - originalMultiAttachEnabled - Indicates whether Multi-Attach support was
- // enabled (true | false).
- //
- // - start-time - The modification start time.
- //
- // - target-iops - The target IOPS rate of the volume.
- //
- // - target-size - The target size of the volume, in GiB.
- //
- // - target-volume-type - The target volume type of the volume (standard | io1 |
- // io2 | gp2 | sc1 | st1).
- //
- // - targetMultiAttachEnabled - Indicates whether Multi-Attach support is to be
- // enabled (true | false).
- //
- // - volume-id - The ID of the volume.
- Filters []types.Filter
-
- // The maximum number of results (up to a limit of 500) to be returned in a
- // paginated request. For more information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- // The IDs of the volumes.
- VolumeIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeVolumesModificationsOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Information about the volume modifications.
- VolumesModifications []types.VolumeModification
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVolumesModificationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVolumesModifications{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVolumesModifications{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVolumesModifications"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVolumesModifications(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeVolumesModificationsPaginatorOptions is the paginator options for
-// DescribeVolumesModifications
-type DescribeVolumesModificationsPaginatorOptions struct {
- // The maximum number of results (up to a limit of 500) to be returned in a
- // paginated request. For more information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeVolumesModificationsPaginator is a paginator for
-// DescribeVolumesModifications
-type DescribeVolumesModificationsPaginator struct {
- options DescribeVolumesModificationsPaginatorOptions
- client DescribeVolumesModificationsAPIClient
- params *DescribeVolumesModificationsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeVolumesModificationsPaginator returns a new
-// DescribeVolumesModificationsPaginator
-func NewDescribeVolumesModificationsPaginator(client DescribeVolumesModificationsAPIClient, params *DescribeVolumesModificationsInput, optFns ...func(*DescribeVolumesModificationsPaginatorOptions)) *DescribeVolumesModificationsPaginator {
- if params == nil {
- params = &DescribeVolumesModificationsInput{}
- }
-
- options := DescribeVolumesModificationsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeVolumesModificationsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeVolumesModificationsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeVolumesModifications page.
-func (p *DescribeVolumesModificationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeVolumesModificationsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeVolumesModifications(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeVolumesModificationsAPIClient is a client that implements the
-// DescribeVolumesModifications operation.
-type DescribeVolumesModificationsAPIClient interface {
- DescribeVolumesModifications(context.Context, *DescribeVolumesModificationsInput, ...func(*Options)) (*DescribeVolumesModificationsOutput, error)
-}
-
-var _ DescribeVolumesModificationsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeVolumesModifications(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVolumesModifications",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcAttribute.go
deleted file mode 100644
index 8dfa29556..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcAttribute.go
+++ /dev/null
@@ -1,185 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the specified attribute of the specified VPC. You can specify only
-// one attribute at a time.
-func (c *Client) DescribeVpcAttribute(ctx context.Context, params *DescribeVpcAttributeInput, optFns ...func(*Options)) (*DescribeVpcAttributeOutput, error) {
- if params == nil {
- params = &DescribeVpcAttributeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVpcAttribute", params, optFns, c.addOperationDescribeVpcAttributeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVpcAttributeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeVpcAttributeInput struct {
-
- // The VPC attribute.
- //
- // This member is required.
- Attribute types.VpcAttributeName
-
- // The ID of the VPC.
- //
- // This member is required.
- VpcId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DescribeVpcAttributeOutput struct {
-
- // Indicates whether the instances launched in the VPC get DNS hostnames. If this
- // attribute is true , instances in the VPC get DNS hostnames; otherwise, they do
- // not.
- EnableDnsHostnames *types.AttributeBooleanValue
-
- // Indicates whether DNS resolution is enabled for the VPC. If this attribute is
- // true , the Amazon DNS server resolves DNS hostnames for your instances to their
- // corresponding IP addresses; otherwise, it does not.
- EnableDnsSupport *types.AttributeBooleanValue
-
- // Indicates whether Network Address Usage metrics are enabled for your VPC.
- EnableNetworkAddressUsageMetrics *types.AttributeBooleanValue
-
- // The ID of the VPC.
- VpcId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVpcAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVpcAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVpcAttribute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDescribeVpcAttributeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVpcAttribute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeVpcAttribute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVpcAttribute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcBlockPublicAccessExclusions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcBlockPublicAccessExclusions.go
deleted file mode 100644
index 5f7868172..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcBlockPublicAccessExclusions.go
+++ /dev/null
@@ -1,207 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describe VPC Block Public Access (BPA) exclusions. A VPC BPA exclusion is a
-// mode that can be applied to a single VPC or subnet that exempts it from the
-// account’s BPA mode and will allow bidirectional or egress-only access. You can
-// create BPA exclusions for VPCs and subnets even when BPA is not enabled on the
-// account to ensure that there is no traffic disruption to the exclusions when VPC
-// BPA is turned on. To learn more about VPC BPA, see [Block public access to VPCs and subnets]in the Amazon VPC User Guide.
-//
-// [Block public access to VPCs and subnets]: https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html
-func (c *Client) DescribeVpcBlockPublicAccessExclusions(ctx context.Context, params *DescribeVpcBlockPublicAccessExclusionsInput, optFns ...func(*Options)) (*DescribeVpcBlockPublicAccessExclusionsOutput, error) {
- if params == nil {
- params = &DescribeVpcBlockPublicAccessExclusionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVpcBlockPublicAccessExclusions", params, optFns, c.addOperationDescribeVpcBlockPublicAccessExclusionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVpcBlockPublicAccessExclusionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeVpcBlockPublicAccessExclusionsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // IDs of exclusions.
- ExclusionIds []string
-
- // Filters for the request:
- //
- // - resource-arn - The Amazon Resource Name (ARN) of a exclusion.
- //
- // - internet-gateway-exclusion-mode - The mode of a VPC BPA exclusion. Possible
- // values: allow-bidirectional | allow-egress .
- //
- // - state - The state of VPC BPA. Possible values: create-in-progress |
- // create-complete | update-in-progress | update-complete | delete-in-progress |
- // deleted-complete | disable-in-progress | disable-complete
- //
- // - tag - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- //
- // - tag-value : The value of a tag assigned to the resource. Use this filter to
- // find all resources assigned a tag with a specific value, regardless of the tag
- // key.
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeVpcBlockPublicAccessExclusionsOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Details related to the exclusions.
- VpcBlockPublicAccessExclusions []types.VpcBlockPublicAccessExclusion
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVpcBlockPublicAccessExclusionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcBlockPublicAccessExclusions{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVpcBlockPublicAccessExclusions{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVpcBlockPublicAccessExclusions"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVpcBlockPublicAccessExclusions(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeVpcBlockPublicAccessExclusions(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVpcBlockPublicAccessExclusions",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcBlockPublicAccessOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcBlockPublicAccessOptions.go
deleted file mode 100644
index 16267e889..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcBlockPublicAccessOptions.go
+++ /dev/null
@@ -1,164 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describe VPC Block Public Access (BPA) options. VPC Block Public Access (BPA)
-// enables you to block resources in VPCs and subnets that you own in a Region from
-// reaching or being reached from the internet through internet gateways and
-// egress-only internet gateways. To learn more about VPC BPA, see [Block public access to VPCs and subnets]in the Amazon
-// VPC User Guide.
-//
-// [Block public access to VPCs and subnets]: https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html
-func (c *Client) DescribeVpcBlockPublicAccessOptions(ctx context.Context, params *DescribeVpcBlockPublicAccessOptionsInput, optFns ...func(*Options)) (*DescribeVpcBlockPublicAccessOptionsOutput, error) {
- if params == nil {
- params = &DescribeVpcBlockPublicAccessOptionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVpcBlockPublicAccessOptions", params, optFns, c.addOperationDescribeVpcBlockPublicAccessOptionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVpcBlockPublicAccessOptionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeVpcBlockPublicAccessOptionsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DescribeVpcBlockPublicAccessOptionsOutput struct {
-
- // Details related to the options.
- VpcBlockPublicAccessOptions *types.VpcBlockPublicAccessOptions
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVpcBlockPublicAccessOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcBlockPublicAccessOptions{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVpcBlockPublicAccessOptions{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVpcBlockPublicAccessOptions"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVpcBlockPublicAccessOptions(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeVpcBlockPublicAccessOptions(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVpcBlockPublicAccessOptions",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcClassicLink.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcClassicLink.go
deleted file mode 100644
index 3e61ed0b0..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcClassicLink.go
+++ /dev/null
@@ -1,177 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// This action is deprecated.
-//
-// Describes the ClassicLink status of the specified VPCs.
-func (c *Client) DescribeVpcClassicLink(ctx context.Context, params *DescribeVpcClassicLinkInput, optFns ...func(*Options)) (*DescribeVpcClassicLinkOutput, error) {
- if params == nil {
- params = &DescribeVpcClassicLinkInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVpcClassicLink", params, optFns, c.addOperationDescribeVpcClassicLinkMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVpcClassicLinkOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeVpcClassicLinkInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - is-classic-link-enabled - Whether the VPC is enabled for ClassicLink ( true
- // | false ).
- //
- // - tag - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- Filters []types.Filter
-
- // The VPCs for which you want to describe the ClassicLink status.
- VpcIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeVpcClassicLinkOutput struct {
-
- // The ClassicLink status of the VPCs.
- Vpcs []types.VpcClassicLink
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVpcClassicLinkMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcClassicLink{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVpcClassicLink{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVpcClassicLink"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVpcClassicLink(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeVpcClassicLink(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVpcClassicLink",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcClassicLinkDnsSupport.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcClassicLinkDnsSupport.go
deleted file mode 100644
index f68bed780..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcClassicLinkDnsSupport.go
+++ /dev/null
@@ -1,276 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// This action is deprecated.
-//
-// Describes the ClassicLink DNS support status of one or more VPCs. If enabled,
-// the DNS hostname of a linked EC2-Classic instance resolves to its private IP
-// address when addressed from an instance in the VPC to which it's linked.
-// Similarly, the DNS hostname of an instance in a VPC resolves to its private IP
-// address when addressed from a linked EC2-Classic instance.
-func (c *Client) DescribeVpcClassicLinkDnsSupport(ctx context.Context, params *DescribeVpcClassicLinkDnsSupportInput, optFns ...func(*Options)) (*DescribeVpcClassicLinkDnsSupportOutput, error) {
- if params == nil {
- params = &DescribeVpcClassicLinkDnsSupportInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVpcClassicLinkDnsSupport", params, optFns, c.addOperationDescribeVpcClassicLinkDnsSupportMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVpcClassicLinkDnsSupportOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeVpcClassicLinkDnsSupportInput struct {
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- // The IDs of the VPCs.
- VpcIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeVpcClassicLinkDnsSupportOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Information about the ClassicLink DNS support status of the VPCs.
- Vpcs []types.ClassicLinkDnsSupport
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVpcClassicLinkDnsSupportMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcClassicLinkDnsSupport{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVpcClassicLinkDnsSupport"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVpcClassicLinkDnsSupport(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeVpcClassicLinkDnsSupportPaginatorOptions is the paginator options for
-// DescribeVpcClassicLinkDnsSupport
-type DescribeVpcClassicLinkDnsSupportPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeVpcClassicLinkDnsSupportPaginator is a paginator for
-// DescribeVpcClassicLinkDnsSupport
-type DescribeVpcClassicLinkDnsSupportPaginator struct {
- options DescribeVpcClassicLinkDnsSupportPaginatorOptions
- client DescribeVpcClassicLinkDnsSupportAPIClient
- params *DescribeVpcClassicLinkDnsSupportInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeVpcClassicLinkDnsSupportPaginator returns a new
-// DescribeVpcClassicLinkDnsSupportPaginator
-func NewDescribeVpcClassicLinkDnsSupportPaginator(client DescribeVpcClassicLinkDnsSupportAPIClient, params *DescribeVpcClassicLinkDnsSupportInput, optFns ...func(*DescribeVpcClassicLinkDnsSupportPaginatorOptions)) *DescribeVpcClassicLinkDnsSupportPaginator {
- if params == nil {
- params = &DescribeVpcClassicLinkDnsSupportInput{}
- }
-
- options := DescribeVpcClassicLinkDnsSupportPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeVpcClassicLinkDnsSupportPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeVpcClassicLinkDnsSupportPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeVpcClassicLinkDnsSupport page.
-func (p *DescribeVpcClassicLinkDnsSupportPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeVpcClassicLinkDnsSupportOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeVpcClassicLinkDnsSupport(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeVpcClassicLinkDnsSupportAPIClient is a client that implements the
-// DescribeVpcClassicLinkDnsSupport operation.
-type DescribeVpcClassicLinkDnsSupportAPIClient interface {
- DescribeVpcClassicLinkDnsSupport(context.Context, *DescribeVpcClassicLinkDnsSupportInput, ...func(*Options)) (*DescribeVpcClassicLinkDnsSupportOutput, error)
-}
-
-var _ DescribeVpcClassicLinkDnsSupportAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeVpcClassicLinkDnsSupport(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVpcClassicLinkDnsSupport",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointAssociations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointAssociations.go
deleted file mode 100644
index e8b27f231..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointAssociations.go
+++ /dev/null
@@ -1,192 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the VPC resources, VPC endpoint services, Amazon Lattice services, or
-// service networks associated with the VPC endpoint.
-func (c *Client) DescribeVpcEndpointAssociations(ctx context.Context, params *DescribeVpcEndpointAssociationsInput, optFns ...func(*Options)) (*DescribeVpcEndpointAssociationsOutput, error) {
- if params == nil {
- params = &DescribeVpcEndpointAssociationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVpcEndpointAssociations", params, optFns, c.addOperationDescribeVpcEndpointAssociationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVpcEndpointAssociationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeVpcEndpointAssociationsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - vpc-endpoint-id - The ID of the VPC endpoint.
- //
- // - associated-resource-accessibility - The association state. When the state is
- // accessible , it returns AVAILABLE . When the state is inaccessible , it
- // returns PENDING or FAILED .
- //
- // - association-id - The ID of the VPC endpoint association.
- //
- // - associated-resource-id - The ID of the associated resource configuration.
- //
- // - service-network-arn - The Amazon Resource Name (ARN) of the associated
- // service network. Only VPC endpoints of type service network will be returned.
- //
- // - resource-configuration-group-arn - The Amazon Resource Name (ARN) of the
- // resource configuration of type GROUP.
- //
- // - service-network-resource-association-id - The ID of the association.
- Filters []types.Filter
-
- // The maximum page size.
- MaxResults *int32
-
- // The pagination token.
- NextToken *string
-
- // The IDs of the VPC endpoints.
- VpcEndpointIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeVpcEndpointAssociationsOutput struct {
-
- // The pagination token.
- NextToken *string
-
- // Details of the endpoint associations.
- VpcEndpointAssociations []types.VpcEndpointAssociation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVpcEndpointAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcEndpointAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVpcEndpointAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVpcEndpointAssociations"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVpcEndpointAssociations(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeVpcEndpointAssociations(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVpcEndpointAssociations",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointConnectionNotifications.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointConnectionNotifications.go
deleted file mode 100644
index 01ab89185..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointConnectionNotifications.go
+++ /dev/null
@@ -1,286 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the connection notifications for VPC endpoints and VPC endpoint
-// services.
-func (c *Client) DescribeVpcEndpointConnectionNotifications(ctx context.Context, params *DescribeVpcEndpointConnectionNotificationsInput, optFns ...func(*Options)) (*DescribeVpcEndpointConnectionNotificationsOutput, error) {
- if params == nil {
- params = &DescribeVpcEndpointConnectionNotificationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVpcEndpointConnectionNotifications", params, optFns, c.addOperationDescribeVpcEndpointConnectionNotificationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVpcEndpointConnectionNotificationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeVpcEndpointConnectionNotificationsInput struct {
-
- // The ID of the notification.
- ConnectionNotificationId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - connection-notification-arn - The ARN of the SNS topic for the notification.
- //
- // - connection-notification-id - The ID of the notification.
- //
- // - connection-notification-state - The state of the notification ( Enabled |
- // Disabled ).
- //
- // - connection-notification-type - The type of notification ( Topic ).
- //
- // - service-id - The ID of the endpoint service.
- //
- // - vpc-endpoint-id - The ID of the VPC endpoint.
- Filters []types.Filter
-
- // The maximum number of results to return in a single call. To retrieve the
- // remaining results, make another request with the returned NextToken value.
- MaxResults *int32
-
- // The token to request the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeVpcEndpointConnectionNotificationsOutput struct {
-
- // The notifications.
- ConnectionNotificationSet []types.ConnectionNotification
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVpcEndpointConnectionNotificationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcEndpointConnectionNotifications{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVpcEndpointConnectionNotifications"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVpcEndpointConnectionNotifications(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeVpcEndpointConnectionNotificationsPaginatorOptions is the paginator
-// options for DescribeVpcEndpointConnectionNotifications
-type DescribeVpcEndpointConnectionNotificationsPaginatorOptions struct {
- // The maximum number of results to return in a single call. To retrieve the
- // remaining results, make another request with the returned NextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeVpcEndpointConnectionNotificationsPaginator is a paginator for
-// DescribeVpcEndpointConnectionNotifications
-type DescribeVpcEndpointConnectionNotificationsPaginator struct {
- options DescribeVpcEndpointConnectionNotificationsPaginatorOptions
- client DescribeVpcEndpointConnectionNotificationsAPIClient
- params *DescribeVpcEndpointConnectionNotificationsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeVpcEndpointConnectionNotificationsPaginator returns a new
-// DescribeVpcEndpointConnectionNotificationsPaginator
-func NewDescribeVpcEndpointConnectionNotificationsPaginator(client DescribeVpcEndpointConnectionNotificationsAPIClient, params *DescribeVpcEndpointConnectionNotificationsInput, optFns ...func(*DescribeVpcEndpointConnectionNotificationsPaginatorOptions)) *DescribeVpcEndpointConnectionNotificationsPaginator {
- if params == nil {
- params = &DescribeVpcEndpointConnectionNotificationsInput{}
- }
-
- options := DescribeVpcEndpointConnectionNotificationsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeVpcEndpointConnectionNotificationsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeVpcEndpointConnectionNotificationsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeVpcEndpointConnectionNotifications page.
-func (p *DescribeVpcEndpointConnectionNotificationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeVpcEndpointConnectionNotificationsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeVpcEndpointConnectionNotifications(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeVpcEndpointConnectionNotificationsAPIClient is a client that implements
-// the DescribeVpcEndpointConnectionNotifications operation.
-type DescribeVpcEndpointConnectionNotificationsAPIClient interface {
- DescribeVpcEndpointConnectionNotifications(context.Context, *DescribeVpcEndpointConnectionNotificationsInput, ...func(*Options)) (*DescribeVpcEndpointConnectionNotificationsOutput, error)
-}
-
-var _ DescribeVpcEndpointConnectionNotificationsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeVpcEndpointConnectionNotifications(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVpcEndpointConnectionNotifications",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointConnections.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointConnections.go
deleted file mode 100644
index cc75904c3..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointConnections.go
+++ /dev/null
@@ -1,289 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the VPC endpoint connections to your VPC endpoint services, including
-// any endpoints that are pending your acceptance.
-func (c *Client) DescribeVpcEndpointConnections(ctx context.Context, params *DescribeVpcEndpointConnectionsInput, optFns ...func(*Options)) (*DescribeVpcEndpointConnectionsOutput, error) {
- if params == nil {
- params = &DescribeVpcEndpointConnectionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVpcEndpointConnections", params, optFns, c.addOperationDescribeVpcEndpointConnectionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVpcEndpointConnectionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeVpcEndpointConnectionsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - ip-address-type - The IP address type ( ipv4 | ipv6 ).
- //
- // - service-id - The ID of the service.
- //
- // - vpc-endpoint-owner - The ID of the Amazon Web Services account ID that owns
- // the endpoint.
- //
- // - vpc-endpoint-region - The Region of the endpoint or cross-region to find
- // endpoints for other Regions.
- //
- // - vpc-endpoint-state - The state of the endpoint ( pendingAcceptance | pending
- // | available | deleting | deleted | rejected | failed ).
- //
- // - vpc-endpoint-id - The ID of the endpoint.
- Filters []types.Filter
-
- // The maximum number of results to return for the request in a single page. The
- // remaining results of the initial request can be seen by sending another request
- // with the returned NextToken value. This value can be between 5 and 1,000; if
- // MaxResults is given a value larger than 1,000, only 1,000 results are returned.
- MaxResults *int32
-
- // The token to retrieve the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeVpcEndpointConnectionsOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the VPC endpoint connections.
- VpcEndpointConnections []types.VpcEndpointConnection
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVpcEndpointConnectionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcEndpointConnections{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVpcEndpointConnections{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVpcEndpointConnections"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVpcEndpointConnections(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeVpcEndpointConnectionsPaginatorOptions is the paginator options for
-// DescribeVpcEndpointConnections
-type DescribeVpcEndpointConnectionsPaginatorOptions struct {
- // The maximum number of results to return for the request in a single page. The
- // remaining results of the initial request can be seen by sending another request
- // with the returned NextToken value. This value can be between 5 and 1,000; if
- // MaxResults is given a value larger than 1,000, only 1,000 results are returned.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeVpcEndpointConnectionsPaginator is a paginator for
-// DescribeVpcEndpointConnections
-type DescribeVpcEndpointConnectionsPaginator struct {
- options DescribeVpcEndpointConnectionsPaginatorOptions
- client DescribeVpcEndpointConnectionsAPIClient
- params *DescribeVpcEndpointConnectionsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeVpcEndpointConnectionsPaginator returns a new
-// DescribeVpcEndpointConnectionsPaginator
-func NewDescribeVpcEndpointConnectionsPaginator(client DescribeVpcEndpointConnectionsAPIClient, params *DescribeVpcEndpointConnectionsInput, optFns ...func(*DescribeVpcEndpointConnectionsPaginatorOptions)) *DescribeVpcEndpointConnectionsPaginator {
- if params == nil {
- params = &DescribeVpcEndpointConnectionsInput{}
- }
-
- options := DescribeVpcEndpointConnectionsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeVpcEndpointConnectionsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeVpcEndpointConnectionsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeVpcEndpointConnections page.
-func (p *DescribeVpcEndpointConnectionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeVpcEndpointConnectionsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeVpcEndpointConnections(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeVpcEndpointConnectionsAPIClient is a client that implements the
-// DescribeVpcEndpointConnections operation.
-type DescribeVpcEndpointConnectionsAPIClient interface {
- DescribeVpcEndpointConnections(context.Context, *DescribeVpcEndpointConnectionsInput, ...func(*Options)) (*DescribeVpcEndpointConnectionsOutput, error)
-}
-
-var _ DescribeVpcEndpointConnectionsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeVpcEndpointConnections(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVpcEndpointConnections",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServiceConfigurations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServiceConfigurations.go
deleted file mode 100644
index 55f818ffe..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServiceConfigurations.go
+++ /dev/null
@@ -1,294 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the VPC endpoint service configurations in your account (your
-// services).
-func (c *Client) DescribeVpcEndpointServiceConfigurations(ctx context.Context, params *DescribeVpcEndpointServiceConfigurationsInput, optFns ...func(*Options)) (*DescribeVpcEndpointServiceConfigurationsOutput, error) {
- if params == nil {
- params = &DescribeVpcEndpointServiceConfigurationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVpcEndpointServiceConfigurations", params, optFns, c.addOperationDescribeVpcEndpointServiceConfigurationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVpcEndpointServiceConfigurationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeVpcEndpointServiceConfigurationsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - service-name - The name of the service.
- //
- // - service-id - The ID of the service.
- //
- // - service-state - The state of the service ( Pending | Available | Deleting |
- // Deleted | Failed ).
- //
- // - supported-ip-address-types - The IP address type ( ipv4 | ipv6 ).
- //
- // - tag : - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- Filters []types.Filter
-
- // The maximum number of results to return for the request in a single page. The
- // remaining results of the initial request can be seen by sending another request
- // with the returned NextToken value. This value can be between 5 and 1,000; if
- // MaxResults is given a value larger than 1,000, only 1,000 results are returned.
- MaxResults *int32
-
- // The token to retrieve the next page of results.
- NextToken *string
-
- // The IDs of the endpoint services.
- ServiceIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeVpcEndpointServiceConfigurationsOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the services.
- ServiceConfigurations []types.ServiceConfiguration
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVpcEndpointServiceConfigurationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcEndpointServiceConfigurations{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVpcEndpointServiceConfigurations"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVpcEndpointServiceConfigurations(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeVpcEndpointServiceConfigurationsPaginatorOptions is the paginator
-// options for DescribeVpcEndpointServiceConfigurations
-type DescribeVpcEndpointServiceConfigurationsPaginatorOptions struct {
- // The maximum number of results to return for the request in a single page. The
- // remaining results of the initial request can be seen by sending another request
- // with the returned NextToken value. This value can be between 5 and 1,000; if
- // MaxResults is given a value larger than 1,000, only 1,000 results are returned.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeVpcEndpointServiceConfigurationsPaginator is a paginator for
-// DescribeVpcEndpointServiceConfigurations
-type DescribeVpcEndpointServiceConfigurationsPaginator struct {
- options DescribeVpcEndpointServiceConfigurationsPaginatorOptions
- client DescribeVpcEndpointServiceConfigurationsAPIClient
- params *DescribeVpcEndpointServiceConfigurationsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeVpcEndpointServiceConfigurationsPaginator returns a new
-// DescribeVpcEndpointServiceConfigurationsPaginator
-func NewDescribeVpcEndpointServiceConfigurationsPaginator(client DescribeVpcEndpointServiceConfigurationsAPIClient, params *DescribeVpcEndpointServiceConfigurationsInput, optFns ...func(*DescribeVpcEndpointServiceConfigurationsPaginatorOptions)) *DescribeVpcEndpointServiceConfigurationsPaginator {
- if params == nil {
- params = &DescribeVpcEndpointServiceConfigurationsInput{}
- }
-
- options := DescribeVpcEndpointServiceConfigurationsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeVpcEndpointServiceConfigurationsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeVpcEndpointServiceConfigurationsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeVpcEndpointServiceConfigurations page.
-func (p *DescribeVpcEndpointServiceConfigurationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeVpcEndpointServiceConfigurationsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeVpcEndpointServiceConfigurations(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeVpcEndpointServiceConfigurationsAPIClient is a client that implements
-// the DescribeVpcEndpointServiceConfigurations operation.
-type DescribeVpcEndpointServiceConfigurationsAPIClient interface {
- DescribeVpcEndpointServiceConfigurations(context.Context, *DescribeVpcEndpointServiceConfigurationsInput, ...func(*Options)) (*DescribeVpcEndpointServiceConfigurationsOutput, error)
-}
-
-var _ DescribeVpcEndpointServiceConfigurationsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeVpcEndpointServiceConfigurations(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVpcEndpointServiceConfigurations",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServicePermissions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServicePermissions.go
deleted file mode 100644
index 899d4b5f4..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServicePermissions.go
+++ /dev/null
@@ -1,287 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the principals (service consumers) that are permitted to discover
-// your VPC endpoint service. Principal ARNs with path components aren't supported.
-func (c *Client) DescribeVpcEndpointServicePermissions(ctx context.Context, params *DescribeVpcEndpointServicePermissionsInput, optFns ...func(*Options)) (*DescribeVpcEndpointServicePermissionsOutput, error) {
- if params == nil {
- params = &DescribeVpcEndpointServicePermissionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVpcEndpointServicePermissions", params, optFns, c.addOperationDescribeVpcEndpointServicePermissionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVpcEndpointServicePermissionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeVpcEndpointServicePermissionsInput struct {
-
- // The ID of the service.
- //
- // This member is required.
- ServiceId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - principal - The ARN of the principal.
- //
- // - principal-type - The principal type ( All | Service | OrganizationUnit |
- // Account | User | Role ).
- Filters []types.Filter
-
- // The maximum number of results to return for the request in a single page. The
- // remaining results of the initial request can be seen by sending another request
- // with the returned NextToken value. This value can be between 5 and 1,000; if
- // MaxResults is given a value larger than 1,000, only 1,000 results are returned.
- MaxResults *int32
-
- // The token to retrieve the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type DescribeVpcEndpointServicePermissionsOutput struct {
-
- // Information about the allowed principals.
- AllowedPrincipals []types.AllowedPrincipal
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVpcEndpointServicePermissionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcEndpointServicePermissions{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVpcEndpointServicePermissions{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVpcEndpointServicePermissions"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDescribeVpcEndpointServicePermissionsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVpcEndpointServicePermissions(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeVpcEndpointServicePermissionsPaginatorOptions is the paginator options
-// for DescribeVpcEndpointServicePermissions
-type DescribeVpcEndpointServicePermissionsPaginatorOptions struct {
- // The maximum number of results to return for the request in a single page. The
- // remaining results of the initial request can be seen by sending another request
- // with the returned NextToken value. This value can be between 5 and 1,000; if
- // MaxResults is given a value larger than 1,000, only 1,000 results are returned.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeVpcEndpointServicePermissionsPaginator is a paginator for
-// DescribeVpcEndpointServicePermissions
-type DescribeVpcEndpointServicePermissionsPaginator struct {
- options DescribeVpcEndpointServicePermissionsPaginatorOptions
- client DescribeVpcEndpointServicePermissionsAPIClient
- params *DescribeVpcEndpointServicePermissionsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeVpcEndpointServicePermissionsPaginator returns a new
-// DescribeVpcEndpointServicePermissionsPaginator
-func NewDescribeVpcEndpointServicePermissionsPaginator(client DescribeVpcEndpointServicePermissionsAPIClient, params *DescribeVpcEndpointServicePermissionsInput, optFns ...func(*DescribeVpcEndpointServicePermissionsPaginatorOptions)) *DescribeVpcEndpointServicePermissionsPaginator {
- if params == nil {
- params = &DescribeVpcEndpointServicePermissionsInput{}
- }
-
- options := DescribeVpcEndpointServicePermissionsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeVpcEndpointServicePermissionsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeVpcEndpointServicePermissionsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeVpcEndpointServicePermissions page.
-func (p *DescribeVpcEndpointServicePermissionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeVpcEndpointServicePermissionsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeVpcEndpointServicePermissions(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeVpcEndpointServicePermissionsAPIClient is a client that implements the
-// DescribeVpcEndpointServicePermissions operation.
-type DescribeVpcEndpointServicePermissionsAPIClient interface {
- DescribeVpcEndpointServicePermissions(context.Context, *DescribeVpcEndpointServicePermissionsInput, ...func(*Options)) (*DescribeVpcEndpointServicePermissionsOutput, error)
-}
-
-var _ DescribeVpcEndpointServicePermissionsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeVpcEndpointServicePermissions(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVpcEndpointServicePermissions",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServices.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServices.go
deleted file mode 100644
index 5485d0018..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServices.go
+++ /dev/null
@@ -1,211 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes available services to which you can create a VPC endpoint.
-//
-// When the service provider and the consumer have different accounts in multiple
-// Availability Zones, and the consumer views the VPC endpoint service information,
-// the response only includes the common Availability Zones. For example, when the
-// service provider account uses us-east-1a and us-east-1c and the consumer uses
-// us-east-1a and us-east-1b , the response includes the VPC endpoint services in
-// the common Availability Zone, us-east-1a .
-func (c *Client) DescribeVpcEndpointServices(ctx context.Context, params *DescribeVpcEndpointServicesInput, optFns ...func(*Options)) (*DescribeVpcEndpointServicesOutput, error) {
- if params == nil {
- params = &DescribeVpcEndpointServicesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVpcEndpointServices", params, optFns, c.addOperationDescribeVpcEndpointServicesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVpcEndpointServicesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeVpcEndpointServicesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - owner - The ID or alias of the Amazon Web Services account that owns the
- // service.
- //
- // - service-name - The name of the service.
- //
- // - service-region - The Region of the service.
- //
- // - service-type - The type of service ( Interface | Gateway |
- // GatewayLoadBalancer ).
- //
- // - supported-ip-address-types - The IP address type ( ipv4 | ipv6 ).
- //
- // - tag : - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- Filters []types.Filter
-
- // The maximum number of items to return for this request. The request returns a
- // token that you can specify in a subsequent call to get the next set of results.
- //
- // Constraint: If the value is greater than 1,000, we return only 1,000 items.
- MaxResults *int32
-
- // The token for the next set of items to return. (You received this token from a
- // prior call.)
- NextToken *string
-
- // The service names.
- ServiceNames []string
-
- // The service Regions.
- ServiceRegions []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeVpcEndpointServicesOutput struct {
-
- // The token to use when requesting the next set of items. If there are no
- // additional items to return, the string is empty.
- NextToken *string
-
- // Information about the service.
- ServiceDetails []types.ServiceDetail
-
- // The supported services.
- ServiceNames []string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVpcEndpointServicesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcEndpointServices{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVpcEndpointServices{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVpcEndpointServices"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVpcEndpointServices(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeVpcEndpointServices(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVpcEndpointServices",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpoints.go
deleted file mode 100644
index 304b7b895..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpoints.go
+++ /dev/null
@@ -1,301 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes your VPC endpoints. The default is to describe all your VPC
-// endpoints. Alternatively, you can specify specific VPC endpoint IDs or filter
-// the results to include only the VPC endpoints that match specific criteria.
-func (c *Client) DescribeVpcEndpoints(ctx context.Context, params *DescribeVpcEndpointsInput, optFns ...func(*Options)) (*DescribeVpcEndpointsOutput, error) {
- if params == nil {
- params = &DescribeVpcEndpointsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVpcEndpoints", params, optFns, c.addOperationDescribeVpcEndpointsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVpcEndpointsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeVpcEndpointsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - ip-address-type - The IP address type ( ipv4 | ipv6 ).
- //
- // - service-name - The name of the service.
- //
- // - service-region - The Region of the service.
- //
- // - tag : - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- //
- // - vpc-id - The ID of the VPC in which the endpoint resides.
- //
- // - vpc-endpoint-id - The ID of the endpoint.
- //
- // - vpc-endpoint-state - The state of the endpoint ( pendingAcceptance | pending
- // | available | deleting | deleted | rejected | failed ).
- //
- // - vpc-endpoint-type - The type of VPC endpoint ( Interface | Gateway |
- // GatewayLoadBalancer | Resource | ServiceNetwork ).
- Filters []types.Filter
-
- // The maximum number of items to return for this request. The request returns a
- // token that you can specify in a subsequent call to get the next set of results.
- //
- // Constraint: If the value is greater than 1,000, we return only 1,000 items.
- MaxResults *int32
-
- // The token for the next set of items to return. (You received this token from a
- // prior call.)
- NextToken *string
-
- // The IDs of the VPC endpoints.
- VpcEndpointIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeVpcEndpointsOutput struct {
-
- // The token to use when requesting the next set of items. If there are no
- // additional items to return, the string is empty.
- NextToken *string
-
- // Information about the VPC endpoints.
- VpcEndpoints []types.VpcEndpoint
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVpcEndpointsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcEndpoints{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVpcEndpoints{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVpcEndpoints"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVpcEndpoints(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// DescribeVpcEndpointsPaginatorOptions is the paginator options for
-// DescribeVpcEndpoints
-type DescribeVpcEndpointsPaginatorOptions struct {
- // The maximum number of items to return for this request. The request returns a
- // token that you can specify in a subsequent call to get the next set of results.
- //
- // Constraint: If the value is greater than 1,000, we return only 1,000 items.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeVpcEndpointsPaginator is a paginator for DescribeVpcEndpoints
-type DescribeVpcEndpointsPaginator struct {
- options DescribeVpcEndpointsPaginatorOptions
- client DescribeVpcEndpointsAPIClient
- params *DescribeVpcEndpointsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeVpcEndpointsPaginator returns a new DescribeVpcEndpointsPaginator
-func NewDescribeVpcEndpointsPaginator(client DescribeVpcEndpointsAPIClient, params *DescribeVpcEndpointsInput, optFns ...func(*DescribeVpcEndpointsPaginatorOptions)) *DescribeVpcEndpointsPaginator {
- if params == nil {
- params = &DescribeVpcEndpointsInput{}
- }
-
- options := DescribeVpcEndpointsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeVpcEndpointsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeVpcEndpointsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeVpcEndpoints page.
-func (p *DescribeVpcEndpointsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeVpcEndpointsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeVpcEndpoints(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeVpcEndpointsAPIClient is a client that implements the
-// DescribeVpcEndpoints operation.
-type DescribeVpcEndpointsAPIClient interface {
- DescribeVpcEndpoints(context.Context, *DescribeVpcEndpointsInput, ...func(*Options)) (*DescribeVpcEndpointsOutput, error)
-}
-
-var _ DescribeVpcEndpointsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeVpcEndpoints(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVpcEndpoints",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcPeeringConnections.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcPeeringConnections.go
deleted file mode 100644
index 29ae4ebd8..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcPeeringConnections.go
+++ /dev/null
@@ -1,714 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "errors"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- smithy "github.com/aws/smithy-go"
- "github.com/aws/smithy-go/middleware"
- smithytime "github.com/aws/smithy-go/time"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- smithywaiter "github.com/aws/smithy-go/waiter"
- "time"
-)
-
-// Describes your VPC peering connections. The default is to describe all your VPC
-// peering connections. Alternatively, you can specify specific VPC peering
-// connection IDs or filter the results to include only the VPC peering connections
-// that match specific criteria.
-func (c *Client) DescribeVpcPeeringConnections(ctx context.Context, params *DescribeVpcPeeringConnectionsInput, optFns ...func(*Options)) (*DescribeVpcPeeringConnectionsOutput, error) {
- if params == nil {
- params = &DescribeVpcPeeringConnectionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVpcPeeringConnections", params, optFns, c.addOperationDescribeVpcPeeringConnectionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVpcPeeringConnectionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeVpcPeeringConnectionsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - accepter-vpc-info.cidr-block - The IPv4 CIDR block of the accepter VPC.
- //
- // - accepter-vpc-info.owner-id - The ID of the Amazon Web Services account that
- // owns the accepter VPC.
- //
- // - accepter-vpc-info.vpc-id - The ID of the accepter VPC.
- //
- // - expiration-time - The expiration date and time for the VPC peering
- // connection.
- //
- // - requester-vpc-info.cidr-block - The IPv4 CIDR block of the requester's VPC.
- //
- // - requester-vpc-info.owner-id - The ID of the Amazon Web Services account that
- // owns the requester VPC.
- //
- // - requester-vpc-info.vpc-id - The ID of the requester VPC.
- //
- // - status-code - The status of the VPC peering connection ( pending-acceptance
- // | failed | expired | provisioning | active | deleting | deleted | rejected ).
- //
- // - status-message - A message that provides more information about the status
- // of the VPC peering connection, if applicable.
- //
- // - tag - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- //
- // - vpc-peering-connection-id - The ID of the VPC peering connection.
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- // The IDs of the VPC peering connections.
- //
- // Default: Describes all your VPC peering connections.
- VpcPeeringConnectionIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeVpcPeeringConnectionsOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Information about the VPC peering connections.
- VpcPeeringConnections []types.VpcPeeringConnection
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVpcPeeringConnectionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcPeeringConnections{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVpcPeeringConnections{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVpcPeeringConnections"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVpcPeeringConnections(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// VpcPeeringConnectionDeletedWaiterOptions are waiter options for
-// VpcPeeringConnectionDeletedWaiter
-type VpcPeeringConnectionDeletedWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // VpcPeeringConnectionDeletedWaiter will use default minimum delay of 15 seconds.
- // Note that MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, VpcPeeringConnectionDeletedWaiter will use default max delay of 120
- // seconds. Note that MaxDelay must resolve to value greater than or equal to the
- // MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeVpcPeeringConnectionsInput, *DescribeVpcPeeringConnectionsOutput, error) (bool, error)
-}
-
-// VpcPeeringConnectionDeletedWaiter defines the waiters for
-// VpcPeeringConnectionDeleted
-type VpcPeeringConnectionDeletedWaiter struct {
- client DescribeVpcPeeringConnectionsAPIClient
-
- options VpcPeeringConnectionDeletedWaiterOptions
-}
-
-// NewVpcPeeringConnectionDeletedWaiter constructs a
-// VpcPeeringConnectionDeletedWaiter.
-func NewVpcPeeringConnectionDeletedWaiter(client DescribeVpcPeeringConnectionsAPIClient, optFns ...func(*VpcPeeringConnectionDeletedWaiterOptions)) *VpcPeeringConnectionDeletedWaiter {
- options := VpcPeeringConnectionDeletedWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = vpcPeeringConnectionDeletedStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &VpcPeeringConnectionDeletedWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for VpcPeeringConnectionDeleted waiter. The
-// maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is
-// required and must be greater than zero.
-func (w *VpcPeeringConnectionDeletedWaiter) Wait(ctx context.Context, params *DescribeVpcPeeringConnectionsInput, maxWaitDur time.Duration, optFns ...func(*VpcPeeringConnectionDeletedWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for VpcPeeringConnectionDeleted waiter
-// and returns the output of the successful operation. The maxWaitDur is the
-// maximum wait duration the waiter will wait. The maxWaitDur is required and must
-// be greater than zero.
-func (w *VpcPeeringConnectionDeletedWaiter) WaitForOutput(ctx context.Context, params *DescribeVpcPeeringConnectionsInput, maxWaitDur time.Duration, optFns ...func(*VpcPeeringConnectionDeletedWaiterOptions)) (*DescribeVpcPeeringConnectionsOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeVpcPeeringConnections(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for VpcPeeringConnectionDeleted waiter")
-}
-
-func vpcPeeringConnectionDeletedStateRetryable(ctx context.Context, input *DescribeVpcPeeringConnectionsInput, output *DescribeVpcPeeringConnectionsOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.VpcPeeringConnections
- var v2 []types.VpcPeeringConnectionStateReasonCode
- for _, v := range v1 {
- v3 := v.Status
- var v4 types.VpcPeeringConnectionStateReasonCode
- if v3 != nil {
- v5 := v3.Code
- v4 = v5
- }
- v2 = append(v2, v4)
- }
- expectedValue := "deleted"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err != nil {
- var apiErr smithy.APIError
- ok := errors.As(err, &apiErr)
- if !ok {
- return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err)
- }
-
- if "InvalidVpcPeeringConnectionID.NotFound" == apiErr.ErrorCode() {
- return false, nil
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// VpcPeeringConnectionExistsWaiterOptions are waiter options for
-// VpcPeeringConnectionExistsWaiter
-type VpcPeeringConnectionExistsWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // VpcPeeringConnectionExistsWaiter will use default minimum delay of 15 seconds.
- // Note that MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, VpcPeeringConnectionExistsWaiter will use default max delay of 120
- // seconds. Note that MaxDelay must resolve to value greater than or equal to the
- // MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeVpcPeeringConnectionsInput, *DescribeVpcPeeringConnectionsOutput, error) (bool, error)
-}
-
-// VpcPeeringConnectionExistsWaiter defines the waiters for
-// VpcPeeringConnectionExists
-type VpcPeeringConnectionExistsWaiter struct {
- client DescribeVpcPeeringConnectionsAPIClient
-
- options VpcPeeringConnectionExistsWaiterOptions
-}
-
-// NewVpcPeeringConnectionExistsWaiter constructs a
-// VpcPeeringConnectionExistsWaiter.
-func NewVpcPeeringConnectionExistsWaiter(client DescribeVpcPeeringConnectionsAPIClient, optFns ...func(*VpcPeeringConnectionExistsWaiterOptions)) *VpcPeeringConnectionExistsWaiter {
- options := VpcPeeringConnectionExistsWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = vpcPeeringConnectionExistsStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &VpcPeeringConnectionExistsWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for VpcPeeringConnectionExists waiter. The
-// maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is
-// required and must be greater than zero.
-func (w *VpcPeeringConnectionExistsWaiter) Wait(ctx context.Context, params *DescribeVpcPeeringConnectionsInput, maxWaitDur time.Duration, optFns ...func(*VpcPeeringConnectionExistsWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for VpcPeeringConnectionExists waiter
-// and returns the output of the successful operation. The maxWaitDur is the
-// maximum wait duration the waiter will wait. The maxWaitDur is required and must
-// be greater than zero.
-func (w *VpcPeeringConnectionExistsWaiter) WaitForOutput(ctx context.Context, params *DescribeVpcPeeringConnectionsInput, maxWaitDur time.Duration, optFns ...func(*VpcPeeringConnectionExistsWaiterOptions)) (*DescribeVpcPeeringConnectionsOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeVpcPeeringConnections(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for VpcPeeringConnectionExists waiter")
-}
-
-func vpcPeeringConnectionExistsStateRetryable(ctx context.Context, input *DescribeVpcPeeringConnectionsInput, output *DescribeVpcPeeringConnectionsOutput, err error) (bool, error) {
-
- if err == nil {
- return false, nil
- }
-
- if err != nil {
- var apiErr smithy.APIError
- ok := errors.As(err, &apiErr)
- if !ok {
- return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err)
- }
-
- if "InvalidVpcPeeringConnectionID.NotFound" == apiErr.ErrorCode() {
- return true, nil
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// DescribeVpcPeeringConnectionsPaginatorOptions is the paginator options for
-// DescribeVpcPeeringConnections
-type DescribeVpcPeeringConnectionsPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeVpcPeeringConnectionsPaginator is a paginator for
-// DescribeVpcPeeringConnections
-type DescribeVpcPeeringConnectionsPaginator struct {
- options DescribeVpcPeeringConnectionsPaginatorOptions
- client DescribeVpcPeeringConnectionsAPIClient
- params *DescribeVpcPeeringConnectionsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeVpcPeeringConnectionsPaginator returns a new
-// DescribeVpcPeeringConnectionsPaginator
-func NewDescribeVpcPeeringConnectionsPaginator(client DescribeVpcPeeringConnectionsAPIClient, params *DescribeVpcPeeringConnectionsInput, optFns ...func(*DescribeVpcPeeringConnectionsPaginatorOptions)) *DescribeVpcPeeringConnectionsPaginator {
- if params == nil {
- params = &DescribeVpcPeeringConnectionsInput{}
- }
-
- options := DescribeVpcPeeringConnectionsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeVpcPeeringConnectionsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeVpcPeeringConnectionsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeVpcPeeringConnections page.
-func (p *DescribeVpcPeeringConnectionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeVpcPeeringConnectionsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeVpcPeeringConnections(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeVpcPeeringConnectionsAPIClient is a client that implements the
-// DescribeVpcPeeringConnections operation.
-type DescribeVpcPeeringConnectionsAPIClient interface {
- DescribeVpcPeeringConnections(context.Context, *DescribeVpcPeeringConnectionsInput, ...func(*Options)) (*DescribeVpcPeeringConnectionsOutput, error)
-}
-
-var _ DescribeVpcPeeringConnectionsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeVpcPeeringConnections(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVpcPeeringConnections",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcs.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcs.go
deleted file mode 100644
index 09b4bdcda..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcs.go
+++ /dev/null
@@ -1,690 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "errors"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- smithy "github.com/aws/smithy-go"
- "github.com/aws/smithy-go/middleware"
- smithytime "github.com/aws/smithy-go/time"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- smithywaiter "github.com/aws/smithy-go/waiter"
- "time"
-)
-
-// Describes your VPCs. The default is to describe all your VPCs. Alternatively,
-// you can specify specific VPC IDs or filter the results to include only the VPCs
-// that match specific criteria.
-func (c *Client) DescribeVpcs(ctx context.Context, params *DescribeVpcsInput, optFns ...func(*Options)) (*DescribeVpcsOutput, error) {
- if params == nil {
- params = &DescribeVpcsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVpcs", params, optFns, c.addOperationDescribeVpcsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVpcsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DescribeVpcsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters.
- //
- // - cidr - The primary IPv4 CIDR block of the VPC. The CIDR block you specify
- // must exactly match the VPC's CIDR block for information to be returned for the
- // VPC. Must contain the slash followed by one or two digits (for example, /28 ).
- //
- // - cidr-block-association.cidr-block - An IPv4 CIDR block associated with the
- // VPC.
- //
- // - cidr-block-association.association-id - The association ID for an IPv4 CIDR
- // block associated with the VPC.
- //
- // - cidr-block-association.state - The state of an IPv4 CIDR block associated
- // with the VPC.
- //
- // - dhcp-options-id - The ID of a set of DHCP options.
- //
- // - ipv6-cidr-block-association.ipv6-cidr-block - An IPv6 CIDR block associated
- // with the VPC.
- //
- // - ipv6-cidr-block-association.ipv6-pool - The ID of the IPv6 address pool from
- // which the IPv6 CIDR block is allocated.
- //
- // - ipv6-cidr-block-association.association-id - The association ID for an IPv6
- // CIDR block associated with the VPC.
- //
- // - ipv6-cidr-block-association.state - The state of an IPv6 CIDR block
- // associated with the VPC.
- //
- // - is-default - Indicates whether the VPC is the default VPC.
- //
- // - owner-id - The ID of the Amazon Web Services account that owns the VPC.
- //
- // - state - The state of the VPC ( pending | available ).
- //
- // - tag - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- //
- // - vpc-id - The ID of the VPC.
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- // The IDs of the VPCs.
- VpcIds []string
-
- noSmithyDocumentSerde
-}
-
-type DescribeVpcsOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Information about the VPCs.
- Vpcs []types.Vpc
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVpcsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcs{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVpcs{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVpcs"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVpcs(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// VpcAvailableWaiterOptions are waiter options for VpcAvailableWaiter
-type VpcAvailableWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // VpcAvailableWaiter will use default minimum delay of 15 seconds. Note that
- // MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, VpcAvailableWaiter will use default max delay of 120 seconds. Note
- // that MaxDelay must resolve to value greater than or equal to the MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeVpcsInput, *DescribeVpcsOutput, error) (bool, error)
-}
-
-// VpcAvailableWaiter defines the waiters for VpcAvailable
-type VpcAvailableWaiter struct {
- client DescribeVpcsAPIClient
-
- options VpcAvailableWaiterOptions
-}
-
-// NewVpcAvailableWaiter constructs a VpcAvailableWaiter.
-func NewVpcAvailableWaiter(client DescribeVpcsAPIClient, optFns ...func(*VpcAvailableWaiterOptions)) *VpcAvailableWaiter {
- options := VpcAvailableWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = vpcAvailableStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &VpcAvailableWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for VpcAvailable waiter. The maxWaitDur is the
-// maximum wait duration the waiter will wait. The maxWaitDur is required and must
-// be greater than zero.
-func (w *VpcAvailableWaiter) Wait(ctx context.Context, params *DescribeVpcsInput, maxWaitDur time.Duration, optFns ...func(*VpcAvailableWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for VpcAvailable waiter and returns the
-// output of the successful operation. The maxWaitDur is the maximum wait duration
-// the waiter will wait. The maxWaitDur is required and must be greater than zero.
-func (w *VpcAvailableWaiter) WaitForOutput(ctx context.Context, params *DescribeVpcsInput, maxWaitDur time.Duration, optFns ...func(*VpcAvailableWaiterOptions)) (*DescribeVpcsOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeVpcs(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for VpcAvailable waiter")
-}
-
-func vpcAvailableStateRetryable(ctx context.Context, input *DescribeVpcsInput, output *DescribeVpcsOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.Vpcs
- var v2 []types.VpcState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "available"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// VpcExistsWaiterOptions are waiter options for VpcExistsWaiter
-type VpcExistsWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // VpcExistsWaiter will use default minimum delay of 1 seconds. Note that MinDelay
- // must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, VpcExistsWaiter will use default max delay of 120 seconds. Note
- // that MaxDelay must resolve to value greater than or equal to the MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeVpcsInput, *DescribeVpcsOutput, error) (bool, error)
-}
-
-// VpcExistsWaiter defines the waiters for VpcExists
-type VpcExistsWaiter struct {
- client DescribeVpcsAPIClient
-
- options VpcExistsWaiterOptions
-}
-
-// NewVpcExistsWaiter constructs a VpcExistsWaiter.
-func NewVpcExistsWaiter(client DescribeVpcsAPIClient, optFns ...func(*VpcExistsWaiterOptions)) *VpcExistsWaiter {
- options := VpcExistsWaiterOptions{}
- options.MinDelay = 1 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = vpcExistsStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &VpcExistsWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for VpcExists waiter. The maxWaitDur is the
-// maximum wait duration the waiter will wait. The maxWaitDur is required and must
-// be greater than zero.
-func (w *VpcExistsWaiter) Wait(ctx context.Context, params *DescribeVpcsInput, maxWaitDur time.Duration, optFns ...func(*VpcExistsWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for VpcExists waiter and returns the
-// output of the successful operation. The maxWaitDur is the maximum wait duration
-// the waiter will wait. The maxWaitDur is required and must be greater than zero.
-func (w *VpcExistsWaiter) WaitForOutput(ctx context.Context, params *DescribeVpcsInput, maxWaitDur time.Duration, optFns ...func(*VpcExistsWaiterOptions)) (*DescribeVpcsOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeVpcs(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for VpcExists waiter")
-}
-
-func vpcExistsStateRetryable(ctx context.Context, input *DescribeVpcsInput, output *DescribeVpcsOutput, err error) (bool, error) {
-
- if err == nil {
- return false, nil
- }
-
- if err != nil {
- var apiErr smithy.APIError
- ok := errors.As(err, &apiErr)
- if !ok {
- return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err)
- }
-
- if "InvalidVpcID.NotFound" == apiErr.ErrorCode() {
- return true, nil
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// DescribeVpcsPaginatorOptions is the paginator options for DescribeVpcs
-type DescribeVpcsPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// DescribeVpcsPaginator is a paginator for DescribeVpcs
-type DescribeVpcsPaginator struct {
- options DescribeVpcsPaginatorOptions
- client DescribeVpcsAPIClient
- params *DescribeVpcsInput
- nextToken *string
- firstPage bool
-}
-
-// NewDescribeVpcsPaginator returns a new DescribeVpcsPaginator
-func NewDescribeVpcsPaginator(client DescribeVpcsAPIClient, params *DescribeVpcsInput, optFns ...func(*DescribeVpcsPaginatorOptions)) *DescribeVpcsPaginator {
- if params == nil {
- params = &DescribeVpcsInput{}
- }
-
- options := DescribeVpcsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &DescribeVpcsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *DescribeVpcsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next DescribeVpcs page.
-func (p *DescribeVpcsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeVpcsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.DescribeVpcs(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// DescribeVpcsAPIClient is a client that implements the DescribeVpcs operation.
-type DescribeVpcsAPIClient interface {
- DescribeVpcs(context.Context, *DescribeVpcsInput, ...func(*Options)) (*DescribeVpcsOutput, error)
-}
-
-var _ DescribeVpcsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeVpcs(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVpcs",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpnConnections.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpnConnections.go
deleted file mode 100644
index 79cd9cfd4..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpnConnections.go
+++ /dev/null
@@ -1,660 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithytime "github.com/aws/smithy-go/time"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- smithywaiter "github.com/aws/smithy-go/waiter"
- "time"
-)
-
-// Describes one or more of your VPN connections.
-//
-// For more information, see [Amazon Web Services Site-to-Site VPN] in the Amazon Web Services Site-to-Site VPN User
-// Guide.
-//
-// [Amazon Web Services Site-to-Site VPN]: https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html
-func (c *Client) DescribeVpnConnections(ctx context.Context, params *DescribeVpnConnectionsInput, optFns ...func(*Options)) (*DescribeVpnConnectionsOutput, error) {
- if params == nil {
- params = &DescribeVpnConnectionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVpnConnections", params, optFns, c.addOperationDescribeVpnConnectionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVpnConnectionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DescribeVpnConnections.
-type DescribeVpnConnectionsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - customer-gateway-configuration - The configuration information for the
- // customer gateway.
- //
- // - customer-gateway-id - The ID of a customer gateway associated with the VPN
- // connection.
- //
- // - state - The state of the VPN connection ( pending | available | deleting |
- // deleted ).
- //
- // - option.static-routes-only - Indicates whether the connection has static
- // routes only. Used for devices that do not support Border Gateway Protocol (BGP).
- //
- // - route.destination-cidr-block - The destination CIDR block. This corresponds
- // to the subnet used in a customer data center.
- //
- // - bgp-asn - The BGP Autonomous System Number (ASN) associated with a BGP
- // device.
- //
- // - tag : - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- //
- // - type - The type of VPN connection. Currently the only supported type is
- // ipsec.1 .
- //
- // - vpn-connection-id - The ID of the VPN connection.
- //
- // - vpn-gateway-id - The ID of a virtual private gateway associated with the VPN
- // connection.
- //
- // - transit-gateway-id - The ID of a transit gateway associated with the VPN
- // connection.
- Filters []types.Filter
-
- // One or more VPN connection IDs.
- //
- // Default: Describes your VPN connections.
- VpnConnectionIds []string
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of DescribeVpnConnections.
-type DescribeVpnConnectionsOutput struct {
-
- // Information about one or more VPN connections.
- VpnConnections []types.VpnConnection
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVpnConnectionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpnConnections{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVpnConnections{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVpnConnections"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVpnConnections(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// VpnConnectionAvailableWaiterOptions are waiter options for
-// VpnConnectionAvailableWaiter
-type VpnConnectionAvailableWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // VpnConnectionAvailableWaiter will use default minimum delay of 15 seconds. Note
- // that MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, VpnConnectionAvailableWaiter will use default max delay of 120
- // seconds. Note that MaxDelay must resolve to value greater than or equal to the
- // MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeVpnConnectionsInput, *DescribeVpnConnectionsOutput, error) (bool, error)
-}
-
-// VpnConnectionAvailableWaiter defines the waiters for VpnConnectionAvailable
-type VpnConnectionAvailableWaiter struct {
- client DescribeVpnConnectionsAPIClient
-
- options VpnConnectionAvailableWaiterOptions
-}
-
-// NewVpnConnectionAvailableWaiter constructs a VpnConnectionAvailableWaiter.
-func NewVpnConnectionAvailableWaiter(client DescribeVpnConnectionsAPIClient, optFns ...func(*VpnConnectionAvailableWaiterOptions)) *VpnConnectionAvailableWaiter {
- options := VpnConnectionAvailableWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = vpnConnectionAvailableStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &VpnConnectionAvailableWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for VpnConnectionAvailable waiter. The
-// maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is
-// required and must be greater than zero.
-func (w *VpnConnectionAvailableWaiter) Wait(ctx context.Context, params *DescribeVpnConnectionsInput, maxWaitDur time.Duration, optFns ...func(*VpnConnectionAvailableWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for VpnConnectionAvailable waiter and
-// returns the output of the successful operation. The maxWaitDur is the maximum
-// wait duration the waiter will wait. The maxWaitDur is required and must be
-// greater than zero.
-func (w *VpnConnectionAvailableWaiter) WaitForOutput(ctx context.Context, params *DescribeVpnConnectionsInput, maxWaitDur time.Duration, optFns ...func(*VpnConnectionAvailableWaiterOptions)) (*DescribeVpnConnectionsOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeVpnConnections(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for VpnConnectionAvailable waiter")
-}
-
-func vpnConnectionAvailableStateRetryable(ctx context.Context, input *DescribeVpnConnectionsInput, output *DescribeVpnConnectionsOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.VpnConnections
- var v2 []types.VpnState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "available"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err == nil {
- v1 := output.VpnConnections
- var v2 []types.VpnState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "deleting"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err == nil {
- v1 := output.VpnConnections
- var v2 []types.VpnState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "deleted"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// VpnConnectionDeletedWaiterOptions are waiter options for
-// VpnConnectionDeletedWaiter
-type VpnConnectionDeletedWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // VpnConnectionDeletedWaiter will use default minimum delay of 15 seconds. Note
- // that MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, VpnConnectionDeletedWaiter will use default max delay of 120
- // seconds. Note that MaxDelay must resolve to value greater than or equal to the
- // MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *DescribeVpnConnectionsInput, *DescribeVpnConnectionsOutput, error) (bool, error)
-}
-
-// VpnConnectionDeletedWaiter defines the waiters for VpnConnectionDeleted
-type VpnConnectionDeletedWaiter struct {
- client DescribeVpnConnectionsAPIClient
-
- options VpnConnectionDeletedWaiterOptions
-}
-
-// NewVpnConnectionDeletedWaiter constructs a VpnConnectionDeletedWaiter.
-func NewVpnConnectionDeletedWaiter(client DescribeVpnConnectionsAPIClient, optFns ...func(*VpnConnectionDeletedWaiterOptions)) *VpnConnectionDeletedWaiter {
- options := VpnConnectionDeletedWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = vpnConnectionDeletedStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &VpnConnectionDeletedWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for VpnConnectionDeleted waiter. The maxWaitDur
-// is the maximum wait duration the waiter will wait. The maxWaitDur is required
-// and must be greater than zero.
-func (w *VpnConnectionDeletedWaiter) Wait(ctx context.Context, params *DescribeVpnConnectionsInput, maxWaitDur time.Duration, optFns ...func(*VpnConnectionDeletedWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for VpnConnectionDeleted waiter and
-// returns the output of the successful operation. The maxWaitDur is the maximum
-// wait duration the waiter will wait. The maxWaitDur is required and must be
-// greater than zero.
-func (w *VpnConnectionDeletedWaiter) WaitForOutput(ctx context.Context, params *DescribeVpnConnectionsInput, maxWaitDur time.Duration, optFns ...func(*VpnConnectionDeletedWaiterOptions)) (*DescribeVpnConnectionsOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.DescribeVpnConnections(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for VpnConnectionDeleted waiter")
-}
-
-func vpnConnectionDeletedStateRetryable(ctx context.Context, input *DescribeVpnConnectionsInput, output *DescribeVpnConnectionsOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.VpnConnections
- var v2 []types.VpnState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "deleted"
- match := len(v2) > 0
- for _, v := range v2 {
- if string(v) != expectedValue {
- match = false
- break
- }
- }
-
- if match {
- return false, nil
- }
- }
-
- if err == nil {
- v1 := output.VpnConnections
- var v2 []types.VpnState
- for _, v := range v1 {
- v3 := v.State
- v2 = append(v2, v3)
- }
- expectedValue := "pending"
- var match bool
- for _, v := range v2 {
- if string(v) == expectedValue {
- match = true
- break
- }
- }
-
- if match {
- return false, fmt.Errorf("waiter state transitioned to Failure")
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// DescribeVpnConnectionsAPIClient is a client that implements the
-// DescribeVpnConnections operation.
-type DescribeVpnConnectionsAPIClient interface {
- DescribeVpnConnections(context.Context, *DescribeVpnConnectionsInput, ...func(*Options)) (*DescribeVpnConnectionsOutput, error)
-}
-
-var _ DescribeVpnConnectionsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opDescribeVpnConnections(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVpnConnections",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpnGateways.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpnGateways.go
deleted file mode 100644
index 956fc7bf5..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpnGateways.go
+++ /dev/null
@@ -1,200 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes one or more of your virtual private gateways.
-//
-// For more information, see [Amazon Web Services Site-to-Site VPN] in the Amazon Web Services Site-to-Site VPN User
-// Guide.
-//
-// [Amazon Web Services Site-to-Site VPN]: https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html
-func (c *Client) DescribeVpnGateways(ctx context.Context, params *DescribeVpnGatewaysInput, optFns ...func(*Options)) (*DescribeVpnGatewaysOutput, error) {
- if params == nil {
- params = &DescribeVpnGatewaysInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DescribeVpnGateways", params, optFns, c.addOperationDescribeVpnGatewaysMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DescribeVpnGatewaysOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DescribeVpnGateways.
-type DescribeVpnGatewaysInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - amazon-side-asn - The Autonomous System Number (ASN) for the Amazon side of
- // the gateway.
- //
- // - attachment.state - The current state of the attachment between the gateway
- // and the VPC ( attaching | attached | detaching | detached ).
- //
- // - attachment.vpc-id - The ID of an attached VPC.
- //
- // - availability-zone - The Availability Zone for the virtual private gateway
- // (if applicable).
- //
- // - state - The state of the virtual private gateway ( pending | available |
- // deleting | deleted ).
- //
- // - tag : - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- //
- // - type - The type of virtual private gateway. Currently the only supported
- // type is ipsec.1 .
- //
- // - vpn-gateway-id - The ID of the virtual private gateway.
- Filters []types.Filter
-
- // One or more virtual private gateway IDs.
- //
- // Default: Describes all your virtual private gateways.
- VpnGatewayIds []string
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of DescribeVpnGateways.
-type DescribeVpnGatewaysOutput struct {
-
- // Information about one or more virtual private gateways.
- VpnGateways []types.VpnGateway
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDescribeVpnGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpnGateways{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVpnGateways{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVpnGateways"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVpnGateways(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDescribeVpnGateways(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DescribeVpnGateways",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachClassicLinkVpc.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachClassicLinkVpc.go
deleted file mode 100644
index ac0911eaf..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachClassicLinkVpc.go
+++ /dev/null
@@ -1,174 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// This action is deprecated.
-//
-// Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance
-// has been unlinked, the VPC security groups are no longer associated with it. An
-// instance is automatically unlinked from a VPC when it's stopped.
-func (c *Client) DetachClassicLinkVpc(ctx context.Context, params *DetachClassicLinkVpcInput, optFns ...func(*Options)) (*DetachClassicLinkVpcOutput, error) {
- if params == nil {
- params = &DetachClassicLinkVpcInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DetachClassicLinkVpc", params, optFns, c.addOperationDetachClassicLinkVpcMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DetachClassicLinkVpcOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DetachClassicLinkVpcInput struct {
-
- // The ID of the instance to unlink from the VPC.
- //
- // This member is required.
- InstanceId *string
-
- // The ID of the VPC to which the instance is linked.
- //
- // This member is required.
- VpcId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DetachClassicLinkVpcOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDetachClassicLinkVpcMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDetachClassicLinkVpc{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDetachClassicLinkVpc{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DetachClassicLinkVpc"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDetachClassicLinkVpcValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDetachClassicLinkVpc(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDetachClassicLinkVpc(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DetachClassicLinkVpc",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachInternetGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachInternetGateway.go
deleted file mode 100644
index f7768be5f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachInternetGateway.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Detaches an internet gateway from a VPC, disabling connectivity between the
-// internet and the VPC. The VPC must not contain any running instances with
-// Elastic IP addresses or public IPv4 addresses.
-func (c *Client) DetachInternetGateway(ctx context.Context, params *DetachInternetGatewayInput, optFns ...func(*Options)) (*DetachInternetGatewayOutput, error) {
- if params == nil {
- params = &DetachInternetGatewayInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DetachInternetGateway", params, optFns, c.addOperationDetachInternetGatewayMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DetachInternetGatewayOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DetachInternetGatewayInput struct {
-
- // The ID of the internet gateway.
- //
- // This member is required.
- InternetGatewayId *string
-
- // The ID of the VPC.
- //
- // This member is required.
- VpcId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DetachInternetGatewayOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDetachInternetGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDetachInternetGateway{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDetachInternetGateway{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DetachInternetGateway"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDetachInternetGatewayValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDetachInternetGateway(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDetachInternetGateway(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DetachInternetGateway",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachNetworkInterface.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachNetworkInterface.go
deleted file mode 100644
index 02b589a58..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachNetworkInterface.go
+++ /dev/null
@@ -1,179 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Detaches a network interface from an instance.
-func (c *Client) DetachNetworkInterface(ctx context.Context, params *DetachNetworkInterfaceInput, optFns ...func(*Options)) (*DetachNetworkInterfaceOutput, error) {
- if params == nil {
- params = &DetachNetworkInterfaceInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DetachNetworkInterface", params, optFns, c.addOperationDetachNetworkInterfaceMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DetachNetworkInterfaceOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DetachNetworkInterface.
-type DetachNetworkInterfaceInput struct {
-
- // The ID of the attachment.
- //
- // This member is required.
- AttachmentId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Specifies whether to force a detachment.
- //
- // - Use the Force parameter only as a last resort to detach a network interface
- // from a failed instance.
- //
- // - If you use the Force parameter to detach a network interface, you might not
- // be able to attach a different network interface to the same index on the
- // instance without first stopping and starting the instance.
- //
- // - If you force the detachment of a network interface, the [instance metadata]might not get
- // updated. This means that the attributes associated with the detached network
- // interface might still be visible. The instance metadata will get updated when
- // you stop and start the instance.
- //
- // [instance metadata]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
- Force *bool
-
- noSmithyDocumentSerde
-}
-
-type DetachNetworkInterfaceOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDetachNetworkInterfaceMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDetachNetworkInterface{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDetachNetworkInterface{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DetachNetworkInterface"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDetachNetworkInterfaceValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDetachNetworkInterface(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDetachNetworkInterface(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DetachNetworkInterface",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachVerifiedAccessTrustProvider.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachVerifiedAccessTrustProvider.go
deleted file mode 100644
index 76e0562bc..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachVerifiedAccessTrustProvider.go
+++ /dev/null
@@ -1,217 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Detaches the specified Amazon Web Services Verified Access trust provider from
-// the specified Amazon Web Services Verified Access instance.
-func (c *Client) DetachVerifiedAccessTrustProvider(ctx context.Context, params *DetachVerifiedAccessTrustProviderInput, optFns ...func(*Options)) (*DetachVerifiedAccessTrustProviderOutput, error) {
- if params == nil {
- params = &DetachVerifiedAccessTrustProviderInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DetachVerifiedAccessTrustProvider", params, optFns, c.addOperationDetachVerifiedAccessTrustProviderMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DetachVerifiedAccessTrustProviderOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DetachVerifiedAccessTrustProviderInput struct {
-
- // The ID of the Verified Access instance.
- //
- // This member is required.
- VerifiedAccessInstanceId *string
-
- // The ID of the Verified Access trust provider.
- //
- // This member is required.
- VerifiedAccessTrustProviderId *string
-
- // A unique, case-sensitive token that you provide to ensure idempotency of your
- // modification request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DetachVerifiedAccessTrustProviderOutput struct {
-
- // Details about the Verified Access instance.
- VerifiedAccessInstance *types.VerifiedAccessInstance
-
- // Details about the Verified Access trust provider.
- VerifiedAccessTrustProvider *types.VerifiedAccessTrustProvider
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDetachVerifiedAccessTrustProviderMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDetachVerifiedAccessTrustProvider{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDetachVerifiedAccessTrustProvider{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DetachVerifiedAccessTrustProvider"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opDetachVerifiedAccessTrustProviderMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpDetachVerifiedAccessTrustProviderValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDetachVerifiedAccessTrustProvider(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpDetachVerifiedAccessTrustProvider struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpDetachVerifiedAccessTrustProvider) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpDetachVerifiedAccessTrustProvider) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*DetachVerifiedAccessTrustProviderInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *DetachVerifiedAccessTrustProviderInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opDetachVerifiedAccessTrustProviderMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpDetachVerifiedAccessTrustProvider{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opDetachVerifiedAccessTrustProvider(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DetachVerifiedAccessTrustProvider",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachVolume.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachVolume.go
deleted file mode 100644
index 798abc385..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachVolume.go
+++ /dev/null
@@ -1,233 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Detaches an EBS volume from an instance. Make sure to unmount any file systems
-// on the device within your operating system before detaching the volume. Failure
-// to do so can result in the volume becoming stuck in the busy state while
-// detaching. If this happens, detachment can be delayed indefinitely until you
-// unmount the volume, force detachment, reboot the instance, or all three. If an
-// EBS volume is the root device of an instance, it can't be detached while the
-// instance is running. To detach the root volume, stop the instance first.
-//
-// When a volume with an Amazon Web Services Marketplace product code is detached
-// from an instance, the product code is no longer associated with the instance.
-//
-// You can't detach or force detach volumes that are attached to Amazon Web
-// Services-managed resources. Attempting to do this results in the
-// UnsupportedOperationException exception.
-//
-// For more information, see [Detach an Amazon EBS volume] in the Amazon EBS User Guide.
-//
-// [Detach an Amazon EBS volume]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-detaching-volume.html
-func (c *Client) DetachVolume(ctx context.Context, params *DetachVolumeInput, optFns ...func(*Options)) (*DetachVolumeOutput, error) {
- if params == nil {
- params = &DetachVolumeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DetachVolume", params, optFns, c.addOperationDetachVolumeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DetachVolumeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DetachVolumeInput struct {
-
- // The ID of the volume.
- //
- // This member is required.
- VolumeId *string
-
- // The device name.
- Device *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Forces detachment if the previous detachment attempt did not occur cleanly (for
- // example, logging into an instance, unmounting the volume, and detaching
- // normally). This option can lead to data loss or a corrupted file system. Use
- // this option only as a last resort to detach a volume from a failed instance. The
- // instance won't have an opportunity to flush file system caches or file system
- // metadata. If you use this option, you must perform file system check and repair
- // procedures.
- Force *bool
-
- // The ID of the instance. If you are detaching a Multi-Attach enabled volume, you
- // must specify an instance ID.
- InstanceId *string
-
- noSmithyDocumentSerde
-}
-
-// Describes volume attachment details.
-type DetachVolumeOutput struct {
-
- // The ARN of the Amazon Web Services-managed resource to which the volume is
- // attached.
- AssociatedResource *string
-
- // The time stamp when the attachment initiated.
- AttachTime *time.Time
-
- // Indicates whether the EBS volume is deleted on instance termination.
- DeleteOnTermination *bool
-
- // The device name.
- //
- // If the volume is attached to an Amazon Web Services-managed resource, this
- // parameter returns null .
- Device *string
-
- // The ID of the instance.
- //
- // If the volume is attached to an Amazon Web Services-managed resource, this
- // parameter returns null .
- InstanceId *string
-
- // The service principal of the Amazon Web Services service that owns the
- // underlying resource to which the volume is attached.
- //
- // This parameter is returned only for volumes that are attached to Amazon Web
- // Services-managed resources.
- InstanceOwningService *string
-
- // The attachment state of the volume.
- State types.VolumeAttachmentState
-
- // The ID of the volume.
- VolumeId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDetachVolumeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDetachVolume{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDetachVolume{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DetachVolume"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDetachVolumeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDetachVolume(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDetachVolume(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DetachVolume",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachVpnGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachVpnGateway.go
deleted file mode 100644
index 71bfe7cc7..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachVpnGateway.go
+++ /dev/null
@@ -1,174 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Detaches a virtual private gateway from a VPC. You do this if you're planning
-// to turn off the VPC and not use it anymore. You can confirm a virtual private
-// gateway has been completely detached from a VPC by describing the virtual
-// private gateway (any attachments to the virtual private gateway are also
-// described).
-//
-// You must wait for the attachment's state to switch to detached before you can
-// delete the VPC or attach a different VPC to the virtual private gateway.
-func (c *Client) DetachVpnGateway(ctx context.Context, params *DetachVpnGatewayInput, optFns ...func(*Options)) (*DetachVpnGatewayOutput, error) {
- if params == nil {
- params = &DetachVpnGatewayInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DetachVpnGateway", params, optFns, c.addOperationDetachVpnGatewayMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DetachVpnGatewayOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DetachVpnGateway.
-type DetachVpnGatewayInput struct {
-
- // The ID of the VPC.
- //
- // This member is required.
- VpcId *string
-
- // The ID of the virtual private gateway.
- //
- // This member is required.
- VpnGatewayId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DetachVpnGatewayOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDetachVpnGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDetachVpnGateway{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDetachVpnGateway{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DetachVpnGateway"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDetachVpnGatewayValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDetachVpnGateway(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDetachVpnGateway(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DetachVpnGateway",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableAddressTransfer.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableAddressTransfer.go
deleted file mode 100644
index e6bb42eea..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableAddressTransfer.go
+++ /dev/null
@@ -1,169 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disables Elastic IP address transfer. For more information, see [Transfer Elastic IP addresses] in the Amazon
-// VPC User Guide.
-//
-// [Transfer Elastic IP addresses]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-eips.html#transfer-EIPs-intro
-func (c *Client) DisableAddressTransfer(ctx context.Context, params *DisableAddressTransferInput, optFns ...func(*Options)) (*DisableAddressTransferOutput, error) {
- if params == nil {
- params = &DisableAddressTransferInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisableAddressTransfer", params, optFns, c.addOperationDisableAddressTransferMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisableAddressTransferOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisableAddressTransferInput struct {
-
- // The allocation ID of an Elastic IP address.
- //
- // This member is required.
- AllocationId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisableAddressTransferOutput struct {
-
- // An Elastic IP address transfer.
- AddressTransfer *types.AddressTransfer
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisableAddressTransferMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisableAddressTransfer{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisableAddressTransfer{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisableAddressTransfer"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisableAddressTransferValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisableAddressTransfer(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisableAddressTransfer(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisableAddressTransfer",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableAllowedImagesSettings.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableAllowedImagesSettings.go
deleted file mode 100644
index 48c950aac..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableAllowedImagesSettings.go
+++ /dev/null
@@ -1,170 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disables Allowed AMIs for your account in the specified Amazon Web Services
-// Region. When set to disabled , the image criteria in your Allowed AMIs settings
-// do not apply, and no restrictions are placed on AMI discoverability or usage.
-// Users in your account can launch instances using any public AMI or AMI shared
-// with your account.
-//
-// The Allowed AMIs feature does not restrict the AMIs owned by your account.
-// Regardless of the criteria you set, the AMIs created by your account will always
-// be discoverable and usable by users in your account.
-//
-// For more information, see [Control the discovery and use of AMIs in Amazon EC2 with Allowed AMIs] in Amazon EC2 User Guide.
-//
-// [Control the discovery and use of AMIs in Amazon EC2 with Allowed AMIs]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-allowed-amis.html
-func (c *Client) DisableAllowedImagesSettings(ctx context.Context, params *DisableAllowedImagesSettingsInput, optFns ...func(*Options)) (*DisableAllowedImagesSettingsOutput, error) {
- if params == nil {
- params = &DisableAllowedImagesSettingsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisableAllowedImagesSettings", params, optFns, c.addOperationDisableAllowedImagesSettingsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisableAllowedImagesSettingsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisableAllowedImagesSettingsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisableAllowedImagesSettingsOutput struct {
-
- // Returns disabled if the request succeeds; otherwise, it returns an error.
- AllowedImagesSettingsState types.AllowedImagesSettingsDisabledState
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisableAllowedImagesSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisableAllowedImagesSettings{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisableAllowedImagesSettings{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisableAllowedImagesSettings"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisableAllowedImagesSettings(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisableAllowedImagesSettings(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisableAllowedImagesSettings",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableAwsNetworkPerformanceMetricSubscription.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableAwsNetworkPerformanceMetricSubscription.go
deleted file mode 100644
index 97e67a75e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableAwsNetworkPerformanceMetricSubscription.go
+++ /dev/null
@@ -1,172 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disables Infrastructure Performance metric subscriptions.
-func (c *Client) DisableAwsNetworkPerformanceMetricSubscription(ctx context.Context, params *DisableAwsNetworkPerformanceMetricSubscriptionInput, optFns ...func(*Options)) (*DisableAwsNetworkPerformanceMetricSubscriptionOutput, error) {
- if params == nil {
- params = &DisableAwsNetworkPerformanceMetricSubscriptionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisableAwsNetworkPerformanceMetricSubscription", params, optFns, c.addOperationDisableAwsNetworkPerformanceMetricSubscriptionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisableAwsNetworkPerformanceMetricSubscriptionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisableAwsNetworkPerformanceMetricSubscriptionInput struct {
-
- // The target Region or Availability Zone that the metric subscription is disabled
- // for. For example, eu-north-1 .
- Destination *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The metric used for the disabled subscription.
- Metric types.MetricType
-
- // The source Region or Availability Zone that the metric subscription is disabled
- // for. For example, us-east-1 .
- Source *string
-
- // The statistic used for the disabled subscription.
- Statistic types.StatisticType
-
- noSmithyDocumentSerde
-}
-
-type DisableAwsNetworkPerformanceMetricSubscriptionOutput struct {
-
- // Indicates whether the unsubscribe action was successful.
- Output *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisableAwsNetworkPerformanceMetricSubscriptionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisableAwsNetworkPerformanceMetricSubscription{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisableAwsNetworkPerformanceMetricSubscription{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisableAwsNetworkPerformanceMetricSubscription"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisableAwsNetworkPerformanceMetricSubscription(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisableAwsNetworkPerformanceMetricSubscription(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisableAwsNetworkPerformanceMetricSubscription",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableEbsEncryptionByDefault.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableEbsEncryptionByDefault.go
deleted file mode 100644
index ae1ee7b02..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableEbsEncryptionByDefault.go
+++ /dev/null
@@ -1,167 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disables EBS encryption by default for your account in the current Region.
-//
-// After you disable encryption by default, you can still create encrypted volumes
-// by enabling encryption when you create each volume.
-//
-// Disabling encryption by default does not change the encryption status of your
-// existing volumes.
-//
-// For more information, see [Amazon EBS encryption] in the Amazon EBS User Guide.
-//
-// [Amazon EBS encryption]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html
-func (c *Client) DisableEbsEncryptionByDefault(ctx context.Context, params *DisableEbsEncryptionByDefaultInput, optFns ...func(*Options)) (*DisableEbsEncryptionByDefaultOutput, error) {
- if params == nil {
- params = &DisableEbsEncryptionByDefaultInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisableEbsEncryptionByDefault", params, optFns, c.addOperationDisableEbsEncryptionByDefaultMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisableEbsEncryptionByDefaultOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisableEbsEncryptionByDefaultInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisableEbsEncryptionByDefaultOutput struct {
-
- // The updated status of encryption by default.
- EbsEncryptionByDefault *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisableEbsEncryptionByDefaultMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisableEbsEncryptionByDefault{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisableEbsEncryptionByDefault{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisableEbsEncryptionByDefault"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisableEbsEncryptionByDefault(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisableEbsEncryptionByDefault(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisableEbsEncryptionByDefault",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableFastLaunch.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableFastLaunch.go
deleted file mode 100644
index d693db3cd..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableFastLaunch.go
+++ /dev/null
@@ -1,206 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Discontinue Windows fast launch for a Windows AMI, and clean up existing
-// pre-provisioned snapshots. After you disable Windows fast launch, the AMI uses
-// the standard launch process for each new instance. Amazon EC2 must remove all
-// pre-provisioned snapshots before you can enable Windows fast launch again.
-//
-// You can only change these settings for Windows AMIs that you own or that have
-// been shared with you.
-func (c *Client) DisableFastLaunch(ctx context.Context, params *DisableFastLaunchInput, optFns ...func(*Options)) (*DisableFastLaunchOutput, error) {
- if params == nil {
- params = &DisableFastLaunchInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisableFastLaunch", params, optFns, c.addOperationDisableFastLaunchMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisableFastLaunchOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisableFastLaunchInput struct {
-
- // Specify the ID of the image for which to disable Windows fast launch.
- //
- // This member is required.
- ImageId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Forces the image settings to turn off Windows fast launch for your Windows AMI.
- // This parameter overrides any errors that are encountered while cleaning up
- // resources in your account.
- Force *bool
-
- noSmithyDocumentSerde
-}
-
-type DisableFastLaunchOutput struct {
-
- // The ID of the image for which Windows fast launch was disabled.
- ImageId *string
-
- // The launch template that was used to launch Windows instances from
- // pre-provisioned snapshots.
- LaunchTemplate *types.FastLaunchLaunchTemplateSpecificationResponse
-
- // The maximum number of instances that Amazon EC2 can launch at the same time to
- // create pre-provisioned snapshots for Windows fast launch.
- MaxParallelLaunches *int32
-
- // The owner of the Windows AMI for which Windows fast launch was disabled.
- OwnerId *string
-
- // The pre-provisioning resource type that must be cleaned after turning off
- // Windows fast launch for the Windows AMI. Supported values include: snapshot .
- ResourceType types.FastLaunchResourceType
-
- // Parameters that were used for Windows fast launch for the Windows AMI before
- // Windows fast launch was disabled. This informs the clean-up process.
- SnapshotConfiguration *types.FastLaunchSnapshotConfigurationResponse
-
- // The current state of Windows fast launch for the specified Windows AMI.
- State types.FastLaunchStateCode
-
- // The reason that the state changed for Windows fast launch for the Windows AMI.
- StateTransitionReason *string
-
- // The time that the state changed for Windows fast launch for the Windows AMI.
- StateTransitionTime *time.Time
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisableFastLaunchMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisableFastLaunch{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisableFastLaunch{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisableFastLaunch"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisableFastLaunchValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisableFastLaunch(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisableFastLaunch(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisableFastLaunch",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableFastSnapshotRestores.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableFastSnapshotRestores.go
deleted file mode 100644
index 284c8da6a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableFastSnapshotRestores.go
+++ /dev/null
@@ -1,177 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disables fast snapshot restores for the specified snapshots in the specified
-// Availability Zones.
-func (c *Client) DisableFastSnapshotRestores(ctx context.Context, params *DisableFastSnapshotRestoresInput, optFns ...func(*Options)) (*DisableFastSnapshotRestoresOutput, error) {
- if params == nil {
- params = &DisableFastSnapshotRestoresInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisableFastSnapshotRestores", params, optFns, c.addOperationDisableFastSnapshotRestoresMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisableFastSnapshotRestoresOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisableFastSnapshotRestoresInput struct {
-
- // One or more Availability Zones. For example, us-east-2a .
- //
- // This member is required.
- AvailabilityZones []string
-
- // The IDs of one or more snapshots. For example, snap-1234567890abcdef0 .
- //
- // This member is required.
- SourceSnapshotIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisableFastSnapshotRestoresOutput struct {
-
- // Information about the snapshots for which fast snapshot restores were
- // successfully disabled.
- Successful []types.DisableFastSnapshotRestoreSuccessItem
-
- // Information about the snapshots for which fast snapshot restores could not be
- // disabled.
- Unsuccessful []types.DisableFastSnapshotRestoreErrorItem
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisableFastSnapshotRestoresMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisableFastSnapshotRestores{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisableFastSnapshotRestores{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisableFastSnapshotRestores"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisableFastSnapshotRestoresValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisableFastSnapshotRestores(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisableFastSnapshotRestores(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisableFastSnapshotRestores",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableImage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableImage.go
deleted file mode 100644
index e109e4aaf..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableImage.go
+++ /dev/null
@@ -1,182 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Sets the AMI state to disabled and removes all launch permissions from the AMI.
-// A disabled AMI can't be used for instance launches.
-//
-// A disabled AMI can't be shared. If an AMI was public or previously shared, it
-// is made private. If an AMI was shared with an Amazon Web Services account,
-// organization, or Organizational Unit, they lose access to the disabled AMI.
-//
-// A disabled AMI does not appear in [DescribeImages] API calls by default.
-//
-// Only the AMI owner can disable an AMI.
-//
-// You can re-enable a disabled AMI using [EnableImage].
-//
-// For more information, see [Disable an AMI] in the Amazon EC2 User Guide.
-//
-// [DescribeImages]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeImages.html
-// [Disable an AMI]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/disable-an-ami.html
-// [EnableImage]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EnableImage.html
-func (c *Client) DisableImage(ctx context.Context, params *DisableImageInput, optFns ...func(*Options)) (*DisableImageOutput, error) {
- if params == nil {
- params = &DisableImageInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisableImage", params, optFns, c.addOperationDisableImageMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisableImageOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisableImageInput struct {
-
- // The ID of the AMI.
- //
- // This member is required.
- ImageId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisableImageOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisableImageMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisableImage{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisableImage{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisableImage"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisableImageValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisableImage(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisableImage(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisableImage",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableImageBlockPublicAccess.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableImageBlockPublicAccess.go
deleted file mode 100644
index 11315eeb1..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableImageBlockPublicAccess.go
+++ /dev/null
@@ -1,170 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disables block public access for AMIs at the account level in the specified
-// Amazon Web Services Region. This removes the block public access restriction
-// from your account. With the restriction removed, you can publicly share your
-// AMIs in the specified Amazon Web Services Region.
-//
-// The API can take up to 10 minutes to configure this setting. During this time,
-// if you run [GetImageBlockPublicAccessState], the response will be block-new-sharing . When the API has completed
-// the configuration, the response will be unblocked .
-//
-// For more information, see [Block public access to your AMIs] in the Amazon EC2 User Guide.
-//
-// [Block public access to your AMIs]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-public-access-to-amis.html
-// [GetImageBlockPublicAccessState]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetImageBlockPublicAccessState.html
-func (c *Client) DisableImageBlockPublicAccess(ctx context.Context, params *DisableImageBlockPublicAccessInput, optFns ...func(*Options)) (*DisableImageBlockPublicAccessOutput, error) {
- if params == nil {
- params = &DisableImageBlockPublicAccessInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisableImageBlockPublicAccess", params, optFns, c.addOperationDisableImageBlockPublicAccessMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisableImageBlockPublicAccessOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisableImageBlockPublicAccessInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisableImageBlockPublicAccessOutput struct {
-
- // Returns unblocked if the request succeeds; otherwise, it returns an error.
- ImageBlockPublicAccessState types.ImageBlockPublicAccessDisabledState
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisableImageBlockPublicAccessMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisableImageBlockPublicAccess{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisableImageBlockPublicAccess{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisableImageBlockPublicAccess"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisableImageBlockPublicAccess(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisableImageBlockPublicAccess(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisableImageBlockPublicAccess",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableImageDeprecation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableImageDeprecation.go
deleted file mode 100644
index d563db90a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableImageDeprecation.go
+++ /dev/null
@@ -1,169 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Cancels the deprecation of the specified AMI.
-//
-// For more information, see [Deprecate an Amazon EC2 AMI] in the Amazon EC2 User Guide.
-//
-// [Deprecate an Amazon EC2 AMI]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deprecate.html
-func (c *Client) DisableImageDeprecation(ctx context.Context, params *DisableImageDeprecationInput, optFns ...func(*Options)) (*DisableImageDeprecationOutput, error) {
- if params == nil {
- params = &DisableImageDeprecationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisableImageDeprecation", params, optFns, c.addOperationDisableImageDeprecationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisableImageDeprecationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisableImageDeprecationInput struct {
-
- // The ID of the AMI.
- //
- // This member is required.
- ImageId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisableImageDeprecationOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisableImageDeprecationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisableImageDeprecation{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisableImageDeprecation{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisableImageDeprecation"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisableImageDeprecationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisableImageDeprecation(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisableImageDeprecation(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisableImageDeprecation",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableImageDeregistrationProtection.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableImageDeregistrationProtection.go
deleted file mode 100644
index 245b7e158..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableImageDeregistrationProtection.go
+++ /dev/null
@@ -1,174 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disables deregistration protection for an AMI. When deregistration protection
-// is disabled, the AMI can be deregistered.
-//
-// If you chose to include a 24-hour cooldown period when you enabled
-// deregistration protection for the AMI, then, when you disable deregistration
-// protection, you won’t immediately be able to deregister the AMI.
-//
-// For more information, see [Protect an Amazon EC2 AMI from deregistration] in the Amazon EC2 User Guide.
-//
-// [Protect an Amazon EC2 AMI from deregistration]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deregistration-protection.html
-func (c *Client) DisableImageDeregistrationProtection(ctx context.Context, params *DisableImageDeregistrationProtectionInput, optFns ...func(*Options)) (*DisableImageDeregistrationProtectionOutput, error) {
- if params == nil {
- params = &DisableImageDeregistrationProtectionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisableImageDeregistrationProtection", params, optFns, c.addOperationDisableImageDeregistrationProtectionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisableImageDeregistrationProtectionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisableImageDeregistrationProtectionInput struct {
-
- // The ID of the AMI.
- //
- // This member is required.
- ImageId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisableImageDeregistrationProtectionOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisableImageDeregistrationProtectionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisableImageDeregistrationProtection{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisableImageDeregistrationProtection{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisableImageDeregistrationProtection"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisableImageDeregistrationProtectionValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisableImageDeregistrationProtection(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisableImageDeregistrationProtection(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisableImageDeregistrationProtection",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableIpamOrganizationAdminAccount.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableIpamOrganizationAdminAccount.go
deleted file mode 100644
index ecb450eb3..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableIpamOrganizationAdminAccount.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disable the IPAM account. For more information, see [Enable integration with Organizations] in the Amazon VPC IPAM
-// User Guide.
-//
-// [Enable integration with Organizations]: https://docs.aws.amazon.com/vpc/latest/ipam/enable-integ-ipam.html
-func (c *Client) DisableIpamOrganizationAdminAccount(ctx context.Context, params *DisableIpamOrganizationAdminAccountInput, optFns ...func(*Options)) (*DisableIpamOrganizationAdminAccountOutput, error) {
- if params == nil {
- params = &DisableIpamOrganizationAdminAccountInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisableIpamOrganizationAdminAccount", params, optFns, c.addOperationDisableIpamOrganizationAdminAccountMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisableIpamOrganizationAdminAccountOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisableIpamOrganizationAdminAccountInput struct {
-
- // The Organizations member account ID that you want to disable as IPAM account.
- //
- // This member is required.
- DelegatedAdminAccountId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisableIpamOrganizationAdminAccountOutput struct {
-
- // The result of disabling the IPAM account.
- Success *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisableIpamOrganizationAdminAccountMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisableIpamOrganizationAdminAccount{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisableIpamOrganizationAdminAccount{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisableIpamOrganizationAdminAccount"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisableIpamOrganizationAdminAccountValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisableIpamOrganizationAdminAccount(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisableIpamOrganizationAdminAccount(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisableIpamOrganizationAdminAccount",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableRouteServerPropagation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableRouteServerPropagation.go
deleted file mode 100644
index 8e4b3a081..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableRouteServerPropagation.go
+++ /dev/null
@@ -1,199 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disables route propagation from a route server to a specified route table.
-//
-// When enabled, route server propagation installs the routes in the FIB on the
-// route table you've specified. Route server supports IPv4 and IPv6 route
-// propagation.
-//
-// Amazon VPC Route Server simplifies routing for traffic between workloads that
-// are deployed within a VPC and its internet gateways. With this feature, VPC
-// Route Server dynamically updates VPC and internet gateway route tables with your
-// preferred IPv4 or IPv6 routes to achieve routing fault tolerance for those
-// workloads. This enables you to automatically reroute traffic within a VPC, which
-// increases the manageability of VPC routing and interoperability with third-party
-// workloads.
-//
-// Route server supports the follow route table types:
-//
-// - VPC route tables not associated with subnets
-//
-// - Subnet route tables
-//
-// - Internet gateway route tables
-//
-// Route server does not support route tables associated with virtual private
-// gateways. To propagate routes into a transit gateway route table, use [Transit Gateway Connect].
-//
-// For more information see [Dynamic routing in your VPC with VPC Route Server] in the Amazon VPC User Guide.
-//
-// [Dynamic routing in your VPC with VPC Route Server]: https://docs.aws.amazon.com/vpc/latest/userguide/dynamic-routing-route-server.html
-// [Transit Gateway Connect]: https://docs.aws.amazon.com/vpc/latest/tgw/tgw-connect.html
-func (c *Client) DisableRouteServerPropagation(ctx context.Context, params *DisableRouteServerPropagationInput, optFns ...func(*Options)) (*DisableRouteServerPropagationOutput, error) {
- if params == nil {
- params = &DisableRouteServerPropagationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisableRouteServerPropagation", params, optFns, c.addOperationDisableRouteServerPropagationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisableRouteServerPropagationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisableRouteServerPropagationInput struct {
-
- // The ID of the route server for which to disable propagation.
- //
- // This member is required.
- RouteServerId *string
-
- // The ID of the route table for which to disable route server propagation.
- //
- // This member is required.
- RouteTableId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisableRouteServerPropagationOutput struct {
-
- // Information about the disabled route server propagation.
- RouteServerPropagation *types.RouteServerPropagation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisableRouteServerPropagationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisableRouteServerPropagation{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisableRouteServerPropagation{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisableRouteServerPropagation"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisableRouteServerPropagationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisableRouteServerPropagation(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisableRouteServerPropagation(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisableRouteServerPropagation",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableSerialConsoleAccess.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableSerialConsoleAccess.go
deleted file mode 100644
index 18a80126e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableSerialConsoleAccess.go
+++ /dev/null
@@ -1,163 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disables access to the EC2 serial console of all instances for your account. By
-// default, access to the EC2 serial console is disabled for your account. For more
-// information, see [Manage account access to the EC2 serial console]in the Amazon EC2 User Guide.
-//
-// [Manage account access to the EC2 serial console]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configure-access-to-serial-console.html#serial-console-account-access
-func (c *Client) DisableSerialConsoleAccess(ctx context.Context, params *DisableSerialConsoleAccessInput, optFns ...func(*Options)) (*DisableSerialConsoleAccessOutput, error) {
- if params == nil {
- params = &DisableSerialConsoleAccessInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisableSerialConsoleAccess", params, optFns, c.addOperationDisableSerialConsoleAccessMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisableSerialConsoleAccessOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisableSerialConsoleAccessInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisableSerialConsoleAccessOutput struct {
-
- // If true , access to the EC2 serial console of all instances is enabled for your
- // account. If false , access to the EC2 serial console of all instances is
- // disabled for your account.
- SerialConsoleAccessEnabled *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisableSerialConsoleAccessMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisableSerialConsoleAccess{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisableSerialConsoleAccess{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisableSerialConsoleAccess"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisableSerialConsoleAccess(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisableSerialConsoleAccess(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisableSerialConsoleAccess",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableSnapshotBlockPublicAccess.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableSnapshotBlockPublicAccess.go
deleted file mode 100644
index 6a7134c62..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableSnapshotBlockPublicAccess.go
+++ /dev/null
@@ -1,173 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disables the block public access for snapshots setting at the account level for
-// the specified Amazon Web Services Region. After you disable block public access
-// for snapshots in a Region, users can publicly share snapshots in that Region.
-//
-// Enabling block public access for snapshots in block-all-sharing mode does not
-// change the permissions for snapshots that are already publicly shared. Instead,
-// it prevents these snapshots from be publicly visible and publicly accessible.
-// Therefore, the attributes for these snapshots still indicate that they are
-// publicly shared, even though they are not publicly available.
-//
-// If you disable block public access , these snapshots will become publicly
-// available again.
-//
-// For more information, see [Block public access for snapshots] in the Amazon EBS User Guide .
-//
-// [Block public access for snapshots]: https://docs.aws.amazon.com/ebs/latest/userguide/block-public-access-snapshots.html
-func (c *Client) DisableSnapshotBlockPublicAccess(ctx context.Context, params *DisableSnapshotBlockPublicAccessInput, optFns ...func(*Options)) (*DisableSnapshotBlockPublicAccessOutput, error) {
- if params == nil {
- params = &DisableSnapshotBlockPublicAccessInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisableSnapshotBlockPublicAccess", params, optFns, c.addOperationDisableSnapshotBlockPublicAccessMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisableSnapshotBlockPublicAccessOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisableSnapshotBlockPublicAccessInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisableSnapshotBlockPublicAccessOutput struct {
-
- // Returns unblocked if the request succeeds.
- State types.SnapshotBlockPublicAccessState
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisableSnapshotBlockPublicAccessMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisableSnapshotBlockPublicAccess{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisableSnapshotBlockPublicAccess{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisableSnapshotBlockPublicAccess"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisableSnapshotBlockPublicAccess(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisableSnapshotBlockPublicAccess(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisableSnapshotBlockPublicAccess",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableTransitGatewayRouteTablePropagation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableTransitGatewayRouteTablePropagation.go
deleted file mode 100644
index b09984fe6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableTransitGatewayRouteTablePropagation.go
+++ /dev/null
@@ -1,173 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disables the specified resource attachment from propagating routes to the
-// specified propagation route table.
-func (c *Client) DisableTransitGatewayRouteTablePropagation(ctx context.Context, params *DisableTransitGatewayRouteTablePropagationInput, optFns ...func(*Options)) (*DisableTransitGatewayRouteTablePropagationOutput, error) {
- if params == nil {
- params = &DisableTransitGatewayRouteTablePropagationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisableTransitGatewayRouteTablePropagation", params, optFns, c.addOperationDisableTransitGatewayRouteTablePropagationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisableTransitGatewayRouteTablePropagationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisableTransitGatewayRouteTablePropagationInput struct {
-
- // The ID of the propagation route table.
- //
- // This member is required.
- TransitGatewayRouteTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the attachment.
- TransitGatewayAttachmentId *string
-
- // The ID of the route table announcement.
- TransitGatewayRouteTableAnnouncementId *string
-
- noSmithyDocumentSerde
-}
-
-type DisableTransitGatewayRouteTablePropagationOutput struct {
-
- // Information about route propagation.
- Propagation *types.TransitGatewayPropagation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisableTransitGatewayRouteTablePropagationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisableTransitGatewayRouteTablePropagation{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisableTransitGatewayRouteTablePropagation{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisableTransitGatewayRouteTablePropagation"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisableTransitGatewayRouteTablePropagationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisableTransitGatewayRouteTablePropagation(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisableTransitGatewayRouteTablePropagation(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisableTransitGatewayRouteTablePropagation",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVgwRoutePropagation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVgwRoutePropagation.go
deleted file mode 100644
index 227fe0f1d..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVgwRoutePropagation.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disables a virtual private gateway (VGW) from propagating routes to a specified
-// route table of a VPC.
-func (c *Client) DisableVgwRoutePropagation(ctx context.Context, params *DisableVgwRoutePropagationInput, optFns ...func(*Options)) (*DisableVgwRoutePropagationOutput, error) {
- if params == nil {
- params = &DisableVgwRoutePropagationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisableVgwRoutePropagation", params, optFns, c.addOperationDisableVgwRoutePropagationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisableVgwRoutePropagationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for DisableVgwRoutePropagation.
-type DisableVgwRoutePropagationInput struct {
-
- // The ID of the virtual private gateway.
- //
- // This member is required.
- GatewayId *string
-
- // The ID of the route table.
- //
- // This member is required.
- RouteTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisableVgwRoutePropagationOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisableVgwRoutePropagationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisableVgwRoutePropagation{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisableVgwRoutePropagation{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisableVgwRoutePropagation"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisableVgwRoutePropagationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisableVgwRoutePropagation(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisableVgwRoutePropagation(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisableVgwRoutePropagation",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVpcClassicLink.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVpcClassicLink.go
deleted file mode 100644
index 73f51e901..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVpcClassicLink.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// This action is deprecated.
-//
-// Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC that
-// has EC2-Classic instances linked to it.
-func (c *Client) DisableVpcClassicLink(ctx context.Context, params *DisableVpcClassicLinkInput, optFns ...func(*Options)) (*DisableVpcClassicLinkOutput, error) {
- if params == nil {
- params = &DisableVpcClassicLinkInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisableVpcClassicLink", params, optFns, c.addOperationDisableVpcClassicLinkMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisableVpcClassicLinkOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisableVpcClassicLinkInput struct {
-
- // The ID of the VPC.
- //
- // This member is required.
- VpcId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisableVpcClassicLinkOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisableVpcClassicLinkMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisableVpcClassicLink{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisableVpcClassicLink{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisableVpcClassicLink"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisableVpcClassicLinkValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisableVpcClassicLink(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisableVpcClassicLink(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisableVpcClassicLink",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVpcClassicLinkDnsSupport.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVpcClassicLinkDnsSupport.go
deleted file mode 100644
index f5f2c0fbd..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVpcClassicLinkDnsSupport.go
+++ /dev/null
@@ -1,160 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// This action is deprecated.
-//
-// Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve
-// to public IP addresses when addressed between a linked EC2-Classic instance and
-// instances in the VPC to which it's linked.
-//
-// You must specify a VPC ID in the request.
-func (c *Client) DisableVpcClassicLinkDnsSupport(ctx context.Context, params *DisableVpcClassicLinkDnsSupportInput, optFns ...func(*Options)) (*DisableVpcClassicLinkDnsSupportOutput, error) {
- if params == nil {
- params = &DisableVpcClassicLinkDnsSupportInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisableVpcClassicLinkDnsSupport", params, optFns, c.addOperationDisableVpcClassicLinkDnsSupportMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisableVpcClassicLinkDnsSupportOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisableVpcClassicLinkDnsSupportInput struct {
-
- // The ID of the VPC.
- VpcId *string
-
- noSmithyDocumentSerde
-}
-
-type DisableVpcClassicLinkDnsSupportOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisableVpcClassicLinkDnsSupportMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisableVpcClassicLinkDnsSupport{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisableVpcClassicLinkDnsSupport{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisableVpcClassicLinkDnsSupport"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisableVpcClassicLinkDnsSupport(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisableVpcClassicLinkDnsSupport(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisableVpcClassicLinkDnsSupport",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateAddress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateAddress.go
deleted file mode 100644
index bdebb83c2..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateAddress.go
+++ /dev/null
@@ -1,172 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disassociates an Elastic IP address from the instance or network interface it's
-// associated with.
-//
-// This is an idempotent operation. If you perform the operation more than once,
-// Amazon EC2 doesn't return an error.
-//
-// An address cannot be disassociated if the all of the following conditions are
-// met:
-//
-// - Network interface has a publicDualStackDnsName publicDnsName
-//
-// - Public IPv4 address is the primary public IPv4 address
-//
-// - Network interface only has one remaining public IPv4 address
-func (c *Client) DisassociateAddress(ctx context.Context, params *DisassociateAddressInput, optFns ...func(*Options)) (*DisassociateAddressOutput, error) {
- if params == nil {
- params = &DisassociateAddressInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisassociateAddress", params, optFns, c.addOperationDisassociateAddressMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisassociateAddressOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisassociateAddressInput struct {
-
- // The association ID. This parameter is required.
- AssociationId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Deprecated.
- PublicIp *string
-
- noSmithyDocumentSerde
-}
-
-type DisassociateAddressOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisassociateAddressMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateAddress{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisassociateAddress{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateAddress"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateAddress(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisassociateAddress(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisassociateAddress",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateCapacityReservationBillingOwner.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateCapacityReservationBillingOwner.go
deleted file mode 100644
index 88d764f31..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateCapacityReservationBillingOwner.go
+++ /dev/null
@@ -1,174 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Cancels a pending request to assign billing of the unused capacity of a
-// Capacity Reservation to a consumer account, or revokes a request that has
-// already been accepted. For more information, see [Billing assignment for shared Amazon EC2 Capacity Reservations].
-//
-// [Billing assignment for shared Amazon EC2 Capacity Reservations]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/assign-billing.html
-func (c *Client) DisassociateCapacityReservationBillingOwner(ctx context.Context, params *DisassociateCapacityReservationBillingOwnerInput, optFns ...func(*Options)) (*DisassociateCapacityReservationBillingOwnerOutput, error) {
- if params == nil {
- params = &DisassociateCapacityReservationBillingOwnerInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisassociateCapacityReservationBillingOwner", params, optFns, c.addOperationDisassociateCapacityReservationBillingOwnerMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisassociateCapacityReservationBillingOwnerOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisassociateCapacityReservationBillingOwnerInput struct {
-
- // The ID of the Capacity Reservation.
- //
- // This member is required.
- CapacityReservationId *string
-
- // The ID of the consumer account to which the request was sent.
- //
- // This member is required.
- UnusedReservationBillingOwnerId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisassociateCapacityReservationBillingOwnerOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisassociateCapacityReservationBillingOwnerMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateCapacityReservationBillingOwner{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisassociateCapacityReservationBillingOwner{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateCapacityReservationBillingOwner"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisassociateCapacityReservationBillingOwnerValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateCapacityReservationBillingOwner(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisassociateCapacityReservationBillingOwner(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisassociateCapacityReservationBillingOwner",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateClientVpnTargetNetwork.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateClientVpnTargetNetwork.go
deleted file mode 100644
index f3bb15c73..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateClientVpnTargetNetwork.go
+++ /dev/null
@@ -1,183 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disassociates a target network from the specified Client VPN endpoint. When you
-// disassociate the last target network from a Client VPN, the following happens:
-//
-// - The route that was automatically added for the VPC is deleted
-//
-// - All active client connections are terminated
-//
-// - New client connections are disallowed
-//
-// - The Client VPN endpoint's status changes to pending-associate
-func (c *Client) DisassociateClientVpnTargetNetwork(ctx context.Context, params *DisassociateClientVpnTargetNetworkInput, optFns ...func(*Options)) (*DisassociateClientVpnTargetNetworkOutput, error) {
- if params == nil {
- params = &DisassociateClientVpnTargetNetworkInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisassociateClientVpnTargetNetwork", params, optFns, c.addOperationDisassociateClientVpnTargetNetworkMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisassociateClientVpnTargetNetworkOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisassociateClientVpnTargetNetworkInput struct {
-
- // The ID of the target network association.
- //
- // This member is required.
- AssociationId *string
-
- // The ID of the Client VPN endpoint from which to disassociate the target network.
- //
- // This member is required.
- ClientVpnEndpointId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisassociateClientVpnTargetNetworkOutput struct {
-
- // The ID of the target network association.
- AssociationId *string
-
- // The current state of the target network association.
- Status *types.AssociationStatus
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisassociateClientVpnTargetNetworkMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateClientVpnTargetNetwork{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisassociateClientVpnTargetNetwork{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateClientVpnTargetNetwork"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisassociateClientVpnTargetNetworkValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateClientVpnTargetNetwork(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisassociateClientVpnTargetNetwork(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisassociateClientVpnTargetNetwork",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateEnclaveCertificateIamRole.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateEnclaveCertificateIamRole.go
deleted file mode 100644
index b833ea019..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateEnclaveCertificateIamRole.go
+++ /dev/null
@@ -1,175 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disassociates an IAM role from an Certificate Manager (ACM) certificate.
-// Disassociating an IAM role from an ACM certificate removes the Amazon S3 object
-// that contains the certificate, certificate chain, and encrypted private key from
-// the Amazon S3 bucket. It also revokes the IAM role's permission to use the KMS
-// key used to encrypt the private key. This effectively revokes the role's
-// permission to use the certificate.
-func (c *Client) DisassociateEnclaveCertificateIamRole(ctx context.Context, params *DisassociateEnclaveCertificateIamRoleInput, optFns ...func(*Options)) (*DisassociateEnclaveCertificateIamRoleOutput, error) {
- if params == nil {
- params = &DisassociateEnclaveCertificateIamRoleInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisassociateEnclaveCertificateIamRole", params, optFns, c.addOperationDisassociateEnclaveCertificateIamRoleMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisassociateEnclaveCertificateIamRoleOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisassociateEnclaveCertificateIamRoleInput struct {
-
- // The ARN of the ACM certificate from which to disassociate the IAM role.
- //
- // This member is required.
- CertificateArn *string
-
- // The ARN of the IAM role to disassociate.
- //
- // This member is required.
- RoleArn *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisassociateEnclaveCertificateIamRoleOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisassociateEnclaveCertificateIamRoleMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateEnclaveCertificateIamRole{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisassociateEnclaveCertificateIamRole{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateEnclaveCertificateIamRole"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisassociateEnclaveCertificateIamRoleValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateEnclaveCertificateIamRole(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisassociateEnclaveCertificateIamRole(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisassociateEnclaveCertificateIamRole",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateIamInstanceProfile.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateIamInstanceProfile.go
deleted file mode 100644
index 5c17867eb..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateIamInstanceProfile.go
+++ /dev/null
@@ -1,162 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disassociates an IAM instance profile from a running or stopped instance.
-//
-// Use DescribeIamInstanceProfileAssociations to get the association ID.
-func (c *Client) DisassociateIamInstanceProfile(ctx context.Context, params *DisassociateIamInstanceProfileInput, optFns ...func(*Options)) (*DisassociateIamInstanceProfileOutput, error) {
- if params == nil {
- params = &DisassociateIamInstanceProfileInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisassociateIamInstanceProfile", params, optFns, c.addOperationDisassociateIamInstanceProfileMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisassociateIamInstanceProfileOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisassociateIamInstanceProfileInput struct {
-
- // The ID of the IAM instance profile association.
- //
- // This member is required.
- AssociationId *string
-
- noSmithyDocumentSerde
-}
-
-type DisassociateIamInstanceProfileOutput struct {
-
- // Information about the IAM instance profile association.
- IamInstanceProfileAssociation *types.IamInstanceProfileAssociation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisassociateIamInstanceProfileMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateIamInstanceProfile{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisassociateIamInstanceProfile{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateIamInstanceProfile"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisassociateIamInstanceProfileValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateIamInstanceProfile(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisassociateIamInstanceProfile(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisassociateIamInstanceProfile",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateInstanceEventWindow.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateInstanceEventWindow.go
deleted file mode 100644
index e4736d4de..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateInstanceEventWindow.go
+++ /dev/null
@@ -1,175 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disassociates one or more targets from an event window.
-//
-// For more information, see [Define event windows for scheduled events] in the Amazon EC2 User Guide.
-//
-// [Define event windows for scheduled events]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html
-func (c *Client) DisassociateInstanceEventWindow(ctx context.Context, params *DisassociateInstanceEventWindowInput, optFns ...func(*Options)) (*DisassociateInstanceEventWindowOutput, error) {
- if params == nil {
- params = &DisassociateInstanceEventWindowInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisassociateInstanceEventWindow", params, optFns, c.addOperationDisassociateInstanceEventWindowMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisassociateInstanceEventWindowOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisassociateInstanceEventWindowInput struct {
-
- // One or more targets to disassociate from the specified event window.
- //
- // This member is required.
- AssociationTarget *types.InstanceEventWindowDisassociationRequest
-
- // The ID of the event window.
- //
- // This member is required.
- InstanceEventWindowId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisassociateInstanceEventWindowOutput struct {
-
- // Information about the event window.
- InstanceEventWindow *types.InstanceEventWindow
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisassociateInstanceEventWindowMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateInstanceEventWindow{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisassociateInstanceEventWindow{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateInstanceEventWindow"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisassociateInstanceEventWindowValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateInstanceEventWindow(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisassociateInstanceEventWindow(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisassociateInstanceEventWindow",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateIpamByoasn.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateIpamByoasn.go
deleted file mode 100644
index 99237e515..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateIpamByoasn.go
+++ /dev/null
@@ -1,176 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Remove the association between your Autonomous System Number (ASN) and your
-// BYOIP CIDR. You may want to use this action to disassociate an ASN from a CIDR
-// or if you want to swap ASNs. For more information, see [Tutorial: Bring your ASN to IPAM]in the Amazon VPC IPAM
-// guide.
-//
-// [Tutorial: Bring your ASN to IPAM]: https://docs.aws.amazon.com/vpc/latest/ipam/tutorials-byoasn.html
-func (c *Client) DisassociateIpamByoasn(ctx context.Context, params *DisassociateIpamByoasnInput, optFns ...func(*Options)) (*DisassociateIpamByoasnOutput, error) {
- if params == nil {
- params = &DisassociateIpamByoasnInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisassociateIpamByoasn", params, optFns, c.addOperationDisassociateIpamByoasnMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisassociateIpamByoasnOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisassociateIpamByoasnInput struct {
-
- // A public 2-byte or 4-byte ASN.
- //
- // This member is required.
- Asn *string
-
- // A BYOIP CIDR.
- //
- // This member is required.
- Cidr *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisassociateIpamByoasnOutput struct {
-
- // An ASN and BYOIP CIDR association.
- AsnAssociation *types.AsnAssociation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisassociateIpamByoasnMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateIpamByoasn{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisassociateIpamByoasn{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateIpamByoasn"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisassociateIpamByoasnValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateIpamByoasn(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisassociateIpamByoasn(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisassociateIpamByoasn",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateIpamResourceDiscovery.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateIpamResourceDiscovery.go
deleted file mode 100644
index 7dd604072..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateIpamResourceDiscovery.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disassociates a resource discovery from an Amazon VPC IPAM. A resource
-// discovery is an IPAM component that enables IPAM to manage and monitor resources
-// that belong to the owning account.
-func (c *Client) DisassociateIpamResourceDiscovery(ctx context.Context, params *DisassociateIpamResourceDiscoveryInput, optFns ...func(*Options)) (*DisassociateIpamResourceDiscoveryOutput, error) {
- if params == nil {
- params = &DisassociateIpamResourceDiscoveryInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisassociateIpamResourceDiscovery", params, optFns, c.addOperationDisassociateIpamResourceDiscoveryMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisassociateIpamResourceDiscoveryOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisassociateIpamResourceDiscoveryInput struct {
-
- // A resource discovery association ID.
- //
- // This member is required.
- IpamResourceDiscoveryAssociationId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisassociateIpamResourceDiscoveryOutput struct {
-
- // A resource discovery association.
- IpamResourceDiscoveryAssociation *types.IpamResourceDiscoveryAssociation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisassociateIpamResourceDiscoveryMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateIpamResourceDiscovery{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisassociateIpamResourceDiscovery{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateIpamResourceDiscovery"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisassociateIpamResourceDiscoveryValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateIpamResourceDiscovery(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisassociateIpamResourceDiscovery(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisassociateIpamResourceDiscovery",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateNatGatewayAddress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateNatGatewayAddress.go
deleted file mode 100644
index d084720b9..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateNatGatewayAddress.go
+++ /dev/null
@@ -1,192 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disassociates secondary Elastic IP addresses (EIPs) from a public NAT gateway.
-// You cannot disassociate your primary EIP. For more information, see [Edit secondary IP address associations]in the
-// Amazon VPC User Guide.
-//
-// While disassociating is in progress, you cannot associate/disassociate
-// additional EIPs while the connections are being drained. You are, however,
-// allowed to delete the NAT gateway.
-//
-// An EIP is released only at the end of MaxDrainDurationSeconds. It stays
-// associated and supports the existing connections but does not support any new
-// connections (new connections are distributed across the remaining associated
-// EIPs). As the existing connections drain out, the EIPs (and the corresponding
-// private IP addresses mapped to them) are released.
-//
-// [Edit secondary IP address associations]: https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-working-with.html#nat-gateway-edit-secondary
-func (c *Client) DisassociateNatGatewayAddress(ctx context.Context, params *DisassociateNatGatewayAddressInput, optFns ...func(*Options)) (*DisassociateNatGatewayAddressOutput, error) {
- if params == nil {
- params = &DisassociateNatGatewayAddressInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisassociateNatGatewayAddress", params, optFns, c.addOperationDisassociateNatGatewayAddressMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisassociateNatGatewayAddressOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisassociateNatGatewayAddressInput struct {
-
- // The association IDs of EIPs that have been associated with the NAT gateway.
- //
- // This member is required.
- AssociationIds []string
-
- // The ID of the NAT gateway.
- //
- // This member is required.
- NatGatewayId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The maximum amount of time to wait (in seconds) before forcibly releasing the
- // IP addresses if connections are still in progress. Default value is 350 seconds.
- MaxDrainDurationSeconds *int32
-
- noSmithyDocumentSerde
-}
-
-type DisassociateNatGatewayAddressOutput struct {
-
- // Information about the NAT gateway IP addresses.
- NatGatewayAddresses []types.NatGatewayAddress
-
- // The ID of the NAT gateway.
- NatGatewayId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisassociateNatGatewayAddressMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateNatGatewayAddress{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisassociateNatGatewayAddress{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateNatGatewayAddress"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisassociateNatGatewayAddressValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateNatGatewayAddress(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisassociateNatGatewayAddress(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisassociateNatGatewayAddress",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateRouteServer.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateRouteServer.go
deleted file mode 100644
index 5cfbad09e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateRouteServer.go
+++ /dev/null
@@ -1,178 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disassociates a route server from a VPC.
-//
-// A route server association is the connection established between a route server
-// and a VPC.
-//
-// For more information see [Dynamic routing in your VPC with VPC Route Server] in the Amazon VPC User Guide.
-//
-// [Dynamic routing in your VPC with VPC Route Server]: https://docs.aws.amazon.com/vpc/latest/userguide/dynamic-routing-route-server.html
-func (c *Client) DisassociateRouteServer(ctx context.Context, params *DisassociateRouteServerInput, optFns ...func(*Options)) (*DisassociateRouteServerOutput, error) {
- if params == nil {
- params = &DisassociateRouteServerInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisassociateRouteServer", params, optFns, c.addOperationDisassociateRouteServerMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisassociateRouteServerOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisassociateRouteServerInput struct {
-
- // The ID of the route server to disassociate.
- //
- // This member is required.
- RouteServerId *string
-
- // The ID of the VPC to disassociate from the route server.
- //
- // This member is required.
- VpcId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisassociateRouteServerOutput struct {
-
- // Information about the disassociated route server.
- RouteServerAssociation *types.RouteServerAssociation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisassociateRouteServerMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateRouteServer{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisassociateRouteServer{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateRouteServer"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisassociateRouteServerValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateRouteServer(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisassociateRouteServer(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisassociateRouteServer",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateRouteTable.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateRouteTable.go
deleted file mode 100644
index 3961e9ec6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateRouteTable.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disassociates a subnet or gateway from a route table.
-//
-// After you perform this action, the subnet no longer uses the routes in the
-// route table. Instead, it uses the routes in the VPC's main route table. For more
-// information about route tables, see [Route tables]in the Amazon VPC User Guide.
-//
-// [Route tables]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html
-func (c *Client) DisassociateRouteTable(ctx context.Context, params *DisassociateRouteTableInput, optFns ...func(*Options)) (*DisassociateRouteTableOutput, error) {
- if params == nil {
- params = &DisassociateRouteTableInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisassociateRouteTable", params, optFns, c.addOperationDisassociateRouteTableMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisassociateRouteTableOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisassociateRouteTableInput struct {
-
- // The association ID representing the current association between the route table
- // and subnet or gateway.
- //
- // This member is required.
- AssociationId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisassociateRouteTableOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisassociateRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateRouteTable{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisassociateRouteTable{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateRouteTable"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisassociateRouteTableValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateRouteTable(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisassociateRouteTable(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisassociateRouteTable",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateSecurityGroupVpc.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateSecurityGroupVpc.go
deleted file mode 100644
index 1f8b2088e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateSecurityGroupVpc.go
+++ /dev/null
@@ -1,178 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disassociates a security group from a VPC. You cannot disassociate the security
-// group if any Elastic network interfaces in the associated VPC are still
-// associated with the security group.
-//
-// Note that the disassociation is asynchronous and you can check the status of
-// the request with [DescribeSecurityGroupVpcAssociations].
-//
-// [DescribeSecurityGroupVpcAssociations]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroupVpcAssociations.html
-func (c *Client) DisassociateSecurityGroupVpc(ctx context.Context, params *DisassociateSecurityGroupVpcInput, optFns ...func(*Options)) (*DisassociateSecurityGroupVpcOutput, error) {
- if params == nil {
- params = &DisassociateSecurityGroupVpcInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisassociateSecurityGroupVpc", params, optFns, c.addOperationDisassociateSecurityGroupVpcMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisassociateSecurityGroupVpcOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisassociateSecurityGroupVpcInput struct {
-
- // A security group ID.
- //
- // This member is required.
- GroupId *string
-
- // A VPC ID.
- //
- // This member is required.
- VpcId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisassociateSecurityGroupVpcOutput struct {
-
- // The state of the disassociation.
- State types.SecurityGroupVpcAssociationState
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisassociateSecurityGroupVpcMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateSecurityGroupVpc{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisassociateSecurityGroupVpc{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateSecurityGroupVpc"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisassociateSecurityGroupVpcValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateSecurityGroupVpc(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisassociateSecurityGroupVpc(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisassociateSecurityGroupVpc",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateSubnetCidrBlock.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateSubnetCidrBlock.go
deleted file mode 100644
index 61006bdc8..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateSubnetCidrBlock.go
+++ /dev/null
@@ -1,165 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disassociates a CIDR block from a subnet. Currently, you can disassociate an
-// IPv6 CIDR block only. You must detach or delete all gateways and resources that
-// are associated with the CIDR block before you can disassociate it.
-func (c *Client) DisassociateSubnetCidrBlock(ctx context.Context, params *DisassociateSubnetCidrBlockInput, optFns ...func(*Options)) (*DisassociateSubnetCidrBlockOutput, error) {
- if params == nil {
- params = &DisassociateSubnetCidrBlockInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisassociateSubnetCidrBlock", params, optFns, c.addOperationDisassociateSubnetCidrBlockMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisassociateSubnetCidrBlockOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisassociateSubnetCidrBlockInput struct {
-
- // The association ID for the CIDR block.
- //
- // This member is required.
- AssociationId *string
-
- noSmithyDocumentSerde
-}
-
-type DisassociateSubnetCidrBlockOutput struct {
-
- // Information about the IPv6 CIDR block association.
- Ipv6CidrBlockAssociation *types.SubnetIpv6CidrBlockAssociation
-
- // The ID of the subnet.
- SubnetId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisassociateSubnetCidrBlockMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateSubnetCidrBlock{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisassociateSubnetCidrBlock{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateSubnetCidrBlock"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisassociateSubnetCidrBlockValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateSubnetCidrBlock(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisassociateSubnetCidrBlock(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisassociateSubnetCidrBlock",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTransitGatewayMulticastDomain.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTransitGatewayMulticastDomain.go
deleted file mode 100644
index ec2ef2cc6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTransitGatewayMulticastDomain.go
+++ /dev/null
@@ -1,176 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disassociates the specified subnets from the transit gateway multicast domain.
-func (c *Client) DisassociateTransitGatewayMulticastDomain(ctx context.Context, params *DisassociateTransitGatewayMulticastDomainInput, optFns ...func(*Options)) (*DisassociateTransitGatewayMulticastDomainOutput, error) {
- if params == nil {
- params = &DisassociateTransitGatewayMulticastDomainInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisassociateTransitGatewayMulticastDomain", params, optFns, c.addOperationDisassociateTransitGatewayMulticastDomainMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisassociateTransitGatewayMulticastDomainOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisassociateTransitGatewayMulticastDomainInput struct {
-
- // The IDs of the subnets;
- //
- // This member is required.
- SubnetIds []string
-
- // The ID of the attachment.
- //
- // This member is required.
- TransitGatewayAttachmentId *string
-
- // The ID of the transit gateway multicast domain.
- //
- // This member is required.
- TransitGatewayMulticastDomainId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisassociateTransitGatewayMulticastDomainOutput struct {
-
- // Information about the association.
- Associations *types.TransitGatewayMulticastDomainAssociations
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisassociateTransitGatewayMulticastDomainMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateTransitGatewayMulticastDomain{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisassociateTransitGatewayMulticastDomain{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateTransitGatewayMulticastDomain"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisassociateTransitGatewayMulticastDomainValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateTransitGatewayMulticastDomain(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisassociateTransitGatewayMulticastDomain(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisassociateTransitGatewayMulticastDomain",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTransitGatewayPolicyTable.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTransitGatewayPolicyTable.go
deleted file mode 100644
index 9f6293829..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTransitGatewayPolicyTable.go
+++ /dev/null
@@ -1,171 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Removes the association between an an attachment and a policy table.
-func (c *Client) DisassociateTransitGatewayPolicyTable(ctx context.Context, params *DisassociateTransitGatewayPolicyTableInput, optFns ...func(*Options)) (*DisassociateTransitGatewayPolicyTableOutput, error) {
- if params == nil {
- params = &DisassociateTransitGatewayPolicyTableInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisassociateTransitGatewayPolicyTable", params, optFns, c.addOperationDisassociateTransitGatewayPolicyTableMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisassociateTransitGatewayPolicyTableOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisassociateTransitGatewayPolicyTableInput struct {
-
- // The ID of the transit gateway attachment to disassociate from the policy table.
- //
- // This member is required.
- TransitGatewayAttachmentId *string
-
- // The ID of the disassociated policy table.
- //
- // This member is required.
- TransitGatewayPolicyTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisassociateTransitGatewayPolicyTableOutput struct {
-
- // Returns details about the transit gateway policy table disassociation.
- Association *types.TransitGatewayPolicyTableAssociation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisassociateTransitGatewayPolicyTableMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateTransitGatewayPolicyTable{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisassociateTransitGatewayPolicyTable{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateTransitGatewayPolicyTable"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisassociateTransitGatewayPolicyTableValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateTransitGatewayPolicyTable(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisassociateTransitGatewayPolicyTable(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisassociateTransitGatewayPolicyTable",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTransitGatewayRouteTable.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTransitGatewayRouteTable.go
deleted file mode 100644
index 328e067d1..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTransitGatewayRouteTable.go
+++ /dev/null
@@ -1,171 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disassociates a resource attachment from a transit gateway route table.
-func (c *Client) DisassociateTransitGatewayRouteTable(ctx context.Context, params *DisassociateTransitGatewayRouteTableInput, optFns ...func(*Options)) (*DisassociateTransitGatewayRouteTableOutput, error) {
- if params == nil {
- params = &DisassociateTransitGatewayRouteTableInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisassociateTransitGatewayRouteTable", params, optFns, c.addOperationDisassociateTransitGatewayRouteTableMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisassociateTransitGatewayRouteTableOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisassociateTransitGatewayRouteTableInput struct {
-
- // The ID of the attachment.
- //
- // This member is required.
- TransitGatewayAttachmentId *string
-
- // The ID of the transit gateway route table.
- //
- // This member is required.
- TransitGatewayRouteTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisassociateTransitGatewayRouteTableOutput struct {
-
- // Information about the association.
- Association *types.TransitGatewayAssociation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisassociateTransitGatewayRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateTransitGatewayRouteTable{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisassociateTransitGatewayRouteTable{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateTransitGatewayRouteTable"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisassociateTransitGatewayRouteTableValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateTransitGatewayRouteTable(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisassociateTransitGatewayRouteTable(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisassociateTransitGatewayRouteTable",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTrunkInterface.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTrunkInterface.go
deleted file mode 100644
index 1ad27ed39..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTrunkInterface.go
+++ /dev/null
@@ -1,214 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Removes an association between a branch network interface with a trunk network
-// interface.
-func (c *Client) DisassociateTrunkInterface(ctx context.Context, params *DisassociateTrunkInterfaceInput, optFns ...func(*Options)) (*DisassociateTrunkInterfaceOutput, error) {
- if params == nil {
- params = &DisassociateTrunkInterfaceInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisassociateTrunkInterface", params, optFns, c.addOperationDisassociateTrunkInterfaceMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisassociateTrunkInterfaceOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisassociateTrunkInterfaceInput struct {
-
- // The ID of the association
- //
- // This member is required.
- AssociationId *string
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type DisassociateTrunkInterfaceOutput struct {
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisassociateTrunkInterfaceMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateTrunkInterface{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisassociateTrunkInterface{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateTrunkInterface"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opDisassociateTrunkInterfaceMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpDisassociateTrunkInterfaceValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateTrunkInterface(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpDisassociateTrunkInterface struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpDisassociateTrunkInterface) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpDisassociateTrunkInterface) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*DisassociateTrunkInterfaceInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *DisassociateTrunkInterfaceInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opDisassociateTrunkInterfaceMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpDisassociateTrunkInterface{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opDisassociateTrunkInterface(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisassociateTrunkInterface",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateVpcCidrBlock.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateVpcCidrBlock.go
deleted file mode 100644
index 7373a7a2b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateVpcCidrBlock.go
+++ /dev/null
@@ -1,172 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disassociates a CIDR block from a VPC. To disassociate the CIDR block, you must
-// specify its association ID. You can get the association ID by using DescribeVpcs. You must
-// detach or delete all gateways and resources that are associated with the CIDR
-// block before you can disassociate it.
-//
-// You cannot disassociate the CIDR block with which you originally created the
-// VPC (the primary CIDR block).
-func (c *Client) DisassociateVpcCidrBlock(ctx context.Context, params *DisassociateVpcCidrBlockInput, optFns ...func(*Options)) (*DisassociateVpcCidrBlockOutput, error) {
- if params == nil {
- params = &DisassociateVpcCidrBlockInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "DisassociateVpcCidrBlock", params, optFns, c.addOperationDisassociateVpcCidrBlockMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*DisassociateVpcCidrBlockOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type DisassociateVpcCidrBlockInput struct {
-
- // The association ID for the CIDR block.
- //
- // This member is required.
- AssociationId *string
-
- noSmithyDocumentSerde
-}
-
-type DisassociateVpcCidrBlockOutput struct {
-
- // Information about the IPv4 CIDR block association.
- CidrBlockAssociation *types.VpcCidrBlockAssociation
-
- // Information about the IPv6 CIDR block association.
- Ipv6CidrBlockAssociation *types.VpcIpv6CidrBlockAssociation
-
- // The ID of the VPC.
- VpcId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationDisassociateVpcCidrBlockMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateVpcCidrBlock{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisassociateVpcCidrBlock{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateVpcCidrBlock"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpDisassociateVpcCidrBlockValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateVpcCidrBlock(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opDisassociateVpcCidrBlock(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "DisassociateVpcCidrBlock",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableAddressTransfer.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableAddressTransfer.go
deleted file mode 100644
index 2639464f5..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableAddressTransfer.go
+++ /dev/null
@@ -1,174 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Enables Elastic IP address transfer. For more information, see [Transfer Elastic IP addresses] in the Amazon
-// VPC User Guide.
-//
-// [Transfer Elastic IP addresses]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-eips.html#transfer-EIPs-intro
-func (c *Client) EnableAddressTransfer(ctx context.Context, params *EnableAddressTransferInput, optFns ...func(*Options)) (*EnableAddressTransferOutput, error) {
- if params == nil {
- params = &EnableAddressTransferInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "EnableAddressTransfer", params, optFns, c.addOperationEnableAddressTransferMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*EnableAddressTransferOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type EnableAddressTransferInput struct {
-
- // The allocation ID of an Elastic IP address.
- //
- // This member is required.
- AllocationId *string
-
- // The ID of the account that you want to transfer the Elastic IP address to.
- //
- // This member is required.
- TransferAccountId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type EnableAddressTransferOutput struct {
-
- // An Elastic IP address transfer.
- AddressTransfer *types.AddressTransfer
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationEnableAddressTransferMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpEnableAddressTransfer{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpEnableAddressTransfer{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "EnableAddressTransfer"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpEnableAddressTransferValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableAddressTransfer(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opEnableAddressTransfer(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "EnableAddressTransfer",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableAllowedImagesSettings.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableAllowedImagesSettings.go
deleted file mode 100644
index ef61e08b6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableAllowedImagesSettings.go
+++ /dev/null
@@ -1,194 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Enables Allowed AMIs for your account in the specified Amazon Web Services
-// Region. Two values are accepted:
-//
-// - enabled : The image criteria in your Allowed AMIs settings are applied. As a
-// result, only AMIs matching these criteria are discoverable and can be used by
-// your account to launch instances.
-//
-// - audit-mode : The image criteria in your Allowed AMIs settings are not
-// applied. No restrictions are placed on AMI discoverability or usage. Users in
-// your account can launch instances using any public AMI or AMI shared with your
-// account.
-//
-// The purpose of audit-mode is to indicate which AMIs will be affected when
-//
-// Allowed AMIs is enabled . In audit-mode , each AMI displays either
-// "ImageAllowed": true or "ImageAllowed": false to indicate whether the AMI will
-// be discoverable and available to users in the account when Allowed AMIs is
-// enabled.
-//
-// The Allowed AMIs feature does not restrict the AMIs owned by your account.
-// Regardless of the criteria you set, the AMIs created by your account will always
-// be discoverable and usable by users in your account.
-//
-// For more information, see [Control the discovery and use of AMIs in Amazon EC2 with Allowed AMIs] in Amazon EC2 User Guide.
-//
-// [Control the discovery and use of AMIs in Amazon EC2 with Allowed AMIs]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-allowed-amis.html
-func (c *Client) EnableAllowedImagesSettings(ctx context.Context, params *EnableAllowedImagesSettingsInput, optFns ...func(*Options)) (*EnableAllowedImagesSettingsOutput, error) {
- if params == nil {
- params = &EnableAllowedImagesSettingsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "EnableAllowedImagesSettings", params, optFns, c.addOperationEnableAllowedImagesSettingsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*EnableAllowedImagesSettingsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type EnableAllowedImagesSettingsInput struct {
-
- // Specify enabled to apply the image criteria specified by the Allowed AMIs
- // settings. Specify audit-mode so that you can check which AMIs will be allowed
- // or not allowed by the image criteria.
- //
- // This member is required.
- AllowedImagesSettingsState types.AllowedImagesSettingsEnabledState
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type EnableAllowedImagesSettingsOutput struct {
-
- // Returns enabled or audit-mode if the request succeeds; otherwise, it returns an
- // error.
- AllowedImagesSettingsState types.AllowedImagesSettingsEnabledState
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationEnableAllowedImagesSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpEnableAllowedImagesSettings{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpEnableAllowedImagesSettings{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "EnableAllowedImagesSettings"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpEnableAllowedImagesSettingsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableAllowedImagesSettings(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opEnableAllowedImagesSettings(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "EnableAllowedImagesSettings",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableAwsNetworkPerformanceMetricSubscription.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableAwsNetworkPerformanceMetricSubscription.go
deleted file mode 100644
index 8e5ba6700..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableAwsNetworkPerformanceMetricSubscription.go
+++ /dev/null
@@ -1,174 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Enables Infrastructure Performance subscriptions.
-func (c *Client) EnableAwsNetworkPerformanceMetricSubscription(ctx context.Context, params *EnableAwsNetworkPerformanceMetricSubscriptionInput, optFns ...func(*Options)) (*EnableAwsNetworkPerformanceMetricSubscriptionOutput, error) {
- if params == nil {
- params = &EnableAwsNetworkPerformanceMetricSubscriptionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "EnableAwsNetworkPerformanceMetricSubscription", params, optFns, c.addOperationEnableAwsNetworkPerformanceMetricSubscriptionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*EnableAwsNetworkPerformanceMetricSubscriptionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type EnableAwsNetworkPerformanceMetricSubscriptionInput struct {
-
- // The target Region (like us-east-2 ) or Availability Zone ID (like use2-az2 )
- // that the metric subscription is enabled for. If you use Availability Zone IDs,
- // the Source and Destination Availability Zones must be in the same Region.
- Destination *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The metric used for the enabled subscription.
- Metric types.MetricType
-
- // The source Region (like us-east-1 ) or Availability Zone ID (like use1-az1 )
- // that the metric subscription is enabled for. If you use Availability Zone IDs,
- // the Source and Destination Availability Zones must be in the same Region.
- Source *string
-
- // The statistic used for the enabled subscription.
- Statistic types.StatisticType
-
- noSmithyDocumentSerde
-}
-
-type EnableAwsNetworkPerformanceMetricSubscriptionOutput struct {
-
- // Indicates whether the subscribe action was successful.
- Output *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationEnableAwsNetworkPerformanceMetricSubscriptionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpEnableAwsNetworkPerformanceMetricSubscription{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpEnableAwsNetworkPerformanceMetricSubscription{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "EnableAwsNetworkPerformanceMetricSubscription"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableAwsNetworkPerformanceMetricSubscription(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opEnableAwsNetworkPerformanceMetricSubscription(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "EnableAwsNetworkPerformanceMetricSubscription",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableEbsEncryptionByDefault.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableEbsEncryptionByDefault.go
deleted file mode 100644
index e9ada8f0d..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableEbsEncryptionByDefault.go
+++ /dev/null
@@ -1,173 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Enables EBS encryption by default for your account in the current Region.
-//
-// After you enable encryption by default, the EBS volumes that you create are
-// always encrypted, either using the default KMS key or the KMS key that you
-// specified when you created each volume. For more information, see [Amazon EBS encryption]in the Amazon
-// EBS User Guide.
-//
-// You can specify the default KMS key for encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId.
-//
-// Enabling encryption by default has no effect on the encryption status of your
-// existing volumes.
-//
-// After you enable encryption by default, you can no longer launch instances
-// using instance types that do not support encryption. For more information, see [Supported instance types].
-//
-// [Amazon EBS encryption]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html
-// [Supported instance types]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption-requirements.html#ebs-encryption_supported_instances
-func (c *Client) EnableEbsEncryptionByDefault(ctx context.Context, params *EnableEbsEncryptionByDefaultInput, optFns ...func(*Options)) (*EnableEbsEncryptionByDefaultOutput, error) {
- if params == nil {
- params = &EnableEbsEncryptionByDefaultInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "EnableEbsEncryptionByDefault", params, optFns, c.addOperationEnableEbsEncryptionByDefaultMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*EnableEbsEncryptionByDefaultOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type EnableEbsEncryptionByDefaultInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type EnableEbsEncryptionByDefaultOutput struct {
-
- // The updated status of encryption by default.
- EbsEncryptionByDefault *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationEnableEbsEncryptionByDefaultMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpEnableEbsEncryptionByDefault{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpEnableEbsEncryptionByDefault{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "EnableEbsEncryptionByDefault"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableEbsEncryptionByDefault(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opEnableEbsEncryptionByDefault(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "EnableEbsEncryptionByDefault",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableFastLaunch.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableFastLaunch.go
deleted file mode 100644
index c0d164578..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableFastLaunch.go
+++ /dev/null
@@ -1,224 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// When you enable Windows fast launch for a Windows AMI, images are
-// pre-provisioned, using snapshots to launch instances up to 65% faster. To create
-// the optimized Windows image, Amazon EC2 launches an instance and runs through
-// Sysprep steps, rebooting as required. Then it creates a set of reserved
-// snapshots that are used for subsequent launches. The reserved snapshots are
-// automatically replenished as they are used, depending on your settings for
-// launch frequency.
-//
-// You can only change these settings for Windows AMIs that you own or that have
-// been shared with you.
-func (c *Client) EnableFastLaunch(ctx context.Context, params *EnableFastLaunchInput, optFns ...func(*Options)) (*EnableFastLaunchOutput, error) {
- if params == nil {
- params = &EnableFastLaunchInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "EnableFastLaunch", params, optFns, c.addOperationEnableFastLaunchMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*EnableFastLaunchOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type EnableFastLaunchInput struct {
-
- // Specify the ID of the image for which to enable Windows fast launch.
- //
- // This member is required.
- ImageId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The launch template to use when launching Windows instances from
- // pre-provisioned snapshots. Launch template parameters can include either the
- // name or ID of the launch template, but not both.
- LaunchTemplate *types.FastLaunchLaunchTemplateSpecificationRequest
-
- // The maximum number of instances that Amazon EC2 can launch at the same time to
- // create pre-provisioned snapshots for Windows fast launch. Value must be 6 or
- // greater.
- MaxParallelLaunches *int32
-
- // The type of resource to use for pre-provisioning the AMI for Windows fast
- // launch. Supported values include: snapshot , which is the default value.
- ResourceType *string
-
- // Configuration settings for creating and managing the snapshots that are used
- // for pre-provisioning the AMI for Windows fast launch. The associated
- // ResourceType must be snapshot .
- SnapshotConfiguration *types.FastLaunchSnapshotConfigurationRequest
-
- noSmithyDocumentSerde
-}
-
-type EnableFastLaunchOutput struct {
-
- // The image ID that identifies the AMI for which Windows fast launch was enabled.
- ImageId *string
-
- // The launch template that is used when launching Windows instances from
- // pre-provisioned snapshots.
- LaunchTemplate *types.FastLaunchLaunchTemplateSpecificationResponse
-
- // The maximum number of instances that Amazon EC2 can launch at the same time to
- // create pre-provisioned snapshots for Windows fast launch.
- MaxParallelLaunches *int32
-
- // The owner ID for the AMI for which Windows fast launch was enabled.
- OwnerId *string
-
- // The type of resource that was defined for pre-provisioning the AMI for Windows
- // fast launch.
- ResourceType types.FastLaunchResourceType
-
- // Settings to create and manage the pre-provisioned snapshots that Amazon EC2
- // uses for faster launches from the Windows AMI. This property is returned when
- // the associated resourceType is snapshot .
- SnapshotConfiguration *types.FastLaunchSnapshotConfigurationResponse
-
- // The current state of Windows fast launch for the specified AMI.
- State types.FastLaunchStateCode
-
- // The reason that the state changed for Windows fast launch for the AMI.
- StateTransitionReason *string
-
- // The time that the state changed for Windows fast launch for the AMI.
- StateTransitionTime *time.Time
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationEnableFastLaunchMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpEnableFastLaunch{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpEnableFastLaunch{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "EnableFastLaunch"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpEnableFastLaunchValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableFastLaunch(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opEnableFastLaunch(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "EnableFastLaunch",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableFastSnapshotRestores.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableFastSnapshotRestores.go
deleted file mode 100644
index 57c77bbe1..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableFastSnapshotRestores.go
+++ /dev/null
@@ -1,187 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Enables fast snapshot restores for the specified snapshots in the specified
-// Availability Zones.
-//
-// You get the full benefit of fast snapshot restores after they enter the enabled
-// state. To get the current state of fast snapshot restores, use DescribeFastSnapshotRestores. To disable
-// fast snapshot restores, use DisableFastSnapshotRestores.
-//
-// For more information, see [Amazon EBS fast snapshot restore] in the Amazon EBS User Guide.
-//
-// [Amazon EBS fast snapshot restore]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-fast-snapshot-restore.html
-func (c *Client) EnableFastSnapshotRestores(ctx context.Context, params *EnableFastSnapshotRestoresInput, optFns ...func(*Options)) (*EnableFastSnapshotRestoresOutput, error) {
- if params == nil {
- params = &EnableFastSnapshotRestoresInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "EnableFastSnapshotRestores", params, optFns, c.addOperationEnableFastSnapshotRestoresMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*EnableFastSnapshotRestoresOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type EnableFastSnapshotRestoresInput struct {
-
- // One or more Availability Zones. For example, us-east-2a .
- //
- // This member is required.
- AvailabilityZones []string
-
- // The IDs of one or more snapshots. For example, snap-1234567890abcdef0 . You can
- // specify a snapshot that was shared with you from another Amazon Web Services
- // account.
- //
- // This member is required.
- SourceSnapshotIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type EnableFastSnapshotRestoresOutput struct {
-
- // Information about the snapshots for which fast snapshot restores were
- // successfully enabled.
- Successful []types.EnableFastSnapshotRestoreSuccessItem
-
- // Information about the snapshots for which fast snapshot restores could not be
- // enabled.
- Unsuccessful []types.EnableFastSnapshotRestoreErrorItem
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationEnableFastSnapshotRestoresMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpEnableFastSnapshotRestores{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpEnableFastSnapshotRestores{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "EnableFastSnapshotRestores"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpEnableFastSnapshotRestoresValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableFastSnapshotRestores(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opEnableFastSnapshotRestores(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "EnableFastSnapshotRestores",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableImage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableImage.go
deleted file mode 100644
index 94afc1ea4..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableImage.go
+++ /dev/null
@@ -1,175 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Re-enables a disabled AMI. The re-enabled AMI is marked as available and can be
-// used for instance launches, appears in describe operations, and can be shared.
-// Amazon Web Services accounts, organizations, and Organizational Units that lost
-// access to the AMI when it was disabled do not regain access automatically. Once
-// the AMI is available, it can be shared with them again.
-//
-// Only the AMI owner can re-enable a disabled AMI.
-//
-// For more information, see [Disable an Amazon EC2 AMI] in the Amazon EC2 User Guide.
-//
-// [Disable an Amazon EC2 AMI]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/disable-an-ami.html
-func (c *Client) EnableImage(ctx context.Context, params *EnableImageInput, optFns ...func(*Options)) (*EnableImageOutput, error) {
- if params == nil {
- params = &EnableImageInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "EnableImage", params, optFns, c.addOperationEnableImageMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*EnableImageOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type EnableImageInput struct {
-
- // The ID of the AMI.
- //
- // This member is required.
- ImageId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type EnableImageOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationEnableImageMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpEnableImage{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpEnableImage{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "EnableImage"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpEnableImageValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableImage(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opEnableImage(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "EnableImage",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableImageBlockPublicAccess.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableImageBlockPublicAccess.go
deleted file mode 100644
index 920979dd8..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableImageBlockPublicAccess.go
+++ /dev/null
@@ -1,180 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Enables block public access for AMIs at the account level in the specified
-// Amazon Web Services Region. This prevents the public sharing of your AMIs.
-// However, if you already have public AMIs, they will remain publicly available.
-//
-// The API can take up to 10 minutes to configure this setting. During this time,
-// if you run [GetImageBlockPublicAccessState], the response will be unblocked . When the API has completed the
-// configuration, the response will be block-new-sharing .
-//
-// For more information, see [Block public access to your AMIs] in the Amazon EC2 User Guide.
-//
-// [Block public access to your AMIs]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-public-access-to-amis.html
-// [GetImageBlockPublicAccessState]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetImageBlockPublicAccessState.html
-func (c *Client) EnableImageBlockPublicAccess(ctx context.Context, params *EnableImageBlockPublicAccessInput, optFns ...func(*Options)) (*EnableImageBlockPublicAccessOutput, error) {
- if params == nil {
- params = &EnableImageBlockPublicAccessInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "EnableImageBlockPublicAccess", params, optFns, c.addOperationEnableImageBlockPublicAccessMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*EnableImageBlockPublicAccessOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type EnableImageBlockPublicAccessInput struct {
-
- // Specify block-new-sharing to enable block public access for AMIs at the account
- // level in the specified Region. This will block any attempt to publicly share
- // your AMIs in the specified Region.
- //
- // This member is required.
- ImageBlockPublicAccessState types.ImageBlockPublicAccessEnabledState
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type EnableImageBlockPublicAccessOutput struct {
-
- // Returns block-new-sharing if the request succeeds; otherwise, it returns an
- // error.
- ImageBlockPublicAccessState types.ImageBlockPublicAccessEnabledState
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationEnableImageBlockPublicAccessMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpEnableImageBlockPublicAccess{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpEnableImageBlockPublicAccess{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "EnableImageBlockPublicAccess"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpEnableImageBlockPublicAccessValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableImageBlockPublicAccess(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opEnableImageBlockPublicAccess(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "EnableImageBlockPublicAccess",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableImageDeprecation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableImageDeprecation.go
deleted file mode 100644
index 33a3d746c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableImageDeprecation.go
+++ /dev/null
@@ -1,181 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Enables deprecation of the specified AMI at the specified date and time.
-//
-// For more information, see [Deprecate an AMI] in the Amazon EC2 User Guide.
-//
-// [Deprecate an AMI]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deprecate.html
-func (c *Client) EnableImageDeprecation(ctx context.Context, params *EnableImageDeprecationInput, optFns ...func(*Options)) (*EnableImageDeprecationOutput, error) {
- if params == nil {
- params = &EnableImageDeprecationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "EnableImageDeprecation", params, optFns, c.addOperationEnableImageDeprecationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*EnableImageDeprecationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type EnableImageDeprecationInput struct {
-
- // The date and time to deprecate the AMI, in UTC, in the following format:
- // YYYY-MM-DDTHH:MM:SSZ. If you specify a value for seconds, Amazon EC2 rounds the
- // seconds to the nearest minute.
- //
- // You can’t specify a date in the past. The upper limit for DeprecateAt is 10
- // years from now, except for public AMIs, where the upper limit is 2 years from
- // the creation date.
- //
- // This member is required.
- DeprecateAt *time.Time
-
- // The ID of the AMI.
- //
- // This member is required.
- ImageId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type EnableImageDeprecationOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationEnableImageDeprecationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpEnableImageDeprecation{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpEnableImageDeprecation{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "EnableImageDeprecation"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpEnableImageDeprecationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableImageDeprecation(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opEnableImageDeprecation(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "EnableImageDeprecation",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableImageDeregistrationProtection.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableImageDeregistrationProtection.go
deleted file mode 100644
index e4bc17644..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableImageDeregistrationProtection.go
+++ /dev/null
@@ -1,177 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Enables deregistration protection for an AMI. When deregistration protection is
-// enabled, the AMI can't be deregistered.
-//
-// To allow the AMI to be deregistered, you must first disable deregistration
-// protection using DisableImageDeregistrationProtection.
-//
-// For more information, see [Protect an Amazon EC2 AMI from deregistration] in the Amazon EC2 User Guide.
-//
-// [Protect an Amazon EC2 AMI from deregistration]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deregistration-protection.html
-func (c *Client) EnableImageDeregistrationProtection(ctx context.Context, params *EnableImageDeregistrationProtectionInput, optFns ...func(*Options)) (*EnableImageDeregistrationProtectionOutput, error) {
- if params == nil {
- params = &EnableImageDeregistrationProtectionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "EnableImageDeregistrationProtection", params, optFns, c.addOperationEnableImageDeregistrationProtectionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*EnableImageDeregistrationProtectionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type EnableImageDeregistrationProtectionInput struct {
-
- // The ID of the AMI.
- //
- // This member is required.
- ImageId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // If true , enforces deregistration protection for 24 hours after deregistration
- // protection is disabled.
- WithCooldown *bool
-
- noSmithyDocumentSerde
-}
-
-type EnableImageDeregistrationProtectionOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationEnableImageDeregistrationProtectionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpEnableImageDeregistrationProtection{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpEnableImageDeregistrationProtection{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "EnableImageDeregistrationProtection"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpEnableImageDeregistrationProtectionValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableImageDeregistrationProtection(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opEnableImageDeregistrationProtection(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "EnableImageDeregistrationProtection",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableIpamOrganizationAdminAccount.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableIpamOrganizationAdminAccount.go
deleted file mode 100644
index 1d2cd5a2b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableIpamOrganizationAdminAccount.go
+++ /dev/null
@@ -1,169 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Enable an Organizations member account as the IPAM admin account. You cannot
-// select the Organizations management account as the IPAM admin account. For more
-// information, see [Enable integration with Organizations]in the Amazon VPC IPAM User Guide.
-//
-// [Enable integration with Organizations]: https://docs.aws.amazon.com/vpc/latest/ipam/enable-integ-ipam.html
-func (c *Client) EnableIpamOrganizationAdminAccount(ctx context.Context, params *EnableIpamOrganizationAdminAccountInput, optFns ...func(*Options)) (*EnableIpamOrganizationAdminAccountOutput, error) {
- if params == nil {
- params = &EnableIpamOrganizationAdminAccountInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "EnableIpamOrganizationAdminAccount", params, optFns, c.addOperationEnableIpamOrganizationAdminAccountMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*EnableIpamOrganizationAdminAccountOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type EnableIpamOrganizationAdminAccountInput struct {
-
- // The Organizations member account ID that you want to enable as the IPAM account.
- //
- // This member is required.
- DelegatedAdminAccountId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type EnableIpamOrganizationAdminAccountOutput struct {
-
- // The result of enabling the IPAM account.
- Success *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationEnableIpamOrganizationAdminAccountMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpEnableIpamOrganizationAdminAccount{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpEnableIpamOrganizationAdminAccount{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "EnableIpamOrganizationAdminAccount"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpEnableIpamOrganizationAdminAccountValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableIpamOrganizationAdminAccount(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opEnableIpamOrganizationAdminAccount(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "EnableIpamOrganizationAdminAccount",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableReachabilityAnalyzerOrganizationSharing.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableReachabilityAnalyzerOrganizationSharing.go
deleted file mode 100644
index a4ae0990f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableReachabilityAnalyzerOrganizationSharing.go
+++ /dev/null
@@ -1,163 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Establishes a trust relationship between Reachability Analyzer and
-// Organizations. This operation must be performed by the management account for
-// the organization.
-//
-// After you establish a trust relationship, a user in the management account or a
-// delegated administrator account can run a cross-account analysis using resources
-// from the member accounts.
-func (c *Client) EnableReachabilityAnalyzerOrganizationSharing(ctx context.Context, params *EnableReachabilityAnalyzerOrganizationSharingInput, optFns ...func(*Options)) (*EnableReachabilityAnalyzerOrganizationSharingOutput, error) {
- if params == nil {
- params = &EnableReachabilityAnalyzerOrganizationSharingInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "EnableReachabilityAnalyzerOrganizationSharing", params, optFns, c.addOperationEnableReachabilityAnalyzerOrganizationSharingMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*EnableReachabilityAnalyzerOrganizationSharingOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type EnableReachabilityAnalyzerOrganizationSharingInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type EnableReachabilityAnalyzerOrganizationSharingOutput struct {
-
- // Returns true if the request succeeds; otherwise, returns an error.
- ReturnValue *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationEnableReachabilityAnalyzerOrganizationSharingMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpEnableReachabilityAnalyzerOrganizationSharing{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpEnableReachabilityAnalyzerOrganizationSharing{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "EnableReachabilityAnalyzerOrganizationSharing"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableReachabilityAnalyzerOrganizationSharing(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opEnableReachabilityAnalyzerOrganizationSharing(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "EnableReachabilityAnalyzerOrganizationSharing",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableRouteServerPropagation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableRouteServerPropagation.go
deleted file mode 100644
index 88cb0e989..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableRouteServerPropagation.go
+++ /dev/null
@@ -1,179 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Defines which route tables the route server can update with routes.
-//
-// When enabled, route server propagation installs the routes in the FIB on the
-// route table you've specified. Route server supports IPv4 and IPv6 route
-// propagation.
-//
-// For more information see [Dynamic routing in your VPC with VPC Route Server] in the Amazon VPC User Guide.
-//
-// [Dynamic routing in your VPC with VPC Route Server]: https://docs.aws.amazon.com/vpc/latest/userguide/dynamic-routing-route-server.html
-func (c *Client) EnableRouteServerPropagation(ctx context.Context, params *EnableRouteServerPropagationInput, optFns ...func(*Options)) (*EnableRouteServerPropagationOutput, error) {
- if params == nil {
- params = &EnableRouteServerPropagationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "EnableRouteServerPropagation", params, optFns, c.addOperationEnableRouteServerPropagationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*EnableRouteServerPropagationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type EnableRouteServerPropagationInput struct {
-
- // The ID of the route server for which to enable propagation.
- //
- // This member is required.
- RouteServerId *string
-
- // The ID of the route table to which route server will propagate routes.
- //
- // This member is required.
- RouteTableId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type EnableRouteServerPropagationOutput struct {
-
- // Information about the enabled route server propagation.
- RouteServerPropagation *types.RouteServerPropagation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationEnableRouteServerPropagationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpEnableRouteServerPropagation{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpEnableRouteServerPropagation{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "EnableRouteServerPropagation"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpEnableRouteServerPropagationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableRouteServerPropagation(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opEnableRouteServerPropagation(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "EnableRouteServerPropagation",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableSerialConsoleAccess.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableSerialConsoleAccess.go
deleted file mode 100644
index 942421c62..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableSerialConsoleAccess.go
+++ /dev/null
@@ -1,163 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Enables access to the EC2 serial console of all instances for your account. By
-// default, access to the EC2 serial console is disabled for your account. For more
-// information, see [Manage account access to the EC2 serial console]in the Amazon EC2 User Guide.
-//
-// [Manage account access to the EC2 serial console]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configure-access-to-serial-console.html#serial-console-account-access
-func (c *Client) EnableSerialConsoleAccess(ctx context.Context, params *EnableSerialConsoleAccessInput, optFns ...func(*Options)) (*EnableSerialConsoleAccessOutput, error) {
- if params == nil {
- params = &EnableSerialConsoleAccessInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "EnableSerialConsoleAccess", params, optFns, c.addOperationEnableSerialConsoleAccessMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*EnableSerialConsoleAccessOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type EnableSerialConsoleAccessInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type EnableSerialConsoleAccessOutput struct {
-
- // If true , access to the EC2 serial console of all instances is enabled for your
- // account. If false , access to the EC2 serial console of all instances is
- // disabled for your account.
- SerialConsoleAccessEnabled *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationEnableSerialConsoleAccessMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpEnableSerialConsoleAccess{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpEnableSerialConsoleAccess{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "EnableSerialConsoleAccess"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableSerialConsoleAccess(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opEnableSerialConsoleAccess(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "EnableSerialConsoleAccess",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableSnapshotBlockPublicAccess.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableSnapshotBlockPublicAccess.go
deleted file mode 100644
index 2333c0264..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableSnapshotBlockPublicAccess.go
+++ /dev/null
@@ -1,198 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Enables or modifies the block public access for snapshots setting at the
-// account level for the specified Amazon Web Services Region. After you enable
-// block public access for snapshots in a Region, users can no longer request
-// public sharing for snapshots in that Region. Snapshots that are already publicly
-// shared are either treated as private or they remain publicly shared, depending
-// on the State that you specify.
-//
-// Enabling block public access for snapshots in block all sharing mode does not
-// change the permissions for snapshots that are already publicly shared. Instead,
-// it prevents these snapshots from be publicly visible and publicly accessible.
-// Therefore, the attributes for these snapshots still indicate that they are
-// publicly shared, even though they are not publicly available.
-//
-// If you later disable block public access or change the mode to block new
-// sharing, these snapshots will become publicly available again.
-//
-// For more information, see [Block public access for snapshots] in the Amazon EBS User Guide.
-//
-// [Block public access for snapshots]: https://docs.aws.amazon.com/ebs/latest/userguide/block-public-access-snapshots.html
-func (c *Client) EnableSnapshotBlockPublicAccess(ctx context.Context, params *EnableSnapshotBlockPublicAccessInput, optFns ...func(*Options)) (*EnableSnapshotBlockPublicAccessOutput, error) {
- if params == nil {
- params = &EnableSnapshotBlockPublicAccessInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "EnableSnapshotBlockPublicAccess", params, optFns, c.addOperationEnableSnapshotBlockPublicAccessMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*EnableSnapshotBlockPublicAccessOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type EnableSnapshotBlockPublicAccessInput struct {
-
- // The mode in which to enable block public access for snapshots for the Region.
- // Specify one of the following values:
- //
- // - block-all-sharing - Prevents all public sharing of snapshots in the Region.
- // Users in the account will no longer be able to request new public sharing.
- // Additionally, snapshots that are already publicly shared are treated as private
- // and they are no longer publicly available.
- //
- // - block-new-sharing - Prevents only new public sharing of snapshots in the
- // Region. Users in the account will no longer be able to request new public
- // sharing. However, snapshots that are already publicly shared, remain publicly
- // available.
- //
- // unblocked is not a valid value for EnableSnapshotBlockPublicAccess.
- //
- // This member is required.
- State types.SnapshotBlockPublicAccessState
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type EnableSnapshotBlockPublicAccessOutput struct {
-
- // The state of block public access for snapshots for the account and Region.
- // Returns either block-all-sharing or block-new-sharing if the request succeeds.
- State types.SnapshotBlockPublicAccessState
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationEnableSnapshotBlockPublicAccessMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpEnableSnapshotBlockPublicAccess{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpEnableSnapshotBlockPublicAccess{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "EnableSnapshotBlockPublicAccess"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpEnableSnapshotBlockPublicAccessValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableSnapshotBlockPublicAccess(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opEnableSnapshotBlockPublicAccess(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "EnableSnapshotBlockPublicAccess",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableTransitGatewayRouteTablePropagation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableTransitGatewayRouteTablePropagation.go
deleted file mode 100644
index aa3159320..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableTransitGatewayRouteTablePropagation.go
+++ /dev/null
@@ -1,173 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Enables the specified attachment to propagate routes to the specified
-// propagation route table.
-func (c *Client) EnableTransitGatewayRouteTablePropagation(ctx context.Context, params *EnableTransitGatewayRouteTablePropagationInput, optFns ...func(*Options)) (*EnableTransitGatewayRouteTablePropagationOutput, error) {
- if params == nil {
- params = &EnableTransitGatewayRouteTablePropagationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "EnableTransitGatewayRouteTablePropagation", params, optFns, c.addOperationEnableTransitGatewayRouteTablePropagationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*EnableTransitGatewayRouteTablePropagationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type EnableTransitGatewayRouteTablePropagationInput struct {
-
- // The ID of the propagation route table.
- //
- // This member is required.
- TransitGatewayRouteTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the attachment.
- TransitGatewayAttachmentId *string
-
- // The ID of the transit gateway route table announcement.
- TransitGatewayRouteTableAnnouncementId *string
-
- noSmithyDocumentSerde
-}
-
-type EnableTransitGatewayRouteTablePropagationOutput struct {
-
- // Information about route propagation.
- Propagation *types.TransitGatewayPropagation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationEnableTransitGatewayRouteTablePropagationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpEnableTransitGatewayRouteTablePropagation{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpEnableTransitGatewayRouteTablePropagation{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "EnableTransitGatewayRouteTablePropagation"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpEnableTransitGatewayRouteTablePropagationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableTransitGatewayRouteTablePropagation(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opEnableTransitGatewayRouteTablePropagation(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "EnableTransitGatewayRouteTablePropagation",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVgwRoutePropagation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVgwRoutePropagation.go
deleted file mode 100644
index 05d0131a3..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVgwRoutePropagation.go
+++ /dev/null
@@ -1,171 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Enables a virtual private gateway (VGW) to propagate routes to the specified
-// route table of a VPC.
-func (c *Client) EnableVgwRoutePropagation(ctx context.Context, params *EnableVgwRoutePropagationInput, optFns ...func(*Options)) (*EnableVgwRoutePropagationOutput, error) {
- if params == nil {
- params = &EnableVgwRoutePropagationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "EnableVgwRoutePropagation", params, optFns, c.addOperationEnableVgwRoutePropagationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*EnableVgwRoutePropagationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for EnableVgwRoutePropagation.
-type EnableVgwRoutePropagationInput struct {
-
- // The ID of the virtual private gateway that is attached to a VPC. The virtual
- // private gateway must be attached to the same VPC that the routing tables are
- // associated with.
- //
- // This member is required.
- GatewayId *string
-
- // The ID of the route table. The routing table must be associated with the same
- // VPC that the virtual private gateway is attached to.
- //
- // This member is required.
- RouteTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type EnableVgwRoutePropagationOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationEnableVgwRoutePropagationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpEnableVgwRoutePropagation{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpEnableVgwRoutePropagation{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "EnableVgwRoutePropagation"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpEnableVgwRoutePropagationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableVgwRoutePropagation(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opEnableVgwRoutePropagation(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "EnableVgwRoutePropagation",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVolumeIO.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVolumeIO.go
deleted file mode 100644
index 10c65f795..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVolumeIO.go
+++ /dev/null
@@ -1,162 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Enables I/O operations for a volume that had I/O operations disabled because
-// the data on the volume was potentially inconsistent.
-func (c *Client) EnableVolumeIO(ctx context.Context, params *EnableVolumeIOInput, optFns ...func(*Options)) (*EnableVolumeIOOutput, error) {
- if params == nil {
- params = &EnableVolumeIOInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "EnableVolumeIO", params, optFns, c.addOperationEnableVolumeIOMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*EnableVolumeIOOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type EnableVolumeIOInput struct {
-
- // The ID of the volume.
- //
- // This member is required.
- VolumeId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type EnableVolumeIOOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationEnableVolumeIOMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpEnableVolumeIO{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpEnableVolumeIO{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "EnableVolumeIO"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpEnableVolumeIOValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableVolumeIO(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opEnableVolumeIO(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "EnableVolumeIO",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVpcClassicLink.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVpcClassicLink.go
deleted file mode 100644
index 1bc2c50b4..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVpcClassicLink.go
+++ /dev/null
@@ -1,172 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// This action is deprecated.
-//
-// Enables a VPC for ClassicLink. You can then link EC2-Classic instances to your
-// ClassicLink-enabled VPC to allow communication over private IP addresses. You
-// cannot enable your VPC for ClassicLink if any of your VPC route tables have
-// existing routes for address ranges within the 10.0.0.0/8 IP address range,
-// excluding local routes for VPCs in the 10.0.0.0/16 and 10.1.0.0/16 IP address
-// ranges.
-func (c *Client) EnableVpcClassicLink(ctx context.Context, params *EnableVpcClassicLinkInput, optFns ...func(*Options)) (*EnableVpcClassicLinkOutput, error) {
- if params == nil {
- params = &EnableVpcClassicLinkInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "EnableVpcClassicLink", params, optFns, c.addOperationEnableVpcClassicLinkMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*EnableVpcClassicLinkOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type EnableVpcClassicLinkInput struct {
-
- // The ID of the VPC.
- //
- // This member is required.
- VpcId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type EnableVpcClassicLinkOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationEnableVpcClassicLinkMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpEnableVpcClassicLink{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpEnableVpcClassicLink{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "EnableVpcClassicLink"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpEnableVpcClassicLinkValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableVpcClassicLink(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opEnableVpcClassicLink(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "EnableVpcClassicLink",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVpcClassicLinkDnsSupport.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVpcClassicLinkDnsSupport.go
deleted file mode 100644
index 9f7f0856b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVpcClassicLinkDnsSupport.go
+++ /dev/null
@@ -1,162 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// This action is deprecated.
-//
-// Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled,
-// the DNS hostname of a linked EC2-Classic instance resolves to its private IP
-// address when addressed from an instance in the VPC to which it's linked.
-// Similarly, the DNS hostname of an instance in a VPC resolves to its private IP
-// address when addressed from a linked EC2-Classic instance.
-//
-// You must specify a VPC ID in the request.
-func (c *Client) EnableVpcClassicLinkDnsSupport(ctx context.Context, params *EnableVpcClassicLinkDnsSupportInput, optFns ...func(*Options)) (*EnableVpcClassicLinkDnsSupportOutput, error) {
- if params == nil {
- params = &EnableVpcClassicLinkDnsSupportInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "EnableVpcClassicLinkDnsSupport", params, optFns, c.addOperationEnableVpcClassicLinkDnsSupportMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*EnableVpcClassicLinkDnsSupportOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type EnableVpcClassicLinkDnsSupportInput struct {
-
- // The ID of the VPC.
- VpcId *string
-
- noSmithyDocumentSerde
-}
-
-type EnableVpcClassicLinkDnsSupportOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationEnableVpcClassicLinkDnsSupportMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpEnableVpcClassicLinkDnsSupport{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpEnableVpcClassicLinkDnsSupport{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "EnableVpcClassicLinkDnsSupport"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableVpcClassicLinkDnsSupport(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opEnableVpcClassicLinkDnsSupport(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "EnableVpcClassicLinkDnsSupport",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportClientVpnClientCertificateRevocationList.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportClientVpnClientCertificateRevocationList.go
deleted file mode 100644
index c1ee512d6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportClientVpnClientCertificateRevocationList.go
+++ /dev/null
@@ -1,170 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Downloads the client certificate revocation list for the specified Client VPN
-// endpoint.
-func (c *Client) ExportClientVpnClientCertificateRevocationList(ctx context.Context, params *ExportClientVpnClientCertificateRevocationListInput, optFns ...func(*Options)) (*ExportClientVpnClientCertificateRevocationListOutput, error) {
- if params == nil {
- params = &ExportClientVpnClientCertificateRevocationListInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ExportClientVpnClientCertificateRevocationList", params, optFns, c.addOperationExportClientVpnClientCertificateRevocationListMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ExportClientVpnClientCertificateRevocationListOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ExportClientVpnClientCertificateRevocationListInput struct {
-
- // The ID of the Client VPN endpoint.
- //
- // This member is required.
- ClientVpnEndpointId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ExportClientVpnClientCertificateRevocationListOutput struct {
-
- // Information about the client certificate revocation list.
- CertificateRevocationList *string
-
- // The current state of the client certificate revocation list.
- Status *types.ClientCertificateRevocationListStatus
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationExportClientVpnClientCertificateRevocationListMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpExportClientVpnClientCertificateRevocationList{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpExportClientVpnClientCertificateRevocationList{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ExportClientVpnClientCertificateRevocationList"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpExportClientVpnClientCertificateRevocationListValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opExportClientVpnClientCertificateRevocationList(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opExportClientVpnClientCertificateRevocationList(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ExportClientVpnClientCertificateRevocationList",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportClientVpnClientConfiguration.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportClientVpnClientConfiguration.go
deleted file mode 100644
index 2a4b2c6c6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportClientVpnClientConfiguration.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Downloads the contents of the Client VPN endpoint configuration file for the
-// specified Client VPN endpoint. The Client VPN endpoint configuration file
-// includes the Client VPN endpoint and certificate information clients need to
-// establish a connection with the Client VPN endpoint.
-func (c *Client) ExportClientVpnClientConfiguration(ctx context.Context, params *ExportClientVpnClientConfigurationInput, optFns ...func(*Options)) (*ExportClientVpnClientConfigurationOutput, error) {
- if params == nil {
- params = &ExportClientVpnClientConfigurationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ExportClientVpnClientConfiguration", params, optFns, c.addOperationExportClientVpnClientConfigurationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ExportClientVpnClientConfigurationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ExportClientVpnClientConfigurationInput struct {
-
- // The ID of the Client VPN endpoint.
- //
- // This member is required.
- ClientVpnEndpointId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ExportClientVpnClientConfigurationOutput struct {
-
- // The contents of the Client VPN endpoint configuration file.
- ClientConfiguration *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationExportClientVpnClientConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpExportClientVpnClientConfiguration{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpExportClientVpnClientConfiguration{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ExportClientVpnClientConfiguration"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpExportClientVpnClientConfigurationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opExportClientVpnClientConfiguration(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opExportClientVpnClientConfiguration(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ExportClientVpnClientConfiguration",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportImage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportImage.go
deleted file mode 100644
index ffd9f2e32..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportImage.go
+++ /dev/null
@@ -1,259 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Exports an Amazon Machine Image (AMI) to a VM file. For more information, see [Exporting a VM directly from an Amazon Machine Image (AMI)]
-// in the VM Import/Export User Guide.
-//
-// [Exporting a VM directly from an Amazon Machine Image (AMI)]: https://docs.aws.amazon.com/vm-import/latest/userguide/vmexport_image.html
-func (c *Client) ExportImage(ctx context.Context, params *ExportImageInput, optFns ...func(*Options)) (*ExportImageOutput, error) {
- if params == nil {
- params = &ExportImageInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ExportImage", params, optFns, c.addOperationExportImageMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ExportImageOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ExportImageInput struct {
-
- // The disk image format.
- //
- // This member is required.
- DiskImageFormat types.DiskImageFormat
-
- // The ID of the image.
- //
- // This member is required.
- ImageId *string
-
- // The Amazon S3 bucket for the destination image. The destination bucket must
- // exist.
- //
- // This member is required.
- S3ExportLocation *types.ExportTaskS3LocationRequest
-
- // Token to enable idempotency for export image requests.
- ClientToken *string
-
- // A description of the image being exported. The maximum length is 255 characters.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The name of the role that grants VM Import/Export permission to export images
- // to your Amazon S3 bucket. If this parameter is not specified, the default role
- // is named 'vmimport'.
- RoleName *string
-
- // The tags to apply to the export image task during creation.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type ExportImageOutput struct {
-
- // A description of the image being exported.
- Description *string
-
- // The disk image format for the exported image.
- DiskImageFormat types.DiskImageFormat
-
- // The ID of the export image task.
- ExportImageTaskId *string
-
- // The ID of the image.
- ImageId *string
-
- // The percent complete of the export image task.
- Progress *string
-
- // The name of the role that grants VM Import/Export permission to export images
- // to your Amazon S3 bucket.
- RoleName *string
-
- // Information about the destination Amazon S3 bucket.
- S3ExportLocation *types.ExportTaskS3Location
-
- // The status of the export image task. The possible values are active , completed
- // , deleting , and deleted .
- Status *string
-
- // The status message for the export image task.
- StatusMessage *string
-
- // Any tags assigned to the export image task.
- Tags []types.Tag
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationExportImageMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpExportImage{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpExportImage{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ExportImage"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opExportImageMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpExportImageValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opExportImage(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpExportImage struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpExportImage) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpExportImage) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*ExportImageInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *ExportImageInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opExportImageMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpExportImage{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opExportImage(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ExportImage",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportTransitGatewayRoutes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportTransitGatewayRoutes.go
deleted file mode 100644
index 4761de005..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportTransitGatewayRoutes.go
+++ /dev/null
@@ -1,206 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Exports routes from the specified transit gateway route table to the specified
-// S3 bucket. By default, all routes are exported. Alternatively, you can filter by
-// CIDR range.
-//
-// The routes are saved to the specified bucket in a JSON file. For more
-// information, see [Export route tables to Amazon S3]in the Amazon Web Services Transit Gateways Guide.
-//
-// [Export route tables to Amazon S3]: https://docs.aws.amazon.com/vpc/latest/tgw/tgw-route-tables.html#tgw-export-route-tables
-func (c *Client) ExportTransitGatewayRoutes(ctx context.Context, params *ExportTransitGatewayRoutesInput, optFns ...func(*Options)) (*ExportTransitGatewayRoutesOutput, error) {
- if params == nil {
- params = &ExportTransitGatewayRoutesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ExportTransitGatewayRoutes", params, optFns, c.addOperationExportTransitGatewayRoutesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ExportTransitGatewayRoutesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ExportTransitGatewayRoutesInput struct {
-
- // The name of the S3 bucket.
- //
- // This member is required.
- S3Bucket *string
-
- // The ID of the route table.
- //
- // This member is required.
- TransitGatewayRouteTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. The possible values are:
- //
- // - attachment.transit-gateway-attachment-id - The id of the transit gateway
- // attachment.
- //
- // - attachment.resource-id - The resource id of the transit gateway attachment.
- //
- // - route-search.exact-match - The exact match of the specified filter.
- //
- // - route-search.longest-prefix-match - The longest prefix that matches the
- // route.
- //
- // - route-search.subnet-of-match - The routes with a subnet that match the
- // specified CIDR filter.
- //
- // - route-search.supernet-of-match - The routes with a CIDR that encompass the
- // CIDR filter. For example, if you have 10.0.1.0/29 and 10.0.1.0/31 routes in your
- // route table and you specify supernet-of-match as 10.0.1.0/30, then the result
- // returns 10.0.1.0/29.
- //
- // - state - The state of the route ( active | blackhole ).
- //
- // - transit-gateway-route-destination-cidr-block - The CIDR range.
- //
- // - type - The type of route ( propagated | static ).
- Filters []types.Filter
-
- noSmithyDocumentSerde
-}
-
-type ExportTransitGatewayRoutesOutput struct {
-
- // The URL of the exported file in Amazon S3. For example,
- // s3://bucket_name/VPCTransitGateway/TransitGatewayRouteTables/file_name.
- S3Location *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationExportTransitGatewayRoutesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpExportTransitGatewayRoutes{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpExportTransitGatewayRoutes{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ExportTransitGatewayRoutes"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpExportTransitGatewayRoutesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opExportTransitGatewayRoutes(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opExportTransitGatewayRoutes(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ExportTransitGatewayRoutes",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportVerifiedAccessInstanceClientConfiguration.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportVerifiedAccessInstanceClientConfiguration.go
deleted file mode 100644
index 4aafbe3c6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportVerifiedAccessInstanceClientConfiguration.go
+++ /dev/null
@@ -1,181 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Exports the client configuration for a Verified Access instance.
-func (c *Client) ExportVerifiedAccessInstanceClientConfiguration(ctx context.Context, params *ExportVerifiedAccessInstanceClientConfigurationInput, optFns ...func(*Options)) (*ExportVerifiedAccessInstanceClientConfigurationOutput, error) {
- if params == nil {
- params = &ExportVerifiedAccessInstanceClientConfigurationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ExportVerifiedAccessInstanceClientConfiguration", params, optFns, c.addOperationExportVerifiedAccessInstanceClientConfigurationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ExportVerifiedAccessInstanceClientConfigurationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ExportVerifiedAccessInstanceClientConfigurationInput struct {
-
- // The ID of the Verified Access instance.
- //
- // This member is required.
- VerifiedAccessInstanceId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ExportVerifiedAccessInstanceClientConfigurationOutput struct {
-
- // The device trust providers.
- DeviceTrustProviders []types.DeviceTrustProviderType
-
- // The Open VPN configuration.
- OpenVpnConfigurations []types.VerifiedAccessInstanceOpenVpnClientConfiguration
-
- // The Region.
- Region *string
-
- // The user identity trust provider.
- UserTrustProvider *types.VerifiedAccessInstanceUserTrustProviderClientConfiguration
-
- // The ID of the Verified Access instance.
- VerifiedAccessInstanceId *string
-
- // The version.
- Version *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationExportVerifiedAccessInstanceClientConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpExportVerifiedAccessInstanceClientConfiguration{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpExportVerifiedAccessInstanceClientConfiguration{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ExportVerifiedAccessInstanceClientConfiguration"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpExportVerifiedAccessInstanceClientConfigurationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opExportVerifiedAccessInstanceClientConfiguration(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opExportVerifiedAccessInstanceClientConfiguration(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ExportVerifiedAccessInstanceClientConfiguration",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetActiveVpnTunnelStatus.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetActiveVpnTunnelStatus.go
deleted file mode 100644
index b291830f2..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetActiveVpnTunnelStatus.go
+++ /dev/null
@@ -1,172 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Returns the currently negotiated security parameters for an active VPN tunnel,
-// including IKE version, DH groups, encryption algorithms, and integrity
-// algorithms.
-func (c *Client) GetActiveVpnTunnelStatus(ctx context.Context, params *GetActiveVpnTunnelStatusInput, optFns ...func(*Options)) (*GetActiveVpnTunnelStatusOutput, error) {
- if params == nil {
- params = &GetActiveVpnTunnelStatusInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetActiveVpnTunnelStatus", params, optFns, c.addOperationGetActiveVpnTunnelStatusMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetActiveVpnTunnelStatusOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetActiveVpnTunnelStatusInput struct {
-
- // The ID of the VPN connection for which to retrieve the active tunnel status.
- //
- // This member is required.
- VpnConnectionId *string
-
- // The external IP address of the VPN tunnel for which to retrieve the active
- // status.
- //
- // This member is required.
- VpnTunnelOutsideIpAddress *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request.
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type GetActiveVpnTunnelStatusOutput struct {
-
- // Information about the current security configuration of the VPN tunnel.
- ActiveVpnTunnelStatus *types.ActiveVpnTunnelStatus
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetActiveVpnTunnelStatusMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetActiveVpnTunnelStatus{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetActiveVpnTunnelStatus{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetActiveVpnTunnelStatus"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetActiveVpnTunnelStatusValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetActiveVpnTunnelStatus(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetActiveVpnTunnelStatus(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetActiveVpnTunnelStatus",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAllowedImagesSettings.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAllowedImagesSettings.go
deleted file mode 100644
index 75a40caf2..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAllowedImagesSettings.go
+++ /dev/null
@@ -1,191 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Gets the current state of the Allowed AMIs setting and the list of Allowed AMIs
-// criteria at the account level in the specified Region.
-//
-// The Allowed AMIs feature does not restrict the AMIs owned by your account.
-// Regardless of the criteria you set, the AMIs created by your account will always
-// be discoverable and usable by users in your account.
-//
-// For more information, see [Control the discovery and use of AMIs in Amazon EC2 with Allowed AMIs] in Amazon EC2 User Guide.
-//
-// [Control the discovery and use of AMIs in Amazon EC2 with Allowed AMIs]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-allowed-amis.html
-func (c *Client) GetAllowedImagesSettings(ctx context.Context, params *GetAllowedImagesSettingsInput, optFns ...func(*Options)) (*GetAllowedImagesSettingsOutput, error) {
- if params == nil {
- params = &GetAllowedImagesSettingsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetAllowedImagesSettings", params, optFns, c.addOperationGetAllowedImagesSettingsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetAllowedImagesSettingsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetAllowedImagesSettingsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type GetAllowedImagesSettingsOutput struct {
-
- // The list of criteria for images that are discoverable and usable in the account
- // in the specified Amazon Web Services Region.
- ImageCriteria []types.ImageCriterion
-
- // The entity that manages the Allowed AMIs settings. Possible values include:
- //
- // - account - The Allowed AMIs settings is managed by the account.
- //
- // - declarative-policy - The Allowed AMIs settings is managed by a declarative
- // policy and can't be modified by the account.
- ManagedBy types.ManagedBy
-
- // The current state of the Allowed AMIs setting at the account level in the
- // specified Amazon Web Services Region.
- //
- // Possible values:
- //
- // - disabled : All AMIs are allowed.
- //
- // - audit-mode : All AMIs are allowed, but the ImageAllowed field is set to true
- // if the AMI would be allowed with the current list of criteria if allowed AMIs
- // was enabled.
- //
- // - enabled : Only AMIs matching the image criteria are discoverable and
- // available for use.
- State *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetAllowedImagesSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetAllowedImagesSettings{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetAllowedImagesSettings{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetAllowedImagesSettings"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetAllowedImagesSettings(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetAllowedImagesSettings(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetAllowedImagesSettings",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAssociatedEnclaveCertificateIamRoles.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAssociatedEnclaveCertificateIamRoles.go
deleted file mode 100644
index 6fbad3128..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAssociatedEnclaveCertificateIamRoles.go
+++ /dev/null
@@ -1,171 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Returns the IAM roles that are associated with the specified ACM (ACM)
-// certificate. It also returns the name of the Amazon S3 bucket and the Amazon S3
-// object key where the certificate, certificate chain, and encrypted private key
-// bundle are stored, and the ARN of the KMS key that's used to encrypt the private
-// key.
-func (c *Client) GetAssociatedEnclaveCertificateIamRoles(ctx context.Context, params *GetAssociatedEnclaveCertificateIamRolesInput, optFns ...func(*Options)) (*GetAssociatedEnclaveCertificateIamRolesOutput, error) {
- if params == nil {
- params = &GetAssociatedEnclaveCertificateIamRolesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetAssociatedEnclaveCertificateIamRoles", params, optFns, c.addOperationGetAssociatedEnclaveCertificateIamRolesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetAssociatedEnclaveCertificateIamRolesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetAssociatedEnclaveCertificateIamRolesInput struct {
-
- // The ARN of the ACM certificate for which to view the associated IAM roles,
- // encryption keys, and Amazon S3 object information.
- //
- // This member is required.
- CertificateArn *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type GetAssociatedEnclaveCertificateIamRolesOutput struct {
-
- // Information about the associated IAM roles.
- AssociatedRoles []types.AssociatedRole
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetAssociatedEnclaveCertificateIamRolesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetAssociatedEnclaveCertificateIamRoles{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetAssociatedEnclaveCertificateIamRoles{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetAssociatedEnclaveCertificateIamRoles"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetAssociatedEnclaveCertificateIamRolesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetAssociatedEnclaveCertificateIamRoles(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetAssociatedEnclaveCertificateIamRoles(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetAssociatedEnclaveCertificateIamRoles",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAssociatedIpv6PoolCidrs.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAssociatedIpv6PoolCidrs.go
deleted file mode 100644
index d43e72399..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAssociatedIpv6PoolCidrs.go
+++ /dev/null
@@ -1,275 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Gets information about the IPv6 CIDR block associations for a specified IPv6
-// address pool.
-func (c *Client) GetAssociatedIpv6PoolCidrs(ctx context.Context, params *GetAssociatedIpv6PoolCidrsInput, optFns ...func(*Options)) (*GetAssociatedIpv6PoolCidrsOutput, error) {
- if params == nil {
- params = &GetAssociatedIpv6PoolCidrsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetAssociatedIpv6PoolCidrs", params, optFns, c.addOperationGetAssociatedIpv6PoolCidrsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetAssociatedIpv6PoolCidrsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetAssociatedIpv6PoolCidrsInput struct {
-
- // The ID of the IPv6 address pool.
- //
- // This member is required.
- PoolId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type GetAssociatedIpv6PoolCidrsOutput struct {
-
- // Information about the IPv6 CIDR block associations.
- Ipv6CidrAssociations []types.Ipv6CidrAssociation
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetAssociatedIpv6PoolCidrsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetAssociatedIpv6PoolCidrs{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetAssociatedIpv6PoolCidrs{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetAssociatedIpv6PoolCidrs"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetAssociatedIpv6PoolCidrsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetAssociatedIpv6PoolCidrs(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// GetAssociatedIpv6PoolCidrsPaginatorOptions is the paginator options for
-// GetAssociatedIpv6PoolCidrs
-type GetAssociatedIpv6PoolCidrsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// GetAssociatedIpv6PoolCidrsPaginator is a paginator for
-// GetAssociatedIpv6PoolCidrs
-type GetAssociatedIpv6PoolCidrsPaginator struct {
- options GetAssociatedIpv6PoolCidrsPaginatorOptions
- client GetAssociatedIpv6PoolCidrsAPIClient
- params *GetAssociatedIpv6PoolCidrsInput
- nextToken *string
- firstPage bool
-}
-
-// NewGetAssociatedIpv6PoolCidrsPaginator returns a new
-// GetAssociatedIpv6PoolCidrsPaginator
-func NewGetAssociatedIpv6PoolCidrsPaginator(client GetAssociatedIpv6PoolCidrsAPIClient, params *GetAssociatedIpv6PoolCidrsInput, optFns ...func(*GetAssociatedIpv6PoolCidrsPaginatorOptions)) *GetAssociatedIpv6PoolCidrsPaginator {
- if params == nil {
- params = &GetAssociatedIpv6PoolCidrsInput{}
- }
-
- options := GetAssociatedIpv6PoolCidrsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &GetAssociatedIpv6PoolCidrsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *GetAssociatedIpv6PoolCidrsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next GetAssociatedIpv6PoolCidrs page.
-func (p *GetAssociatedIpv6PoolCidrsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetAssociatedIpv6PoolCidrsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.GetAssociatedIpv6PoolCidrs(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// GetAssociatedIpv6PoolCidrsAPIClient is a client that implements the
-// GetAssociatedIpv6PoolCidrs operation.
-type GetAssociatedIpv6PoolCidrsAPIClient interface {
- GetAssociatedIpv6PoolCidrs(context.Context, *GetAssociatedIpv6PoolCidrsInput, ...func(*Options)) (*GetAssociatedIpv6PoolCidrsOutput, error)
-}
-
-var _ GetAssociatedIpv6PoolCidrsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opGetAssociatedIpv6PoolCidrs(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetAssociatedIpv6PoolCidrs",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAwsNetworkPerformanceData.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAwsNetworkPerformanceData.go
deleted file mode 100644
index 9274dc314..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAwsNetworkPerformanceData.go
+++ /dev/null
@@ -1,278 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Gets network performance data.
-func (c *Client) GetAwsNetworkPerformanceData(ctx context.Context, params *GetAwsNetworkPerformanceDataInput, optFns ...func(*Options)) (*GetAwsNetworkPerformanceDataOutput, error) {
- if params == nil {
- params = &GetAwsNetworkPerformanceDataInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetAwsNetworkPerformanceData", params, optFns, c.addOperationGetAwsNetworkPerformanceDataMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetAwsNetworkPerformanceDataOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetAwsNetworkPerformanceDataInput struct {
-
- // A list of network performance data queries.
- DataQueries []types.DataQuery
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ending time for the performance data request. The end time must be
- // formatted as yyyy-mm-ddThh:mm:ss . For example, 2022-06-12T12:00:00.000Z .
- EndTime *time.Time
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The starting time for the performance data request. The starting time must be
- // formatted as yyyy-mm-ddThh:mm:ss . For example, 2022-06-10T12:00:00.000Z .
- StartTime *time.Time
-
- noSmithyDocumentSerde
-}
-
-type GetAwsNetworkPerformanceDataOutput struct {
-
- // The list of data responses.
- DataResponses []types.DataResponse
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetAwsNetworkPerformanceDataMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetAwsNetworkPerformanceData{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetAwsNetworkPerformanceData{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetAwsNetworkPerformanceData"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetAwsNetworkPerformanceData(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// GetAwsNetworkPerformanceDataPaginatorOptions is the paginator options for
-// GetAwsNetworkPerformanceData
-type GetAwsNetworkPerformanceDataPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// GetAwsNetworkPerformanceDataPaginator is a paginator for
-// GetAwsNetworkPerformanceData
-type GetAwsNetworkPerformanceDataPaginator struct {
- options GetAwsNetworkPerformanceDataPaginatorOptions
- client GetAwsNetworkPerformanceDataAPIClient
- params *GetAwsNetworkPerformanceDataInput
- nextToken *string
- firstPage bool
-}
-
-// NewGetAwsNetworkPerformanceDataPaginator returns a new
-// GetAwsNetworkPerformanceDataPaginator
-func NewGetAwsNetworkPerformanceDataPaginator(client GetAwsNetworkPerformanceDataAPIClient, params *GetAwsNetworkPerformanceDataInput, optFns ...func(*GetAwsNetworkPerformanceDataPaginatorOptions)) *GetAwsNetworkPerformanceDataPaginator {
- if params == nil {
- params = &GetAwsNetworkPerformanceDataInput{}
- }
-
- options := GetAwsNetworkPerformanceDataPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &GetAwsNetworkPerformanceDataPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *GetAwsNetworkPerformanceDataPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next GetAwsNetworkPerformanceData page.
-func (p *GetAwsNetworkPerformanceDataPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetAwsNetworkPerformanceDataOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.GetAwsNetworkPerformanceData(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// GetAwsNetworkPerformanceDataAPIClient is a client that implements the
-// GetAwsNetworkPerformanceData operation.
-type GetAwsNetworkPerformanceDataAPIClient interface {
- GetAwsNetworkPerformanceData(context.Context, *GetAwsNetworkPerformanceDataInput, ...func(*Options)) (*GetAwsNetworkPerformanceDataOutput, error)
-}
-
-var _ GetAwsNetworkPerformanceDataAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opGetAwsNetworkPerformanceData(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetAwsNetworkPerformanceData",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetCapacityReservationUsage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetCapacityReservationUsage.go
deleted file mode 100644
index 69b2f8605..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetCapacityReservationUsage.go
+++ /dev/null
@@ -1,240 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Gets usage information about a Capacity Reservation. If the Capacity
-// Reservation is shared, it shows usage information for the Capacity Reservation
-// owner and each Amazon Web Services account that is currently using the shared
-// capacity. If the Capacity Reservation is not shared, it shows only the Capacity
-// Reservation owner's usage.
-func (c *Client) GetCapacityReservationUsage(ctx context.Context, params *GetCapacityReservationUsageInput, optFns ...func(*Options)) (*GetCapacityReservationUsageOutput, error) {
- if params == nil {
- params = &GetCapacityReservationUsageInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetCapacityReservationUsage", params, optFns, c.addOperationGetCapacityReservationUsageMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetCapacityReservationUsageOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetCapacityReservationUsageInput struct {
-
- // The ID of the Capacity Reservation.
- //
- // This member is required.
- CapacityReservationId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token to use to retrieve the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type GetCapacityReservationUsageOutput struct {
-
- // The remaining capacity. Indicates the number of instances that can be launched
- // in the Capacity Reservation.
- AvailableInstanceCount *int32
-
- // The ID of the Capacity Reservation.
- CapacityReservationId *string
-
- // The type of instance for which the Capacity Reservation reserves capacity.
- InstanceType *string
-
- // Information about the Capacity Reservation usage.
- InstanceUsages []types.InstanceUsage
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // The current state of the Capacity Reservation. A Capacity Reservation can be in
- // one of the following states:
- //
- // - active - The capacity is available for use.
- //
- // - expired - The Capacity Reservation expired automatically at the date and
- // time specified in your reservation request. The reserved capacity is no longer
- // available for your use.
- //
- // - cancelled - The Capacity Reservation was canceled. The reserved capacity is
- // no longer available for your use.
- //
- // - pending - The Capacity Reservation request was successful but the capacity
- // provisioning is still pending.
- //
- // - failed - The Capacity Reservation request has failed. A request can fail due
- // to request parameters that are not valid, capacity constraints, or instance
- // limit constraints. You can view a failed request for 60 minutes.
- //
- // - scheduled - (Future-dated Capacity Reservations) The future-dated Capacity
- // Reservation request was approved and the Capacity Reservation is scheduled for
- // delivery on the requested start date.
- //
- // - payment-pending - (Capacity Blocks) The upfront payment has not been
- // processed yet.
- //
- // - payment-failed - (Capacity Blocks) The upfront payment was not processed in
- // the 12-hour time frame. Your Capacity Block was released.
- //
- // - assessing - (Future-dated Capacity Reservations) Amazon EC2 is assessing
- // your request for a future-dated Capacity Reservation.
- //
- // - delayed - (Future-dated Capacity Reservations) Amazon EC2 encountered a
- // delay in provisioning the requested future-dated Capacity Reservation. Amazon
- // EC2 is unable to deliver the requested capacity by the requested start date and
- // time.
- //
- // - unsupported - (Future-dated Capacity Reservations) Amazon EC2 can't support
- // the future-dated Capacity Reservation request due to capacity constraints. You
- // can view unsupported requests for 30 days. The Capacity Reservation will not be
- // delivered.
- State types.CapacityReservationState
-
- // The number of instances for which the Capacity Reservation reserves capacity.
- TotalInstanceCount *int32
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetCapacityReservationUsageMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetCapacityReservationUsage{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetCapacityReservationUsage{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetCapacityReservationUsage"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetCapacityReservationUsageValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetCapacityReservationUsage(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetCapacityReservationUsage(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetCapacityReservationUsage",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetCoipPoolUsage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetCoipPoolUsage.go
deleted file mode 100644
index 0d8d7a4c6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetCoipPoolUsage.go
+++ /dev/null
@@ -1,196 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the allocations from the specified customer-owned address pool.
-func (c *Client) GetCoipPoolUsage(ctx context.Context, params *GetCoipPoolUsageInput, optFns ...func(*Options)) (*GetCoipPoolUsageOutput, error) {
- if params == nil {
- params = &GetCoipPoolUsageInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetCoipPoolUsage", params, optFns, c.addOperationGetCoipPoolUsageMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetCoipPoolUsageOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetCoipPoolUsageInput struct {
-
- // The ID of the address pool.
- //
- // This member is required.
- PoolId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - coip-address-usage.allocation-id - The allocation ID of the address.
- //
- // - coip-address-usage.aws-account-id - The ID of the Amazon Web Services
- // account that is using the customer-owned IP address.
- //
- // - coip-address-usage.aws-service - The Amazon Web Services service that is
- // using the customer-owned IP address.
- //
- // - coip-address-usage.co-ip - The customer-owned IP address.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type GetCoipPoolUsageOutput struct {
-
- // Information about the address usage.
- CoipAddressUsages []types.CoipAddressUsage
-
- // The ID of the customer-owned address pool.
- CoipPoolId *string
-
- // The ID of the local gateway route table.
- LocalGatewayRouteTableId *string
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetCoipPoolUsageMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetCoipPoolUsage{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetCoipPoolUsage{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetCoipPoolUsage"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetCoipPoolUsageValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetCoipPoolUsage(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetCoipPoolUsage(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetCoipPoolUsage",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetConsoleOutput.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetConsoleOutput.go
deleted file mode 100644
index 7f185b9bc..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetConsoleOutput.go
+++ /dev/null
@@ -1,185 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Gets the console output for the specified instance. For Linux instances, the
-// instance console output displays the exact console output that would normally be
-// displayed on a physical monitor attached to a computer. For Windows instances,
-// the instance console output includes the last three system event log errors.
-//
-// For more information, see [Instance console output] in the Amazon EC2 User Guide.
-//
-// [Instance console output]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html#instance-console-console-output
-func (c *Client) GetConsoleOutput(ctx context.Context, params *GetConsoleOutputInput, optFns ...func(*Options)) (*GetConsoleOutputOutput, error) {
- if params == nil {
- params = &GetConsoleOutputInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetConsoleOutput", params, optFns, c.addOperationGetConsoleOutputMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetConsoleOutputOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetConsoleOutputInput struct {
-
- // The ID of the instance.
- //
- // This member is required.
- InstanceId *string
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // When enabled, retrieves the latest console output for the instance.
- //
- // Default: disabled ( false )
- Latest *bool
-
- noSmithyDocumentSerde
-}
-
-type GetConsoleOutputOutput struct {
-
- // The ID of the instance.
- InstanceId *string
-
- // The console output, base64-encoded. If you are using a command line tool, the
- // tool decodes the output for you.
- Output *string
-
- // The time at which the output was last updated.
- Timestamp *time.Time
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetConsoleOutputMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetConsoleOutput{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetConsoleOutput{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetConsoleOutput"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetConsoleOutputValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetConsoleOutput(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetConsoleOutput(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetConsoleOutput",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetConsoleScreenshot.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetConsoleScreenshot.go
deleted file mode 100644
index e113f64d6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetConsoleScreenshot.go
+++ /dev/null
@@ -1,179 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Retrieve a JPG-format screenshot of a running instance to help with
-// troubleshooting.
-//
-// The returned content is Base64-encoded.
-//
-// For more information, see [Instance console output] in the Amazon EC2 User Guide.
-//
-// [Instance console output]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/troubleshoot-unreachable-instance.html#instance-console-console-output
-func (c *Client) GetConsoleScreenshot(ctx context.Context, params *GetConsoleScreenshotInput, optFns ...func(*Options)) (*GetConsoleScreenshotOutput, error) {
- if params == nil {
- params = &GetConsoleScreenshotInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetConsoleScreenshot", params, optFns, c.addOperationGetConsoleScreenshotMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetConsoleScreenshotOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetConsoleScreenshotInput struct {
-
- // The ID of the instance.
- //
- // This member is required.
- InstanceId *string
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // When set to true , acts as keystroke input and wakes up an instance that's in
- // standby or "sleep" mode.
- WakeUp *bool
-
- noSmithyDocumentSerde
-}
-
-type GetConsoleScreenshotOutput struct {
-
- // The data that comprises the image.
- ImageData *string
-
- // The ID of the instance.
- InstanceId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetConsoleScreenshotMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetConsoleScreenshot{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetConsoleScreenshot{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetConsoleScreenshot"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetConsoleScreenshotValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetConsoleScreenshot(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetConsoleScreenshot(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetConsoleScreenshot",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetDeclarativePoliciesReportSummary.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetDeclarativePoliciesReportSummary.go
deleted file mode 100644
index d4ce0b169..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetDeclarativePoliciesReportSummary.go
+++ /dev/null
@@ -1,210 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Retrieves a summary of the account status report.
-//
-// To view the full report, download it from the Amazon S3 bucket where it was
-// saved. Reports are accessible only when they have the complete status. Reports
-// with other statuses ( running , cancelled , or error ) are not available in the
-// S3 bucket. For more information about downloading objects from an S3 bucket, see
-// [Downloading objects]in the Amazon Simple Storage Service User Guide.
-//
-// For more information, see [Generating the account status report for declarative policies] in the Amazon Web Services Organizations User Guide.
-//
-// [Downloading objects]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/download-objects.html
-// [Generating the account status report for declarative policies]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative_status-report.html
-func (c *Client) GetDeclarativePoliciesReportSummary(ctx context.Context, params *GetDeclarativePoliciesReportSummaryInput, optFns ...func(*Options)) (*GetDeclarativePoliciesReportSummaryOutput, error) {
- if params == nil {
- params = &GetDeclarativePoliciesReportSummaryInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetDeclarativePoliciesReportSummary", params, optFns, c.addOperationGetDeclarativePoliciesReportSummaryMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetDeclarativePoliciesReportSummaryOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetDeclarativePoliciesReportSummaryInput struct {
-
- // The ID of the report.
- //
- // This member is required.
- ReportId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type GetDeclarativePoliciesReportSummaryOutput struct {
-
- // The attributes described in the report.
- AttributeSummaries []types.AttributeSummary
-
- // The time when the report generation ended.
- EndTime *time.Time
-
- // The total number of accounts associated with the specified targetId .
- NumberOfAccounts *int32
-
- // The number of accounts where attributes could not be retrieved in any Region.
- NumberOfFailedAccounts *int32
-
- // The ID of the report.
- ReportId *string
-
- // The name of the Amazon S3 bucket where the report is located.
- S3Bucket *string
-
- // The prefix for your S3 object.
- S3Prefix *string
-
- // The time when the report generation started.
- StartTime *time.Time
-
- // The root ID, organizational unit ID, or account ID.
- //
- // Format:
- //
- // - For root: r-ab12
- //
- // - For OU: ou-ab12-cdef1234
- //
- // - For account: 123456789012
- TargetId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetDeclarativePoliciesReportSummaryMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetDeclarativePoliciesReportSummary{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetDeclarativePoliciesReportSummary{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetDeclarativePoliciesReportSummary"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetDeclarativePoliciesReportSummaryValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetDeclarativePoliciesReportSummary(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetDeclarativePoliciesReportSummary(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetDeclarativePoliciesReportSummary",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetDefaultCreditSpecification.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetDefaultCreditSpecification.go
deleted file mode 100644
index 10cc79343..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetDefaultCreditSpecification.go
+++ /dev/null
@@ -1,171 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the default credit option for CPU usage of a burstable performance
-// instance family.
-//
-// For more information, see [Burstable performance instances] in the Amazon EC2 User Guide.
-//
-// [Burstable performance instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html
-func (c *Client) GetDefaultCreditSpecification(ctx context.Context, params *GetDefaultCreditSpecificationInput, optFns ...func(*Options)) (*GetDefaultCreditSpecificationOutput, error) {
- if params == nil {
- params = &GetDefaultCreditSpecificationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetDefaultCreditSpecification", params, optFns, c.addOperationGetDefaultCreditSpecificationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetDefaultCreditSpecificationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetDefaultCreditSpecificationInput struct {
-
- // The instance family.
- //
- // This member is required.
- InstanceFamily types.UnlimitedSupportedInstanceFamily
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type GetDefaultCreditSpecificationOutput struct {
-
- // The default credit option for CPU usage of the instance family.
- InstanceFamilyCreditSpecification *types.InstanceFamilyCreditSpecification
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetDefaultCreditSpecificationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetDefaultCreditSpecification{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetDefaultCreditSpecification{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetDefaultCreditSpecification"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetDefaultCreditSpecificationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetDefaultCreditSpecification(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetDefaultCreditSpecification(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetDefaultCreditSpecification",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetEbsDefaultKmsKeyId.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetEbsDefaultKmsKeyId.go
deleted file mode 100644
index d5b131b6b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetEbsDefaultKmsKeyId.go
+++ /dev/null
@@ -1,163 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes the default KMS key for EBS encryption by default for your account in
-// this Region. You can change the default KMS key for encryption by default using ModifyEbsDefaultKmsKeyId
-// or ResetEbsDefaultKmsKeyId.
-//
-// For more information, see [Amazon EBS encryption] in the Amazon EBS User Guide.
-//
-// [Amazon EBS encryption]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html
-func (c *Client) GetEbsDefaultKmsKeyId(ctx context.Context, params *GetEbsDefaultKmsKeyIdInput, optFns ...func(*Options)) (*GetEbsDefaultKmsKeyIdOutput, error) {
- if params == nil {
- params = &GetEbsDefaultKmsKeyIdInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetEbsDefaultKmsKeyId", params, optFns, c.addOperationGetEbsDefaultKmsKeyIdMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetEbsDefaultKmsKeyIdOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetEbsDefaultKmsKeyIdInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type GetEbsDefaultKmsKeyIdOutput struct {
-
- // The Amazon Resource Name (ARN) of the default KMS key for encryption by default.
- KmsKeyId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetEbsDefaultKmsKeyIdMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetEbsDefaultKmsKeyId{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetEbsDefaultKmsKeyId{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetEbsDefaultKmsKeyId"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetEbsDefaultKmsKeyId(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetEbsDefaultKmsKeyId(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetEbsDefaultKmsKeyId",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetEbsEncryptionByDefault.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetEbsEncryptionByDefault.go
deleted file mode 100644
index 2a0a14552..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetEbsEncryptionByDefault.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Describes whether EBS encryption by default is enabled for your account in the
-// current Region.
-//
-// For more information, see [Amazon EBS encryption] in the Amazon EBS User Guide.
-//
-// [Amazon EBS encryption]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html
-func (c *Client) GetEbsEncryptionByDefault(ctx context.Context, params *GetEbsEncryptionByDefaultInput, optFns ...func(*Options)) (*GetEbsEncryptionByDefaultOutput, error) {
- if params == nil {
- params = &GetEbsEncryptionByDefaultInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetEbsEncryptionByDefault", params, optFns, c.addOperationGetEbsEncryptionByDefaultMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetEbsEncryptionByDefaultOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetEbsEncryptionByDefaultInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type GetEbsEncryptionByDefaultOutput struct {
-
- // Indicates whether encryption by default is enabled.
- EbsEncryptionByDefault *bool
-
- // Reserved for future use.
- SseType types.SSEType
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetEbsEncryptionByDefaultMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetEbsEncryptionByDefault{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetEbsEncryptionByDefault{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetEbsEncryptionByDefault"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetEbsEncryptionByDefault(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetEbsEncryptionByDefault(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetEbsEncryptionByDefault",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetFlowLogsIntegrationTemplate.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetFlowLogsIntegrationTemplate.go
deleted file mode 100644
index bed8eadd9..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetFlowLogsIntegrationTemplate.go
+++ /dev/null
@@ -1,193 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Generates a CloudFormation template that streamlines and automates the
-// integration of VPC flow logs with Amazon Athena. This make it easier for you to
-// query and gain insights from VPC flow logs data. Based on the information that
-// you provide, we configure resources in the template to do the following:
-//
-// - Create a table in Athena that maps fields to a custom log format
-//
-// - Create a Lambda function that updates the table with new partitions on a
-// daily, weekly, or monthly basis
-//
-// - Create a table partitioned between two timestamps in the past
-//
-// - Create a set of named queries in Athena that you can use to get started
-// quickly
-//
-// GetFlowLogsIntegrationTemplate does not support integration between Amazon Web
-// Services Transit Gateway Flow Logs and Amazon Athena.
-func (c *Client) GetFlowLogsIntegrationTemplate(ctx context.Context, params *GetFlowLogsIntegrationTemplateInput, optFns ...func(*Options)) (*GetFlowLogsIntegrationTemplateOutput, error) {
- if params == nil {
- params = &GetFlowLogsIntegrationTemplateInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetFlowLogsIntegrationTemplate", params, optFns, c.addOperationGetFlowLogsIntegrationTemplateMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetFlowLogsIntegrationTemplateOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetFlowLogsIntegrationTemplateInput struct {
-
- // To store the CloudFormation template in Amazon S3, specify the location in
- // Amazon S3.
- //
- // This member is required.
- ConfigDeliveryS3DestinationArn *string
-
- // The ID of the flow log.
- //
- // This member is required.
- FlowLogId *string
-
- // Information about the service integration.
- //
- // This member is required.
- IntegrateServices *types.IntegrateServices
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type GetFlowLogsIntegrationTemplateOutput struct {
-
- // The generated CloudFormation template.
- Result *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetFlowLogsIntegrationTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetFlowLogsIntegrationTemplate{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetFlowLogsIntegrationTemplate{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetFlowLogsIntegrationTemplate"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetFlowLogsIntegrationTemplateValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetFlowLogsIntegrationTemplate(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetFlowLogsIntegrationTemplate(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetFlowLogsIntegrationTemplate",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetGroupsForCapacityReservation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetGroupsForCapacityReservation.go
deleted file mode 100644
index d7075fd85..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetGroupsForCapacityReservation.go
+++ /dev/null
@@ -1,283 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Lists the resource groups to which a Capacity Reservation has been added.
-func (c *Client) GetGroupsForCapacityReservation(ctx context.Context, params *GetGroupsForCapacityReservationInput, optFns ...func(*Options)) (*GetGroupsForCapacityReservationOutput, error) {
- if params == nil {
- params = &GetGroupsForCapacityReservationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetGroupsForCapacityReservation", params, optFns, c.addOperationGetGroupsForCapacityReservationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetGroupsForCapacityReservationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetGroupsForCapacityReservationInput struct {
-
- // The ID of the Capacity Reservation. If you specify a Capacity Reservation that
- // is shared with you, the operation returns only Capacity Reservation groups that
- // you own.
- //
- // This member is required.
- CapacityReservationId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token to use to retrieve the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type GetGroupsForCapacityReservationOutput struct {
-
- // Information about the resource groups to which the Capacity Reservation has
- // been added.
- CapacityReservationGroups []types.CapacityReservationGroup
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetGroupsForCapacityReservationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetGroupsForCapacityReservation{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetGroupsForCapacityReservation{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetGroupsForCapacityReservation"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetGroupsForCapacityReservationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetGroupsForCapacityReservation(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// GetGroupsForCapacityReservationPaginatorOptions is the paginator options for
-// GetGroupsForCapacityReservation
-type GetGroupsForCapacityReservationPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// GetGroupsForCapacityReservationPaginator is a paginator for
-// GetGroupsForCapacityReservation
-type GetGroupsForCapacityReservationPaginator struct {
- options GetGroupsForCapacityReservationPaginatorOptions
- client GetGroupsForCapacityReservationAPIClient
- params *GetGroupsForCapacityReservationInput
- nextToken *string
- firstPage bool
-}
-
-// NewGetGroupsForCapacityReservationPaginator returns a new
-// GetGroupsForCapacityReservationPaginator
-func NewGetGroupsForCapacityReservationPaginator(client GetGroupsForCapacityReservationAPIClient, params *GetGroupsForCapacityReservationInput, optFns ...func(*GetGroupsForCapacityReservationPaginatorOptions)) *GetGroupsForCapacityReservationPaginator {
- if params == nil {
- params = &GetGroupsForCapacityReservationInput{}
- }
-
- options := GetGroupsForCapacityReservationPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &GetGroupsForCapacityReservationPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *GetGroupsForCapacityReservationPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next GetGroupsForCapacityReservation page.
-func (p *GetGroupsForCapacityReservationPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetGroupsForCapacityReservationOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.GetGroupsForCapacityReservation(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// GetGroupsForCapacityReservationAPIClient is a client that implements the
-// GetGroupsForCapacityReservation operation.
-type GetGroupsForCapacityReservationAPIClient interface {
- GetGroupsForCapacityReservation(context.Context, *GetGroupsForCapacityReservationInput, ...func(*Options)) (*GetGroupsForCapacityReservationOutput, error)
-}
-
-var _ GetGroupsForCapacityReservationAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opGetGroupsForCapacityReservation(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetGroupsForCapacityReservation",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetHostReservationPurchasePreview.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetHostReservationPurchasePreview.go
deleted file mode 100644
index f4bc61b4b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetHostReservationPurchasePreview.go
+++ /dev/null
@@ -1,181 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Preview a reservation purchase with configurations that match those of your
-// Dedicated Host. You must have active Dedicated Hosts in your account before you
-// purchase a reservation.
-//
-// This is a preview of the PurchaseHostReservation action and does not result in the offering being
-// purchased.
-func (c *Client) GetHostReservationPurchasePreview(ctx context.Context, params *GetHostReservationPurchasePreviewInput, optFns ...func(*Options)) (*GetHostReservationPurchasePreviewOutput, error) {
- if params == nil {
- params = &GetHostReservationPurchasePreviewInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetHostReservationPurchasePreview", params, optFns, c.addOperationGetHostReservationPurchasePreviewMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetHostReservationPurchasePreviewOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetHostReservationPurchasePreviewInput struct {
-
- // The IDs of the Dedicated Hosts with which the reservation is associated.
- //
- // This member is required.
- HostIdSet []string
-
- // The offering ID of the reservation.
- //
- // This member is required.
- OfferingId *string
-
- noSmithyDocumentSerde
-}
-
-type GetHostReservationPurchasePreviewOutput struct {
-
- // The currency in which the totalUpfrontPrice and totalHourlyPrice amounts are
- // specified. At this time, the only supported currency is USD .
- CurrencyCode types.CurrencyCodeValues
-
- // The purchase information of the Dedicated Host reservation and the Dedicated
- // Hosts associated with it.
- Purchase []types.Purchase
-
- // The potential total hourly price of the reservation per hour.
- TotalHourlyPrice *string
-
- // The potential total upfront price. This is billed immediately.
- TotalUpfrontPrice *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetHostReservationPurchasePreviewMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetHostReservationPurchasePreview{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetHostReservationPurchasePreview{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetHostReservationPurchasePreview"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetHostReservationPurchasePreviewValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetHostReservationPurchasePreview(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetHostReservationPurchasePreview(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetHostReservationPurchasePreview",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetImageBlockPublicAccessState.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetImageBlockPublicAccessState.go
deleted file mode 100644
index b6b4439e0..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetImageBlockPublicAccessState.go
+++ /dev/null
@@ -1,180 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Gets the current state of block public access for AMIs at the account level in
-// the specified Amazon Web Services Region.
-//
-// For more information, see [Block public access to your AMIs] in the Amazon EC2 User Guide.
-//
-// [Block public access to your AMIs]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-public-access-to-amis.html
-func (c *Client) GetImageBlockPublicAccessState(ctx context.Context, params *GetImageBlockPublicAccessStateInput, optFns ...func(*Options)) (*GetImageBlockPublicAccessStateOutput, error) {
- if params == nil {
- params = &GetImageBlockPublicAccessStateInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetImageBlockPublicAccessState", params, optFns, c.addOperationGetImageBlockPublicAccessStateMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetImageBlockPublicAccessStateOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetImageBlockPublicAccessStateInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type GetImageBlockPublicAccessStateOutput struct {
-
- // The current state of block public access for AMIs at the account level in the
- // specified Amazon Web Services Region.
- //
- // Possible values:
- //
- // - block-new-sharing - Any attempt to publicly share your AMIs in the specified
- // Region is blocked.
- //
- // - unblocked - Your AMIs in the specified Region can be publicly shared.
- ImageBlockPublicAccessState *string
-
- // The entity that manages the state for block public access for AMIs. Possible
- // values include:
- //
- // - account - The state is managed by the account.
- //
- // - declarative-policy - The state is managed by a declarative policy and can't
- // be modified by the account.
- ManagedBy types.ManagedBy
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetImageBlockPublicAccessStateMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetImageBlockPublicAccessState{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetImageBlockPublicAccessState{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetImageBlockPublicAccessState"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetImageBlockPublicAccessState(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetImageBlockPublicAccessState(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetImageBlockPublicAccessState",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetInstanceMetadataDefaults.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetInstanceMetadataDefaults.go
deleted file mode 100644
index 44b922e06..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetInstanceMetadataDefaults.go
+++ /dev/null
@@ -1,163 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Gets the default instance metadata service (IMDS) settings that are set at the
-// account level in the specified Amazon Web Services
Region.
-//
-// For more information, see [Order of precedence for instance metadata options] in the Amazon EC2 User Guide.
-//
-// [Order of precedence for instance metadata options]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html#instance-metadata-options-order-of-precedence
-func (c *Client) GetInstanceMetadataDefaults(ctx context.Context, params *GetInstanceMetadataDefaultsInput, optFns ...func(*Options)) (*GetInstanceMetadataDefaultsOutput, error) {
- if params == nil {
- params = &GetInstanceMetadataDefaultsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetInstanceMetadataDefaults", params, optFns, c.addOperationGetInstanceMetadataDefaultsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetInstanceMetadataDefaultsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetInstanceMetadataDefaultsInput struct {
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type GetInstanceMetadataDefaultsOutput struct {
-
- // The account-level default IMDS settings.
- AccountLevel *types.InstanceMetadataDefaultsResponse
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetInstanceMetadataDefaultsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetInstanceMetadataDefaults{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetInstanceMetadataDefaults{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetInstanceMetadataDefaults"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetInstanceMetadataDefaults(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetInstanceMetadataDefaults(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetInstanceMetadataDefaults",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetInstanceTpmEkPub.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetInstanceTpmEkPub.go
deleted file mode 100644
index ee5c2cb6f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetInstanceTpmEkPub.go
+++ /dev/null
@@ -1,187 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Gets the public endorsement key associated with the Nitro Trusted Platform
-// Module (NitroTPM) for the specified instance.
-func (c *Client) GetInstanceTpmEkPub(ctx context.Context, params *GetInstanceTpmEkPubInput, optFns ...func(*Options)) (*GetInstanceTpmEkPubOutput, error) {
- if params == nil {
- params = &GetInstanceTpmEkPubInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetInstanceTpmEkPub", params, optFns, c.addOperationGetInstanceTpmEkPubMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetInstanceTpmEkPubOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetInstanceTpmEkPubInput struct {
-
- // The ID of the instance for which to get the public endorsement key.
- //
- // This member is required.
- InstanceId *string
-
- // The required public endorsement key format. Specify der for a DER-encoded
- // public key that is compatible with OpenSSL. Specify tpmt for a TPM 2.0 format
- // that is compatible with tpm2-tools. The returned key is base64 encoded.
- //
- // This member is required.
- KeyFormat types.EkPubKeyFormat
-
- // The required public endorsement key type.
- //
- // This member is required.
- KeyType types.EkPubKeyType
-
- // Specify this parameter to verify whether the request will succeed, without
- // actually making the request. If the request will succeed, the response is
- // DryRunOperation . Otherwise, the response is UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type GetInstanceTpmEkPubOutput struct {
-
- // The ID of the instance.
- InstanceId *string
-
- // The public endorsement key format.
- KeyFormat types.EkPubKeyFormat
-
- // The public endorsement key type.
- KeyType types.EkPubKeyType
-
- // The public endorsement key material.
- KeyValue *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetInstanceTpmEkPubMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetInstanceTpmEkPub{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetInstanceTpmEkPub{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetInstanceTpmEkPub"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetInstanceTpmEkPubValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetInstanceTpmEkPub(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetInstanceTpmEkPub(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetInstanceTpmEkPub",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetInstanceTypesFromInstanceRequirements.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetInstanceTypesFromInstanceRequirements.go
deleted file mode 100644
index 49a70ecbd..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetInstanceTypesFromInstanceRequirements.go
+++ /dev/null
@@ -1,308 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Returns a list of instance types with the specified instance attributes. You
-// can use the response to preview the instance types without launching instances.
-// Note that the response does not consider capacity.
-//
-// When you specify multiple parameters, you get instance types that satisfy all
-// of the specified parameters. If you specify multiple values for a parameter, you
-// get instance types that satisfy any of the specified values.
-//
-// For more information, see [Preview instance types with specified attributes], [Specify attributes for instance type selection for EC2 Fleet or Spot Fleet], and [Spot placement score] in the Amazon EC2 User Guide, and [Creating mixed instance groups using attribute-based instance type selection] in the
-// Amazon EC2 Auto Scaling User Guide.
-//
-// [Specify attributes for instance type selection for EC2 Fleet or Spot Fleet]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html
-// [Preview instance types with specified attributes]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2fleet-get-instance-types-from-instance-requirements
-// [Creating mixed instance groups using attribute-based instance type selection]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html
-// [Spot placement score]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-placement-score.html
-func (c *Client) GetInstanceTypesFromInstanceRequirements(ctx context.Context, params *GetInstanceTypesFromInstanceRequirementsInput, optFns ...func(*Options)) (*GetInstanceTypesFromInstanceRequirementsOutput, error) {
- if params == nil {
- params = &GetInstanceTypesFromInstanceRequirementsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetInstanceTypesFromInstanceRequirements", params, optFns, c.addOperationGetInstanceTypesFromInstanceRequirementsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetInstanceTypesFromInstanceRequirementsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetInstanceTypesFromInstanceRequirementsInput struct {
-
- // The processor architecture type.
- //
- // This member is required.
- ArchitectureTypes []types.ArchitectureType
-
- // The attributes required for the instance types.
- //
- // This member is required.
- InstanceRequirements *types.InstanceRequirementsRequest
-
- // The virtualization type.
- //
- // This member is required.
- VirtualizationTypes []types.VirtualizationType
-
- // Reserved.
- Context *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type GetInstanceTypesFromInstanceRequirementsOutput struct {
-
- // The instance types with the specified instance attributes.
- InstanceTypes []types.InstanceTypeInfoFromInstanceRequirements
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetInstanceTypesFromInstanceRequirementsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetInstanceTypesFromInstanceRequirements{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetInstanceTypesFromInstanceRequirements{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetInstanceTypesFromInstanceRequirements"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetInstanceTypesFromInstanceRequirementsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetInstanceTypesFromInstanceRequirements(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// GetInstanceTypesFromInstanceRequirementsPaginatorOptions is the paginator
-// options for GetInstanceTypesFromInstanceRequirements
-type GetInstanceTypesFromInstanceRequirementsPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// GetInstanceTypesFromInstanceRequirementsPaginator is a paginator for
-// GetInstanceTypesFromInstanceRequirements
-type GetInstanceTypesFromInstanceRequirementsPaginator struct {
- options GetInstanceTypesFromInstanceRequirementsPaginatorOptions
- client GetInstanceTypesFromInstanceRequirementsAPIClient
- params *GetInstanceTypesFromInstanceRequirementsInput
- nextToken *string
- firstPage bool
-}
-
-// NewGetInstanceTypesFromInstanceRequirementsPaginator returns a new
-// GetInstanceTypesFromInstanceRequirementsPaginator
-func NewGetInstanceTypesFromInstanceRequirementsPaginator(client GetInstanceTypesFromInstanceRequirementsAPIClient, params *GetInstanceTypesFromInstanceRequirementsInput, optFns ...func(*GetInstanceTypesFromInstanceRequirementsPaginatorOptions)) *GetInstanceTypesFromInstanceRequirementsPaginator {
- if params == nil {
- params = &GetInstanceTypesFromInstanceRequirementsInput{}
- }
-
- options := GetInstanceTypesFromInstanceRequirementsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &GetInstanceTypesFromInstanceRequirementsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *GetInstanceTypesFromInstanceRequirementsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next GetInstanceTypesFromInstanceRequirements page.
-func (p *GetInstanceTypesFromInstanceRequirementsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetInstanceTypesFromInstanceRequirementsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.GetInstanceTypesFromInstanceRequirements(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// GetInstanceTypesFromInstanceRequirementsAPIClient is a client that implements
-// the GetInstanceTypesFromInstanceRequirements operation.
-type GetInstanceTypesFromInstanceRequirementsAPIClient interface {
- GetInstanceTypesFromInstanceRequirements(context.Context, *GetInstanceTypesFromInstanceRequirementsInput, ...func(*Options)) (*GetInstanceTypesFromInstanceRequirementsOutput, error)
-}
-
-var _ GetInstanceTypesFromInstanceRequirementsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opGetInstanceTypesFromInstanceRequirements(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetInstanceTypesFromInstanceRequirements",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetInstanceUefiData.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetInstanceUefiData.go
deleted file mode 100644
index 81726ac3b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetInstanceUefiData.go
+++ /dev/null
@@ -1,182 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// A binary representation of the UEFI variable store. Only non-volatile variables
-// are stored. This is a base64 encoded and zlib compressed binary value that must
-// be properly encoded.
-//
-// When you use [register-image] to create an AMI, you can create an exact copy of your variable
-// store by passing the UEFI data in the UefiData parameter. You can modify the
-// UEFI data by using the [python-uefivars tool]on GitHub. You can use the tool to convert the UEFI data
-// into a human-readable format (JSON), which you can inspect and modify, and then
-// convert back into the binary format to use with register-image.
-//
-// For more information, see [UEFI Secure Boot] in the Amazon EC2 User Guide.
-//
-// [UEFI Secure Boot]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/uefi-secure-boot.html
-// [python-uefivars tool]: https://github.com/awslabs/python-uefivars
-// [register-image]: https://docs.aws.amazon.com/cli/latest/reference/ec2/register-image.html
-func (c *Client) GetInstanceUefiData(ctx context.Context, params *GetInstanceUefiDataInput, optFns ...func(*Options)) (*GetInstanceUefiDataOutput, error) {
- if params == nil {
- params = &GetInstanceUefiDataInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetInstanceUefiData", params, optFns, c.addOperationGetInstanceUefiDataMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetInstanceUefiDataOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetInstanceUefiDataInput struct {
-
- // The ID of the instance from which to retrieve the UEFI data.
- //
- // This member is required.
- InstanceId *string
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type GetInstanceUefiDataOutput struct {
-
- // The ID of the instance from which to retrieve the UEFI data.
- InstanceId *string
-
- // Base64 representation of the non-volatile UEFI variable store.
- UefiData *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetInstanceUefiDataMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetInstanceUefiData{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetInstanceUefiData{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetInstanceUefiData"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetInstanceUefiDataValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetInstanceUefiData(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetInstanceUefiData(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetInstanceUefiData",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamAddressHistory.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamAddressHistory.go
deleted file mode 100644
index 84b547046..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamAddressHistory.go
+++ /dev/null
@@ -1,296 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Retrieve historical information about a CIDR within an IPAM scope. For more
-// information, see [View the history of IP addresses]in the Amazon VPC IPAM User Guide.
-//
-// [View the history of IP addresses]: https://docs.aws.amazon.com/vpc/latest/ipam/view-history-cidr-ipam.html
-func (c *Client) GetIpamAddressHistory(ctx context.Context, params *GetIpamAddressHistoryInput, optFns ...func(*Options)) (*GetIpamAddressHistoryOutput, error) {
- if params == nil {
- params = &GetIpamAddressHistoryInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetIpamAddressHistory", params, optFns, c.addOperationGetIpamAddressHistoryMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetIpamAddressHistoryOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetIpamAddressHistoryInput struct {
-
- // The CIDR you want the history of. The CIDR can be an IPv4 or IPv6 IP address
- // range. If you enter a /16 IPv4 CIDR, you will get records that match it exactly.
- // You will not get records for any subnets within the /16 CIDR.
- //
- // This member is required.
- Cidr *string
-
- // The ID of the IPAM scope that the CIDR is in.
- //
- // This member is required.
- IpamScopeId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The end of the time period for which you are looking for history. If you omit
- // this option, it will default to the current time.
- EndTime *time.Time
-
- // The maximum number of historical results you would like returned per page.
- // Defaults to 100.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The start of the time period for which you are looking for history. If you omit
- // this option, it will default to the value of EndTime.
- StartTime *time.Time
-
- // The ID of the VPC you want your history records filtered by.
- VpcId *string
-
- noSmithyDocumentSerde
-}
-
-type GetIpamAddressHistoryOutput struct {
-
- // A historical record for a CIDR within an IPAM scope. If the CIDR is associated
- // with an EC2 instance, you will see an object in the response for the instance
- // and one for the network interface.
- HistoryRecords []types.IpamAddressHistoryRecord
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetIpamAddressHistoryMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetIpamAddressHistory{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetIpamAddressHistory{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetIpamAddressHistory"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetIpamAddressHistoryValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetIpamAddressHistory(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// GetIpamAddressHistoryPaginatorOptions is the paginator options for
-// GetIpamAddressHistory
-type GetIpamAddressHistoryPaginatorOptions struct {
- // The maximum number of historical results you would like returned per page.
- // Defaults to 100.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// GetIpamAddressHistoryPaginator is a paginator for GetIpamAddressHistory
-type GetIpamAddressHistoryPaginator struct {
- options GetIpamAddressHistoryPaginatorOptions
- client GetIpamAddressHistoryAPIClient
- params *GetIpamAddressHistoryInput
- nextToken *string
- firstPage bool
-}
-
-// NewGetIpamAddressHistoryPaginator returns a new GetIpamAddressHistoryPaginator
-func NewGetIpamAddressHistoryPaginator(client GetIpamAddressHistoryAPIClient, params *GetIpamAddressHistoryInput, optFns ...func(*GetIpamAddressHistoryPaginatorOptions)) *GetIpamAddressHistoryPaginator {
- if params == nil {
- params = &GetIpamAddressHistoryInput{}
- }
-
- options := GetIpamAddressHistoryPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &GetIpamAddressHistoryPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *GetIpamAddressHistoryPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next GetIpamAddressHistory page.
-func (p *GetIpamAddressHistoryPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetIpamAddressHistoryOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.GetIpamAddressHistory(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// GetIpamAddressHistoryAPIClient is a client that implements the
-// GetIpamAddressHistory operation.
-type GetIpamAddressHistoryAPIClient interface {
- GetIpamAddressHistory(context.Context, *GetIpamAddressHistoryInput, ...func(*Options)) (*GetIpamAddressHistoryOutput, error)
-}
-
-var _ GetIpamAddressHistoryAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opGetIpamAddressHistory(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetIpamAddressHistory",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamDiscoveredAccounts.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamDiscoveredAccounts.go
deleted file mode 100644
index 0ca614048..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamDiscoveredAccounts.go
+++ /dev/null
@@ -1,284 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Gets IPAM discovered accounts. A discovered account is an Amazon Web Services
-// account that is monitored under a resource discovery. If you have integrated
-// IPAM with Amazon Web Services Organizations, all accounts in the organization
-// are discovered accounts. Only the IPAM account can get all discovered accounts
-// in the organization.
-func (c *Client) GetIpamDiscoveredAccounts(ctx context.Context, params *GetIpamDiscoveredAccountsInput, optFns ...func(*Options)) (*GetIpamDiscoveredAccountsOutput, error) {
- if params == nil {
- params = &GetIpamDiscoveredAccountsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetIpamDiscoveredAccounts", params, optFns, c.addOperationGetIpamDiscoveredAccountsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetIpamDiscoveredAccountsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetIpamDiscoveredAccountsInput struct {
-
- // The Amazon Web Services Region that the account information is returned from.
- //
- // This member is required.
- DiscoveryRegion *string
-
- // A resource discovery ID.
- //
- // This member is required.
- IpamResourceDiscoveryId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Discovered account filters.
- Filters []types.Filter
-
- // The maximum number of discovered accounts to return in one page of results.
- MaxResults *int32
-
- // Specify the pagination token from a previous request to retrieve the next page
- // of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type GetIpamDiscoveredAccountsOutput struct {
-
- // Discovered accounts.
- IpamDiscoveredAccounts []types.IpamDiscoveredAccount
-
- // Specify the pagination token from a previous request to retrieve the next page
- // of results.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetIpamDiscoveredAccountsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetIpamDiscoveredAccounts{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetIpamDiscoveredAccounts{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetIpamDiscoveredAccounts"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetIpamDiscoveredAccountsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetIpamDiscoveredAccounts(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// GetIpamDiscoveredAccountsPaginatorOptions is the paginator options for
-// GetIpamDiscoveredAccounts
-type GetIpamDiscoveredAccountsPaginatorOptions struct {
- // The maximum number of discovered accounts to return in one page of results.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// GetIpamDiscoveredAccountsPaginator is a paginator for GetIpamDiscoveredAccounts
-type GetIpamDiscoveredAccountsPaginator struct {
- options GetIpamDiscoveredAccountsPaginatorOptions
- client GetIpamDiscoveredAccountsAPIClient
- params *GetIpamDiscoveredAccountsInput
- nextToken *string
- firstPage bool
-}
-
-// NewGetIpamDiscoveredAccountsPaginator returns a new
-// GetIpamDiscoveredAccountsPaginator
-func NewGetIpamDiscoveredAccountsPaginator(client GetIpamDiscoveredAccountsAPIClient, params *GetIpamDiscoveredAccountsInput, optFns ...func(*GetIpamDiscoveredAccountsPaginatorOptions)) *GetIpamDiscoveredAccountsPaginator {
- if params == nil {
- params = &GetIpamDiscoveredAccountsInput{}
- }
-
- options := GetIpamDiscoveredAccountsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &GetIpamDiscoveredAccountsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *GetIpamDiscoveredAccountsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next GetIpamDiscoveredAccounts page.
-func (p *GetIpamDiscoveredAccountsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetIpamDiscoveredAccountsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.GetIpamDiscoveredAccounts(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// GetIpamDiscoveredAccountsAPIClient is a client that implements the
-// GetIpamDiscoveredAccounts operation.
-type GetIpamDiscoveredAccountsAPIClient interface {
- GetIpamDiscoveredAccounts(context.Context, *GetIpamDiscoveredAccountsInput, ...func(*Options)) (*GetIpamDiscoveredAccountsOutput, error)
-}
-
-var _ GetIpamDiscoveredAccountsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opGetIpamDiscoveredAccounts(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetIpamDiscoveredAccounts",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamDiscoveredPublicAddresses.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamDiscoveredPublicAddresses.go
deleted file mode 100644
index d9195575b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamDiscoveredPublicAddresses.go
+++ /dev/null
@@ -1,189 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Gets the public IP addresses that have been discovered by IPAM.
-func (c *Client) GetIpamDiscoveredPublicAddresses(ctx context.Context, params *GetIpamDiscoveredPublicAddressesInput, optFns ...func(*Options)) (*GetIpamDiscoveredPublicAddressesOutput, error) {
- if params == nil {
- params = &GetIpamDiscoveredPublicAddressesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetIpamDiscoveredPublicAddresses", params, optFns, c.addOperationGetIpamDiscoveredPublicAddressesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetIpamDiscoveredPublicAddressesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetIpamDiscoveredPublicAddressesInput struct {
-
- // The Amazon Web Services Region for the IP address.
- //
- // This member is required.
- AddressRegion *string
-
- // An IPAM resource discovery ID.
- //
- // This member is required.
- IpamResourceDiscoveryId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Filters.
- Filters []types.Filter
-
- // The maximum number of IPAM discovered public addresses to return in one page of
- // results.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type GetIpamDiscoveredPublicAddressesOutput struct {
-
- // IPAM discovered public addresses.
- IpamDiscoveredPublicAddresses []types.IpamDiscoveredPublicAddress
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // The oldest successful resource discovery time.
- OldestSampleTime *time.Time
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetIpamDiscoveredPublicAddressesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetIpamDiscoveredPublicAddresses{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetIpamDiscoveredPublicAddresses{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetIpamDiscoveredPublicAddresses"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetIpamDiscoveredPublicAddressesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetIpamDiscoveredPublicAddresses(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetIpamDiscoveredPublicAddresses(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetIpamDiscoveredPublicAddresses",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamDiscoveredResourceCidrs.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamDiscoveredResourceCidrs.go
deleted file mode 100644
index 5fe6bc08f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamDiscoveredResourceCidrs.go
+++ /dev/null
@@ -1,286 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Returns the resource CIDRs that are monitored as part of a resource discovery.
-// A discovered resource is a resource CIDR monitored under a resource discovery.
-// The following resources can be discovered: VPCs, Public IPv4 pools, VPC subnets,
-// and Elastic IP addresses.
-func (c *Client) GetIpamDiscoveredResourceCidrs(ctx context.Context, params *GetIpamDiscoveredResourceCidrsInput, optFns ...func(*Options)) (*GetIpamDiscoveredResourceCidrsOutput, error) {
- if params == nil {
- params = &GetIpamDiscoveredResourceCidrsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetIpamDiscoveredResourceCidrs", params, optFns, c.addOperationGetIpamDiscoveredResourceCidrsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetIpamDiscoveredResourceCidrsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetIpamDiscoveredResourceCidrsInput struct {
-
- // A resource discovery ID.
- //
- // This member is required.
- IpamResourceDiscoveryId *string
-
- // A resource Region.
- //
- // This member is required.
- ResourceRegion *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Filters.
- Filters []types.Filter
-
- // The maximum number of discovered resource CIDRs to return in one page of
- // results.
- MaxResults *int32
-
- // Specify the pagination token from a previous request to retrieve the next page
- // of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type GetIpamDiscoveredResourceCidrsOutput struct {
-
- // Discovered resource CIDRs.
- IpamDiscoveredResourceCidrs []types.IpamDiscoveredResourceCidr
-
- // Specify the pagination token from a previous request to retrieve the next page
- // of results.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetIpamDiscoveredResourceCidrsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetIpamDiscoveredResourceCidrs{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetIpamDiscoveredResourceCidrs{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetIpamDiscoveredResourceCidrs"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetIpamDiscoveredResourceCidrsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetIpamDiscoveredResourceCidrs(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// GetIpamDiscoveredResourceCidrsPaginatorOptions is the paginator options for
-// GetIpamDiscoveredResourceCidrs
-type GetIpamDiscoveredResourceCidrsPaginatorOptions struct {
- // The maximum number of discovered resource CIDRs to return in one page of
- // results.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// GetIpamDiscoveredResourceCidrsPaginator is a paginator for
-// GetIpamDiscoveredResourceCidrs
-type GetIpamDiscoveredResourceCidrsPaginator struct {
- options GetIpamDiscoveredResourceCidrsPaginatorOptions
- client GetIpamDiscoveredResourceCidrsAPIClient
- params *GetIpamDiscoveredResourceCidrsInput
- nextToken *string
- firstPage bool
-}
-
-// NewGetIpamDiscoveredResourceCidrsPaginator returns a new
-// GetIpamDiscoveredResourceCidrsPaginator
-func NewGetIpamDiscoveredResourceCidrsPaginator(client GetIpamDiscoveredResourceCidrsAPIClient, params *GetIpamDiscoveredResourceCidrsInput, optFns ...func(*GetIpamDiscoveredResourceCidrsPaginatorOptions)) *GetIpamDiscoveredResourceCidrsPaginator {
- if params == nil {
- params = &GetIpamDiscoveredResourceCidrsInput{}
- }
-
- options := GetIpamDiscoveredResourceCidrsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &GetIpamDiscoveredResourceCidrsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *GetIpamDiscoveredResourceCidrsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next GetIpamDiscoveredResourceCidrs page.
-func (p *GetIpamDiscoveredResourceCidrsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetIpamDiscoveredResourceCidrsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.GetIpamDiscoveredResourceCidrs(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// GetIpamDiscoveredResourceCidrsAPIClient is a client that implements the
-// GetIpamDiscoveredResourceCidrs operation.
-type GetIpamDiscoveredResourceCidrsAPIClient interface {
- GetIpamDiscoveredResourceCidrs(context.Context, *GetIpamDiscoveredResourceCidrsInput, ...func(*Options)) (*GetIpamDiscoveredResourceCidrsOutput, error)
-}
-
-var _ GetIpamDiscoveredResourceCidrsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opGetIpamDiscoveredResourceCidrs(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetIpamDiscoveredResourceCidrs",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamPoolAllocations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamPoolAllocations.go
deleted file mode 100644
index ef1d1f0ca..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamPoolAllocations.go
+++ /dev/null
@@ -1,287 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Get a list of all the CIDR allocations in an IPAM pool. The Region you use
-// should be the IPAM pool locale. The locale is the Amazon Web Services Region
-// where this IPAM pool is available for allocations.
-//
-// If you use this action after [AllocateIpamPoolCidr] or [ReleaseIpamPoolAllocation], note that all EC2 API actions follow an [eventual consistency]
-// model.
-//
-// [ReleaseIpamPoolAllocation]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ReleaseIpamPoolAllocation.html
-// [AllocateIpamPoolCidr]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_AllocateIpamPoolCidr.html
-// [eventual consistency]: https://docs.aws.amazon.com/ec2/latest/devguide/eventual-consistency.html
-func (c *Client) GetIpamPoolAllocations(ctx context.Context, params *GetIpamPoolAllocationsInput, optFns ...func(*Options)) (*GetIpamPoolAllocationsOutput, error) {
- if params == nil {
- params = &GetIpamPoolAllocationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetIpamPoolAllocations", params, optFns, c.addOperationGetIpamPoolAllocationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetIpamPoolAllocationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetIpamPoolAllocationsInput struct {
-
- // The ID of the IPAM pool you want to see the allocations for.
- //
- // This member is required.
- IpamPoolId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters for the request. For more information about filtering, see [Filtering CLI output].
- //
- // [Filtering CLI output]: https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html
- Filters []types.Filter
-
- // The ID of the allocation.
- IpamPoolAllocationId *string
-
- // The maximum number of results you would like returned per page.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type GetIpamPoolAllocationsOutput struct {
-
- // The IPAM pool allocations you want information on.
- IpamPoolAllocations []types.IpamPoolAllocation
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetIpamPoolAllocationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetIpamPoolAllocations{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetIpamPoolAllocations{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetIpamPoolAllocations"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetIpamPoolAllocationsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetIpamPoolAllocations(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// GetIpamPoolAllocationsPaginatorOptions is the paginator options for
-// GetIpamPoolAllocations
-type GetIpamPoolAllocationsPaginatorOptions struct {
- // The maximum number of results you would like returned per page.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// GetIpamPoolAllocationsPaginator is a paginator for GetIpamPoolAllocations
-type GetIpamPoolAllocationsPaginator struct {
- options GetIpamPoolAllocationsPaginatorOptions
- client GetIpamPoolAllocationsAPIClient
- params *GetIpamPoolAllocationsInput
- nextToken *string
- firstPage bool
-}
-
-// NewGetIpamPoolAllocationsPaginator returns a new GetIpamPoolAllocationsPaginator
-func NewGetIpamPoolAllocationsPaginator(client GetIpamPoolAllocationsAPIClient, params *GetIpamPoolAllocationsInput, optFns ...func(*GetIpamPoolAllocationsPaginatorOptions)) *GetIpamPoolAllocationsPaginator {
- if params == nil {
- params = &GetIpamPoolAllocationsInput{}
- }
-
- options := GetIpamPoolAllocationsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &GetIpamPoolAllocationsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *GetIpamPoolAllocationsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next GetIpamPoolAllocations page.
-func (p *GetIpamPoolAllocationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetIpamPoolAllocationsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.GetIpamPoolAllocations(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// GetIpamPoolAllocationsAPIClient is a client that implements the
-// GetIpamPoolAllocations operation.
-type GetIpamPoolAllocationsAPIClient interface {
- GetIpamPoolAllocations(context.Context, *GetIpamPoolAllocationsInput, ...func(*Options)) (*GetIpamPoolAllocationsOutput, error)
-}
-
-var _ GetIpamPoolAllocationsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opGetIpamPoolAllocations(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetIpamPoolAllocations",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamPoolCidrs.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamPoolCidrs.go
deleted file mode 100644
index b0d8904f8..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamPoolCidrs.go
+++ /dev/null
@@ -1,274 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Get the CIDRs provisioned to an IPAM pool.
-func (c *Client) GetIpamPoolCidrs(ctx context.Context, params *GetIpamPoolCidrsInput, optFns ...func(*Options)) (*GetIpamPoolCidrsOutput, error) {
- if params == nil {
- params = &GetIpamPoolCidrsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetIpamPoolCidrs", params, optFns, c.addOperationGetIpamPoolCidrsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetIpamPoolCidrsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetIpamPoolCidrsInput struct {
-
- // The ID of the IPAM pool you want the CIDR for.
- //
- // This member is required.
- IpamPoolId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters for the request. For more information about filtering, see [Filtering CLI output].
- //
- // [Filtering CLI output]: https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html
- Filters []types.Filter
-
- // The maximum number of results to return in the request.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type GetIpamPoolCidrsOutput struct {
-
- // Information about the CIDRs provisioned to an IPAM pool.
- IpamPoolCidrs []types.IpamPoolCidr
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetIpamPoolCidrsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetIpamPoolCidrs{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetIpamPoolCidrs{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetIpamPoolCidrs"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetIpamPoolCidrsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetIpamPoolCidrs(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// GetIpamPoolCidrsPaginatorOptions is the paginator options for GetIpamPoolCidrs
-type GetIpamPoolCidrsPaginatorOptions struct {
- // The maximum number of results to return in the request.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// GetIpamPoolCidrsPaginator is a paginator for GetIpamPoolCidrs
-type GetIpamPoolCidrsPaginator struct {
- options GetIpamPoolCidrsPaginatorOptions
- client GetIpamPoolCidrsAPIClient
- params *GetIpamPoolCidrsInput
- nextToken *string
- firstPage bool
-}
-
-// NewGetIpamPoolCidrsPaginator returns a new GetIpamPoolCidrsPaginator
-func NewGetIpamPoolCidrsPaginator(client GetIpamPoolCidrsAPIClient, params *GetIpamPoolCidrsInput, optFns ...func(*GetIpamPoolCidrsPaginatorOptions)) *GetIpamPoolCidrsPaginator {
- if params == nil {
- params = &GetIpamPoolCidrsInput{}
- }
-
- options := GetIpamPoolCidrsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &GetIpamPoolCidrsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *GetIpamPoolCidrsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next GetIpamPoolCidrs page.
-func (p *GetIpamPoolCidrsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetIpamPoolCidrsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.GetIpamPoolCidrs(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// GetIpamPoolCidrsAPIClient is a client that implements the GetIpamPoolCidrs
-// operation.
-type GetIpamPoolCidrsAPIClient interface {
- GetIpamPoolCidrs(context.Context, *GetIpamPoolCidrsInput, ...func(*Options)) (*GetIpamPoolCidrsOutput, error)
-}
-
-var _ GetIpamPoolCidrsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opGetIpamPoolCidrs(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetIpamPoolCidrs",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamResourceCidrs.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamResourceCidrs.go
deleted file mode 100644
index 6fcebbdd7..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetIpamResourceCidrs.go
+++ /dev/null
@@ -1,294 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Returns resource CIDRs managed by IPAM in a given scope. If an IPAM is
-// associated with more than one resource discovery, the resource CIDRs across all
-// of the resource discoveries is returned. A resource discovery is an IPAM
-// component that enables IPAM to manage and monitor resources that belong to the
-// owning account.
-func (c *Client) GetIpamResourceCidrs(ctx context.Context, params *GetIpamResourceCidrsInput, optFns ...func(*Options)) (*GetIpamResourceCidrsOutput, error) {
- if params == nil {
- params = &GetIpamResourceCidrsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetIpamResourceCidrs", params, optFns, c.addOperationGetIpamResourceCidrsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetIpamResourceCidrsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetIpamResourceCidrsInput struct {
-
- // The ID of the scope that the resource is in.
- //
- // This member is required.
- IpamScopeId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters for the request. For more information about filtering, see [Filtering CLI output].
- //
- // [Filtering CLI output]: https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html
- Filters []types.Filter
-
- // The ID of the IPAM pool that the resource is in.
- IpamPoolId *string
-
- // The maximum number of results to return in the request.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The ID of the resource.
- ResourceId *string
-
- // The ID of the Amazon Web Services account that owns the resource.
- ResourceOwner *string
-
- // The resource tag.
- ResourceTag *types.RequestIpamResourceTag
-
- // The resource type.
- ResourceType types.IpamResourceType
-
- noSmithyDocumentSerde
-}
-
-type GetIpamResourceCidrsOutput struct {
-
- // The resource CIDRs.
- IpamResourceCidrs []types.IpamResourceCidr
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetIpamResourceCidrsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetIpamResourceCidrs{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetIpamResourceCidrs{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetIpamResourceCidrs"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetIpamResourceCidrsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetIpamResourceCidrs(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// GetIpamResourceCidrsPaginatorOptions is the paginator options for
-// GetIpamResourceCidrs
-type GetIpamResourceCidrsPaginatorOptions struct {
- // The maximum number of results to return in the request.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// GetIpamResourceCidrsPaginator is a paginator for GetIpamResourceCidrs
-type GetIpamResourceCidrsPaginator struct {
- options GetIpamResourceCidrsPaginatorOptions
- client GetIpamResourceCidrsAPIClient
- params *GetIpamResourceCidrsInput
- nextToken *string
- firstPage bool
-}
-
-// NewGetIpamResourceCidrsPaginator returns a new GetIpamResourceCidrsPaginator
-func NewGetIpamResourceCidrsPaginator(client GetIpamResourceCidrsAPIClient, params *GetIpamResourceCidrsInput, optFns ...func(*GetIpamResourceCidrsPaginatorOptions)) *GetIpamResourceCidrsPaginator {
- if params == nil {
- params = &GetIpamResourceCidrsInput{}
- }
-
- options := GetIpamResourceCidrsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &GetIpamResourceCidrsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *GetIpamResourceCidrsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next GetIpamResourceCidrs page.
-func (p *GetIpamResourceCidrsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetIpamResourceCidrsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.GetIpamResourceCidrs(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// GetIpamResourceCidrsAPIClient is a client that implements the
-// GetIpamResourceCidrs operation.
-type GetIpamResourceCidrsAPIClient interface {
- GetIpamResourceCidrs(context.Context, *GetIpamResourceCidrsInput, ...func(*Options)) (*GetIpamResourceCidrsOutput, error)
-}
-
-var _ GetIpamResourceCidrsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opGetIpamResourceCidrs(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetIpamResourceCidrs",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetLaunchTemplateData.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetLaunchTemplateData.go
deleted file mode 100644
index 3cf2728f8..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetLaunchTemplateData.go
+++ /dev/null
@@ -1,174 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Retrieves the configuration data of the specified instance. You can use this
-// data to create a launch template.
-//
-// This action calls on other describe actions to get instance information.
-// Depending on your instance configuration, you may need to allow the following
-// actions in your IAM policy: DescribeSpotInstanceRequests ,
-// DescribeInstanceCreditSpecifications , DescribeVolumes , and
-// DescribeInstanceAttribute . Or, you can allow describe* depending on your
-// instance requirements.
-func (c *Client) GetLaunchTemplateData(ctx context.Context, params *GetLaunchTemplateDataInput, optFns ...func(*Options)) (*GetLaunchTemplateDataOutput, error) {
- if params == nil {
- params = &GetLaunchTemplateDataInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetLaunchTemplateData", params, optFns, c.addOperationGetLaunchTemplateDataMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetLaunchTemplateDataOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetLaunchTemplateDataInput struct {
-
- // The ID of the instance.
- //
- // This member is required.
- InstanceId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type GetLaunchTemplateDataOutput struct {
-
- // The instance data.
- LaunchTemplateData *types.ResponseLaunchTemplateData
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetLaunchTemplateDataMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetLaunchTemplateData{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetLaunchTemplateData{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetLaunchTemplateData"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetLaunchTemplateDataValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetLaunchTemplateData(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetLaunchTemplateData(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetLaunchTemplateData",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetManagedPrefixListAssociations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetManagedPrefixListAssociations.go
deleted file mode 100644
index 2c72a29d8..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetManagedPrefixListAssociations.go
+++ /dev/null
@@ -1,275 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Gets information about the resources that are associated with the specified
-// managed prefix list.
-func (c *Client) GetManagedPrefixListAssociations(ctx context.Context, params *GetManagedPrefixListAssociationsInput, optFns ...func(*Options)) (*GetManagedPrefixListAssociationsOutput, error) {
- if params == nil {
- params = &GetManagedPrefixListAssociationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetManagedPrefixListAssociations", params, optFns, c.addOperationGetManagedPrefixListAssociationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetManagedPrefixListAssociationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetManagedPrefixListAssociationsInput struct {
-
- // The ID of the prefix list.
- //
- // This member is required.
- PrefixListId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type GetManagedPrefixListAssociationsOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the associations.
- PrefixListAssociations []types.PrefixListAssociation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetManagedPrefixListAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetManagedPrefixListAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetManagedPrefixListAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetManagedPrefixListAssociations"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetManagedPrefixListAssociationsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetManagedPrefixListAssociations(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// GetManagedPrefixListAssociationsPaginatorOptions is the paginator options for
-// GetManagedPrefixListAssociations
-type GetManagedPrefixListAssociationsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// GetManagedPrefixListAssociationsPaginator is a paginator for
-// GetManagedPrefixListAssociations
-type GetManagedPrefixListAssociationsPaginator struct {
- options GetManagedPrefixListAssociationsPaginatorOptions
- client GetManagedPrefixListAssociationsAPIClient
- params *GetManagedPrefixListAssociationsInput
- nextToken *string
- firstPage bool
-}
-
-// NewGetManagedPrefixListAssociationsPaginator returns a new
-// GetManagedPrefixListAssociationsPaginator
-func NewGetManagedPrefixListAssociationsPaginator(client GetManagedPrefixListAssociationsAPIClient, params *GetManagedPrefixListAssociationsInput, optFns ...func(*GetManagedPrefixListAssociationsPaginatorOptions)) *GetManagedPrefixListAssociationsPaginator {
- if params == nil {
- params = &GetManagedPrefixListAssociationsInput{}
- }
-
- options := GetManagedPrefixListAssociationsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &GetManagedPrefixListAssociationsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *GetManagedPrefixListAssociationsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next GetManagedPrefixListAssociations page.
-func (p *GetManagedPrefixListAssociationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetManagedPrefixListAssociationsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.GetManagedPrefixListAssociations(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// GetManagedPrefixListAssociationsAPIClient is a client that implements the
-// GetManagedPrefixListAssociations operation.
-type GetManagedPrefixListAssociationsAPIClient interface {
- GetManagedPrefixListAssociations(context.Context, *GetManagedPrefixListAssociationsInput, ...func(*Options)) (*GetManagedPrefixListAssociationsOutput, error)
-}
-
-var _ GetManagedPrefixListAssociationsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opGetManagedPrefixListAssociations(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetManagedPrefixListAssociations",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetManagedPrefixListEntries.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetManagedPrefixListEntries.go
deleted file mode 100644
index b9e52a382..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetManagedPrefixListEntries.go
+++ /dev/null
@@ -1,278 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Gets information about the entries for a specified managed prefix list.
-func (c *Client) GetManagedPrefixListEntries(ctx context.Context, params *GetManagedPrefixListEntriesInput, optFns ...func(*Options)) (*GetManagedPrefixListEntriesOutput, error) {
- if params == nil {
- params = &GetManagedPrefixListEntriesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetManagedPrefixListEntries", params, optFns, c.addOperationGetManagedPrefixListEntriesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetManagedPrefixListEntriesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetManagedPrefixListEntriesInput struct {
-
- // The ID of the prefix list.
- //
- // This member is required.
- PrefixListId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- // The version of the prefix list for which to return the entries. The default is
- // the current version.
- TargetVersion *int64
-
- noSmithyDocumentSerde
-}
-
-type GetManagedPrefixListEntriesOutput struct {
-
- // Information about the prefix list entries.
- Entries []types.PrefixListEntry
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetManagedPrefixListEntriesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetManagedPrefixListEntries{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetManagedPrefixListEntries{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetManagedPrefixListEntries"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetManagedPrefixListEntriesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetManagedPrefixListEntries(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// GetManagedPrefixListEntriesPaginatorOptions is the paginator options for
-// GetManagedPrefixListEntries
-type GetManagedPrefixListEntriesPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// GetManagedPrefixListEntriesPaginator is a paginator for
-// GetManagedPrefixListEntries
-type GetManagedPrefixListEntriesPaginator struct {
- options GetManagedPrefixListEntriesPaginatorOptions
- client GetManagedPrefixListEntriesAPIClient
- params *GetManagedPrefixListEntriesInput
- nextToken *string
- firstPage bool
-}
-
-// NewGetManagedPrefixListEntriesPaginator returns a new
-// GetManagedPrefixListEntriesPaginator
-func NewGetManagedPrefixListEntriesPaginator(client GetManagedPrefixListEntriesAPIClient, params *GetManagedPrefixListEntriesInput, optFns ...func(*GetManagedPrefixListEntriesPaginatorOptions)) *GetManagedPrefixListEntriesPaginator {
- if params == nil {
- params = &GetManagedPrefixListEntriesInput{}
- }
-
- options := GetManagedPrefixListEntriesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &GetManagedPrefixListEntriesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *GetManagedPrefixListEntriesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next GetManagedPrefixListEntries page.
-func (p *GetManagedPrefixListEntriesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetManagedPrefixListEntriesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.GetManagedPrefixListEntries(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// GetManagedPrefixListEntriesAPIClient is a client that implements the
-// GetManagedPrefixListEntries operation.
-type GetManagedPrefixListEntriesAPIClient interface {
- GetManagedPrefixListEntries(context.Context, *GetManagedPrefixListEntriesInput, ...func(*Options)) (*GetManagedPrefixListEntriesOutput, error)
-}
-
-var _ GetManagedPrefixListEntriesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opGetManagedPrefixListEntries(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetManagedPrefixListEntries",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetNetworkInsightsAccessScopeAnalysisFindings.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetNetworkInsightsAccessScopeAnalysisFindings.go
deleted file mode 100644
index 28a222611..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetNetworkInsightsAccessScopeAnalysisFindings.go
+++ /dev/null
@@ -1,280 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Gets the findings for the specified Network Access Scope analysis.
-func (c *Client) GetNetworkInsightsAccessScopeAnalysisFindings(ctx context.Context, params *GetNetworkInsightsAccessScopeAnalysisFindingsInput, optFns ...func(*Options)) (*GetNetworkInsightsAccessScopeAnalysisFindingsOutput, error) {
- if params == nil {
- params = &GetNetworkInsightsAccessScopeAnalysisFindingsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetNetworkInsightsAccessScopeAnalysisFindings", params, optFns, c.addOperationGetNetworkInsightsAccessScopeAnalysisFindingsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetNetworkInsightsAccessScopeAnalysisFindingsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetNetworkInsightsAccessScopeAnalysisFindingsInput struct {
-
- // The ID of the Network Access Scope analysis.
- //
- // This member is required.
- NetworkInsightsAccessScopeAnalysisId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type GetNetworkInsightsAccessScopeAnalysisFindingsOutput struct {
-
- // The findings associated with Network Access Scope Analysis.
- AnalysisFindings []types.AccessScopeAnalysisFinding
-
- // The status of Network Access Scope Analysis.
- AnalysisStatus types.AnalysisStatus
-
- // The ID of the Network Access Scope analysis.
- NetworkInsightsAccessScopeAnalysisId *string
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetNetworkInsightsAccessScopeAnalysisFindingsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetNetworkInsightsAccessScopeAnalysisFindings{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetNetworkInsightsAccessScopeAnalysisFindings{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetNetworkInsightsAccessScopeAnalysisFindings"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetNetworkInsightsAccessScopeAnalysisFindingsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetNetworkInsightsAccessScopeAnalysisFindings(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// GetNetworkInsightsAccessScopeAnalysisFindingsPaginatorOptions is the paginator
-// options for GetNetworkInsightsAccessScopeAnalysisFindings
-type GetNetworkInsightsAccessScopeAnalysisFindingsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// GetNetworkInsightsAccessScopeAnalysisFindingsPaginator is a paginator for
-// GetNetworkInsightsAccessScopeAnalysisFindings
-type GetNetworkInsightsAccessScopeAnalysisFindingsPaginator struct {
- options GetNetworkInsightsAccessScopeAnalysisFindingsPaginatorOptions
- client GetNetworkInsightsAccessScopeAnalysisFindingsAPIClient
- params *GetNetworkInsightsAccessScopeAnalysisFindingsInput
- nextToken *string
- firstPage bool
-}
-
-// NewGetNetworkInsightsAccessScopeAnalysisFindingsPaginator returns a new
-// GetNetworkInsightsAccessScopeAnalysisFindingsPaginator
-func NewGetNetworkInsightsAccessScopeAnalysisFindingsPaginator(client GetNetworkInsightsAccessScopeAnalysisFindingsAPIClient, params *GetNetworkInsightsAccessScopeAnalysisFindingsInput, optFns ...func(*GetNetworkInsightsAccessScopeAnalysisFindingsPaginatorOptions)) *GetNetworkInsightsAccessScopeAnalysisFindingsPaginator {
- if params == nil {
- params = &GetNetworkInsightsAccessScopeAnalysisFindingsInput{}
- }
-
- options := GetNetworkInsightsAccessScopeAnalysisFindingsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &GetNetworkInsightsAccessScopeAnalysisFindingsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *GetNetworkInsightsAccessScopeAnalysisFindingsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next GetNetworkInsightsAccessScopeAnalysisFindings page.
-func (p *GetNetworkInsightsAccessScopeAnalysisFindingsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetNetworkInsightsAccessScopeAnalysisFindingsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.GetNetworkInsightsAccessScopeAnalysisFindings(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// GetNetworkInsightsAccessScopeAnalysisFindingsAPIClient is a client that
-// implements the GetNetworkInsightsAccessScopeAnalysisFindings operation.
-type GetNetworkInsightsAccessScopeAnalysisFindingsAPIClient interface {
- GetNetworkInsightsAccessScopeAnalysisFindings(context.Context, *GetNetworkInsightsAccessScopeAnalysisFindingsInput, ...func(*Options)) (*GetNetworkInsightsAccessScopeAnalysisFindingsOutput, error)
-}
-
-var _ GetNetworkInsightsAccessScopeAnalysisFindingsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opGetNetworkInsightsAccessScopeAnalysisFindings(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetNetworkInsightsAccessScopeAnalysisFindings",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetNetworkInsightsAccessScopeContent.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetNetworkInsightsAccessScopeContent.go
deleted file mode 100644
index c191bd80c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetNetworkInsightsAccessScopeContent.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Gets the content for the specified Network Access Scope.
-func (c *Client) GetNetworkInsightsAccessScopeContent(ctx context.Context, params *GetNetworkInsightsAccessScopeContentInput, optFns ...func(*Options)) (*GetNetworkInsightsAccessScopeContentOutput, error) {
- if params == nil {
- params = &GetNetworkInsightsAccessScopeContentInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetNetworkInsightsAccessScopeContent", params, optFns, c.addOperationGetNetworkInsightsAccessScopeContentMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetNetworkInsightsAccessScopeContentOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetNetworkInsightsAccessScopeContentInput struct {
-
- // The ID of the Network Access Scope.
- //
- // This member is required.
- NetworkInsightsAccessScopeId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type GetNetworkInsightsAccessScopeContentOutput struct {
-
- // The Network Access Scope content.
- NetworkInsightsAccessScopeContent *types.NetworkInsightsAccessScopeContent
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetNetworkInsightsAccessScopeContentMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetNetworkInsightsAccessScopeContent{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetNetworkInsightsAccessScopeContent{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetNetworkInsightsAccessScopeContent"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetNetworkInsightsAccessScopeContentValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetNetworkInsightsAccessScopeContent(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetNetworkInsightsAccessScopeContent(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetNetworkInsightsAccessScopeContent",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetPasswordData.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetPasswordData.go
deleted file mode 100644
index 9941ceda8..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetPasswordData.go
+++ /dev/null
@@ -1,389 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithytime "github.com/aws/smithy-go/time"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- smithywaiter "github.com/aws/smithy-go/waiter"
- "strconv"
- "time"
-)
-
-// Retrieves the encrypted administrator password for a running Windows instance.
-//
-// The Windows password is generated at boot by the EC2Config service or EC2Launch
-// scripts (Windows Server 2016 and later). This usually only happens the first
-// time an instance is launched. For more information, see [EC2Config]and [EC2Launch] in the Amazon EC2
-// User Guide.
-//
-// For the EC2Config service, the password is not generated for rebundled AMIs
-// unless Ec2SetPassword is enabled before bundling.
-//
-// The password is encrypted using the key pair that you specified when you
-// launched the instance. You must provide the corresponding key pair file.
-//
-// When you launch an instance, password generation and encryption may take a few
-// minutes. If you try to retrieve the password before it's available, the output
-// returns an empty string. We recommend that you wait up to 15 minutes after
-// launching an instance before trying to retrieve the generated password.
-//
-// [EC2Launch]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2launch.html
-// [EC2Config]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UsingConfig_WinAMI.html
-func (c *Client) GetPasswordData(ctx context.Context, params *GetPasswordDataInput, optFns ...func(*Options)) (*GetPasswordDataOutput, error) {
- if params == nil {
- params = &GetPasswordDataInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetPasswordData", params, optFns, c.addOperationGetPasswordDataMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetPasswordDataOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetPasswordDataInput struct {
-
- // The ID of the Windows instance.
- //
- // This member is required.
- InstanceId *string
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type GetPasswordDataOutput struct {
-
- // The ID of the Windows instance.
- InstanceId *string
-
- // The password of the instance. Returns an empty string if the password is not
- // available.
- PasswordData *string
-
- // The time the data was last updated.
- Timestamp *time.Time
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetPasswordDataMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetPasswordData{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetPasswordData{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetPasswordData"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetPasswordDataValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetPasswordData(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// PasswordDataAvailableWaiterOptions are waiter options for
-// PasswordDataAvailableWaiter
-type PasswordDataAvailableWaiterOptions struct {
-
- // Set of options to modify how an operation is invoked. These apply to all
- // operations invoked for this client. Use functional options on operation call to
- // modify this list for per operation behavior.
- //
- // Passing options here is functionally equivalent to passing values to this
- // config's ClientOptions field that extend the inner client's APIOptions directly.
- APIOptions []func(*middleware.Stack) error
-
- // Functional options to be passed to all operations invoked by this client.
- //
- // Function values that modify the inner APIOptions are applied after the waiter
- // config's own APIOptions modifiers.
- ClientOptions []func(*Options)
-
- // MinDelay is the minimum amount of time to delay between retries. If unset,
- // PasswordDataAvailableWaiter will use default minimum delay of 15 seconds. Note
- // that MinDelay must resolve to a value lesser than or equal to the MaxDelay.
- MinDelay time.Duration
-
- // MaxDelay is the maximum amount of time to delay between retries. If unset or
- // set to zero, PasswordDataAvailableWaiter will use default max delay of 120
- // seconds. Note that MaxDelay must resolve to value greater than or equal to the
- // MinDelay.
- MaxDelay time.Duration
-
- // LogWaitAttempts is used to enable logging for waiter retry attempts
- LogWaitAttempts bool
-
- // Retryable is function that can be used to override the service defined
- // waiter-behavior based on operation output, or returned error. This function is
- // used by the waiter to decide if a state is retryable or a terminal state.
- //
- // By default service-modeled logic will populate this option. This option can
- // thus be used to define a custom waiter state with fall-back to service-modeled
- // waiter state mutators.The function returns an error in case of a failure state.
- // In case of retry state, this function returns a bool value of true and nil
- // error, while in case of success it returns a bool value of false and nil error.
- Retryable func(context.Context, *GetPasswordDataInput, *GetPasswordDataOutput, error) (bool, error)
-}
-
-// PasswordDataAvailableWaiter defines the waiters for PasswordDataAvailable
-type PasswordDataAvailableWaiter struct {
- client GetPasswordDataAPIClient
-
- options PasswordDataAvailableWaiterOptions
-}
-
-// NewPasswordDataAvailableWaiter constructs a PasswordDataAvailableWaiter.
-func NewPasswordDataAvailableWaiter(client GetPasswordDataAPIClient, optFns ...func(*PasswordDataAvailableWaiterOptions)) *PasswordDataAvailableWaiter {
- options := PasswordDataAvailableWaiterOptions{}
- options.MinDelay = 15 * time.Second
- options.MaxDelay = 120 * time.Second
- options.Retryable = passwordDataAvailableStateRetryable
-
- for _, fn := range optFns {
- fn(&options)
- }
- return &PasswordDataAvailableWaiter{
- client: client,
- options: options,
- }
-}
-
-// Wait calls the waiter function for PasswordDataAvailable waiter. The maxWaitDur
-// is the maximum wait duration the waiter will wait. The maxWaitDur is required
-// and must be greater than zero.
-func (w *PasswordDataAvailableWaiter) Wait(ctx context.Context, params *GetPasswordDataInput, maxWaitDur time.Duration, optFns ...func(*PasswordDataAvailableWaiterOptions)) error {
- _, err := w.WaitForOutput(ctx, params, maxWaitDur, optFns...)
- return err
-}
-
-// WaitForOutput calls the waiter function for PasswordDataAvailable waiter and
-// returns the output of the successful operation. The maxWaitDur is the maximum
-// wait duration the waiter will wait. The maxWaitDur is required and must be
-// greater than zero.
-func (w *PasswordDataAvailableWaiter) WaitForOutput(ctx context.Context, params *GetPasswordDataInput, maxWaitDur time.Duration, optFns ...func(*PasswordDataAvailableWaiterOptions)) (*GetPasswordDataOutput, error) {
- if maxWaitDur <= 0 {
- return nil, fmt.Errorf("maximum wait time for waiter must be greater than zero")
- }
-
- options := w.options
- for _, fn := range optFns {
- fn(&options)
- }
-
- if options.MaxDelay <= 0 {
- options.MaxDelay = 120 * time.Second
- }
-
- if options.MinDelay > options.MaxDelay {
- return nil, fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay)
- }
-
- ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur)
- defer cancelFn()
-
- logger := smithywaiter.Logger{}
- remainingTime := maxWaitDur
-
- var attempt int64
- for {
-
- attempt++
- apiOptions := options.APIOptions
- start := time.Now()
-
- if options.LogWaitAttempts {
- logger.Attempt = attempt
- apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...)
- apiOptions = append(apiOptions, logger.AddLogger)
- }
-
- out, err := w.client.GetPasswordData(ctx, params, func(o *Options) {
- baseOpts := []func(*Options){
- addIsWaiterUserAgent,
- }
- o.APIOptions = append(o.APIOptions, apiOptions...)
- for _, opt := range baseOpts {
- opt(o)
- }
- for _, opt := range options.ClientOptions {
- opt(o)
- }
- })
-
- retryable, err := options.Retryable(ctx, params, out, err)
- if err != nil {
- return nil, err
- }
- if !retryable {
- return out, nil
- }
-
- remainingTime -= time.Since(start)
- if remainingTime < options.MinDelay || remainingTime <= 0 {
- break
- }
-
- // compute exponential backoff between waiter retries
- delay, err := smithywaiter.ComputeDelay(
- attempt, options.MinDelay, options.MaxDelay, remainingTime,
- )
- if err != nil {
- return nil, fmt.Errorf("error computing waiter delay, %w", err)
- }
-
- remainingTime -= delay
- // sleep for the delay amount before invoking a request
- if err := smithytime.SleepWithContext(ctx, delay); err != nil {
- return nil, fmt.Errorf("request cancelled while waiting, %w", err)
- }
- }
- return nil, fmt.Errorf("exceeded max wait time for PasswordDataAvailable waiter")
-}
-
-func passwordDataAvailableStateRetryable(ctx context.Context, input *GetPasswordDataInput, output *GetPasswordDataOutput, err error) (bool, error) {
-
- if err == nil {
- v1 := output.PasswordData
- var _v1 string
- if v1 != nil {
- _v1 = *v1
- }
- v2 := len(_v1)
- v3 := 0
- v4 := int64(v2) > int64(v3)
- expectedValue := "true"
- bv, err := strconv.ParseBool(expectedValue)
- if err != nil {
- return false, fmt.Errorf("error parsing boolean from string %w", err)
- }
- if v4 == bv {
- return false, nil
- }
- }
-
- if err != nil {
- return false, err
- }
- return true, nil
-}
-
-// GetPasswordDataAPIClient is a client that implements the GetPasswordData
-// operation.
-type GetPasswordDataAPIClient interface {
- GetPasswordData(context.Context, *GetPasswordDataInput, ...func(*Options)) (*GetPasswordDataOutput, error)
-}
-
-var _ GetPasswordDataAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opGetPasswordData(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetPasswordData",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetReservedInstancesExchangeQuote.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetReservedInstancesExchangeQuote.go
deleted file mode 100644
index f259cc0db..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetReservedInstancesExchangeQuote.go
+++ /dev/null
@@ -1,200 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Returns a quote and exchange information for exchanging one or more specified
-// Convertible Reserved Instances for a new Convertible Reserved Instance. If the
-// exchange cannot be performed, the reason is returned in the response. Use AcceptReservedInstancesExchangeQuoteto
-// perform the exchange.
-func (c *Client) GetReservedInstancesExchangeQuote(ctx context.Context, params *GetReservedInstancesExchangeQuoteInput, optFns ...func(*Options)) (*GetReservedInstancesExchangeQuoteOutput, error) {
- if params == nil {
- params = &GetReservedInstancesExchangeQuoteInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetReservedInstancesExchangeQuote", params, optFns, c.addOperationGetReservedInstancesExchangeQuoteMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetReservedInstancesExchangeQuoteOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for GetReservedInstanceExchangeQuote.
-type GetReservedInstancesExchangeQuoteInput struct {
-
- // The IDs of the Convertible Reserved Instances to exchange.
- //
- // This member is required.
- ReservedInstanceIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The configuration of the target Convertible Reserved Instance to exchange for
- // your current Convertible Reserved Instances.
- TargetConfigurations []types.TargetConfigurationRequest
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of GetReservedInstancesExchangeQuote.
-type GetReservedInstancesExchangeQuoteOutput struct {
-
- // The currency of the transaction.
- CurrencyCode *string
-
- // If true , the exchange is valid. If false , the exchange cannot be completed.
- IsValidExchange *bool
-
- // The new end date of the reservation term.
- OutputReservedInstancesWillExpireAt *time.Time
-
- // The total true upfront charge for the exchange.
- PaymentDue *string
-
- // The cost associated with the Reserved Instance.
- ReservedInstanceValueRollup *types.ReservationValue
-
- // The configuration of your Convertible Reserved Instances.
- ReservedInstanceValueSet []types.ReservedInstanceReservationValue
-
- // The cost associated with the Reserved Instance.
- TargetConfigurationValueRollup *types.ReservationValue
-
- // The values of the target Convertible Reserved Instances.
- TargetConfigurationValueSet []types.TargetReservationValue
-
- // Describes the reason why the exchange cannot be completed.
- ValidationFailureReason *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetReservedInstancesExchangeQuoteMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetReservedInstancesExchangeQuote{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetReservedInstancesExchangeQuote{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetReservedInstancesExchangeQuote"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetReservedInstancesExchangeQuoteValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetReservedInstancesExchangeQuote(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetReservedInstancesExchangeQuote(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetReservedInstancesExchangeQuote",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetRouteServerAssociations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetRouteServerAssociations.go
deleted file mode 100644
index e83eaee6b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetRouteServerAssociations.go
+++ /dev/null
@@ -1,173 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Gets information about the associations for the specified route server.
-//
-// A route server association is the connection established between a route server
-// and a VPC.
-//
-// For more information see [Dynamic routing in your VPC with VPC Route Server] in the Amazon VPC User Guide.
-//
-// [Dynamic routing in your VPC with VPC Route Server]: https://docs.aws.amazon.com/vpc/latest/userguide/dynamic-routing-route-server.html
-func (c *Client) GetRouteServerAssociations(ctx context.Context, params *GetRouteServerAssociationsInput, optFns ...func(*Options)) (*GetRouteServerAssociationsOutput, error) {
- if params == nil {
- params = &GetRouteServerAssociationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetRouteServerAssociations", params, optFns, c.addOperationGetRouteServerAssociationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetRouteServerAssociationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetRouteServerAssociationsInput struct {
-
- // The ID of the route server for which to get association information.
- //
- // This member is required.
- RouteServerId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type GetRouteServerAssociationsOutput struct {
-
- // Information about the associations for the specified route server.
- RouteServerAssociations []types.RouteServerAssociation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetRouteServerAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetRouteServerAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetRouteServerAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetRouteServerAssociations"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetRouteServerAssociationsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetRouteServerAssociations(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetRouteServerAssociations(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetRouteServerAssociations",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetRouteServerPropagations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetRouteServerPropagations.go
deleted file mode 100644
index 365d1b36d..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetRouteServerPropagations.go
+++ /dev/null
@@ -1,194 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Gets information about the route propagations for the specified route server.
-//
-// When enabled, route server propagation installs the routes in the FIB on the
-// route table you've specified. Route server supports IPv4 and IPv6 route
-// propagation.
-//
-// Amazon VPC Route Server simplifies routing for traffic between workloads that
-// are deployed within a VPC and its internet gateways. With this feature, VPC
-// Route Server dynamically updates VPC and internet gateway route tables with your
-// preferred IPv4 or IPv6 routes to achieve routing fault tolerance for those
-// workloads. This enables you to automatically reroute traffic within a VPC, which
-// increases the manageability of VPC routing and interoperability with third-party
-// workloads.
-//
-// Route server supports the follow route table types:
-//
-// - VPC route tables not associated with subnets
-//
-// - Subnet route tables
-//
-// - Internet gateway route tables
-//
-// Route server does not support route tables associated with virtual private
-// gateways. To propagate routes into a transit gateway route table, use [Transit Gateway Connect].
-//
-// [Transit Gateway Connect]: https://docs.aws.amazon.com/vpc/latest/tgw/tgw-connect.html
-func (c *Client) GetRouteServerPropagations(ctx context.Context, params *GetRouteServerPropagationsInput, optFns ...func(*Options)) (*GetRouteServerPropagationsOutput, error) {
- if params == nil {
- params = &GetRouteServerPropagationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetRouteServerPropagations", params, optFns, c.addOperationGetRouteServerPropagationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetRouteServerPropagationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetRouteServerPropagationsInput struct {
-
- // The ID of the route server for which to get propagation information.
- //
- // This member is required.
- RouteServerId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the route table for which to get propagation information.
- RouteTableId *string
-
- noSmithyDocumentSerde
-}
-
-type GetRouteServerPropagationsOutput struct {
-
- // Information about the route propagations for the specified route server.
- RouteServerPropagations []types.RouteServerPropagation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetRouteServerPropagationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetRouteServerPropagations{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetRouteServerPropagations{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetRouteServerPropagations"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetRouteServerPropagationsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetRouteServerPropagations(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetRouteServerPropagations(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetRouteServerPropagations",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetRouteServerRoutingDatabase.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetRouteServerRoutingDatabase.go
deleted file mode 100644
index 9505b4e92..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetRouteServerRoutingDatabase.go
+++ /dev/null
@@ -1,209 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Gets the routing database for the specified route server. The [Routing Information Base (RIB)] serves as a
-// database that stores all the routing information and network topology data
-// collected by a router or routing system, such as routes learned from BGP peers.
-// The RIB is constantly updated as new routing information is received or existing
-// routes change. This ensures that the route server always has the most current
-// view of the network topology and can make optimal routing decisions.
-//
-// Amazon VPC Route Server simplifies routing for traffic between workloads that
-// are deployed within a VPC and its internet gateways. With this feature, VPC
-// Route Server dynamically updates VPC and internet gateway route tables with your
-// preferred IPv4 or IPv6 routes to achieve routing fault tolerance for those
-// workloads. This enables you to automatically reroute traffic within a VPC, which
-// increases the manageability of VPC routing and interoperability with third-party
-// workloads.
-//
-// Route server supports the follow route table types:
-//
-// - VPC route tables not associated with subnets
-//
-// - Subnet route tables
-//
-// - Internet gateway route tables
-//
-// Route server does not support route tables associated with virtual private
-// gateways. To propagate routes into a transit gateway route table, use [Transit Gateway Connect].
-//
-// [Routing Information Base (RIB)]: https://en.wikipedia.org/wiki/Routing_table
-// [Transit Gateway Connect]: https://docs.aws.amazon.com/vpc/latest/tgw/tgw-connect.html
-func (c *Client) GetRouteServerRoutingDatabase(ctx context.Context, params *GetRouteServerRoutingDatabaseInput, optFns ...func(*Options)) (*GetRouteServerRoutingDatabaseOutput, error) {
- if params == nil {
- params = &GetRouteServerRoutingDatabaseInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetRouteServerRoutingDatabase", params, optFns, c.addOperationGetRouteServerRoutingDatabaseMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetRouteServerRoutingDatabaseOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetRouteServerRoutingDatabaseInput struct {
-
- // The ID of the route server for which to get the routing database.
- //
- // This member is required.
- RouteServerId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Filters to apply to the routing database query.
- Filters []types.Filter
-
- // The maximum number of routing database entries to return in a single response.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type GetRouteServerRoutingDatabaseOutput struct {
-
- // Indicates whether routes are being persisted in the routing database.
- AreRoutesPersisted *bool
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // The collection of routes in the route server's routing database.
- Routes []types.RouteServerRoute
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetRouteServerRoutingDatabaseMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetRouteServerRoutingDatabase{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetRouteServerRoutingDatabase{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetRouteServerRoutingDatabase"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetRouteServerRoutingDatabaseValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetRouteServerRoutingDatabase(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetRouteServerRoutingDatabase(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetRouteServerRoutingDatabase",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetSecurityGroupsForVpc.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetSecurityGroupsForVpc.go
deleted file mode 100644
index 75d065c35..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetSecurityGroupsForVpc.go
+++ /dev/null
@@ -1,295 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Gets security groups that can be associated by the Amazon Web Services account
-// making the request with network interfaces in the specified VPC.
-func (c *Client) GetSecurityGroupsForVpc(ctx context.Context, params *GetSecurityGroupsForVpcInput, optFns ...func(*Options)) (*GetSecurityGroupsForVpcOutput, error) {
- if params == nil {
- params = &GetSecurityGroupsForVpcInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetSecurityGroupsForVpc", params, optFns, c.addOperationGetSecurityGroupsForVpcMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetSecurityGroupsForVpcOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetSecurityGroupsForVpcInput struct {
-
- // The VPC ID where the security group can be used.
- //
- // This member is required.
- VpcId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters. If using multiple filters, the results include security groups
- // which match all filters.
- //
- // - group-id : The security group ID.
- //
- // - description : The security group's description.
- //
- // - group-name : The security group name.
- //
- // - owner-id : The security group owner ID.
- //
- // - primary-vpc-id : The VPC ID in which the security group was created.
- Filters []types.Filter
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type GetSecurityGroupsForVpcOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // The security group that can be used by interfaces in the VPC.
- SecurityGroupForVpcs []types.SecurityGroupForVpc
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetSecurityGroupsForVpcMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetSecurityGroupsForVpc{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetSecurityGroupsForVpc{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetSecurityGroupsForVpc"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetSecurityGroupsForVpcValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetSecurityGroupsForVpc(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// GetSecurityGroupsForVpcPaginatorOptions is the paginator options for
-// GetSecurityGroupsForVpc
-type GetSecurityGroupsForVpcPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// GetSecurityGroupsForVpcPaginator is a paginator for GetSecurityGroupsForVpc
-type GetSecurityGroupsForVpcPaginator struct {
- options GetSecurityGroupsForVpcPaginatorOptions
- client GetSecurityGroupsForVpcAPIClient
- params *GetSecurityGroupsForVpcInput
- nextToken *string
- firstPage bool
-}
-
-// NewGetSecurityGroupsForVpcPaginator returns a new
-// GetSecurityGroupsForVpcPaginator
-func NewGetSecurityGroupsForVpcPaginator(client GetSecurityGroupsForVpcAPIClient, params *GetSecurityGroupsForVpcInput, optFns ...func(*GetSecurityGroupsForVpcPaginatorOptions)) *GetSecurityGroupsForVpcPaginator {
- if params == nil {
- params = &GetSecurityGroupsForVpcInput{}
- }
-
- options := GetSecurityGroupsForVpcPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &GetSecurityGroupsForVpcPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *GetSecurityGroupsForVpcPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next GetSecurityGroupsForVpc page.
-func (p *GetSecurityGroupsForVpcPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetSecurityGroupsForVpcOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.GetSecurityGroupsForVpc(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// GetSecurityGroupsForVpcAPIClient is a client that implements the
-// GetSecurityGroupsForVpc operation.
-type GetSecurityGroupsForVpcAPIClient interface {
- GetSecurityGroupsForVpc(context.Context, *GetSecurityGroupsForVpcInput, ...func(*Options)) (*GetSecurityGroupsForVpcOutput, error)
-}
-
-var _ GetSecurityGroupsForVpcAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opGetSecurityGroupsForVpc(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetSecurityGroupsForVpc",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetSerialConsoleAccessStatus.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetSerialConsoleAccessStatus.go
deleted file mode 100644
index 763d97618..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetSerialConsoleAccessStatus.go
+++ /dev/null
@@ -1,172 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Retrieves the access status of your account to the EC2 serial console of all
-// instances. By default, access to the EC2 serial console is disabled for your
-// account. For more information, see [Manage account access to the EC2 serial console]in the Amazon EC2 User Guide.
-//
-// [Manage account access to the EC2 serial console]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configure-access-to-serial-console.html#serial-console-account-access
-func (c *Client) GetSerialConsoleAccessStatus(ctx context.Context, params *GetSerialConsoleAccessStatusInput, optFns ...func(*Options)) (*GetSerialConsoleAccessStatusOutput, error) {
- if params == nil {
- params = &GetSerialConsoleAccessStatusInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetSerialConsoleAccessStatus", params, optFns, c.addOperationGetSerialConsoleAccessStatusMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetSerialConsoleAccessStatusOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetSerialConsoleAccessStatusInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type GetSerialConsoleAccessStatusOutput struct {
-
- // The entity that manages access to the serial console. Possible values include:
- //
- // - account - Access is managed by the account.
- //
- // - declarative-policy - Access is managed by a declarative policy and can't be
- // modified by the account.
- ManagedBy types.ManagedBy
-
- // If true , access to the EC2 serial console of all instances is enabled for your
- // account. If false , access to the EC2 serial console of all instances is
- // disabled for your account.
- SerialConsoleAccessEnabled *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetSerialConsoleAccessStatusMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetSerialConsoleAccessStatus{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetSerialConsoleAccessStatus{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetSerialConsoleAccessStatus"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetSerialConsoleAccessStatus(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetSerialConsoleAccessStatus(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetSerialConsoleAccessStatus",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetSnapshotBlockPublicAccessState.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetSnapshotBlockPublicAccessState.go
deleted file mode 100644
index e30b96096..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetSnapshotBlockPublicAccessState.go
+++ /dev/null
@@ -1,183 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Gets the current state of block public access for snapshots setting for the
-// account and Region.
-//
-// For more information, see [Block public access for snapshots] in the Amazon EBS User Guide.
-//
-// [Block public access for snapshots]: https://docs.aws.amazon.com/ebs/latest/userguide/block-public-access-snapshots.html
-func (c *Client) GetSnapshotBlockPublicAccessState(ctx context.Context, params *GetSnapshotBlockPublicAccessStateInput, optFns ...func(*Options)) (*GetSnapshotBlockPublicAccessStateOutput, error) {
- if params == nil {
- params = &GetSnapshotBlockPublicAccessStateInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetSnapshotBlockPublicAccessState", params, optFns, c.addOperationGetSnapshotBlockPublicAccessStateMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetSnapshotBlockPublicAccessStateOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetSnapshotBlockPublicAccessStateInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type GetSnapshotBlockPublicAccessStateOutput struct {
-
- // The entity that manages the state for block public access for snapshots.
- // Possible values include:
- //
- // - account - The state is managed by the account.
- //
- // - declarative-policy - The state is managed by a declarative policy and can't
- // be modified by the account.
- ManagedBy types.ManagedBy
-
- // The current state of block public access for snapshots. Possible values include:
- //
- // - block-all-sharing - All public sharing of snapshots is blocked. Users in the
- // account can't request new public sharing. Additionally, snapshots that were
- // already publicly shared are treated as private and are not publicly available.
- //
- // - block-new-sharing - Only new public sharing of snapshots is blocked. Users
- // in the account can't request new public sharing. However, snapshots that were
- // already publicly shared, remain publicly available.
- //
- // - unblocked - Public sharing is not blocked. Users can publicly share
- // snapshots.
- State types.SnapshotBlockPublicAccessState
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetSnapshotBlockPublicAccessStateMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetSnapshotBlockPublicAccessState{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetSnapshotBlockPublicAccessState{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetSnapshotBlockPublicAccessState"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetSnapshotBlockPublicAccessState(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetSnapshotBlockPublicAccessState(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetSnapshotBlockPublicAccessState",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetSpotPlacementScores.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetSpotPlacementScores.go
deleted file mode 100644
index 053b67154..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetSpotPlacementScores.go
+++ /dev/null
@@ -1,336 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Calculates the Spot placement score for a Region or Availability Zone based on
-// the specified target capacity and compute requirements.
-//
-// You can specify your compute requirements either by using
-// InstanceRequirementsWithMetadata and letting Amazon EC2 choose the optimal
-// instance types to fulfill your Spot request, or you can specify the instance
-// types by using InstanceTypes .
-//
-// For more information, see [Spot placement score] in the Amazon EC2 User Guide.
-//
-// [Spot placement score]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-placement-score.html
-func (c *Client) GetSpotPlacementScores(ctx context.Context, params *GetSpotPlacementScoresInput, optFns ...func(*Options)) (*GetSpotPlacementScoresOutput, error) {
- if params == nil {
- params = &GetSpotPlacementScoresInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetSpotPlacementScores", params, optFns, c.addOperationGetSpotPlacementScoresMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetSpotPlacementScoresOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetSpotPlacementScoresInput struct {
-
- // The target capacity.
- //
- // This member is required.
- TargetCapacity *int32
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The attributes for the instance types. When you specify instance attributes,
- // Amazon EC2 will identify instance types with those attributes.
- //
- // If you specify InstanceRequirementsWithMetadata , you can't specify
- // InstanceTypes .
- InstanceRequirementsWithMetadata *types.InstanceRequirementsWithMetadataRequest
-
- // The instance types. We recommend that you specify at least three instance
- // types. If you specify one or two instance types, or specify variations of a
- // single instance type (for example, an m3.xlarge with and without instance
- // storage), the returned placement score will always be low.
- //
- // If you specify InstanceTypes , you can't specify
- // InstanceRequirementsWithMetadata .
- InstanceTypes []string
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- // The Regions used to narrow down the list of Regions to be scored. Enter the
- // Region code, for example, us-east-1 .
- RegionNames []string
-
- // Specify true so that the response returns a list of scored Availability Zones.
- // Otherwise, the response returns a list of scored Regions.
- //
- // A list of scored Availability Zones is useful if you want to launch all of your
- // Spot capacity into a single Availability Zone.
- SingleAvailabilityZone *bool
-
- // The unit for the target capacity.
- TargetCapacityUnitType types.TargetCapacityUnitType
-
- noSmithyDocumentSerde
-}
-
-type GetSpotPlacementScoresOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // The Spot placement score for the top 10 Regions or Availability Zones, scored
- // on a scale from 1 to 10. Each score
reflects how likely it is that each Region
- // or Availability Zone will succeed at fulfilling the specified target capacity
- // at the time of the Spot placement score request. A score of 10 means that your
- // Spot capacity request is highly likely to succeed in that Region or Availability
- // Zone.
- //
- // If you request a Spot placement score for Regions, a high score assumes that
- // your fleet request will be configured to use all Availability Zones and the
- // capacity-optimized allocation strategy. If you request a Spot placement score
- // for Availability Zones, a high score assumes that your fleet request will be
- // configured to use a single Availability Zone and the capacity-optimized
- // allocation strategy.
- //
- // Different
Regions or Availability Zones might return the same score.
- //
- // The Spot placement score serves as a recommendation only. No score guarantees
- // that your Spot request will be fully or partially fulfilled.
- SpotPlacementScores []types.SpotPlacementScore
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetSpotPlacementScoresMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetSpotPlacementScores{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetSpotPlacementScores{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetSpotPlacementScores"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetSpotPlacementScoresValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetSpotPlacementScores(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// GetSpotPlacementScoresPaginatorOptions is the paginator options for
-// GetSpotPlacementScores
-type GetSpotPlacementScoresPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// GetSpotPlacementScoresPaginator is a paginator for GetSpotPlacementScores
-type GetSpotPlacementScoresPaginator struct {
- options GetSpotPlacementScoresPaginatorOptions
- client GetSpotPlacementScoresAPIClient
- params *GetSpotPlacementScoresInput
- nextToken *string
- firstPage bool
-}
-
-// NewGetSpotPlacementScoresPaginator returns a new GetSpotPlacementScoresPaginator
-func NewGetSpotPlacementScoresPaginator(client GetSpotPlacementScoresAPIClient, params *GetSpotPlacementScoresInput, optFns ...func(*GetSpotPlacementScoresPaginatorOptions)) *GetSpotPlacementScoresPaginator {
- if params == nil {
- params = &GetSpotPlacementScoresInput{}
- }
-
- options := GetSpotPlacementScoresPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &GetSpotPlacementScoresPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *GetSpotPlacementScoresPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next GetSpotPlacementScores page.
-func (p *GetSpotPlacementScoresPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetSpotPlacementScoresOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.GetSpotPlacementScores(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// GetSpotPlacementScoresAPIClient is a client that implements the
-// GetSpotPlacementScores operation.
-type GetSpotPlacementScoresAPIClient interface {
- GetSpotPlacementScores(context.Context, *GetSpotPlacementScoresInput, ...func(*Options)) (*GetSpotPlacementScoresOutput, error)
-}
-
-var _ GetSpotPlacementScoresAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opGetSpotPlacementScores(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetSpotPlacementScores",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetSubnetCidrReservations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetSubnetCidrReservations.go
deleted file mode 100644
index 3d9822ec7..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetSubnetCidrReservations.go
+++ /dev/null
@@ -1,195 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Gets information about the subnet CIDR reservations.
-func (c *Client) GetSubnetCidrReservations(ctx context.Context, params *GetSubnetCidrReservationsInput, optFns ...func(*Options)) (*GetSubnetCidrReservationsOutput, error) {
- if params == nil {
- params = &GetSubnetCidrReservationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetSubnetCidrReservations", params, optFns, c.addOperationGetSubnetCidrReservationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetSubnetCidrReservationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetSubnetCidrReservationsInput struct {
-
- // The ID of the subnet.
- //
- // This member is required.
- SubnetId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - reservationType - The type of reservation ( prefix | explicit ).
- //
- // - subnet-id - The ID of the subnet.
- //
- // - tag : - The key/value combination of a tag assigned to the resource. Use the
- // tag key in the filter name and the tag value as the filter value. For example,
- // to find all resources that have a tag with the key Owner and the value TeamA ,
- // specify tag:Owner for the filter name and TeamA for the filter value.
- //
- // - tag-key - The key of a tag assigned to the resource. Use this filter to find
- // all resources assigned a tag with a specific key, regardless of the tag value.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type GetSubnetCidrReservationsOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the IPv4 subnet CIDR reservations.
- SubnetIpv4CidrReservations []types.SubnetCidrReservation
-
- // Information about the IPv6 subnet CIDR reservations.
- SubnetIpv6CidrReservations []types.SubnetCidrReservation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetSubnetCidrReservationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetSubnetCidrReservations{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetSubnetCidrReservations{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetSubnetCidrReservations"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetSubnetCidrReservationsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetSubnetCidrReservations(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetSubnetCidrReservations(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetSubnetCidrReservations",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayAttachmentPropagations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayAttachmentPropagations.go
deleted file mode 100644
index 96f7ca3cd..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayAttachmentPropagations.go
+++ /dev/null
@@ -1,280 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Lists the route tables to which the specified resource attachment propagates
-// routes.
-func (c *Client) GetTransitGatewayAttachmentPropagations(ctx context.Context, params *GetTransitGatewayAttachmentPropagationsInput, optFns ...func(*Options)) (*GetTransitGatewayAttachmentPropagationsOutput, error) {
- if params == nil {
- params = &GetTransitGatewayAttachmentPropagationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetTransitGatewayAttachmentPropagations", params, optFns, c.addOperationGetTransitGatewayAttachmentPropagationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetTransitGatewayAttachmentPropagationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetTransitGatewayAttachmentPropagationsInput struct {
-
- // The ID of the attachment.
- //
- // This member is required.
- TransitGatewayAttachmentId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. The possible values are:
- //
- // - transit-gateway-route-table-id - The ID of the transit gateway route table.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type GetTransitGatewayAttachmentPropagationsOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the propagation route tables.
- TransitGatewayAttachmentPropagations []types.TransitGatewayAttachmentPropagation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetTransitGatewayAttachmentPropagationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetTransitGatewayAttachmentPropagations{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetTransitGatewayAttachmentPropagations{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetTransitGatewayAttachmentPropagations"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetTransitGatewayAttachmentPropagationsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetTransitGatewayAttachmentPropagations(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// GetTransitGatewayAttachmentPropagationsPaginatorOptions is the paginator
-// options for GetTransitGatewayAttachmentPropagations
-type GetTransitGatewayAttachmentPropagationsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// GetTransitGatewayAttachmentPropagationsPaginator is a paginator for
-// GetTransitGatewayAttachmentPropagations
-type GetTransitGatewayAttachmentPropagationsPaginator struct {
- options GetTransitGatewayAttachmentPropagationsPaginatorOptions
- client GetTransitGatewayAttachmentPropagationsAPIClient
- params *GetTransitGatewayAttachmentPropagationsInput
- nextToken *string
- firstPage bool
-}
-
-// NewGetTransitGatewayAttachmentPropagationsPaginator returns a new
-// GetTransitGatewayAttachmentPropagationsPaginator
-func NewGetTransitGatewayAttachmentPropagationsPaginator(client GetTransitGatewayAttachmentPropagationsAPIClient, params *GetTransitGatewayAttachmentPropagationsInput, optFns ...func(*GetTransitGatewayAttachmentPropagationsPaginatorOptions)) *GetTransitGatewayAttachmentPropagationsPaginator {
- if params == nil {
- params = &GetTransitGatewayAttachmentPropagationsInput{}
- }
-
- options := GetTransitGatewayAttachmentPropagationsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &GetTransitGatewayAttachmentPropagationsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *GetTransitGatewayAttachmentPropagationsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next GetTransitGatewayAttachmentPropagations page.
-func (p *GetTransitGatewayAttachmentPropagationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetTransitGatewayAttachmentPropagationsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.GetTransitGatewayAttachmentPropagations(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// GetTransitGatewayAttachmentPropagationsAPIClient is a client that implements
-// the GetTransitGatewayAttachmentPropagations operation.
-type GetTransitGatewayAttachmentPropagationsAPIClient interface {
- GetTransitGatewayAttachmentPropagations(context.Context, *GetTransitGatewayAttachmentPropagationsInput, ...func(*Options)) (*GetTransitGatewayAttachmentPropagationsOutput, error)
-}
-
-var _ GetTransitGatewayAttachmentPropagationsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opGetTransitGatewayAttachmentPropagations(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetTransitGatewayAttachmentPropagations",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayMulticastDomainAssociations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayMulticastDomainAssociations.go
deleted file mode 100644
index 7ad4876cb..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayMulticastDomainAssociations.go
+++ /dev/null
@@ -1,289 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Gets information about the associations for the transit gateway multicast
-// domain.
-func (c *Client) GetTransitGatewayMulticastDomainAssociations(ctx context.Context, params *GetTransitGatewayMulticastDomainAssociationsInput, optFns ...func(*Options)) (*GetTransitGatewayMulticastDomainAssociationsOutput, error) {
- if params == nil {
- params = &GetTransitGatewayMulticastDomainAssociationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetTransitGatewayMulticastDomainAssociations", params, optFns, c.addOperationGetTransitGatewayMulticastDomainAssociationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetTransitGatewayMulticastDomainAssociationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetTransitGatewayMulticastDomainAssociationsInput struct {
-
- // The ID of the transit gateway multicast domain.
- //
- // This member is required.
- TransitGatewayMulticastDomainId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. The possible values are:
- //
- // - resource-id - The ID of the resource.
- //
- // - resource-type - The type of resource. The valid value is: vpc .
- //
- // - state - The state of the subnet association. Valid values are associated |
- // associating | disassociated | disassociating .
- //
- // - subnet-id - The ID of the subnet.
- //
- // - transit-gateway-attachment-id - The id of the transit gateway attachment.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type GetTransitGatewayMulticastDomainAssociationsOutput struct {
-
- // Information about the multicast domain associations.
- MulticastDomainAssociations []types.TransitGatewayMulticastDomainAssociation
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetTransitGatewayMulticastDomainAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetTransitGatewayMulticastDomainAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetTransitGatewayMulticastDomainAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetTransitGatewayMulticastDomainAssociations"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetTransitGatewayMulticastDomainAssociationsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetTransitGatewayMulticastDomainAssociations(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// GetTransitGatewayMulticastDomainAssociationsPaginatorOptions is the paginator
-// options for GetTransitGatewayMulticastDomainAssociations
-type GetTransitGatewayMulticastDomainAssociationsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// GetTransitGatewayMulticastDomainAssociationsPaginator is a paginator for
-// GetTransitGatewayMulticastDomainAssociations
-type GetTransitGatewayMulticastDomainAssociationsPaginator struct {
- options GetTransitGatewayMulticastDomainAssociationsPaginatorOptions
- client GetTransitGatewayMulticastDomainAssociationsAPIClient
- params *GetTransitGatewayMulticastDomainAssociationsInput
- nextToken *string
- firstPage bool
-}
-
-// NewGetTransitGatewayMulticastDomainAssociationsPaginator returns a new
-// GetTransitGatewayMulticastDomainAssociationsPaginator
-func NewGetTransitGatewayMulticastDomainAssociationsPaginator(client GetTransitGatewayMulticastDomainAssociationsAPIClient, params *GetTransitGatewayMulticastDomainAssociationsInput, optFns ...func(*GetTransitGatewayMulticastDomainAssociationsPaginatorOptions)) *GetTransitGatewayMulticastDomainAssociationsPaginator {
- if params == nil {
- params = &GetTransitGatewayMulticastDomainAssociationsInput{}
- }
-
- options := GetTransitGatewayMulticastDomainAssociationsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &GetTransitGatewayMulticastDomainAssociationsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *GetTransitGatewayMulticastDomainAssociationsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next GetTransitGatewayMulticastDomainAssociations page.
-func (p *GetTransitGatewayMulticastDomainAssociationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetTransitGatewayMulticastDomainAssociationsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.GetTransitGatewayMulticastDomainAssociations(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// GetTransitGatewayMulticastDomainAssociationsAPIClient is a client that
-// implements the GetTransitGatewayMulticastDomainAssociations operation.
-type GetTransitGatewayMulticastDomainAssociationsAPIClient interface {
- GetTransitGatewayMulticastDomainAssociations(context.Context, *GetTransitGatewayMulticastDomainAssociationsInput, ...func(*Options)) (*GetTransitGatewayMulticastDomainAssociationsOutput, error)
-}
-
-var _ GetTransitGatewayMulticastDomainAssociationsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opGetTransitGatewayMulticastDomainAssociations(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetTransitGatewayMulticastDomainAssociations",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayPolicyTableAssociations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayPolicyTableAssociations.go
deleted file mode 100644
index 17f7b8790..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayPolicyTableAssociations.go
+++ /dev/null
@@ -1,276 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Gets a list of the transit gateway policy table associations.
-func (c *Client) GetTransitGatewayPolicyTableAssociations(ctx context.Context, params *GetTransitGatewayPolicyTableAssociationsInput, optFns ...func(*Options)) (*GetTransitGatewayPolicyTableAssociationsOutput, error) {
- if params == nil {
- params = &GetTransitGatewayPolicyTableAssociationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetTransitGatewayPolicyTableAssociations", params, optFns, c.addOperationGetTransitGatewayPolicyTableAssociationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetTransitGatewayPolicyTableAssociationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetTransitGatewayPolicyTableAssociationsInput struct {
-
- // The ID of the transit gateway policy table.
- //
- // This member is required.
- TransitGatewayPolicyTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters associated with the transit gateway policy table.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type GetTransitGatewayPolicyTableAssociationsOutput struct {
-
- // Returns details about the transit gateway policy table association.
- Associations []types.TransitGatewayPolicyTableAssociation
-
- // The token for the next page of results.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetTransitGatewayPolicyTableAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetTransitGatewayPolicyTableAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetTransitGatewayPolicyTableAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetTransitGatewayPolicyTableAssociations"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetTransitGatewayPolicyTableAssociationsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetTransitGatewayPolicyTableAssociations(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// GetTransitGatewayPolicyTableAssociationsPaginatorOptions is the paginator
-// options for GetTransitGatewayPolicyTableAssociations
-type GetTransitGatewayPolicyTableAssociationsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// GetTransitGatewayPolicyTableAssociationsPaginator is a paginator for
-// GetTransitGatewayPolicyTableAssociations
-type GetTransitGatewayPolicyTableAssociationsPaginator struct {
- options GetTransitGatewayPolicyTableAssociationsPaginatorOptions
- client GetTransitGatewayPolicyTableAssociationsAPIClient
- params *GetTransitGatewayPolicyTableAssociationsInput
- nextToken *string
- firstPage bool
-}
-
-// NewGetTransitGatewayPolicyTableAssociationsPaginator returns a new
-// GetTransitGatewayPolicyTableAssociationsPaginator
-func NewGetTransitGatewayPolicyTableAssociationsPaginator(client GetTransitGatewayPolicyTableAssociationsAPIClient, params *GetTransitGatewayPolicyTableAssociationsInput, optFns ...func(*GetTransitGatewayPolicyTableAssociationsPaginatorOptions)) *GetTransitGatewayPolicyTableAssociationsPaginator {
- if params == nil {
- params = &GetTransitGatewayPolicyTableAssociationsInput{}
- }
-
- options := GetTransitGatewayPolicyTableAssociationsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &GetTransitGatewayPolicyTableAssociationsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *GetTransitGatewayPolicyTableAssociationsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next GetTransitGatewayPolicyTableAssociations page.
-func (p *GetTransitGatewayPolicyTableAssociationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetTransitGatewayPolicyTableAssociationsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.GetTransitGatewayPolicyTableAssociations(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// GetTransitGatewayPolicyTableAssociationsAPIClient is a client that implements
-// the GetTransitGatewayPolicyTableAssociations operation.
-type GetTransitGatewayPolicyTableAssociationsAPIClient interface {
- GetTransitGatewayPolicyTableAssociations(context.Context, *GetTransitGatewayPolicyTableAssociationsInput, ...func(*Options)) (*GetTransitGatewayPolicyTableAssociationsOutput, error)
-}
-
-var _ GetTransitGatewayPolicyTableAssociationsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opGetTransitGatewayPolicyTableAssociations(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetTransitGatewayPolicyTableAssociations",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayPolicyTableEntries.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayPolicyTableEntries.go
deleted file mode 100644
index ae1130e8c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayPolicyTableEntries.go
+++ /dev/null
@@ -1,176 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Returns a list of transit gateway policy table entries.
-func (c *Client) GetTransitGatewayPolicyTableEntries(ctx context.Context, params *GetTransitGatewayPolicyTableEntriesInput, optFns ...func(*Options)) (*GetTransitGatewayPolicyTableEntriesOutput, error) {
- if params == nil {
- params = &GetTransitGatewayPolicyTableEntriesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetTransitGatewayPolicyTableEntries", params, optFns, c.addOperationGetTransitGatewayPolicyTableEntriesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetTransitGatewayPolicyTableEntriesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetTransitGatewayPolicyTableEntriesInput struct {
-
- // The ID of the transit gateway policy table.
- //
- // This member is required.
- TransitGatewayPolicyTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The filters associated with the transit gateway policy table.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type GetTransitGatewayPolicyTableEntriesOutput struct {
-
- // The entries for the transit gateway policy table.
- TransitGatewayPolicyTableEntries []types.TransitGatewayPolicyTableEntry
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetTransitGatewayPolicyTableEntriesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetTransitGatewayPolicyTableEntries{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetTransitGatewayPolicyTableEntries{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetTransitGatewayPolicyTableEntries"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetTransitGatewayPolicyTableEntriesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetTransitGatewayPolicyTableEntries(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetTransitGatewayPolicyTableEntries(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetTransitGatewayPolicyTableEntries",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayPrefixListReferences.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayPrefixListReferences.go
deleted file mode 100644
index cbd83aacf..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayPrefixListReferences.go
+++ /dev/null
@@ -1,295 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Gets information about the prefix list references in a specified transit
-// gateway route table.
-func (c *Client) GetTransitGatewayPrefixListReferences(ctx context.Context, params *GetTransitGatewayPrefixListReferencesInput, optFns ...func(*Options)) (*GetTransitGatewayPrefixListReferencesOutput, error) {
- if params == nil {
- params = &GetTransitGatewayPrefixListReferencesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetTransitGatewayPrefixListReferences", params, optFns, c.addOperationGetTransitGatewayPrefixListReferencesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetTransitGatewayPrefixListReferencesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetTransitGatewayPrefixListReferencesInput struct {
-
- // The ID of the transit gateway route table.
- //
- // This member is required.
- TransitGatewayRouteTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. The possible values are:
- //
- // - attachment.resource-id - The ID of the resource for the attachment.
- //
- // - attachment.resource-type - The type of resource for the attachment. Valid
- // values are vpc | vpn | direct-connect-gateway | peering .
- //
- // - attachment.transit-gateway-attachment-id - The ID of the attachment.
- //
- // - is-blackhole - Whether traffic matching the route is blocked ( true | false
- // ).
- //
- // - prefix-list-id - The ID of the prefix list.
- //
- // - prefix-list-owner-id - The ID of the owner of the prefix list.
- //
- // - state - The state of the prefix list reference ( pending | available |
- // modifying | deleting ).
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type GetTransitGatewayPrefixListReferencesOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the prefix list references.
- TransitGatewayPrefixListReferences []types.TransitGatewayPrefixListReference
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetTransitGatewayPrefixListReferencesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetTransitGatewayPrefixListReferences{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetTransitGatewayPrefixListReferences{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetTransitGatewayPrefixListReferences"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetTransitGatewayPrefixListReferencesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetTransitGatewayPrefixListReferences(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// GetTransitGatewayPrefixListReferencesPaginatorOptions is the paginator options
-// for GetTransitGatewayPrefixListReferences
-type GetTransitGatewayPrefixListReferencesPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// GetTransitGatewayPrefixListReferencesPaginator is a paginator for
-// GetTransitGatewayPrefixListReferences
-type GetTransitGatewayPrefixListReferencesPaginator struct {
- options GetTransitGatewayPrefixListReferencesPaginatorOptions
- client GetTransitGatewayPrefixListReferencesAPIClient
- params *GetTransitGatewayPrefixListReferencesInput
- nextToken *string
- firstPage bool
-}
-
-// NewGetTransitGatewayPrefixListReferencesPaginator returns a new
-// GetTransitGatewayPrefixListReferencesPaginator
-func NewGetTransitGatewayPrefixListReferencesPaginator(client GetTransitGatewayPrefixListReferencesAPIClient, params *GetTransitGatewayPrefixListReferencesInput, optFns ...func(*GetTransitGatewayPrefixListReferencesPaginatorOptions)) *GetTransitGatewayPrefixListReferencesPaginator {
- if params == nil {
- params = &GetTransitGatewayPrefixListReferencesInput{}
- }
-
- options := GetTransitGatewayPrefixListReferencesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &GetTransitGatewayPrefixListReferencesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *GetTransitGatewayPrefixListReferencesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next GetTransitGatewayPrefixListReferences page.
-func (p *GetTransitGatewayPrefixListReferencesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetTransitGatewayPrefixListReferencesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.GetTransitGatewayPrefixListReferences(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// GetTransitGatewayPrefixListReferencesAPIClient is a client that implements the
-// GetTransitGatewayPrefixListReferences operation.
-type GetTransitGatewayPrefixListReferencesAPIClient interface {
- GetTransitGatewayPrefixListReferences(context.Context, *GetTransitGatewayPrefixListReferencesInput, ...func(*Options)) (*GetTransitGatewayPrefixListReferencesOutput, error)
-}
-
-var _ GetTransitGatewayPrefixListReferencesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opGetTransitGatewayPrefixListReferences(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetTransitGatewayPrefixListReferences",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayRouteTableAssociations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayRouteTableAssociations.go
deleted file mode 100644
index d3fea7c8c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayRouteTableAssociations.go
+++ /dev/null
@@ -1,285 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Gets information about the associations for the specified transit gateway route
-// table.
-func (c *Client) GetTransitGatewayRouteTableAssociations(ctx context.Context, params *GetTransitGatewayRouteTableAssociationsInput, optFns ...func(*Options)) (*GetTransitGatewayRouteTableAssociationsOutput, error) {
- if params == nil {
- params = &GetTransitGatewayRouteTableAssociationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetTransitGatewayRouteTableAssociations", params, optFns, c.addOperationGetTransitGatewayRouteTableAssociationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetTransitGatewayRouteTableAssociationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetTransitGatewayRouteTableAssociationsInput struct {
-
- // The ID of the transit gateway route table.
- //
- // This member is required.
- TransitGatewayRouteTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. The possible values are:
- //
- // - resource-id - The ID of the resource.
- //
- // - resource-type - The resource type. Valid values are vpc | vpn |
- // direct-connect-gateway | peering | connect .
- //
- // - transit-gateway-attachment-id - The ID of the attachment.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type GetTransitGatewayRouteTableAssociationsOutput struct {
-
- // Information about the associations.
- Associations []types.TransitGatewayRouteTableAssociation
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetTransitGatewayRouteTableAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetTransitGatewayRouteTableAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetTransitGatewayRouteTableAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetTransitGatewayRouteTableAssociations"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetTransitGatewayRouteTableAssociationsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetTransitGatewayRouteTableAssociations(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// GetTransitGatewayRouteTableAssociationsPaginatorOptions is the paginator
-// options for GetTransitGatewayRouteTableAssociations
-type GetTransitGatewayRouteTableAssociationsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// GetTransitGatewayRouteTableAssociationsPaginator is a paginator for
-// GetTransitGatewayRouteTableAssociations
-type GetTransitGatewayRouteTableAssociationsPaginator struct {
- options GetTransitGatewayRouteTableAssociationsPaginatorOptions
- client GetTransitGatewayRouteTableAssociationsAPIClient
- params *GetTransitGatewayRouteTableAssociationsInput
- nextToken *string
- firstPage bool
-}
-
-// NewGetTransitGatewayRouteTableAssociationsPaginator returns a new
-// GetTransitGatewayRouteTableAssociationsPaginator
-func NewGetTransitGatewayRouteTableAssociationsPaginator(client GetTransitGatewayRouteTableAssociationsAPIClient, params *GetTransitGatewayRouteTableAssociationsInput, optFns ...func(*GetTransitGatewayRouteTableAssociationsPaginatorOptions)) *GetTransitGatewayRouteTableAssociationsPaginator {
- if params == nil {
- params = &GetTransitGatewayRouteTableAssociationsInput{}
- }
-
- options := GetTransitGatewayRouteTableAssociationsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &GetTransitGatewayRouteTableAssociationsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *GetTransitGatewayRouteTableAssociationsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next GetTransitGatewayRouteTableAssociations page.
-func (p *GetTransitGatewayRouteTableAssociationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetTransitGatewayRouteTableAssociationsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.GetTransitGatewayRouteTableAssociations(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// GetTransitGatewayRouteTableAssociationsAPIClient is a client that implements
-// the GetTransitGatewayRouteTableAssociations operation.
-type GetTransitGatewayRouteTableAssociationsAPIClient interface {
- GetTransitGatewayRouteTableAssociations(context.Context, *GetTransitGatewayRouteTableAssociationsInput, ...func(*Options)) (*GetTransitGatewayRouteTableAssociationsOutput, error)
-}
-
-var _ GetTransitGatewayRouteTableAssociationsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opGetTransitGatewayRouteTableAssociations(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetTransitGatewayRouteTableAssociations",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayRouteTablePropagations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayRouteTablePropagations.go
deleted file mode 100644
index f8cf786a3..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayRouteTablePropagations.go
+++ /dev/null
@@ -1,285 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Gets information about the route table propagations for the specified transit
-// gateway route table.
-func (c *Client) GetTransitGatewayRouteTablePropagations(ctx context.Context, params *GetTransitGatewayRouteTablePropagationsInput, optFns ...func(*Options)) (*GetTransitGatewayRouteTablePropagationsOutput, error) {
- if params == nil {
- params = &GetTransitGatewayRouteTablePropagationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetTransitGatewayRouteTablePropagations", params, optFns, c.addOperationGetTransitGatewayRouteTablePropagationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetTransitGatewayRouteTablePropagationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetTransitGatewayRouteTablePropagationsInput struct {
-
- // The ID of the transit gateway route table.
- //
- // This member is required.
- TransitGatewayRouteTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. The possible values are:
- //
- // - resource-id - The ID of the resource.
- //
- // - resource-type - The resource type. Valid values are vpc | vpn |
- // direct-connect-gateway | peering | connect .
- //
- // - transit-gateway-attachment-id - The ID of the attachment.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type GetTransitGatewayRouteTablePropagationsOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the route table propagations.
- TransitGatewayRouteTablePropagations []types.TransitGatewayRouteTablePropagation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetTransitGatewayRouteTablePropagationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetTransitGatewayRouteTablePropagations{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetTransitGatewayRouteTablePropagations{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetTransitGatewayRouteTablePropagations"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetTransitGatewayRouteTablePropagationsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetTransitGatewayRouteTablePropagations(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// GetTransitGatewayRouteTablePropagationsPaginatorOptions is the paginator
-// options for GetTransitGatewayRouteTablePropagations
-type GetTransitGatewayRouteTablePropagationsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// GetTransitGatewayRouteTablePropagationsPaginator is a paginator for
-// GetTransitGatewayRouteTablePropagations
-type GetTransitGatewayRouteTablePropagationsPaginator struct {
- options GetTransitGatewayRouteTablePropagationsPaginatorOptions
- client GetTransitGatewayRouteTablePropagationsAPIClient
- params *GetTransitGatewayRouteTablePropagationsInput
- nextToken *string
- firstPage bool
-}
-
-// NewGetTransitGatewayRouteTablePropagationsPaginator returns a new
-// GetTransitGatewayRouteTablePropagationsPaginator
-func NewGetTransitGatewayRouteTablePropagationsPaginator(client GetTransitGatewayRouteTablePropagationsAPIClient, params *GetTransitGatewayRouteTablePropagationsInput, optFns ...func(*GetTransitGatewayRouteTablePropagationsPaginatorOptions)) *GetTransitGatewayRouteTablePropagationsPaginator {
- if params == nil {
- params = &GetTransitGatewayRouteTablePropagationsInput{}
- }
-
- options := GetTransitGatewayRouteTablePropagationsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &GetTransitGatewayRouteTablePropagationsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *GetTransitGatewayRouteTablePropagationsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next GetTransitGatewayRouteTablePropagations page.
-func (p *GetTransitGatewayRouteTablePropagationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetTransitGatewayRouteTablePropagationsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.GetTransitGatewayRouteTablePropagations(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// GetTransitGatewayRouteTablePropagationsAPIClient is a client that implements
-// the GetTransitGatewayRouteTablePropagations operation.
-type GetTransitGatewayRouteTablePropagationsAPIClient interface {
- GetTransitGatewayRouteTablePropagations(context.Context, *GetTransitGatewayRouteTablePropagationsInput, ...func(*Options)) (*GetTransitGatewayRouteTablePropagationsOutput, error)
-}
-
-var _ GetTransitGatewayRouteTablePropagationsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opGetTransitGatewayRouteTablePropagations(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetTransitGatewayRouteTablePropagations",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetVerifiedAccessEndpointPolicy.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetVerifiedAccessEndpointPolicy.go
deleted file mode 100644
index fb46192f8..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetVerifiedAccessEndpointPolicy.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Get the Verified Access policy associated with the endpoint.
-func (c *Client) GetVerifiedAccessEndpointPolicy(ctx context.Context, params *GetVerifiedAccessEndpointPolicyInput, optFns ...func(*Options)) (*GetVerifiedAccessEndpointPolicyOutput, error) {
- if params == nil {
- params = &GetVerifiedAccessEndpointPolicyInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetVerifiedAccessEndpointPolicy", params, optFns, c.addOperationGetVerifiedAccessEndpointPolicyMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetVerifiedAccessEndpointPolicyOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetVerifiedAccessEndpointPolicyInput struct {
-
- // The ID of the Verified Access endpoint.
- //
- // This member is required.
- VerifiedAccessEndpointId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type GetVerifiedAccessEndpointPolicyOutput struct {
-
- // The Verified Access policy document.
- PolicyDocument *string
-
- // The status of the Verified Access policy.
- PolicyEnabled *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetVerifiedAccessEndpointPolicyMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetVerifiedAccessEndpointPolicy{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetVerifiedAccessEndpointPolicy{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetVerifiedAccessEndpointPolicy"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetVerifiedAccessEndpointPolicyValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetVerifiedAccessEndpointPolicy(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetVerifiedAccessEndpointPolicy(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetVerifiedAccessEndpointPolicy",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetVerifiedAccessEndpointTargets.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetVerifiedAccessEndpointTargets.go
deleted file mode 100644
index eabdea908..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetVerifiedAccessEndpointTargets.go
+++ /dev/null
@@ -1,177 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Gets the targets for the specified network CIDR endpoint for Verified Access.
-func (c *Client) GetVerifiedAccessEndpointTargets(ctx context.Context, params *GetVerifiedAccessEndpointTargetsInput, optFns ...func(*Options)) (*GetVerifiedAccessEndpointTargetsOutput, error) {
- if params == nil {
- params = &GetVerifiedAccessEndpointTargetsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetVerifiedAccessEndpointTargets", params, optFns, c.addOperationGetVerifiedAccessEndpointTargetsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetVerifiedAccessEndpointTargetsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetVerifiedAccessEndpointTargetsInput struct {
-
- // The ID of the network CIDR endpoint.
- //
- // This member is required.
- VerifiedAccessEndpointId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type GetVerifiedAccessEndpointTargetsOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // The Verified Access targets.
- VerifiedAccessEndpointTargets []types.VerifiedAccessEndpointTarget
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetVerifiedAccessEndpointTargetsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetVerifiedAccessEndpointTargets{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetVerifiedAccessEndpointTargets{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetVerifiedAccessEndpointTargets"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetVerifiedAccessEndpointTargetsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetVerifiedAccessEndpointTargets(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetVerifiedAccessEndpointTargets(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetVerifiedAccessEndpointTargets",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetVerifiedAccessGroupPolicy.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetVerifiedAccessGroupPolicy.go
deleted file mode 100644
index eb2bca1d5..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetVerifiedAccessGroupPolicy.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Shows the contents of the Verified Access policy associated with the group.
-func (c *Client) GetVerifiedAccessGroupPolicy(ctx context.Context, params *GetVerifiedAccessGroupPolicyInput, optFns ...func(*Options)) (*GetVerifiedAccessGroupPolicyOutput, error) {
- if params == nil {
- params = &GetVerifiedAccessGroupPolicyInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetVerifiedAccessGroupPolicy", params, optFns, c.addOperationGetVerifiedAccessGroupPolicyMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetVerifiedAccessGroupPolicyOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetVerifiedAccessGroupPolicyInput struct {
-
- // The ID of the Verified Access group.
- //
- // This member is required.
- VerifiedAccessGroupId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type GetVerifiedAccessGroupPolicyOutput struct {
-
- // The Verified Access policy document.
- PolicyDocument *string
-
- // The status of the Verified Access policy.
- PolicyEnabled *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetVerifiedAccessGroupPolicyMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetVerifiedAccessGroupPolicy{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetVerifiedAccessGroupPolicy{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetVerifiedAccessGroupPolicy"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetVerifiedAccessGroupPolicyValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetVerifiedAccessGroupPolicy(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetVerifiedAccessGroupPolicy(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetVerifiedAccessGroupPolicy",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetVpnConnectionDeviceSampleConfiguration.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetVpnConnectionDeviceSampleConfiguration.go
deleted file mode 100644
index a300f935e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetVpnConnectionDeviceSampleConfiguration.go
+++ /dev/null
@@ -1,181 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Download an Amazon Web Services-provided sample configuration file to be used
-// with the customer gateway device specified for your Site-to-Site VPN connection.
-func (c *Client) GetVpnConnectionDeviceSampleConfiguration(ctx context.Context, params *GetVpnConnectionDeviceSampleConfigurationInput, optFns ...func(*Options)) (*GetVpnConnectionDeviceSampleConfigurationOutput, error) {
- if params == nil {
- params = &GetVpnConnectionDeviceSampleConfigurationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetVpnConnectionDeviceSampleConfiguration", params, optFns, c.addOperationGetVpnConnectionDeviceSampleConfigurationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetVpnConnectionDeviceSampleConfigurationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetVpnConnectionDeviceSampleConfigurationInput struct {
-
- // Device identifier provided by the GetVpnConnectionDeviceTypes API.
- //
- // This member is required.
- VpnConnectionDeviceTypeId *string
-
- // The VpnConnectionId specifies the Site-to-Site VPN connection used for the
- // sample configuration.
- //
- // This member is required.
- VpnConnectionId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The IKE version to be used in the sample configuration file for your customer
- // gateway device. You can specify one of the following versions: ikev1 or ikev2 .
- InternetKeyExchangeVersion *string
-
- // The type of sample configuration to generate. Valid values are "compatibility"
- // (includes IKEv1) or "recommended" (throws UnsupportedOperationException for
- // IKEv1).
- SampleType *string
-
- noSmithyDocumentSerde
-}
-
-type GetVpnConnectionDeviceSampleConfigurationOutput struct {
-
- // Sample configuration file for the specified customer gateway device.
- VpnConnectionDeviceSampleConfiguration *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetVpnConnectionDeviceSampleConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetVpnConnectionDeviceSampleConfiguration{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetVpnConnectionDeviceSampleConfiguration{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetVpnConnectionDeviceSampleConfiguration"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetVpnConnectionDeviceSampleConfigurationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetVpnConnectionDeviceSampleConfiguration(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetVpnConnectionDeviceSampleConfiguration(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetVpnConnectionDeviceSampleConfiguration",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetVpnConnectionDeviceTypes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetVpnConnectionDeviceTypes.go
deleted file mode 100644
index 8212f0c21..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetVpnConnectionDeviceTypes.go
+++ /dev/null
@@ -1,288 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Obtain a list of customer gateway devices for which sample configuration files
-// can be provided. The request has no additional parameters. You can also see the
-// list of device types with sample configuration files available under [Your customer gateway device]in the
-// Amazon Web Services Site-to-Site VPN User Guide.
-//
-// [Your customer gateway device]: https://docs.aws.amazon.com/vpn/latest/s2svpn/your-cgw.html
-func (c *Client) GetVpnConnectionDeviceTypes(ctx context.Context, params *GetVpnConnectionDeviceTypesInput, optFns ...func(*Options)) (*GetVpnConnectionDeviceTypesOutput, error) {
- if params == nil {
- params = &GetVpnConnectionDeviceTypesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetVpnConnectionDeviceTypes", params, optFns, c.addOperationGetVpnConnectionDeviceTypesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetVpnConnectionDeviceTypesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetVpnConnectionDeviceTypesInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The maximum number of results returned by GetVpnConnectionDeviceTypes in
- // paginated output. When this parameter is used, GetVpnConnectionDeviceTypes only
- // returns MaxResults results in a single page along with a NextToken response
- // element. The remaining results of the initial request can be seen by sending
- // another GetVpnConnectionDeviceTypes request with the returned NextToken value.
- // This value can be between 200 and 1000. If this parameter is not used, then
- // GetVpnConnectionDeviceTypes returns all results.
- MaxResults *int32
-
- // The NextToken value returned from a previous paginated
- // GetVpnConnectionDeviceTypes request where MaxResults was used and the results
- // exceeded the value of that parameter. Pagination continues from the end of the
- // previous results that returned the NextToken value. This value is null when
- // there are no more results to return.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type GetVpnConnectionDeviceTypesOutput struct {
-
- // The NextToken value to include in a future GetVpnConnectionDeviceTypes request.
- // When the results of a GetVpnConnectionDeviceTypes request exceed MaxResults ,
- // this value can be used to retrieve the next page of results. This value is null
- // when there are no more results to return.
- NextToken *string
-
- // List of customer gateway devices that have a sample configuration file
- // available for use.
- VpnConnectionDeviceTypes []types.VpnConnectionDeviceType
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetVpnConnectionDeviceTypesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetVpnConnectionDeviceTypes{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetVpnConnectionDeviceTypes{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetVpnConnectionDeviceTypes"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetVpnConnectionDeviceTypes(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// GetVpnConnectionDeviceTypesPaginatorOptions is the paginator options for
-// GetVpnConnectionDeviceTypes
-type GetVpnConnectionDeviceTypesPaginatorOptions struct {
- // The maximum number of results returned by GetVpnConnectionDeviceTypes in
- // paginated output. When this parameter is used, GetVpnConnectionDeviceTypes only
- // returns MaxResults results in a single page along with a NextToken response
- // element. The remaining results of the initial request can be seen by sending
- // another GetVpnConnectionDeviceTypes request with the returned NextToken value.
- // This value can be between 200 and 1000. If this parameter is not used, then
- // GetVpnConnectionDeviceTypes returns all results.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// GetVpnConnectionDeviceTypesPaginator is a paginator for
-// GetVpnConnectionDeviceTypes
-type GetVpnConnectionDeviceTypesPaginator struct {
- options GetVpnConnectionDeviceTypesPaginatorOptions
- client GetVpnConnectionDeviceTypesAPIClient
- params *GetVpnConnectionDeviceTypesInput
- nextToken *string
- firstPage bool
-}
-
-// NewGetVpnConnectionDeviceTypesPaginator returns a new
-// GetVpnConnectionDeviceTypesPaginator
-func NewGetVpnConnectionDeviceTypesPaginator(client GetVpnConnectionDeviceTypesAPIClient, params *GetVpnConnectionDeviceTypesInput, optFns ...func(*GetVpnConnectionDeviceTypesPaginatorOptions)) *GetVpnConnectionDeviceTypesPaginator {
- if params == nil {
- params = &GetVpnConnectionDeviceTypesInput{}
- }
-
- options := GetVpnConnectionDeviceTypesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &GetVpnConnectionDeviceTypesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *GetVpnConnectionDeviceTypesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next GetVpnConnectionDeviceTypes page.
-func (p *GetVpnConnectionDeviceTypesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetVpnConnectionDeviceTypesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.GetVpnConnectionDeviceTypes(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// GetVpnConnectionDeviceTypesAPIClient is a client that implements the
-// GetVpnConnectionDeviceTypes operation.
-type GetVpnConnectionDeviceTypesAPIClient interface {
- GetVpnConnectionDeviceTypes(context.Context, *GetVpnConnectionDeviceTypesInput, ...func(*Options)) (*GetVpnConnectionDeviceTypesOutput, error)
-}
-
-var _ GetVpnConnectionDeviceTypesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opGetVpnConnectionDeviceTypes(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetVpnConnectionDeviceTypes",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetVpnTunnelReplacementStatus.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetVpnTunnelReplacementStatus.go
deleted file mode 100644
index a55e3d9b4..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetVpnTunnelReplacementStatus.go
+++ /dev/null
@@ -1,186 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Get details of available tunnel endpoint maintenance.
-func (c *Client) GetVpnTunnelReplacementStatus(ctx context.Context, params *GetVpnTunnelReplacementStatusInput, optFns ...func(*Options)) (*GetVpnTunnelReplacementStatusOutput, error) {
- if params == nil {
- params = &GetVpnTunnelReplacementStatusInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "GetVpnTunnelReplacementStatus", params, optFns, c.addOperationGetVpnTunnelReplacementStatusMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*GetVpnTunnelReplacementStatusOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type GetVpnTunnelReplacementStatusInput struct {
-
- // The ID of the Site-to-Site VPN connection.
- //
- // This member is required.
- VpnConnectionId *string
-
- // The external IP address of the VPN tunnel.
- //
- // This member is required.
- VpnTunnelOutsideIpAddress *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type GetVpnTunnelReplacementStatusOutput struct {
-
- // The ID of the customer gateway.
- CustomerGatewayId *string
-
- // Get details of pending tunnel endpoint maintenance.
- MaintenanceDetails *types.MaintenanceDetails
-
- // The ID of the transit gateway associated with the VPN connection.
- TransitGatewayId *string
-
- // The ID of the Site-to-Site VPN connection.
- VpnConnectionId *string
-
- // The ID of the virtual private gateway.
- VpnGatewayId *string
-
- // The external IP address of the VPN tunnel.
- VpnTunnelOutsideIpAddress *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationGetVpnTunnelReplacementStatusMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpGetVpnTunnelReplacementStatus{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetVpnTunnelReplacementStatus{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "GetVpnTunnelReplacementStatus"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpGetVpnTunnelReplacementStatusValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetVpnTunnelReplacementStatus(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opGetVpnTunnelReplacementStatus(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "GetVpnTunnelReplacementStatus",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportClientVpnClientCertificateRevocationList.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportClientVpnClientCertificateRevocationList.go
deleted file mode 100644
index f5ff8033d..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportClientVpnClientCertificateRevocationList.go
+++ /dev/null
@@ -1,179 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Uploads a client certificate revocation list to the specified Client VPN
-// endpoint. Uploading a client certificate revocation list overwrites the existing
-// client certificate revocation list.
-//
-// Uploading a client certificate revocation list resets existing client
-// connections.
-func (c *Client) ImportClientVpnClientCertificateRevocationList(ctx context.Context, params *ImportClientVpnClientCertificateRevocationListInput, optFns ...func(*Options)) (*ImportClientVpnClientCertificateRevocationListOutput, error) {
- if params == nil {
- params = &ImportClientVpnClientCertificateRevocationListInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ImportClientVpnClientCertificateRevocationList", params, optFns, c.addOperationImportClientVpnClientCertificateRevocationListMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ImportClientVpnClientCertificateRevocationListOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ImportClientVpnClientCertificateRevocationListInput struct {
-
- // The client certificate revocation list file. For more information, see [Generate a Client Certificate Revocation List] in the
- // Client VPN Administrator Guide.
- //
- // [Generate a Client Certificate Revocation List]: https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/cvpn-working-certificates.html#cvpn-working-certificates-generate
- //
- // This member is required.
- CertificateRevocationList *string
-
- // The ID of the Client VPN endpoint to which the client certificate revocation
- // list applies.
- //
- // This member is required.
- ClientVpnEndpointId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ImportClientVpnClientCertificateRevocationListOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationImportClientVpnClientCertificateRevocationListMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpImportClientVpnClientCertificateRevocationList{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpImportClientVpnClientCertificateRevocationList{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ImportClientVpnClientCertificateRevocationList"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpImportClientVpnClientCertificateRevocationListValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opImportClientVpnClientCertificateRevocationList(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opImportClientVpnClientCertificateRevocationList(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ImportClientVpnClientCertificateRevocationList",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportImage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportImage.go
deleted file mode 100644
index 92bb8b38a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportImage.go
+++ /dev/null
@@ -1,325 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// To import your virtual machines (VMs) with a console-based experience, you can
-// use the Import virtual machine images to Amazon Web Services template in the [Migration Hub Orchestrator console].
-// For more information, see the [Migration Hub Orchestrator User Guide].
-//
-// Import single or multi-volume disk images or EBS snapshots into an Amazon
-// Machine Image (AMI).
-//
-// Amazon Web Services VM Import/Export strongly recommends specifying a value for
-// either the --license-type or --usage-operation parameter when you create a new
-// VM Import task. This ensures your operating system is licensed appropriately and
-// your billing is optimized.
-//
-// For more information, see [Importing a VM as an image using VM Import/Export] in the VM Import/Export User Guide.
-//
-// [Migration Hub Orchestrator console]: https://console.aws.amazon.com/migrationhub/orchestrator
-// [Importing a VM as an image using VM Import/Export]: https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html
-// [Migration Hub Orchestrator User Guide]: https://docs.aws.amazon.com/migrationhub-orchestrator/latest/userguide/import-vm-images.html
-func (c *Client) ImportImage(ctx context.Context, params *ImportImageInput, optFns ...func(*Options)) (*ImportImageOutput, error) {
- if params == nil {
- params = &ImportImageInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ImportImage", params, optFns, c.addOperationImportImageMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ImportImageOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ImportImageInput struct {
-
- // The architecture of the virtual machine.
- //
- // Valid values: i386 | x86_64
- Architecture *string
-
- // The boot mode of the virtual machine.
- //
- // The uefi-preferred boot mode isn't supported for importing images. For more
- // information, see [Boot modes]in the VM Import/Export User Guide.
- //
- // [Boot modes]: https://docs.aws.amazon.com/vm-import/latest/userguide/prerequisites.html#vmimport-boot-modes
- BootMode types.BootModeValues
-
- // The client-specific data.
- ClientData *types.ClientData
-
- // The token to enable idempotency for VM import requests.
- ClientToken *string
-
- // A description string for the import image task.
- Description *string
-
- // Information about the disk containers.
- DiskContainers []types.ImageDiskContainer
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Specifies whether the destination AMI of the imported image should be
- // encrypted. The default KMS key for EBS is used unless you specify a non-default
- // KMS key using KmsKeyId . For more information, see [Amazon EBS Encryption] in the Amazon Elastic
- // Compute Cloud User Guide.
- //
- // [Amazon EBS Encryption]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html
- Encrypted *bool
-
- // The target hypervisor platform.
- //
- // Valid values: xen
- Hypervisor *string
-
- // An identifier for the symmetric KMS key to use when creating the encrypted AMI.
- // This parameter is only required if you want to use a non-default KMS key; if
- // this parameter is not specified, the default KMS key for EBS is used. If a
- // KmsKeyId is specified, the Encrypted flag must also be set.
- //
- // The KMS key identifier may be provided in any of the following formats:
- //
- // - Key ID
- //
- // - Key alias
- //
- // - ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed by
- // the Region of the key, the Amazon Web Services account ID of the key owner, the
- // key namespace, and then the key ID. For example,
- // arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
- //
- // - ARN using key alias. The alias ARN contains the arn:aws:kms namespace,
- // followed by the Region of the key, the Amazon Web Services account ID of the key
- // owner, the alias namespace, and then the key alias. For example,
- // arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
- //
- // Amazon Web Services parses KmsKeyId asynchronously, meaning that the action you
- // call may appear to complete even though you provided an invalid identifier. This
- // action will eventually report failure.
- //
- // The specified KMS key must exist in the Region that the AMI is being copied to.
- //
- // Amazon EBS does not support asymmetric KMS keys.
- KmsKeyId *string
-
- // The ARNs of the license configurations.
- LicenseSpecifications []types.ImportImageLicenseConfigurationRequest
-
- // The license type to be used for the Amazon Machine Image (AMI) after importing.
- //
- // Specify AWS to replace the source-system license with an Amazon Web Services
- // license or BYOL to retain the source-system license. Leaving this parameter
- // undefined is the same as choosing AWS when importing a Windows Server operating
- // system, and the same as choosing BYOL when importing a Windows client operating
- // system (such as Windows 10) or a Linux operating system.
- //
- // To use BYOL , you must have existing licenses with rights to use these licenses
- // in a third party cloud, such as Amazon Web Services. For more information, see [Prerequisites]
- // in the VM Import/Export User Guide.
- //
- // [Prerequisites]: https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html#prerequisites-image
- LicenseType *string
-
- // The operating system of the virtual machine. If you import a VM that is
- // compatible with Unified Extensible Firmware Interface (UEFI) using an EBS
- // snapshot, you must specify a value for the platform.
- //
- // Valid values: Windows | Linux
- Platform *string
-
- // The name of the role to use when not using the default role, 'vmimport'.
- RoleName *string
-
- // The tags to apply to the import image task during creation.
- TagSpecifications []types.TagSpecification
-
- // The usage operation value. For more information, see [Licensing options] in the VM Import/Export
- // User Guide.
- //
- // [Licensing options]: https://docs.aws.amazon.com/vm-import/latest/userguide/vmie_prereqs.html#prerequisites
- UsageOperation *string
-
- noSmithyDocumentSerde
-}
-
-type ImportImageOutput struct {
-
- // The architecture of the virtual machine.
- Architecture *string
-
- // A description of the import task.
- Description *string
-
- // Indicates whether the AMI is encrypted.
- Encrypted *bool
-
- // The target hypervisor of the import task.
- Hypervisor *string
-
- // The ID of the Amazon Machine Image (AMI) created by the import task.
- ImageId *string
-
- // The task ID of the import image task.
- ImportTaskId *string
-
- // The identifier for the symmetric KMS key that was used to create the encrypted
- // AMI.
- KmsKeyId *string
-
- // The ARNs of the license configurations.
- LicenseSpecifications []types.ImportImageLicenseConfigurationResponse
-
- // The license type of the virtual machine.
- LicenseType *string
-
- // The operating system of the virtual machine.
- Platform *string
-
- // The progress of the task.
- Progress *string
-
- // Information about the snapshots.
- SnapshotDetails []types.SnapshotDetail
-
- // A brief status of the task.
- Status *string
-
- // A detailed status message of the import task.
- StatusMessage *string
-
- // Any tags assigned to the import image task.
- Tags []types.Tag
-
- // The usage operation value.
- UsageOperation *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationImportImageMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpImportImage{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpImportImage{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ImportImage"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opImportImage(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opImportImage(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ImportImage",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportInstance.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportInstance.go
deleted file mode 100644
index 2f95e9140..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportInstance.go
+++ /dev/null
@@ -1,189 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// We recommend that you use the [ImportImage]ImportImage API instead. For more information,
-// see [Importing a VM as an image using VM Import/Export]in the VM Import/Export User Guide.
-//
-// Creates an import instance task using metadata from the specified disk image.
-//
-// This API action supports only single-volume VMs. To import multi-volume VMs,
-// use ImportImageinstead.
-//
-// For information about the import manifest referenced by this API action, see [VM Import Manifest].
-//
-// This API action is not supported by the Command Line Interface (CLI).
-//
-// [Importing a VM as an image using VM Import/Export]: https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html
-// [ImportImage]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportImage.html
-// [VM Import Manifest]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html
-func (c *Client) ImportInstance(ctx context.Context, params *ImportInstanceInput, optFns ...func(*Options)) (*ImportInstanceOutput, error) {
- if params == nil {
- params = &ImportInstanceInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ImportInstance", params, optFns, c.addOperationImportInstanceMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ImportInstanceOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ImportInstanceInput struct {
-
- // The instance operating system.
- //
- // This member is required.
- Platform types.PlatformValues
-
- // A description for the instance being imported.
- Description *string
-
- // The disk image.
- DiskImages []types.DiskImage
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The launch specification.
- LaunchSpecification *types.ImportInstanceLaunchSpecification
-
- noSmithyDocumentSerde
-}
-
-type ImportInstanceOutput struct {
-
- // Information about the conversion task.
- ConversionTask *types.ConversionTask
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationImportInstanceMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpImportInstance{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpImportInstance{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ImportInstance"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpImportInstanceValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opImportInstance(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opImportInstance(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ImportInstance",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportKeyPair.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportKeyPair.go
deleted file mode 100644
index aa86e1013..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportKeyPair.go
+++ /dev/null
@@ -1,196 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Imports the public key from an RSA or ED25519 key pair that you created using a
-// third-party tool. You give Amazon Web Services only the public key. The private
-// key is never transferred between you and Amazon Web Services.
-//
-// For more information about the requirements for importing a key pair, see [Create a key pair and import the public key to Amazon EC2] in
-// the Amazon EC2 User Guide.
-//
-// [Create a key pair and import the public key to Amazon EC2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-key-pairs.html#how-to-generate-your-own-key-and-import-it-to-aws
-func (c *Client) ImportKeyPair(ctx context.Context, params *ImportKeyPairInput, optFns ...func(*Options)) (*ImportKeyPairOutput, error) {
- if params == nil {
- params = &ImportKeyPairInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ImportKeyPair", params, optFns, c.addOperationImportKeyPairMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ImportKeyPairOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ImportKeyPairInput struct {
-
- // A unique name for the key pair.
- //
- // This member is required.
- KeyName *string
-
- // The public key.
- //
- // This member is required.
- PublicKeyMaterial []byte
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags to apply to the imported key pair.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type ImportKeyPairOutput struct {
-
- // - For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as
- // specified in section 4 of RFC 4716.
- //
- // - For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256
- // digest, which is the default for OpenSSH, starting with [OpenSSH 6.8].
- //
- // [OpenSSH 6.8]: http://www.openssh.com/txt/release-6.8
- KeyFingerprint *string
-
- // The key pair name that you provided.
- KeyName *string
-
- // The ID of the resulting key pair.
- KeyPairId *string
-
- // The tags applied to the imported key pair.
- Tags []types.Tag
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationImportKeyPairMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpImportKeyPair{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpImportKeyPair{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ImportKeyPair"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpImportKeyPairValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opImportKeyPair(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opImportKeyPair(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ImportKeyPair",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportSnapshot.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportSnapshot.go
deleted file mode 100644
index f2219bf88..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportSnapshot.go
+++ /dev/null
@@ -1,228 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Imports a disk into an EBS snapshot.
-//
-// For more information, see [Importing a disk as a snapshot using VM Import/Export] in the VM Import/Export User Guide.
-//
-// [Importing a disk as a snapshot using VM Import/Export]: https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-import-snapshot.html
-func (c *Client) ImportSnapshot(ctx context.Context, params *ImportSnapshotInput, optFns ...func(*Options)) (*ImportSnapshotOutput, error) {
- if params == nil {
- params = &ImportSnapshotInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ImportSnapshot", params, optFns, c.addOperationImportSnapshotMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ImportSnapshotOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ImportSnapshotInput struct {
-
- // The client-specific data.
- ClientData *types.ClientData
-
- // Token to enable idempotency for VM import requests.
- ClientToken *string
-
- // The description string for the import snapshot task.
- Description *string
-
- // Information about the disk container.
- DiskContainer *types.SnapshotDiskContainer
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Specifies whether the destination snapshot of the imported image should be
- // encrypted. The default KMS key for EBS is used unless you specify a non-default
- // KMS key using KmsKeyId . For more information, see [Amazon EBS Encryption] in the Amazon Elastic
- // Compute Cloud User Guide.
- //
- // [Amazon EBS Encryption]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html
- Encrypted *bool
-
- // An identifier for the symmetric KMS key to use when creating the encrypted
- // snapshot. This parameter is only required if you want to use a non-default KMS
- // key; if this parameter is not specified, the default KMS key for EBS is used. If
- // a KmsKeyId is specified, the Encrypted flag must also be set.
- //
- // The KMS key identifier may be provided in any of the following formats:
- //
- // - Key ID
- //
- // - Key alias
- //
- // - ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed by
- // the Region of the key, the Amazon Web Services account ID of the key owner, the
- // key namespace, and then the key ID. For example,
- // arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
- //
- // - ARN using key alias. The alias ARN contains the arn:aws:kms namespace,
- // followed by the Region of the key, the Amazon Web Services account ID of the key
- // owner, the alias namespace, and then the key alias. For example,
- // arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
- //
- // Amazon Web Services parses KmsKeyId asynchronously, meaning that the action you
- // call may appear to complete even though you provided an invalid identifier. This
- // action will eventually report failure.
- //
- // The specified KMS key must exist in the Region that the snapshot is being
- // copied to.
- //
- // Amazon EBS does not support asymmetric KMS keys.
- KmsKeyId *string
-
- // The name of the role to use when not using the default role, 'vmimport'.
- RoleName *string
-
- // The tags to apply to the import snapshot task during creation.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type ImportSnapshotOutput struct {
-
- // A description of the import snapshot task.
- Description *string
-
- // The ID of the import snapshot task.
- ImportTaskId *string
-
- // Information about the import snapshot task.
- SnapshotTaskDetail *types.SnapshotTaskDetail
-
- // Any tags assigned to the import snapshot task.
- Tags []types.Tag
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationImportSnapshotMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpImportSnapshot{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpImportSnapshot{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ImportSnapshot"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opImportSnapshot(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opImportSnapshot(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ImportSnapshot",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportVolume.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportVolume.go
deleted file mode 100644
index a079c4f95..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportVolume.go
+++ /dev/null
@@ -1,188 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// This API action supports only single-volume VMs. To import multi-volume VMs,
-// use ImportImageinstead. To import a disk to a snapshot, use ImportSnapshot instead.
-//
-// Creates an import volume task using metadata from the specified disk image.
-//
-// For information about the import manifest referenced by this API action, see [VM Import Manifest].
-//
-// This API action is not supported by the Command Line Interface (CLI).
-//
-// [VM Import Manifest]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html
-func (c *Client) ImportVolume(ctx context.Context, params *ImportVolumeInput, optFns ...func(*Options)) (*ImportVolumeOutput, error) {
- if params == nil {
- params = &ImportVolumeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ImportVolume", params, optFns, c.addOperationImportVolumeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ImportVolumeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ImportVolumeInput struct {
-
- // The Availability Zone for the resulting EBS volume.
- //
- // This member is required.
- AvailabilityZone *string
-
- // The disk image.
- //
- // This member is required.
- Image *types.DiskImageDetail
-
- // The volume size.
- //
- // This member is required.
- Volume *types.VolumeDetail
-
- // A description of the volume.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ImportVolumeOutput struct {
-
- // Information about the conversion task.
- ConversionTask *types.ConversionTask
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationImportVolumeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpImportVolume{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpImportVolume{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ImportVolume"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpImportVolumeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opImportVolume(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opImportVolume(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ImportVolume",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ListImagesInRecycleBin.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ListImagesInRecycleBin.go
deleted file mode 100644
index 274d87e22..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ListImagesInRecycleBin.go
+++ /dev/null
@@ -1,278 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Lists one or more AMIs that are currently in the Recycle Bin. For more
-// information, see [Recycle Bin]in the Amazon EC2 User Guide.
-//
-// [Recycle Bin]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html
-func (c *Client) ListImagesInRecycleBin(ctx context.Context, params *ListImagesInRecycleBinInput, optFns ...func(*Options)) (*ListImagesInRecycleBinOutput, error) {
- if params == nil {
- params = &ListImagesInRecycleBinInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ListImagesInRecycleBin", params, optFns, c.addOperationListImagesInRecycleBinMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ListImagesInRecycleBinOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ListImagesInRecycleBinInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The IDs of the AMIs to list. Omit this parameter to list all of the AMIs that
- // are in the Recycle Bin. You can specify up to 20 IDs in a single request.
- ImageIds []string
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type ListImagesInRecycleBinOutput struct {
-
- // Information about the AMIs.
- Images []types.ImageRecycleBinInfo
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationListImagesInRecycleBinMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpListImagesInRecycleBin{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpListImagesInRecycleBin{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ListImagesInRecycleBin"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListImagesInRecycleBin(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// ListImagesInRecycleBinPaginatorOptions is the paginator options for
-// ListImagesInRecycleBin
-type ListImagesInRecycleBinPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// ListImagesInRecycleBinPaginator is a paginator for ListImagesInRecycleBin
-type ListImagesInRecycleBinPaginator struct {
- options ListImagesInRecycleBinPaginatorOptions
- client ListImagesInRecycleBinAPIClient
- params *ListImagesInRecycleBinInput
- nextToken *string
- firstPage bool
-}
-
-// NewListImagesInRecycleBinPaginator returns a new ListImagesInRecycleBinPaginator
-func NewListImagesInRecycleBinPaginator(client ListImagesInRecycleBinAPIClient, params *ListImagesInRecycleBinInput, optFns ...func(*ListImagesInRecycleBinPaginatorOptions)) *ListImagesInRecycleBinPaginator {
- if params == nil {
- params = &ListImagesInRecycleBinInput{}
- }
-
- options := ListImagesInRecycleBinPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &ListImagesInRecycleBinPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *ListImagesInRecycleBinPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next ListImagesInRecycleBin page.
-func (p *ListImagesInRecycleBinPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListImagesInRecycleBinOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.ListImagesInRecycleBin(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// ListImagesInRecycleBinAPIClient is a client that implements the
-// ListImagesInRecycleBin operation.
-type ListImagesInRecycleBinAPIClient interface {
- ListImagesInRecycleBin(context.Context, *ListImagesInRecycleBinInput, ...func(*Options)) (*ListImagesInRecycleBinOutput, error)
-}
-
-var _ ListImagesInRecycleBinAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opListImagesInRecycleBin(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ListImagesInRecycleBin",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ListSnapshotsInRecycleBin.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ListSnapshotsInRecycleBin.go
deleted file mode 100644
index 34fc82851..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ListSnapshotsInRecycleBin.go
+++ /dev/null
@@ -1,276 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Lists one or more snapshots that are currently in the Recycle Bin.
-func (c *Client) ListSnapshotsInRecycleBin(ctx context.Context, params *ListSnapshotsInRecycleBinInput, optFns ...func(*Options)) (*ListSnapshotsInRecycleBinOutput, error) {
- if params == nil {
- params = &ListSnapshotsInRecycleBinInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ListSnapshotsInRecycleBin", params, optFns, c.addOperationListSnapshotsInRecycleBinMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ListSnapshotsInRecycleBinOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ListSnapshotsInRecycleBinInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- MaxResults *int32
-
- // The token returned from a previous paginated request. Pagination continues from
- // the end of the items returned by the previous request.
- NextToken *string
-
- // The IDs of the snapshots to list. Omit this parameter to list all of the
- // snapshots that are in the Recycle Bin.
- SnapshotIds []string
-
- noSmithyDocumentSerde
-}
-
-type ListSnapshotsInRecycleBinOutput struct {
-
- // The token to include in another request to get the next page of items. This
- // value is null when there are no more items to return.
- NextToken *string
-
- // Information about the snapshots.
- Snapshots []types.SnapshotRecycleBinInfo
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationListSnapshotsInRecycleBinMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpListSnapshotsInRecycleBin{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpListSnapshotsInRecycleBin{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ListSnapshotsInRecycleBin"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListSnapshotsInRecycleBin(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// ListSnapshotsInRecycleBinPaginatorOptions is the paginator options for
-// ListSnapshotsInRecycleBin
-type ListSnapshotsInRecycleBinPaginatorOptions struct {
- // The maximum number of items to return for this request. To get the next page of
- // items, make another request with the token returned in the output. For more
- // information, see [Pagination].
- //
- // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// ListSnapshotsInRecycleBinPaginator is a paginator for ListSnapshotsInRecycleBin
-type ListSnapshotsInRecycleBinPaginator struct {
- options ListSnapshotsInRecycleBinPaginatorOptions
- client ListSnapshotsInRecycleBinAPIClient
- params *ListSnapshotsInRecycleBinInput
- nextToken *string
- firstPage bool
-}
-
-// NewListSnapshotsInRecycleBinPaginator returns a new
-// ListSnapshotsInRecycleBinPaginator
-func NewListSnapshotsInRecycleBinPaginator(client ListSnapshotsInRecycleBinAPIClient, params *ListSnapshotsInRecycleBinInput, optFns ...func(*ListSnapshotsInRecycleBinPaginatorOptions)) *ListSnapshotsInRecycleBinPaginator {
- if params == nil {
- params = &ListSnapshotsInRecycleBinInput{}
- }
-
- options := ListSnapshotsInRecycleBinPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &ListSnapshotsInRecycleBinPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *ListSnapshotsInRecycleBinPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next ListSnapshotsInRecycleBin page.
-func (p *ListSnapshotsInRecycleBinPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListSnapshotsInRecycleBinOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.ListSnapshotsInRecycleBin(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// ListSnapshotsInRecycleBinAPIClient is a client that implements the
-// ListSnapshotsInRecycleBin operation.
-type ListSnapshotsInRecycleBinAPIClient interface {
- ListSnapshotsInRecycleBin(context.Context, *ListSnapshotsInRecycleBinInput, ...func(*Options)) (*ListSnapshotsInRecycleBinOutput, error)
-}
-
-var _ ListSnapshotsInRecycleBinAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opListSnapshotsInRecycleBin(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ListSnapshotsInRecycleBin",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_LockSnapshot.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_LockSnapshot.go
deleted file mode 100644
index 682fe3e19..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_LockSnapshot.go
+++ /dev/null
@@ -1,284 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Locks an Amazon EBS snapshot in either governance or compliance mode to protect
-// it against accidental or malicious deletions for a specific duration. A locked
-// snapshot can't be deleted.
-//
-// You can also use this action to modify the lock settings for a snapshot that is
-// already locked. The allowed modifications depend on the lock mode and lock
-// state:
-//
-// - If the snapshot is locked in governance mode, you can modify the lock mode
-// and the lock duration or lock expiration date.
-//
-// - If the snapshot is locked in compliance mode and it is in the cooling-off
-// period, you can modify the lock mode and the lock duration or lock expiration
-// date.
-//
-// - If the snapshot is locked in compliance mode and the cooling-off period has
-// lapsed, you can only increase the lock duration or extend the lock expiration
-// date.
-func (c *Client) LockSnapshot(ctx context.Context, params *LockSnapshotInput, optFns ...func(*Options)) (*LockSnapshotOutput, error) {
- if params == nil {
- params = &LockSnapshotInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "LockSnapshot", params, optFns, c.addOperationLockSnapshotMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*LockSnapshotOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type LockSnapshotInput struct {
-
- // The mode in which to lock the snapshot. Specify one of the following:
- //
- // - governance - Locks the snapshot in governance mode. Snapshots locked in
- // governance mode can't be deleted until one of the following conditions are met:
- //
- // - The lock duration expires.
- //
- // - The snapshot is unlocked by a user with the appropriate permissions.
- //
- // Users with the appropriate IAM permissions can unlock the snapshot, increase or
- // decrease the lock duration, and change the lock mode to compliance at any time.
- //
- // If you lock a snapshot in governance mode, omit CoolOffPeriod.
- //
- // - compliance - Locks the snapshot in compliance mode. Snapshots locked in
- // compliance mode can't be unlocked by any user. They can be deleted only after
- // the lock duration expires. Users can't decrease the lock duration or change the
- // lock mode to governance . However, users with appropriate IAM permissions can
- // increase the lock duration at any time.
- //
- // If you lock a snapshot in compliance mode, you can optionally specify
- // CoolOffPeriod.
- //
- // This member is required.
- LockMode types.LockMode
-
- // The ID of the snapshot to lock.
- //
- // This member is required.
- SnapshotId *string
-
- // The cooling-off period during which you can unlock the snapshot or modify the
- // lock settings after locking the snapshot in compliance mode, in hours. After the
- // cooling-off period expires, you can't unlock or delete the snapshot, decrease
- // the lock duration, or change the lock mode. You can increase the lock duration
- // after the cooling-off period expires.
- //
- // The cooling-off period is optional when locking a snapshot in compliance mode.
- // If you are locking the snapshot in governance mode, omit this parameter.
- //
- // To lock the snapshot in compliance mode immediately without a cooling-off
- // period, omit this parameter.
- //
- // If you are extending the lock duration for a snapshot that is locked in
- // compliance mode after the cooling-off period has expired, omit this parameter.
- // If you specify a cooling-period in a such a request, the request fails.
- //
- // Allowed values: Min 1, max 72.
- CoolOffPeriod *int32
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The date and time at which the snapshot lock is to automatically expire, in the
- // UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ ).
- //
- // You must specify either this parameter or LockDuration, but not both.
- ExpirationDate *time.Time
-
- // The period of time for which to lock the snapshot, in days. The snapshot lock
- // will automatically expire after this period lapses.
- //
- // You must specify either this parameter or ExpirationDate, but not both.
- //
- // Allowed values: Min: 1, max 36500
- LockDuration *int32
-
- noSmithyDocumentSerde
-}
-
-type LockSnapshotOutput struct {
-
- // The compliance mode cooling-off period, in hours.
- CoolOffPeriod *int32
-
- // The date and time at which the compliance mode cooling-off period expires, in
- // the UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ ).
- CoolOffPeriodExpiresOn *time.Time
-
- // The date and time at which the snapshot was locked, in the UTC time zone (
- // YYYY-MM-DDThh:mm:ss.sssZ ).
- LockCreatedOn *time.Time
-
- // The period of time for which the snapshot is locked, in days.
- LockDuration *int32
-
- // The date and time at which the lock duration started, in the UTC time zone (
- // YYYY-MM-DDThh:mm:ss.sssZ ).
- LockDurationStartTime *time.Time
-
- // The date and time at which the lock will expire, in the UTC time zone (
- // YYYY-MM-DDThh:mm:ss.sssZ ).
- LockExpiresOn *time.Time
-
- // The state of the snapshot lock. Valid states include:
- //
- // - compliance-cooloff - The snapshot has been locked in compliance mode but it
- // is still within the cooling-off period. The snapshot can't be deleted, but it
- // can be unlocked and the lock settings can be modified by users with appropriate
- // permissions.
- //
- // - governance - The snapshot is locked in governance mode. The snapshot can't
- // be deleted, but it can be unlocked and the lock settings can be modified by
- // users with appropriate permissions.
- //
- // - compliance - The snapshot is locked in compliance mode and the cooling-off
- // period has expired. The snapshot can't be unlocked or deleted. The lock duration
- // can only be increased by users with appropriate permissions.
- //
- // - expired - The snapshot was locked in compliance or governance mode but the
- // lock duration has expired. The snapshot is not locked and can be deleted.
- LockState types.LockState
-
- // The ID of the snapshot
- SnapshotId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationLockSnapshotMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpLockSnapshot{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpLockSnapshot{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "LockSnapshot"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpLockSnapshotValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opLockSnapshot(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opLockSnapshot(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "LockSnapshot",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyAddressAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyAddressAttribute.go
deleted file mode 100644
index 84f8863e1..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyAddressAttribute.go
+++ /dev/null
@@ -1,172 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies an attribute of the specified Elastic IP address. For requirements,
-// see [Using reverse DNS for email applications].
-//
-// [Using reverse DNS for email applications]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html#Using_Elastic_Addressing_Reverse_DNS
-func (c *Client) ModifyAddressAttribute(ctx context.Context, params *ModifyAddressAttributeInput, optFns ...func(*Options)) (*ModifyAddressAttributeOutput, error) {
- if params == nil {
- params = &ModifyAddressAttributeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyAddressAttribute", params, optFns, c.addOperationModifyAddressAttributeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyAddressAttributeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyAddressAttributeInput struct {
-
- // [EC2-VPC] The allocation ID.
- //
- // This member is required.
- AllocationId *string
-
- // The domain name to modify for the IP address.
- DomainName *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyAddressAttributeOutput struct {
-
- // Information about the Elastic IP address.
- Address *types.AddressAttribute
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyAddressAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyAddressAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyAddressAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyAddressAttribute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyAddressAttributeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyAddressAttribute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyAddressAttribute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyAddressAttribute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyAvailabilityZoneGroup.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyAvailabilityZoneGroup.go
deleted file mode 100644
index afb33c524..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyAvailabilityZoneGroup.go
+++ /dev/null
@@ -1,174 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Changes the opt-in status of the specified zone group for your account.
-func (c *Client) ModifyAvailabilityZoneGroup(ctx context.Context, params *ModifyAvailabilityZoneGroupInput, optFns ...func(*Options)) (*ModifyAvailabilityZoneGroupOutput, error) {
- if params == nil {
- params = &ModifyAvailabilityZoneGroupInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyAvailabilityZoneGroup", params, optFns, c.addOperationModifyAvailabilityZoneGroupMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyAvailabilityZoneGroupOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyAvailabilityZoneGroupInput struct {
-
- // The name of the Availability Zone group, Local Zone group, or Wavelength Zone
- // group.
- //
- // This member is required.
- GroupName *string
-
- // Indicates whether to opt in to the zone group. The only valid value is opted-in
- // . You must contact Amazon Web Services Support to opt out of a Local Zone or
- // Wavelength Zone group.
- //
- // This member is required.
- OptInStatus types.ModifyAvailabilityZoneOptInStatus
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyAvailabilityZoneGroupOutput struct {
-
- // Is true if the request succeeds, and an error otherwise.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyAvailabilityZoneGroupMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyAvailabilityZoneGroup{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyAvailabilityZoneGroup{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyAvailabilityZoneGroup"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyAvailabilityZoneGroupValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyAvailabilityZoneGroup(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyAvailabilityZoneGroup(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyAvailabilityZoneGroup",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyCapacityReservation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyCapacityReservation.go
deleted file mode 100644
index b0087674b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyCapacityReservation.go
+++ /dev/null
@@ -1,234 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Modifies a Capacity Reservation's capacity, instance eligibility, and the
-// conditions under which it is to be released. You can't modify a Capacity
-// Reservation's instance type, EBS optimization, platform, instance store
-// settings, Availability Zone, or tenancy. If you need to modify any of these
-// attributes, we recommend that you cancel the Capacity Reservation, and then
-// create a new one with the required attributes. For more information, see [Modify an active Capacity Reservation].
-//
-// The allowed modifications depend on the state of the Capacity Reservation:
-//
-// - assessing or scheduled state - You can modify the tags only.
-//
-// - pending state - You can't modify the Capacity Reservation in any way.
-//
-// - active state but still within the commitment duration - You can't decrease
-// the instance count or set an end date that is within the commitment duration.
-// All other modifications are allowed.
-//
-// - active state with no commitment duration or elapsed commitment duration -
-// All modifications are allowed.
-//
-// - expired , cancelled , unsupported , or failed state - You can't modify the
-// Capacity Reservation in any way.
-//
-// [Modify an active Capacity Reservation]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-modify.html
-func (c *Client) ModifyCapacityReservation(ctx context.Context, params *ModifyCapacityReservationInput, optFns ...func(*Options)) (*ModifyCapacityReservationOutput, error) {
- if params == nil {
- params = &ModifyCapacityReservationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyCapacityReservation", params, optFns, c.addOperationModifyCapacityReservationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyCapacityReservationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyCapacityReservationInput struct {
-
- // The ID of the Capacity Reservation.
- //
- // This member is required.
- CapacityReservationId *string
-
- // Reserved. Capacity Reservations you have created are accepted by default.
- Accept *bool
-
- // Reserved for future use.
- AdditionalInfo *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The date and time at which the Capacity Reservation expires. When a Capacity
- // Reservation expires, the reserved capacity is released and you can no longer
- // launch instances into it. The Capacity Reservation's state changes to expired
- // when it reaches its end date and time.
- //
- // The Capacity Reservation is cancelled within an hour from the specified time.
- // For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is
- // guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
- //
- // You must provide an EndDate value if EndDateType is limited . Omit EndDate if
- // EndDateType is unlimited .
- EndDate *time.Time
-
- // Indicates the way in which the Capacity Reservation ends. A Capacity
- // Reservation can have one of the following end types:
- //
- // - unlimited - The Capacity Reservation remains active until you explicitly
- // cancel it. Do not provide an EndDate value if EndDateType is unlimited .
- //
- // - limited - The Capacity Reservation expires automatically at a specified date
- // and time. You must provide an EndDate value if EndDateType is limited .
- EndDateType types.EndDateType
-
- // The number of instances for which to reserve capacity. The number of instances
- // can't be increased or decreased by more than 1000 in a single request.
- InstanceCount *int32
-
- // The matching criteria (instance eligibility) that you want to use in the
- // modified Capacity Reservation. If you change the instance eligibility of an
- // existing Capacity Reservation from targeted to open , any running instances that
- // match the attributes of the Capacity Reservation, have the
- // CapacityReservationPreference set to open , and are not yet running in the
- // Capacity Reservation, will automatically use the modified Capacity Reservation.
- //
- // To modify the instance eligibility, the Capacity Reservation must be completely
- // idle (zero usage).
- InstanceMatchCriteria types.InstanceMatchCriteria
-
- noSmithyDocumentSerde
-}
-
-type ModifyCapacityReservationOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyCapacityReservationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyCapacityReservation{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyCapacityReservation{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyCapacityReservation"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyCapacityReservationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyCapacityReservation(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyCapacityReservation(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyCapacityReservation",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyCapacityReservationFleet.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyCapacityReservationFleet.go
deleted file mode 100644
index 76bc192a8..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyCapacityReservationFleet.go
+++ /dev/null
@@ -1,200 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Modifies a Capacity Reservation Fleet.
-//
-// When you modify the total target capacity of a Capacity Reservation Fleet, the
-// Fleet automatically creates new Capacity Reservations, or modifies or cancels
-// existing Capacity Reservations in the Fleet to meet the new total target
-// capacity. When you modify the end date for the Fleet, the end dates for all of
-// the individual Capacity Reservations in the Fleet are updated accordingly.
-func (c *Client) ModifyCapacityReservationFleet(ctx context.Context, params *ModifyCapacityReservationFleetInput, optFns ...func(*Options)) (*ModifyCapacityReservationFleetOutput, error) {
- if params == nil {
- params = &ModifyCapacityReservationFleetInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyCapacityReservationFleet", params, optFns, c.addOperationModifyCapacityReservationFleetMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyCapacityReservationFleetOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyCapacityReservationFleetInput struct {
-
- // The ID of the Capacity Reservation Fleet to modify.
- //
- // This member is required.
- CapacityReservationFleetId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The date and time at which the Capacity Reservation Fleet expires. When the
- // Capacity Reservation Fleet expires, its state changes to expired and all of the
- // Capacity Reservations in the Fleet expire.
- //
- // The Capacity Reservation Fleet expires within an hour after the specified time.
- // For example, if you specify 5/31/2019 , 13:30:55 , the Capacity Reservation
- // Fleet is guaranteed to expire between 13:30:55 and 14:30:55 on 5/31/2019 .
- //
- // You can't specify EndDate and RemoveEndDate in the same request.
- EndDate *time.Time
-
- // Indicates whether to remove the end date from the Capacity Reservation Fleet.
- // If you remove the end date, the Capacity Reservation Fleet does not expire and
- // it remains active until you explicitly cancel it using the
- // CancelCapacityReservationFleet action.
- //
- // You can't specify RemoveEndDate and EndDate in the same request.
- RemoveEndDate *bool
-
- // The total number of capacity units to be reserved by the Capacity Reservation
- // Fleet. This value, together with the instance type weights that you assign to
- // each instance type used by the Fleet determine the number of instances for which
- // the Fleet reserves capacity. Both values are based on units that make sense for
- // your workload. For more information, see [Total target capacity]in the Amazon EC2 User Guide.
- //
- // [Total target capacity]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#target-capacity
- TotalTargetCapacity *int32
-
- noSmithyDocumentSerde
-}
-
-type ModifyCapacityReservationFleetOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyCapacityReservationFleetMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyCapacityReservationFleet{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyCapacityReservationFleet{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyCapacityReservationFleet"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyCapacityReservationFleetValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyCapacityReservationFleet(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyCapacityReservationFleet(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyCapacityReservationFleet",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyClientVpnEndpoint.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyClientVpnEndpoint.go
deleted file mode 100644
index df4363418..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyClientVpnEndpoint.go
+++ /dev/null
@@ -1,248 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the specified Client VPN endpoint. Modifying the DNS server resets
-// existing client connections.
-func (c *Client) ModifyClientVpnEndpoint(ctx context.Context, params *ModifyClientVpnEndpointInput, optFns ...func(*Options)) (*ModifyClientVpnEndpointOutput, error) {
- if params == nil {
- params = &ModifyClientVpnEndpointInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyClientVpnEndpoint", params, optFns, c.addOperationModifyClientVpnEndpointMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyClientVpnEndpointOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyClientVpnEndpointInput struct {
-
- // The ID of the Client VPN endpoint to modify.
- //
- // This member is required.
- ClientVpnEndpointId *string
-
- // The options for managing connection authorization for new client connections.
- ClientConnectOptions *types.ClientConnectOptions
-
- // Options for enabling a customizable text banner that will be displayed on
- // Amazon Web Services provided clients when a VPN session is established.
- ClientLoginBannerOptions *types.ClientLoginBannerOptions
-
- // Client route enforcement is a feature of the Client VPN service that helps
- // enforce administrator defined routes on devices connected through the VPN. T his
- // feature helps improve your security posture by ensuring that network traffic
- // originating from a connected client is not inadvertently sent outside the VPN
- // tunnel.
- //
- // Client route enforcement works by monitoring the route table of a connected
- // device for routing policy changes to the VPN connection. If the feature detects
- // any VPN routing policy modifications, it will automatically force an update to
- // the route table, reverting it back to the expected route configurations.
- ClientRouteEnforcementOptions *types.ClientRouteEnforcementOptions
-
- // Information about the client connection logging options.
- //
- // If you enable client connection logging, data about client connections is sent
- // to a Cloudwatch Logs log stream. The following information is logged:
- //
- // - Client connection requests
- //
- // - Client connection results (successful and unsuccessful)
- //
- // - Reasons for unsuccessful client connection requests
- //
- // - Client connection termination time
- ConnectionLogOptions *types.ConnectionLogOptions
-
- // A brief description of the Client VPN endpoint.
- Description *string
-
- // Indicates whether the client VPN session is disconnected after the maximum
- // timeout specified in sessionTimeoutHours is reached. If true , users are
- // prompted to reconnect client VPN. If false , client VPN attempts to reconnect
- // automatically. The default value is true .
- DisconnectOnSessionTimeout *bool
-
- // Information about the DNS servers to be used by Client VPN connections. A
- // Client VPN endpoint can have up to two DNS servers.
- DnsServers *types.DnsServersOptionsModifyStructure
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The IDs of one or more security groups to apply to the target network.
- SecurityGroupIds []string
-
- // Specify whether to enable the self-service portal for the Client VPN endpoint.
- SelfServicePortal types.SelfServicePortal
-
- // The ARN of the server certificate to be used. The server certificate must be
- // provisioned in Certificate Manager (ACM).
- ServerCertificateArn *string
-
- // The maximum VPN session duration time in hours.
- //
- // Valid values: 8 | 10 | 12 | 24
- //
- // Default value: 24
- SessionTimeoutHours *int32
-
- // Indicates whether the VPN is split-tunnel.
- //
- // For information about split-tunnel VPN endpoints, see [Split-tunnel Client VPN endpoint] in the Client VPN
- // Administrator Guide.
- //
- // [Split-tunnel Client VPN endpoint]: https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html
- SplitTunnel *bool
-
- // The ID of the VPC to associate with the Client VPN endpoint.
- VpcId *string
-
- // The port number to assign to the Client VPN endpoint for TCP and UDP traffic.
- //
- // Valid Values: 443 | 1194
- //
- // Default Value: 443
- VpnPort *int32
-
- noSmithyDocumentSerde
-}
-
-type ModifyClientVpnEndpointOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyClientVpnEndpointMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyClientVpnEndpoint{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyClientVpnEndpoint{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyClientVpnEndpoint"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyClientVpnEndpointValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyClientVpnEndpoint(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyClientVpnEndpoint(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyClientVpnEndpoint",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyDefaultCreditSpecification.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyDefaultCreditSpecification.go
deleted file mode 100644
index a422898f6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyDefaultCreditSpecification.go
+++ /dev/null
@@ -1,188 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the default credit option for CPU usage of burstable performance
-// instances. The default credit option is set at the account level per Amazon Web
-// Services Region, and is specified per instance family. All new burstable
-// performance instances in the account launch using the default credit option.
-//
-// ModifyDefaultCreditSpecification is an asynchronous operation, which works at
-// an Amazon Web Services Region level and modifies the credit option for each
-// Availability Zone. All zones in a Region are updated within five minutes. But if
-// instances are launched during this operation, they might not get the new credit
-// option until the zone is updated. To verify whether the update has occurred, you
-// can call GetDefaultCreditSpecification and check DefaultCreditSpecification for
-// updates.
-//
-// For more information, see [Burstable performance instances] in the Amazon EC2 User Guide.
-//
-// [Burstable performance instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html
-func (c *Client) ModifyDefaultCreditSpecification(ctx context.Context, params *ModifyDefaultCreditSpecificationInput, optFns ...func(*Options)) (*ModifyDefaultCreditSpecificationOutput, error) {
- if params == nil {
- params = &ModifyDefaultCreditSpecificationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyDefaultCreditSpecification", params, optFns, c.addOperationModifyDefaultCreditSpecificationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyDefaultCreditSpecificationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyDefaultCreditSpecificationInput struct {
-
- // The credit option for CPU usage of the instance family.
- //
- // Valid Values: standard | unlimited
- //
- // This member is required.
- CpuCredits *string
-
- // The instance family.
- //
- // This member is required.
- InstanceFamily types.UnlimitedSupportedInstanceFamily
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyDefaultCreditSpecificationOutput struct {
-
- // The default credit option for CPU usage of the instance family.
- InstanceFamilyCreditSpecification *types.InstanceFamilyCreditSpecification
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyDefaultCreditSpecificationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyDefaultCreditSpecification{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyDefaultCreditSpecification{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyDefaultCreditSpecification"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyDefaultCreditSpecificationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyDefaultCreditSpecification(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyDefaultCreditSpecification(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyDefaultCreditSpecification",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyEbsDefaultKmsKeyId.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyEbsDefaultKmsKeyId.go
deleted file mode 100644
index 62ef2035d..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyEbsDefaultKmsKeyId.go
+++ /dev/null
@@ -1,200 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Changes the default KMS key for EBS encryption by default for your account in
-// this Region.
-//
-// Amazon Web Services creates a unique Amazon Web Services managed KMS key in
-// each Region for use with encryption by default. If you change the default KMS
-// key to a symmetric customer managed KMS key, it is used instead of the Amazon
-// Web Services managed KMS key. To reset the default KMS key to the Amazon Web
-// Services managed KMS key for EBS, use ResetEbsDefaultKmsKeyId. Amazon EBS does not support asymmetric
-// KMS keys.
-//
-// If you delete or disable the customer managed KMS key that you specified for
-// use with encryption by default, your instances will fail to launch.
-//
-// For more information, see [Amazon EBS encryption] in the Amazon EBS User Guide.
-//
-// [Amazon EBS encryption]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html
-func (c *Client) ModifyEbsDefaultKmsKeyId(ctx context.Context, params *ModifyEbsDefaultKmsKeyIdInput, optFns ...func(*Options)) (*ModifyEbsDefaultKmsKeyIdOutput, error) {
- if params == nil {
- params = &ModifyEbsDefaultKmsKeyIdInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyEbsDefaultKmsKeyId", params, optFns, c.addOperationModifyEbsDefaultKmsKeyIdMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyEbsDefaultKmsKeyIdOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyEbsDefaultKmsKeyIdInput struct {
-
- // The identifier of the KMS key to use for Amazon EBS encryption. If this
- // parameter is not specified, your KMS key for Amazon EBS is used. If KmsKeyId is
- // specified, the encrypted state must be true .
- //
- // You can specify the KMS key using any of the following:
- //
- // - Key ID. For example, 1234abcd-12ab-34cd-56ef-1234567890ab.
- //
- // - Key alias. For example, alias/ExampleAlias.
- //
- // - Key ARN. For example,
- // arn:aws:kms:us-east-1:012345678910:key/1234abcd-12ab-34cd-56ef-1234567890ab.
- //
- // - Alias ARN. For example,
- // arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
- //
- // Amazon Web Services authenticates the KMS key asynchronously. Therefore, if you
- // specify an ID, alias, or ARN that is not valid, the action can appear to
- // complete, but eventually fails.
- //
- // Amazon EBS does not support asymmetric KMS keys.
- //
- // This member is required.
- KmsKeyId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyEbsDefaultKmsKeyIdOutput struct {
-
- // The Amazon Resource Name (ARN) of the default KMS key for encryption by default.
- KmsKeyId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyEbsDefaultKmsKeyIdMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyEbsDefaultKmsKeyId{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyEbsDefaultKmsKeyId{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyEbsDefaultKmsKeyId"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyEbsDefaultKmsKeyIdValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyEbsDefaultKmsKeyId(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyEbsDefaultKmsKeyId(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyEbsDefaultKmsKeyId",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyFleet.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyFleet.go
deleted file mode 100644
index 04e733958..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyFleet.go
+++ /dev/null
@@ -1,211 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the specified EC2 Fleet.
-//
-// You can only modify an EC2 Fleet request of type maintain .
-//
-// While the EC2 Fleet is being modified, it is in the modifying state.
-//
-// To scale up your EC2 Fleet, increase its target capacity. The EC2 Fleet
-// launches the additional Spot Instances according to the allocation strategy for
-// the EC2 Fleet request. If the allocation strategy is lowest-price , the EC2
-// Fleet launches instances using the Spot Instance pool with the lowest price. If
-// the allocation strategy is diversified , the EC2 Fleet distributes the instances
-// across the Spot Instance pools. If the allocation strategy is capacity-optimized
-// , EC2 Fleet launches instances from Spot Instance pools with optimal capacity
-// for the number of instances that are launching.
-//
-// To scale down your EC2 Fleet, decrease its target capacity. First, the EC2
-// Fleet cancels any open requests that exceed the new target capacity. You can
-// request that the EC2 Fleet terminate Spot Instances until the size of the fleet
-// no longer exceeds the new target capacity. If the allocation strategy is
-// lowest-price , the EC2 Fleet terminates the instances with the highest price per
-// unit. If the allocation strategy is capacity-optimized , the EC2 Fleet
-// terminates the instances in the Spot Instance pools that have the least
-// available Spot Instance capacity. If the allocation strategy is diversified ,
-// the EC2 Fleet terminates instances across the Spot Instance pools.
-// Alternatively, you can request that the EC2 Fleet keep the fleet at its current
-// size, but not replace any Spot Instances that are interrupted or that you
-// terminate manually.
-//
-// If you are finished with your EC2 Fleet for now, but will use it again later,
-// you can set the target capacity to 0.
-func (c *Client) ModifyFleet(ctx context.Context, params *ModifyFleetInput, optFns ...func(*Options)) (*ModifyFleetOutput, error) {
- if params == nil {
- params = &ModifyFleetInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyFleet", params, optFns, c.addOperationModifyFleetMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyFleetOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyFleetInput struct {
-
- // The ID of the EC2 Fleet.
- //
- // This member is required.
- FleetId *string
-
- // Reserved.
- Context *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Indicates whether running instances should be terminated if the total target
- // capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
- //
- // Supported only for fleets of type maintain .
- ExcessCapacityTerminationPolicy types.FleetExcessCapacityTerminationPolicy
-
- // The launch template and overrides.
- LaunchTemplateConfigs []types.FleetLaunchTemplateConfigRequest
-
- // The size of the EC2 Fleet.
- TargetCapacitySpecification *types.TargetCapacitySpecificationRequest
-
- noSmithyDocumentSerde
-}
-
-type ModifyFleetOutput struct {
-
- // If the request succeeds, the response returns true . If the request fails, no
- // response is returned, and instead an error message is returned.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyFleetMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyFleet{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyFleet{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyFleet"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyFleetValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyFleet(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyFleet(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyFleet",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyFpgaImageAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyFpgaImageAttribute.go
deleted file mode 100644
index b7b7d01d0..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyFpgaImageAttribute.go
+++ /dev/null
@@ -1,193 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the specified attribute of the specified Amazon FPGA Image (AFI).
-func (c *Client) ModifyFpgaImageAttribute(ctx context.Context, params *ModifyFpgaImageAttributeInput, optFns ...func(*Options)) (*ModifyFpgaImageAttributeOutput, error) {
- if params == nil {
- params = &ModifyFpgaImageAttributeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyFpgaImageAttribute", params, optFns, c.addOperationModifyFpgaImageAttributeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyFpgaImageAttributeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyFpgaImageAttributeInput struct {
-
- // The ID of the AFI.
- //
- // This member is required.
- FpgaImageId *string
-
- // The name of the attribute.
- Attribute types.FpgaImageAttributeName
-
- // A description for the AFI.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The load permission for the AFI.
- LoadPermission *types.LoadPermissionModifications
-
- // A name for the AFI.
- Name *string
-
- // The operation type.
- OperationType types.OperationType
-
- // The product codes. After you add a product code to an AFI, it can't be removed.
- // This parameter is valid only when modifying the productCodes attribute.
- ProductCodes []string
-
- // The user groups. This parameter is valid only when modifying the loadPermission
- // attribute.
- UserGroups []string
-
- // The Amazon Web Services account IDs. This parameter is valid only when
- // modifying the loadPermission attribute.
- UserIds []string
-
- noSmithyDocumentSerde
-}
-
-type ModifyFpgaImageAttributeOutput struct {
-
- // Information about the attribute.
- FpgaImageAttribute *types.FpgaImageAttribute
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyFpgaImageAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyFpgaImageAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyFpgaImageAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyFpgaImageAttribute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyFpgaImageAttributeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyFpgaImageAttribute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyFpgaImageAttribute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyFpgaImageAttribute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyHosts.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyHosts.go
deleted file mode 100644
index db9e7e60a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyHosts.go
+++ /dev/null
@@ -1,206 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modify the auto-placement setting of a Dedicated Host. When auto-placement is
-// enabled, any instances that you launch with a tenancy of host but without a
-// specific host ID are placed onto any available Dedicated Host in your account
-// that has auto-placement enabled. When auto-placement is disabled, you need to
-// provide a host ID to have the instance launch onto a specific host. If no host
-// ID is provided, the instance is launched onto a suitable host with
-// auto-placement enabled.
-//
-// You can also use this API action to modify a Dedicated Host to support either
-// multiple instance types in an instance family, or to support a specific instance
-// type only.
-func (c *Client) ModifyHosts(ctx context.Context, params *ModifyHostsInput, optFns ...func(*Options)) (*ModifyHostsOutput, error) {
- if params == nil {
- params = &ModifyHostsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyHosts", params, optFns, c.addOperationModifyHostsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyHostsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyHostsInput struct {
-
- // The IDs of the Dedicated Hosts to modify.
- //
- // This member is required.
- HostIds []string
-
- // Specify whether to enable or disable auto-placement.
- AutoPlacement types.AutoPlacement
-
- // Indicates whether to enable or disable host maintenance for the Dedicated Host.
- // For more information, see [Host maintenance]in the Amazon EC2 User Guide.
- //
- // [Host maintenance]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-maintenance.html
- HostMaintenance types.HostMaintenance
-
- // Indicates whether to enable or disable host recovery for the Dedicated Host.
- // For more information, see [Host recovery]in the Amazon EC2 User Guide.
- //
- // [Host recovery]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-recovery.html
- HostRecovery types.HostRecovery
-
- // Specifies the instance family to be supported by the Dedicated Host. Specify
- // this parameter to modify a Dedicated Host to support multiple instance types
- // within its current instance family.
- //
- // If you want to modify a Dedicated Host to support a specific instance type
- // only, omit this parameter and specify InstanceType instead. You cannot specify
- // InstanceFamily and InstanceType in the same request.
- InstanceFamily *string
-
- // Specifies the instance type to be supported by the Dedicated Host. Specify this
- // parameter to modify a Dedicated Host to support only a specific instance type.
- //
- // If you want to modify a Dedicated Host to support multiple instance types in
- // its current instance family, omit this parameter and specify InstanceFamily
- // instead. You cannot specify InstanceType and InstanceFamily in the same request.
- InstanceType *string
-
- noSmithyDocumentSerde
-}
-
-type ModifyHostsOutput struct {
-
- // The IDs of the Dedicated Hosts that were successfully modified.
- Successful []string
-
- // The IDs of the Dedicated Hosts that could not be modified. Check whether the
- // setting you requested can be used.
- Unsuccessful []types.UnsuccessfulItem
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyHostsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyHosts{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyHosts{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyHosts"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyHostsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyHosts(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyHosts(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyHosts",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIdFormat.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIdFormat.go
deleted file mode 100644
index 671b64a91..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIdFormat.go
+++ /dev/null
@@ -1,194 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the ID format for the specified resource on a per-Region basis. You
-// can specify that resources should receive longer IDs (17-character IDs) when
-// they are created.
-//
-// This request can only be used to modify longer ID settings for resource types
-// that are within the opt-in period. Resources currently in their opt-in period
-// include: bundle | conversion-task | customer-gateway | dhcp-options |
-// elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image
-// | import-task | internet-gateway | network-acl | network-acl-association |
-// network-interface | network-interface-attachment | prefix-list | route-table |
-// route-table-association | security-group | subnet |
-// subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint
-// | vpc-peering-connection | vpn-connection | vpn-gateway .
-//
-// This setting applies to the IAM user who makes the request; it does not apply
-// to the entire Amazon Web Services account. By default, an IAM user defaults to
-// the same settings as the root user. If you're using this action as the root
-// user, then these settings apply to the entire account, unless an IAM user
-// explicitly overrides these settings for themselves. For more information, see [Resource IDs]
-// in the Amazon Elastic Compute Cloud User Guide.
-//
-// Resources created with longer IDs are visible to all IAM roles and users,
-// regardless of these settings and provided that they have permission to use the
-// relevant Describe command for the resource type.
-//
-// [Resource IDs]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html
-func (c *Client) ModifyIdFormat(ctx context.Context, params *ModifyIdFormatInput, optFns ...func(*Options)) (*ModifyIdFormatOutput, error) {
- if params == nil {
- params = &ModifyIdFormatInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyIdFormat", params, optFns, c.addOperationModifyIdFormatMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyIdFormatOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyIdFormatInput struct {
-
- // The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
- // | elastic-ip-allocation | elastic-ip-association | export-task | flow-log |
- // image | import-task | internet-gateway | network-acl | network-acl-association
- // | network-interface | network-interface-attachment | prefix-list | route-table
- // | route-table-association | security-group | subnet |
- // subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint
- // | vpc-peering-connection | vpn-connection | vpn-gateway .
- //
- // Alternatively, use the all-current option to include all resource types that
- // are currently within their opt-in period for longer IDs.
- //
- // This member is required.
- Resource *string
-
- // Indicate whether the resource should use longer IDs (17-character IDs).
- //
- // This member is required.
- UseLongIds *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyIdFormatOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyIdFormatMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyIdFormat{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyIdFormat{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyIdFormat"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyIdFormatValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyIdFormat(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyIdFormat(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyIdFormat",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIdentityIdFormat.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIdentityIdFormat.go
deleted file mode 100644
index 62072ad52..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIdentityIdFormat.go
+++ /dev/null
@@ -1,200 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the ID format of a resource for a specified IAM user, IAM role, or the
-// root user for an account; or all IAM users, IAM roles, and the root user for an
-// account. You can specify that resources should receive longer IDs (17-character
-// IDs) when they are created.
-//
-// This request can only be used to modify longer ID settings for resource types
-// that are within the opt-in period. Resources currently in their opt-in period
-// include: bundle | conversion-task | customer-gateway | dhcp-options |
-// elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image
-// | import-task | internet-gateway | network-acl | network-acl-association |
-// network-interface | network-interface-attachment | prefix-list | route-table |
-// route-table-association | security-group | subnet |
-// subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint
-// | vpc-peering-connection | vpn-connection | vpn-gateway .
-//
-// For more information, see [Resource IDs] in the Amazon Elastic Compute Cloud User Guide.
-//
-// This setting applies to the principal specified in the request; it does not
-// apply to the principal that makes the request.
-//
-// Resources created with longer IDs are visible to all IAM roles and users,
-// regardless of these settings and provided that they have permission to use the
-// relevant Describe command for the resource type.
-//
-// [Resource IDs]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html
-func (c *Client) ModifyIdentityIdFormat(ctx context.Context, params *ModifyIdentityIdFormatInput, optFns ...func(*Options)) (*ModifyIdentityIdFormatOutput, error) {
- if params == nil {
- params = &ModifyIdentityIdFormatInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyIdentityIdFormat", params, optFns, c.addOperationModifyIdentityIdFormatMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyIdentityIdFormatOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyIdentityIdFormatInput struct {
-
- // The ARN of the principal, which can be an IAM user, IAM role, or the root user.
- // Specify all to modify the ID format for all IAM users, IAM roles, and the root
- // user of the account.
- //
- // This member is required.
- PrincipalArn *string
-
- // The type of resource: bundle | conversion-task | customer-gateway | dhcp-options
- // | elastic-ip-allocation | elastic-ip-association | export-task | flow-log |
- // image | import-task | internet-gateway | network-acl | network-acl-association
- // | network-interface | network-interface-attachment | prefix-list | route-table
- // | route-table-association | security-group | subnet |
- // subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint
- // | vpc-peering-connection | vpn-connection | vpn-gateway .
- //
- // Alternatively, use the all-current option to include all resource types that
- // are currently within their opt-in period for longer IDs.
- //
- // This member is required.
- Resource *string
-
- // Indicates whether the resource should use longer IDs (17-character IDs)
- //
- // This member is required.
- UseLongIds *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyIdentityIdFormatOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyIdentityIdFormatMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyIdentityIdFormat{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyIdentityIdFormat{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyIdentityIdFormat"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyIdentityIdFormatValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyIdentityIdFormat(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyIdentityIdFormat(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyIdentityIdFormat",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyImageAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyImageAttribute.go
deleted file mode 100644
index 3f92bf30c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyImageAttribute.go
+++ /dev/null
@@ -1,224 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the specified attribute of the specified AMI. You can specify only one
-// attribute at a time.
-//
-// To specify the attribute, you can use the Attribute parameter, or one of the
-// following parameters: Description , ImdsSupport , or LaunchPermission .
-//
-// Images with an Amazon Web Services Marketplace product code cannot be made
-// public.
-//
-// To enable the SriovNetSupport enhanced networking attribute of an image, enable
-// SriovNetSupport on an instance and create an AMI from the instance.
-func (c *Client) ModifyImageAttribute(ctx context.Context, params *ModifyImageAttributeInput, optFns ...func(*Options)) (*ModifyImageAttributeOutput, error) {
- if params == nil {
- params = &ModifyImageAttributeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyImageAttribute", params, optFns, c.addOperationModifyImageAttributeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyImageAttributeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for ModifyImageAttribute.
-type ModifyImageAttributeInput struct {
-
- // The ID of the AMI.
- //
- // This member is required.
- ImageId *string
-
- // The name of the attribute to modify.
- //
- // Valid values: description | imdsSupport | launchPermission
- Attribute *string
-
- // A new description for the AMI.
- Description *types.AttributeValue
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Set to v2.0 to indicate that IMDSv2 is specified in the AMI. Instances launched
- // from this AMI will have HttpTokens automatically set to required so that, by
- // default, the instance requires that IMDSv2 is used when requesting instance
- // metadata. In addition, HttpPutResponseHopLimit is set to 2 . For more
- // information, see [Configure the AMI]in the Amazon EC2 User Guide.
- //
- // Do not use this parameter unless your AMI software supports IMDSv2. After you
- // set the value to v2.0 , you can't undo it. The only way to “reset” your AMI is
- // to create a new AMI from the underlying snapshot.
- //
- // [Configure the AMI]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration
- ImdsSupport *types.AttributeValue
-
- // A new launch permission for the AMI.
- LaunchPermission *types.LaunchPermissionModifications
-
- // The operation type. This parameter can be used only when the Attribute
- // parameter is launchPermission .
- OperationType types.OperationType
-
- // The Amazon Resource Name (ARN) of an organization. This parameter can be used
- // only when the Attribute parameter is launchPermission .
- OrganizationArns []string
-
- // The Amazon Resource Name (ARN) of an organizational unit (OU). This parameter
- // can be used only when the Attribute parameter is launchPermission .
- OrganizationalUnitArns []string
-
- // Not supported.
- ProductCodes []string
-
- // The user groups. This parameter can be used only when the Attribute parameter
- // is launchPermission .
- UserGroups []string
-
- // The Amazon Web Services account IDs. This parameter can be used only when the
- // Attribute parameter is launchPermission .
- UserIds []string
-
- // The value of the attribute being modified. This parameter can be used only when
- // the Attribute parameter is description or imdsSupport .
- Value *string
-
- noSmithyDocumentSerde
-}
-
-type ModifyImageAttributeOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyImageAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyImageAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyImageAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyImageAttribute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyImageAttributeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyImageAttribute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyImageAttribute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyImageAttribute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceAttribute.go
deleted file mode 100644
index 2dbe811d3..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceAttribute.go
+++ /dev/null
@@ -1,281 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the specified attribute of the specified instance. You can specify
-// only one attribute at a time.
-//
-// Note: Using this action to change the security groups associated with an
-// elastic network interface (ENI) attached to an instance can result in an error
-// if the instance has more than one ENI. To change the security groups associated
-// with an ENI attached to an instance that has multiple ENIs, we recommend that
-// you use the ModifyNetworkInterfaceAttributeaction.
-//
-// To modify some attributes, the instance must be stopped. For more information,
-// see [Modify a stopped instance]in the Amazon EC2 User Guide.
-//
-// [Modify a stopped instance]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_ChangingAttributesWhileInstanceStopped.html
-func (c *Client) ModifyInstanceAttribute(ctx context.Context, params *ModifyInstanceAttributeInput, optFns ...func(*Options)) (*ModifyInstanceAttributeOutput, error) {
- if params == nil {
- params = &ModifyInstanceAttributeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyInstanceAttribute", params, optFns, c.addOperationModifyInstanceAttributeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyInstanceAttributeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyInstanceAttributeInput struct {
-
- // The ID of the instance.
- //
- // This member is required.
- InstanceId *string
-
- // The name of the attribute to modify.
- //
- // When changing the instance type: If the original instance type is configured
- // for configurable bandwidth, and the desired instance type doesn't support
- // configurable bandwidth, first set the existing bandwidth configuration to
- // default using the ModifyInstanceNetworkPerformanceOptions operation.
- //
- // You can modify the following attributes only: disableApiTermination |
- // instanceType | kernel | ramdisk | instanceInitiatedShutdownBehavior |
- // blockDeviceMapping | userData | sourceDestCheck | groupSet | ebsOptimized |
- // sriovNetSupport | enaSupport | nvmeSupport | disableApiStop | enclaveOptions
- Attribute types.InstanceAttributeName
-
- // Modifies the DeleteOnTermination attribute for volumes that are currently
- // attached. The volume must be owned by the caller. If no value is specified for
- // DeleteOnTermination , the default is true and the volume is deleted when the
- // instance is terminated. You can't modify the DeleteOnTermination attribute for
- // volumes that are attached to Amazon Web Services-managed resources.
- //
- // To add instance store volumes to an Amazon EBS-backed instance, you must add
- // them when you launch the instance. For more information, see [Update the block device mapping when launching an instance]in the Amazon EC2
- // User Guide.
- //
- // [Update the block device mapping when launching an instance]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html#Using_OverridingAMIBDM
- BlockDeviceMappings []types.InstanceBlockDeviceMappingSpecification
-
- // Indicates whether an instance is enabled for stop protection. For more
- // information, see [Enable stop protection for your instance].
- //
- // [Enable stop protection for your instance]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-stop-protection.html
- DisableApiStop *types.AttributeBooleanValue
-
- // Enable or disable termination protection for the instance. If the value is true
- // , you can't terminate the instance using the Amazon EC2 console, command line
- // interface, or API. You can't enable termination protection for Spot Instances.
- DisableApiTermination *types.AttributeBooleanValue
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Specifies whether the instance is optimized for Amazon EBS I/O. This
- // optimization provides dedicated throughput to Amazon EBS and an optimized
- // configuration stack to provide optimal EBS I/O performance. This optimization
- // isn't available with all instance types. Additional usage charges apply when
- // using an EBS Optimized instance.
- EbsOptimized *types.AttributeBooleanValue
-
- // Set to true to enable enhanced networking with ENA for the instance.
- //
- // This option is supported only for HVM instances. Specifying this option with a
- // PV instance can make it unreachable.
- EnaSupport *types.AttributeBooleanValue
-
- // Replaces the security groups of the instance with the specified security
- // groups. You must specify the ID of at least one security group, even if it's
- // just the default security group for the VPC.
- Groups []string
-
- // Specifies whether an instance stops or terminates when you initiate shutdown
- // from the instance (using the operating system command for system shutdown).
- InstanceInitiatedShutdownBehavior *types.AttributeValue
-
- // Changes the instance type to the specified value. For more information, see [Instance types] in
- // the Amazon EC2 User Guide. If the instance type is not valid, the error returned
- // is InvalidInstanceAttributeValue .
- //
- // [Instance types]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html
- InstanceType *types.AttributeValue
-
- // Changes the instance's kernel to the specified value. We recommend that you use
- // PV-GRUB instead of kernels and RAM disks. For more information, see [PV-GRUB].
- //
- // [PV-GRUB]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html
- Kernel *types.AttributeValue
-
- // Changes the instance's RAM disk to the specified value. We recommend that you
- // use PV-GRUB instead of kernels and RAM disks. For more information, see [PV-GRUB].
- //
- // [PV-GRUB]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html
- Ramdisk *types.AttributeValue
-
- // Enable or disable source/destination checks, which ensure that the instance is
- // either the source or the destination of any traffic that it receives. If the
- // value is true , source/destination checks are enabled; otherwise, they are
- // disabled. The default value is true . You must disable source/destination checks
- // if the instance runs services such as network address translation, routing, or
- // firewalls.
- SourceDestCheck *types.AttributeBooleanValue
-
- // Set to simple to enable enhanced networking with the Intel 82599 Virtual
- // Function interface for the instance.
- //
- // There is no way to disable enhanced networking with the Intel 82599 Virtual
- // Function interface at this time.
- //
- // This option is supported only for HVM instances. Specifying this option with a
- // PV instance can make it unreachable.
- SriovNetSupport *types.AttributeValue
-
- // Changes the instance's user data to the specified value. User data must be
- // base64-encoded. Depending on the tool or SDK that you're using, the
- // base64-encoding might be performed for you. For more information, see [Work with instance user data].
- //
- // [Work with instance user data]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-add-user-data.html
- UserData *types.BlobAttributeValue
-
- // A new value for the attribute. Use only with the kernel , ramdisk , userData ,
- // disableApiTermination , or instanceInitiatedShutdownBehavior attribute.
- Value *string
-
- noSmithyDocumentSerde
-}
-
-type ModifyInstanceAttributeOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyInstanceAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyInstanceAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyInstanceAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyInstanceAttribute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyInstanceAttributeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyInstanceAttribute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyInstanceAttribute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyInstanceAttribute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCapacityReservationAttributes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCapacityReservationAttributes.go
deleted file mode 100644
index 58ab3247e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCapacityReservationAttributes.go
+++ /dev/null
@@ -1,174 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the Capacity Reservation settings for a stopped instance. Use this
-// action to configure an instance to target a specific Capacity Reservation, run
-// in any open Capacity Reservation with matching attributes, run in On-Demand
-// Instance capacity, or only run in a Capacity Reservation.
-func (c *Client) ModifyInstanceCapacityReservationAttributes(ctx context.Context, params *ModifyInstanceCapacityReservationAttributesInput, optFns ...func(*Options)) (*ModifyInstanceCapacityReservationAttributesOutput, error) {
- if params == nil {
- params = &ModifyInstanceCapacityReservationAttributesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyInstanceCapacityReservationAttributes", params, optFns, c.addOperationModifyInstanceCapacityReservationAttributesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyInstanceCapacityReservationAttributesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyInstanceCapacityReservationAttributesInput struct {
-
- // Information about the Capacity Reservation targeting option.
- //
- // This member is required.
- CapacityReservationSpecification *types.CapacityReservationSpecification
-
- // The ID of the instance to be modified.
- //
- // This member is required.
- InstanceId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyInstanceCapacityReservationAttributesOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyInstanceCapacityReservationAttributesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyInstanceCapacityReservationAttributes{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyInstanceCapacityReservationAttributes{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyInstanceCapacityReservationAttributes"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyInstanceCapacityReservationAttributesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyInstanceCapacityReservationAttributes(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyInstanceCapacityReservationAttributes(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyInstanceCapacityReservationAttributes",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCpuOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCpuOptions.go
deleted file mode 100644
index b5344013c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCpuOptions.go
+++ /dev/null
@@ -1,195 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// By default, all vCPUs for the instance type are active when you launch an
-// instance. When you configure the number of active vCPUs for the instance, it can
-// help you save on licensing costs and optimize performance. The base cost of the
-// instance remains unchanged.
-//
-// The number of active vCPUs equals the number of threads per CPU core multiplied
-// by the number of cores. The instance must be in a Stopped state before you make
-// changes.
-//
-// Some instance type options do not support this capability. For more
-// information, see [Supported CPU options]in the Amazon EC2 User Guide.
-//
-// [Supported CPU options]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/cpu-options-supported-instances-values.html
-func (c *Client) ModifyInstanceCpuOptions(ctx context.Context, params *ModifyInstanceCpuOptionsInput, optFns ...func(*Options)) (*ModifyInstanceCpuOptionsOutput, error) {
- if params == nil {
- params = &ModifyInstanceCpuOptionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyInstanceCpuOptions", params, optFns, c.addOperationModifyInstanceCpuOptionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyInstanceCpuOptionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyInstanceCpuOptionsInput struct {
-
- // The number of CPU cores to activate for the specified instance.
- //
- // This member is required.
- CoreCount *int32
-
- // The ID of the instance to update.
- //
- // This member is required.
- InstanceId *string
-
- // The number of threads to run for each CPU core.
- //
- // This member is required.
- ThreadsPerCore *int32
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyInstanceCpuOptionsOutput struct {
-
- // The number of CPU cores that are running for the specified instance after the
- // update.
- CoreCount *int32
-
- // The ID of the instance that was updated.
- InstanceId *string
-
- // The number of threads that are running per CPU core for the specified instance
- // after the update.
- ThreadsPerCore *int32
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyInstanceCpuOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyInstanceCpuOptions{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyInstanceCpuOptions{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyInstanceCpuOptions"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyInstanceCpuOptionsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyInstanceCpuOptions(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyInstanceCpuOptions(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyInstanceCpuOptions",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCreditSpecification.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCreditSpecification.go
deleted file mode 100644
index 37d2ef4be..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCreditSpecification.go
+++ /dev/null
@@ -1,182 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the credit option for CPU usage on a running or stopped burstable
-// performance instance. The credit options are standard and unlimited .
-//
-// For more information, see [Burstable performance instances] in the Amazon EC2 User Guide.
-//
-// [Burstable performance instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html
-func (c *Client) ModifyInstanceCreditSpecification(ctx context.Context, params *ModifyInstanceCreditSpecificationInput, optFns ...func(*Options)) (*ModifyInstanceCreditSpecificationOutput, error) {
- if params == nil {
- params = &ModifyInstanceCreditSpecificationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyInstanceCreditSpecification", params, optFns, c.addOperationModifyInstanceCreditSpecificationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyInstanceCreditSpecificationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyInstanceCreditSpecificationInput struct {
-
- // Information about the credit option for CPU usage.
- //
- // This member is required.
- InstanceCreditSpecifications []types.InstanceCreditSpecificationRequest
-
- // A unique, case-sensitive token that you provide to ensure idempotency of your
- // modification request. For more information, see [Ensuring Idempotency].
- //
- // [Ensuring Idempotency]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyInstanceCreditSpecificationOutput struct {
-
- // Information about the instances whose credit option for CPU usage was
- // successfully modified.
- SuccessfulInstanceCreditSpecifications []types.SuccessfulInstanceCreditSpecificationItem
-
- // Information about the instances whose credit option for CPU usage was not
- // modified.
- UnsuccessfulInstanceCreditSpecifications []types.UnsuccessfulInstanceCreditSpecificationItem
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyInstanceCreditSpecificationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyInstanceCreditSpecification{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyInstanceCreditSpecification{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyInstanceCreditSpecification"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyInstanceCreditSpecificationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyInstanceCreditSpecification(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyInstanceCreditSpecification(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyInstanceCreditSpecification",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceEventStartTime.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceEventStartTime.go
deleted file mode 100644
index 448cd409b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceEventStartTime.go
+++ /dev/null
@@ -1,177 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Modifies the start time for a scheduled Amazon EC2 instance event.
-func (c *Client) ModifyInstanceEventStartTime(ctx context.Context, params *ModifyInstanceEventStartTimeInput, optFns ...func(*Options)) (*ModifyInstanceEventStartTimeOutput, error) {
- if params == nil {
- params = &ModifyInstanceEventStartTimeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyInstanceEventStartTime", params, optFns, c.addOperationModifyInstanceEventStartTimeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyInstanceEventStartTimeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyInstanceEventStartTimeInput struct {
-
- // The ID of the event whose date and time you are modifying.
- //
- // This member is required.
- InstanceEventId *string
-
- // The ID of the instance with the scheduled event.
- //
- // This member is required.
- InstanceId *string
-
- // The new date and time when the event will take place.
- //
- // This member is required.
- NotBefore *time.Time
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyInstanceEventStartTimeOutput struct {
-
- // Information about the event.
- Event *types.InstanceStatusEvent
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyInstanceEventStartTimeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyInstanceEventStartTime{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyInstanceEventStartTime{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyInstanceEventStartTime"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyInstanceEventStartTimeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyInstanceEventStartTime(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyInstanceEventStartTime(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyInstanceEventStartTime",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceEventWindow.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceEventWindow.go
deleted file mode 100644
index 7bf3386ba..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceEventWindow.go
+++ /dev/null
@@ -1,208 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the specified event window.
-//
-// You can define either a set of time ranges or a cron expression when modifying
-// the event window, but not both.
-//
-// To modify the targets associated with the event window, use the AssociateInstanceEventWindow and DisassociateInstanceEventWindow API.
-//
-// If Amazon Web Services has already scheduled an event, modifying an event
-// window won't change the time of the scheduled event.
-//
-// For more information, see [Define event windows for scheduled events] in the Amazon EC2 User Guide.
-//
-// [Define event windows for scheduled events]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html
-func (c *Client) ModifyInstanceEventWindow(ctx context.Context, params *ModifyInstanceEventWindowInput, optFns ...func(*Options)) (*ModifyInstanceEventWindowOutput, error) {
- if params == nil {
- params = &ModifyInstanceEventWindowInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyInstanceEventWindow", params, optFns, c.addOperationModifyInstanceEventWindowMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyInstanceEventWindowOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyInstanceEventWindowInput struct {
-
- // The ID of the event window.
- //
- // This member is required.
- InstanceEventWindowId *string
-
- // The cron expression of the event window, for example, * 0-4,20-23 * * 1,5 .
- //
- // Constraints:
- //
- // - Only hour and day of the week values are supported.
- //
- // - For day of the week values, you can specify either integers 0 through 6 , or
- // alternative single values SUN through SAT .
- //
- // - The minute, month, and year must be specified by * .
- //
- // - The hour value must be one or a multiple range, for example, 0-4 or
- // 0-4,20-23 .
- //
- // - Each hour range must be >= 2 hours, for example, 0-2 or 20-23 .
- //
- // - The event window must be >= 4 hours. The combined total time ranges in the
- // event window must be >= 4 hours.
- //
- // For more information about cron expressions, see [cron] on the Wikipedia website.
- //
- // [cron]: https://en.wikipedia.org/wiki/Cron
- CronExpression *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The name of the event window.
- Name *string
-
- // The time ranges of the event window.
- TimeRanges []types.InstanceEventWindowTimeRangeRequest
-
- noSmithyDocumentSerde
-}
-
-type ModifyInstanceEventWindowOutput struct {
-
- // Information about the event window.
- InstanceEventWindow *types.InstanceEventWindow
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyInstanceEventWindowMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyInstanceEventWindow{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyInstanceEventWindow{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyInstanceEventWindow"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyInstanceEventWindowValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyInstanceEventWindow(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyInstanceEventWindow(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyInstanceEventWindow",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceMaintenanceOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceMaintenanceOptions.go
deleted file mode 100644
index 8a0426c02..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceMaintenanceOptions.go
+++ /dev/null
@@ -1,214 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the recovery behavior of your instance to disable simplified automatic
-// recovery or set the recovery behavior to default. The default configuration will
-// not enable simplified automatic recovery for an unsupported instance type. For
-// more information, see [Simplified automatic recovery].
-//
-// Modifies the reboot migration behavior during a user-initiated reboot of an
-// instance that has a pending system-reboot event. For more information, see [Enable or disable reboot migration].
-//
-// [Simplified automatic recovery]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html#instance-configuration-recovery
-// [Enable or disable reboot migration]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/schedevents_actions_reboot.html#reboot-migration
-func (c *Client) ModifyInstanceMaintenanceOptions(ctx context.Context, params *ModifyInstanceMaintenanceOptionsInput, optFns ...func(*Options)) (*ModifyInstanceMaintenanceOptionsOutput, error) {
- if params == nil {
- params = &ModifyInstanceMaintenanceOptionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyInstanceMaintenanceOptions", params, optFns, c.addOperationModifyInstanceMaintenanceOptionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyInstanceMaintenanceOptionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyInstanceMaintenanceOptionsInput struct {
-
- // The ID of the instance.
- //
- // This member is required.
- InstanceId *string
-
- // Disables the automatic recovery behavior of your instance or sets it to default.
- AutoRecovery types.InstanceAutoRecoveryState
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Specifies whether to attempt reboot migration during a user-initiated reboot of
- // an instance that has a scheduled system-reboot event:
- //
- // - default - Amazon EC2 attempts to migrate the instance to new hardware
- // (reboot migration). If successful, the system-reboot event is cleared. If
- // unsuccessful, an in-place reboot occurs and the event remains scheduled.
- //
- // - disabled - Amazon EC2 keeps the instance on the same hardware (in-place
- // reboot). The system-reboot event remains scheduled.
- //
- // This setting only applies to supported instances that have a scheduled reboot
- // event. For more information, see [Enable or disable reboot migration]in the Amazon EC2 User Guide.
- //
- // [Enable or disable reboot migration]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/schedevents_actions_reboot.html#reboot-migration
- RebootMigration types.InstanceRebootMigrationState
-
- noSmithyDocumentSerde
-}
-
-type ModifyInstanceMaintenanceOptionsOutput struct {
-
- // Provides information on the current automatic recovery behavior of your
- // instance.
- AutoRecovery types.InstanceAutoRecoveryState
-
- // The ID of the instance.
- InstanceId *string
-
- // Specifies whether to attempt reboot migration during a user-initiated reboot of
- // an instance that has a scheduled system-reboot event:
- //
- // - default - Amazon EC2 attempts to migrate the instance to new hardware
- // (reboot migration). If successful, the system-reboot event is cleared. If
- // unsuccessful, an in-place reboot occurs and the event remains scheduled.
- //
- // - disabled - Amazon EC2 keeps the instance on the same hardware (in-place
- // reboot). The system-reboot event remains scheduled.
- //
- // This setting only applies to supported instances that have a scheduled reboot
- // event. For more information, see [Enable or disable reboot migration]in the Amazon EC2 User Guide.
- //
- // [Enable or disable reboot migration]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/schedevents_actions_reboot.html#reboot-migration
- RebootMigration types.InstanceRebootMigrationState
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyInstanceMaintenanceOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyInstanceMaintenanceOptions{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyInstanceMaintenanceOptions{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyInstanceMaintenanceOptions"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyInstanceMaintenanceOptionsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyInstanceMaintenanceOptions(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyInstanceMaintenanceOptions(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyInstanceMaintenanceOptions",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceMetadataDefaults.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceMetadataDefaults.go
deleted file mode 100644
index a1b3e5b75..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceMetadataDefaults.go
+++ /dev/null
@@ -1,192 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the default instance metadata service (IMDS) settings at the account
-// level in the specified Amazon Web Services
Region.
-//
-// To remove a parameter's account-level default setting, specify no-preference .
-// If an account-level setting is cleared with no-preference , then the instance
-// launch considers the other instance metadata settings. For more information, see
-// [Order of precedence for instance metadata options]in the Amazon EC2 User Guide.
-//
-// [Order of precedence for instance metadata options]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html#instance-metadata-options-order-of-precedence
-func (c *Client) ModifyInstanceMetadataDefaults(ctx context.Context, params *ModifyInstanceMetadataDefaultsInput, optFns ...func(*Options)) (*ModifyInstanceMetadataDefaultsOutput, error) {
- if params == nil {
- params = &ModifyInstanceMetadataDefaultsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyInstanceMetadataDefaults", params, optFns, c.addOperationModifyInstanceMetadataDefaultsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyInstanceMetadataDefaultsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyInstanceMetadataDefaultsInput struct {
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Enables or disables the IMDS endpoint on an instance. When disabled, the
- // instance metadata can't be accessed.
- HttpEndpoint types.DefaultInstanceMetadataEndpointState
-
- // The maximum number of hops that the metadata token can travel. To indicate no
- // preference, specify -1 .
- //
- // Possible values: Integers from 1 to 64 , and -1 to indicate no preference
- HttpPutResponseHopLimit *int32
-
- // Indicates whether IMDSv2 is required.
- //
- // - optional – IMDSv2 is optional, which means that you can use either IMDSv2 or
- // IMDSv1.
- //
- // - required – IMDSv2 is required, which means that IMDSv1 is disabled, and you
- // must use IMDSv2.
- HttpTokens types.MetadataDefaultHttpTokensState
-
- // Enables or disables access to an instance's tags from the instance metadata.
- // For more information, see [Work with instance tags using the instance metadata]in the Amazon EC2 User Guide.
- //
- // [Work with instance tags using the instance metadata]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#work-with-tags-in-IMDS
- InstanceMetadataTags types.DefaultInstanceMetadataTagsState
-
- noSmithyDocumentSerde
-}
-
-type ModifyInstanceMetadataDefaultsOutput struct {
-
- // If the request succeeds, the response returns true . If the request fails, no
- // response is returned, and instead an error message is returned.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyInstanceMetadataDefaultsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyInstanceMetadataDefaults{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyInstanceMetadataDefaults{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyInstanceMetadataDefaults"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyInstanceMetadataDefaults(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyInstanceMetadataDefaults(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyInstanceMetadataDefaults",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceMetadataOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceMetadataOptions.go
deleted file mode 100644
index 476a09559..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceMetadataOptions.go
+++ /dev/null
@@ -1,230 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modify the instance metadata parameters on a running or stopped instance. When
-// you modify the parameters on a stopped instance, they are applied when the
-// instance is started. When you modify the parameters on a running instance, the
-// API responds with a state of “pending”. After the parameter modifications are
-// successfully applied to the instance, the state of the modifications changes
-// from “pending” to “applied” in subsequent describe-instances API calls. For more
-// information, see [Instance metadata and user data]in the Amazon EC2 User Guide.
-//
-// [Instance metadata and user data]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
-func (c *Client) ModifyInstanceMetadataOptions(ctx context.Context, params *ModifyInstanceMetadataOptionsInput, optFns ...func(*Options)) (*ModifyInstanceMetadataOptionsOutput, error) {
- if params == nil {
- params = &ModifyInstanceMetadataOptionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyInstanceMetadataOptions", params, optFns, c.addOperationModifyInstanceMetadataOptionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyInstanceMetadataOptionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyInstanceMetadataOptionsInput struct {
-
- // The ID of the instance.
- //
- // This member is required.
- InstanceId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Enables or disables the HTTP metadata endpoint on your instances. If this
- // parameter is not specified, the existing state is maintained.
- //
- // If you specify a value of disabled , you cannot access your instance metadata.
- HttpEndpoint types.InstanceMetadataEndpointState
-
- // Enables or disables the IPv6 endpoint for the instance metadata service.
- // Applies only if you enabled the HTTP metadata endpoint.
- HttpProtocolIpv6 types.InstanceMetadataProtocolState
-
- // The desired HTTP PUT response hop limit for instance metadata requests. The
- // larger the number, the further instance metadata requests can travel. If no
- // parameter is specified, the existing state is maintained.
- //
- // Possible values: Integers from 1 to 64
- HttpPutResponseHopLimit *int32
-
- // Indicates whether IMDSv2 is required.
- //
- // - optional - IMDSv2 is optional. You can choose whether to send a session
- // token in your instance metadata retrieval requests. If you retrieve IAM role
- // credentials without a session token, you receive the IMDSv1 role credentials. If
- // you retrieve IAM role credentials using a valid session token, you receive the
- // IMDSv2 role credentials.
- //
- // - required - IMDSv2 is required. You must send a session token in your
- // instance metadata retrieval requests. With this option, retrieving the IAM role
- // credentials always returns IMDSv2 credentials; IMDSv1 credentials are not
- // available.
- //
- // Default:
- //
- // - If the value of ImdsSupport for the Amazon Machine Image (AMI) for your
- // instance is v2.0 and the account level default is set to no-preference , the
- // default is required .
- //
- // - If the value of ImdsSupport for the Amazon Machine Image (AMI) for your
- // instance is v2.0 , but the account level default is set to V1 or V2 , the
- // default is optional .
- //
- // The default value can also be affected by other combinations of parameters. For
- // more information, see [Order of precedence for instance metadata options]in the Amazon EC2 User Guide.
- //
- // [Order of precedence for instance metadata options]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html#instance-metadata-options-order-of-precedence
- HttpTokens types.HttpTokensState
-
- // Set to enabled to allow access to instance tags from the instance metadata. Set
- // to disabled to turn off access to instance tags from the instance metadata. For
- // more information, see [Work with instance tags using the instance metadata].
- //
- // [Work with instance tags using the instance metadata]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#work-with-tags-in-IMDS
- InstanceMetadataTags types.InstanceMetadataTagsState
-
- noSmithyDocumentSerde
-}
-
-type ModifyInstanceMetadataOptionsOutput struct {
-
- // The ID of the instance.
- InstanceId *string
-
- // The metadata options for the instance.
- InstanceMetadataOptions *types.InstanceMetadataOptionsResponse
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyInstanceMetadataOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyInstanceMetadataOptions{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyInstanceMetadataOptions{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyInstanceMetadataOptions"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyInstanceMetadataOptionsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyInstanceMetadataOptions(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyInstanceMetadataOptions(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyInstanceMetadataOptions",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceNetworkPerformanceOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceNetworkPerformanceOptions.go
deleted file mode 100644
index 91ae753ce..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceNetworkPerformanceOptions.go
+++ /dev/null
@@ -1,186 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Change the configuration of the network performance options for an existing
-// instance.
-func (c *Client) ModifyInstanceNetworkPerformanceOptions(ctx context.Context, params *ModifyInstanceNetworkPerformanceOptionsInput, optFns ...func(*Options)) (*ModifyInstanceNetworkPerformanceOptionsOutput, error) {
- if params == nil {
- params = &ModifyInstanceNetworkPerformanceOptionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyInstanceNetworkPerformanceOptions", params, optFns, c.addOperationModifyInstanceNetworkPerformanceOptionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyInstanceNetworkPerformanceOptionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyInstanceNetworkPerformanceOptionsInput struct {
-
- // Specify the bandwidth weighting option to boost the associated type of baseline
- // bandwidth, as follows:
- //
- // default This option uses the standard bandwidth configuration for your instance
- // type.
- //
- // vpc-1 This option boosts your networking baseline bandwidth and reduces your
- // EBS baseline bandwidth.
- //
- // ebs-1 This option boosts your EBS baseline bandwidth and reduces your
- // networking baseline bandwidth.
- //
- // This member is required.
- BandwidthWeighting types.InstanceBandwidthWeighting
-
- // The ID of the instance to update.
- //
- // This member is required.
- InstanceId *string
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyInstanceNetworkPerformanceOptionsOutput struct {
-
- // Contains the updated configuration for bandwidth weighting on the specified
- // instance.
- BandwidthWeighting types.InstanceBandwidthWeighting
-
- // The instance ID that was updated.
- InstanceId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyInstanceNetworkPerformanceOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyInstanceNetworkPerformanceOptions{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyInstanceNetworkPerformanceOptions{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyInstanceNetworkPerformanceOptions"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyInstanceNetworkPerformanceOptionsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyInstanceNetworkPerformanceOptions(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyInstanceNetworkPerformanceOptions(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyInstanceNetworkPerformanceOptions",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstancePlacement.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstancePlacement.go
deleted file mode 100644
index 54db51f36..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstancePlacement.go
+++ /dev/null
@@ -1,219 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the placement attributes for a specified instance. You can do the
-// following:
-//
-// - Modify the affinity between an instance and a [Dedicated Host]. When affinity is set to host
-// and the instance is not associated with a specific Dedicated Host, the next time
-// the instance is started, it is automatically associated with the host on which
-// it lands. If the instance is restarted or rebooted, this relationship persists.
-//
-// - Change the Dedicated Host with which an instance is associated.
-//
-// - Change the instance tenancy of an instance.
-//
-// - Move an instance to or from a [placement group].
-//
-// At least one attribute for affinity, host ID, tenancy, or placement group name
-// must be specified in the request. Affinity and tenancy can be modified in the
-// same request.
-//
-// To modify the host ID, tenancy, placement group, or partition for an instance,
-// the instance must be in the stopped state.
-//
-// [Dedicated Host]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-overview.html
-// [placement group]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html
-func (c *Client) ModifyInstancePlacement(ctx context.Context, params *ModifyInstancePlacementInput, optFns ...func(*Options)) (*ModifyInstancePlacementOutput, error) {
- if params == nil {
- params = &ModifyInstancePlacementInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyInstancePlacement", params, optFns, c.addOperationModifyInstancePlacementMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyInstancePlacementOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyInstancePlacementInput struct {
-
- // The ID of the instance that you are modifying.
- //
- // This member is required.
- InstanceId *string
-
- // The affinity setting for the instance. For more information, see [Host affinity] in the Amazon
- // EC2 User Guide.
- //
- // [Host affinity]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/how-dedicated-hosts-work.html#dedicated-hosts-affinity
- Affinity types.Affinity
-
- // The Group Id of a placement group. You must specify the Placement Group Group
- // Id to launch an instance in a shared placement group.
- GroupId *string
-
- // The name of the placement group in which to place the instance. For spread
- // placement groups, the instance must have a tenancy of default . For cluster and
- // partition placement groups, the instance must have a tenancy of default or
- // dedicated .
- //
- // To remove an instance from a placement group, specify an empty string ("").
- GroupName *string
-
- // The ID of the Dedicated Host with which to associate the instance.
- HostId *string
-
- // The ARN of the host resource group in which to place the instance. The instance
- // must have a tenancy of host to specify this parameter.
- HostResourceGroupArn *string
-
- // The number of the partition in which to place the instance. Valid only if the
- // placement group strategy is set to partition .
- PartitionNumber *int32
-
- // The tenancy for the instance.
- //
- // For T3 instances, you must launch the instance on a Dedicated Host to use a
- // tenancy of host . You can't change the tenancy from host to dedicated or default
- // . Attempting to make one of these unsupported tenancy changes results in an
- // InvalidRequest error code.
- Tenancy types.HostTenancy
-
- noSmithyDocumentSerde
-}
-
-type ModifyInstancePlacementOutput struct {
-
- // Is true if the request succeeds, and an error otherwise.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyInstancePlacementMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyInstancePlacement{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyInstancePlacement{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyInstancePlacement"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyInstancePlacementValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyInstancePlacement(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyInstancePlacement(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyInstancePlacement",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpam.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpam.go
deleted file mode 100644
index 1fabbe16d..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpam.go
+++ /dev/null
@@ -1,209 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modify the configurations of an IPAM.
-func (c *Client) ModifyIpam(ctx context.Context, params *ModifyIpamInput, optFns ...func(*Options)) (*ModifyIpamOutput, error) {
- if params == nil {
- params = &ModifyIpamInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyIpam", params, optFns, c.addOperationModifyIpamMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyIpamOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyIpamInput struct {
-
- // The ID of the IPAM you want to modify.
- //
- // This member is required.
- IpamId *string
-
- // Choose the operating Regions for the IPAM. Operating Regions are Amazon Web
- // Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only
- // discovers and monitors resources in the Amazon Web Services Regions you select
- // as operating Regions.
- //
- // For more information about operating Regions, see [Create an IPAM] in the Amazon VPC IPAM User
- // Guide.
- //
- // [Create an IPAM]: https://docs.aws.amazon.com/vpc/latest/ipam/create-ipam.html
- AddOperatingRegions []types.AddIpamOperatingRegion
-
- // The description of the IPAM you want to modify.
- Description *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Enable this option to use your own GUA ranges as private IPv6 addresses. This
- // option is disabled by default.
- EnablePrivateGua *bool
-
- // A metered account is an Amazon Web Services account that is charged for active
- // IP addresses managed in IPAM. For more information, see [Enable cost distribution]in the Amazon VPC IPAM
- // User Guide.
- //
- // Possible values:
- //
- // - ipam-owner (default): The Amazon Web Services account which owns the IPAM is
- // charged for all active IP addresses managed in IPAM.
- //
- // - resource-owner : The Amazon Web Services account that owns the IP address is
- // charged for the active IP address.
- //
- // [Enable cost distribution]: https://docs.aws.amazon.com/vpc/latest/ipam/ipam-enable-cost-distro.html
- MeteredAccount types.IpamMeteredAccount
-
- // The operating Regions to remove.
- RemoveOperatingRegions []types.RemoveIpamOperatingRegion
-
- // IPAM is offered in a Free Tier and an Advanced Tier. For more information about
- // the features available in each tier and the costs associated with the tiers, see
- // [Amazon VPC pricing > IPAM tab].
- //
- // [Amazon VPC pricing > IPAM tab]: http://aws.amazon.com/vpc/pricing/
- Tier types.IpamTier
-
- noSmithyDocumentSerde
-}
-
-type ModifyIpamOutput struct {
-
- // The results of the modification.
- Ipam *types.Ipam
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyIpamMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyIpam{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyIpam{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyIpam"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyIpamValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyIpam(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyIpam(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyIpam",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpamPool.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpamPool.go
deleted file mode 100644
index 438d0e61a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpamPool.go
+++ /dev/null
@@ -1,215 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modify the configurations of an IPAM pool.
-//
-// For more information, see [Modify a pool] in the Amazon VPC IPAM User Guide.
-//
-// [Modify a pool]: https://docs.aws.amazon.com/vpc/latest/ipam/mod-pool-ipam.html
-func (c *Client) ModifyIpamPool(ctx context.Context, params *ModifyIpamPoolInput, optFns ...func(*Options)) (*ModifyIpamPoolOutput, error) {
- if params == nil {
- params = &ModifyIpamPoolInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyIpamPool", params, optFns, c.addOperationModifyIpamPoolMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyIpamPoolOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyIpamPoolInput struct {
-
- // The ID of the IPAM pool you want to modify.
- //
- // This member is required.
- IpamPoolId *string
-
- // Add tag allocation rules to a pool. For more information about allocation
- // rules, see [Create a top-level pool]in the Amazon VPC IPAM User Guide.
- //
- // [Create a top-level pool]: https://docs.aws.amazon.com/vpc/latest/ipam/create-top-ipam.html
- AddAllocationResourceTags []types.RequestIpamResourceTag
-
- // The default netmask length for allocations added to this pool. If, for example,
- // the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new
- // allocations will default to 10.0.0.0/16.
- AllocationDefaultNetmaskLength *int32
-
- // The maximum netmask length possible for CIDR allocations in this IPAM pool to
- // be compliant. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible
- // netmask lengths for IPv6 addresses are 0 - 128.The maximum netmask length must
- // be greater than the minimum netmask length.
- AllocationMaxNetmaskLength *int32
-
- // The minimum netmask length required for CIDR allocations in this IPAM pool to
- // be compliant. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible
- // netmask lengths for IPv6 addresses are 0 - 128. The minimum netmask length must
- // be less than the maximum netmask length.
- AllocationMinNetmaskLength *int32
-
- // If true, IPAM will continuously look for resources within the CIDR range of
- // this pool and automatically import them as allocations into your IPAM. The CIDRs
- // that will be allocated for these resources must not already be allocated to
- // other resources in order for the import to succeed. IPAM will import a CIDR
- // regardless of its compliance with the pool's allocation rules, so a resource
- // might be imported and subsequently marked as noncompliant. If IPAM discovers
- // multiple CIDRs that overlap, IPAM will import the largest CIDR only. If IPAM
- // discovers multiple CIDRs with matching CIDRs, IPAM will randomly import one of
- // them only.
- //
- // A locale must be set on the pool for this feature to work.
- AutoImport *bool
-
- // Clear the default netmask length allocation rule for this pool.
- ClearAllocationDefaultNetmaskLength *bool
-
- // The description of the IPAM pool you want to modify.
- Description *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Remove tag allocation rules from a pool.
- RemoveAllocationResourceTags []types.RequestIpamResourceTag
-
- noSmithyDocumentSerde
-}
-
-type ModifyIpamPoolOutput struct {
-
- // The results of the modification.
- IpamPool *types.IpamPool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyIpamPoolMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyIpamPool{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyIpamPool{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyIpamPool"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyIpamPoolValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyIpamPool(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyIpamPool(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyIpamPool",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpamResourceCidr.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpamResourceCidr.go
deleted file mode 100644
index 87d45f4fb..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpamResourceCidr.go
+++ /dev/null
@@ -1,200 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modify a resource CIDR. You can use this action to transfer resource CIDRs
-// between scopes and ignore resource CIDRs that you do not want to manage. If set
-// to false, the resource will not be tracked for overlap, it cannot be
-// auto-imported into a pool, and it will be removed from any pool it has an
-// allocation in.
-//
-// For more information, see [Move resource CIDRs between scopes] and [Change the monitoring state of resource CIDRs] in the Amazon VPC IPAM User Guide.
-//
-// [Change the monitoring state of resource CIDRs]: https://docs.aws.amazon.com/vpc/latest/ipam/change-monitoring-state-ipam.html
-// [Move resource CIDRs between scopes]: https://docs.aws.amazon.com/vpc/latest/ipam/move-resource-ipam.html
-func (c *Client) ModifyIpamResourceCidr(ctx context.Context, params *ModifyIpamResourceCidrInput, optFns ...func(*Options)) (*ModifyIpamResourceCidrOutput, error) {
- if params == nil {
- params = &ModifyIpamResourceCidrInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyIpamResourceCidr", params, optFns, c.addOperationModifyIpamResourceCidrMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyIpamResourceCidrOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyIpamResourceCidrInput struct {
-
- // The ID of the current scope that the resource CIDR is in.
- //
- // This member is required.
- CurrentIpamScopeId *string
-
- // Determines if the resource is monitored by IPAM. If a resource is monitored,
- // the resource is discovered by IPAM and you can view details about the resource’s
- // CIDR.
- //
- // This member is required.
- Monitored *bool
-
- // The CIDR of the resource you want to modify.
- //
- // This member is required.
- ResourceCidr *string
-
- // The ID of the resource you want to modify.
- //
- // This member is required.
- ResourceId *string
-
- // The Amazon Web Services Region of the resource you want to modify.
- //
- // This member is required.
- ResourceRegion *string
-
- // The ID of the scope you want to transfer the resource CIDR to.
- DestinationIpamScopeId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyIpamResourceCidrOutput struct {
-
- // The CIDR of the resource.
- IpamResourceCidr *types.IpamResourceCidr
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyIpamResourceCidrMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyIpamResourceCidr{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyIpamResourceCidr{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyIpamResourceCidr"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyIpamResourceCidrValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyIpamResourceCidr(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyIpamResourceCidr(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyIpamResourceCidr",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpamResourceDiscovery.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpamResourceDiscovery.go
deleted file mode 100644
index d124fb84d..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpamResourceDiscovery.go
+++ /dev/null
@@ -1,209 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies a resource discovery. A resource discovery is an IPAM component that
-// enables IPAM to manage and monitor resources that belong to the owning account.
-func (c *Client) ModifyIpamResourceDiscovery(ctx context.Context, params *ModifyIpamResourceDiscoveryInput, optFns ...func(*Options)) (*ModifyIpamResourceDiscoveryOutput, error) {
- if params == nil {
- params = &ModifyIpamResourceDiscoveryInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyIpamResourceDiscovery", params, optFns, c.addOperationModifyIpamResourceDiscoveryMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyIpamResourceDiscoveryOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyIpamResourceDiscoveryInput struct {
-
- // A resource discovery ID.
- //
- // This member is required.
- IpamResourceDiscoveryId *string
-
- // Add operating Regions to the resource discovery. Operating Regions are Amazon
- // Web Services Regions where the IPAM is allowed to manage IP address CIDRs. IPAM
- // only discovers and monitors resources in the Amazon Web Services Regions you
- // select as operating Regions.
- AddOperatingRegions []types.AddIpamOperatingRegion
-
- // Add an Organizational Unit (OU) exclusion to your IPAM. If your IPAM is
- // integrated with Amazon Web Services Organizations and you add an organizational
- // unit (OU) exclusion, IPAM will not manage the IP addresses in accounts in that
- // OU exclusion. There is a limit on the number of exclusions you can create. For
- // more information, see [Quotas for your IPAM]in the Amazon VPC IPAM User Guide.
- //
- // The resulting set of exclusions must not result in "overlap", meaning two or
- // more OU exclusions must not exclude the same OU. For more information and
- // examples, see the Amazon Web Services CLI request process in [Add or remove OU exclusions]in the Amazon VPC
- // User Guide.
- //
- // [Quotas for your IPAM]: https://docs.aws.amazon.com/vpc/latest/ipam/quotas-ipam.html
- // [Add or remove OU exclusions]: https://docs.aws.amazon.com/vpc/latest/ipam/exclude-ous.html#exclude-ous-create-delete
- AddOrganizationalUnitExclusions []types.AddIpamOrganizationalUnitExclusion
-
- // A resource discovery description.
- Description *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Remove operating Regions.
- RemoveOperatingRegions []types.RemoveIpamOperatingRegion
-
- // Remove an Organizational Unit (OU) exclusion to your IPAM. If your IPAM is
- // integrated with Amazon Web Services Organizations and you add an organizational
- // unit (OU) exclusion, IPAM will not manage the IP addresses in accounts in that
- // OU exclusion. There is a limit on the number of exclusions you can create. For
- // more information, see [Quotas for your IPAM]in the Amazon VPC IPAM User Guide.
- //
- // The resulting set of exclusions must not result in "overlap", meaning two or
- // more OU exclusions must not exclude the same OU. For more information and
- // examples, see the Amazon Web Services CLI request process in [Add or remove OU exclusions]in the Amazon VPC
- // User Guide.
- //
- // [Quotas for your IPAM]: https://docs.aws.amazon.com/vpc/latest/ipam/quotas-ipam.html
- // [Add or remove OU exclusions]: https://docs.aws.amazon.com/vpc/latest/ipam/exclude-ous.html#exclude-ous-create-delete
- RemoveOrganizationalUnitExclusions []types.RemoveIpamOrganizationalUnitExclusion
-
- noSmithyDocumentSerde
-}
-
-type ModifyIpamResourceDiscoveryOutput struct {
-
- // A resource discovery.
- IpamResourceDiscovery *types.IpamResourceDiscovery
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyIpamResourceDiscoveryMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyIpamResourceDiscovery{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyIpamResourceDiscovery{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyIpamResourceDiscovery"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyIpamResourceDiscoveryValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyIpamResourceDiscovery(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyIpamResourceDiscovery(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyIpamResourceDiscovery",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpamScope.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpamScope.go
deleted file mode 100644
index c47c242d7..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpamScope.go
+++ /dev/null
@@ -1,169 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modify an IPAM scope.
-func (c *Client) ModifyIpamScope(ctx context.Context, params *ModifyIpamScopeInput, optFns ...func(*Options)) (*ModifyIpamScopeOutput, error) {
- if params == nil {
- params = &ModifyIpamScopeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyIpamScope", params, optFns, c.addOperationModifyIpamScopeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyIpamScopeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyIpamScopeInput struct {
-
- // The ID of the scope you want to modify.
- //
- // This member is required.
- IpamScopeId *string
-
- // The description of the scope you want to modify.
- Description *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyIpamScopeOutput struct {
-
- // The results of the modification.
- IpamScope *types.IpamScope
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyIpamScopeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyIpamScope{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyIpamScope{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyIpamScope"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyIpamScopeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyIpamScope(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyIpamScope(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyIpamScope",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyLaunchTemplate.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyLaunchTemplate.go
deleted file mode 100644
index aec93e538..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyLaunchTemplate.go
+++ /dev/null
@@ -1,222 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies a launch template. You can specify which version of the launch
-// template to set as the default version. When launching an instance, the default
-// version applies when a launch template version is not specified.
-func (c *Client) ModifyLaunchTemplate(ctx context.Context, params *ModifyLaunchTemplateInput, optFns ...func(*Options)) (*ModifyLaunchTemplateOutput, error) {
- if params == nil {
- params = &ModifyLaunchTemplateInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyLaunchTemplate", params, optFns, c.addOperationModifyLaunchTemplateMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyLaunchTemplateOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyLaunchTemplateInput struct {
-
- // Unique, case-sensitive identifier you provide to ensure the idempotency of the
- // request. If a client token isn't specified, a randomly generated token is used
- // in the request to ensure idempotency.
- //
- // For more information, see [Ensuring idempotency].
- //
- // Constraint: Maximum 128 ASCII characters.
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
- ClientToken *string
-
- // The version number of the launch template to set as the default version.
- DefaultVersion *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the launch template.
- //
- // You must specify either the launch template ID or the launch template name, but
- // not both.
- LaunchTemplateId *string
-
- // The name of the launch template.
- //
- // You must specify either the launch template ID or the launch template name, but
- // not both.
- LaunchTemplateName *string
-
- noSmithyDocumentSerde
-}
-
-type ModifyLaunchTemplateOutput struct {
-
- // Information about the launch template.
- LaunchTemplate *types.LaunchTemplate
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyLaunchTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyLaunchTemplate{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyLaunchTemplate{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyLaunchTemplate"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opModifyLaunchTemplateMiddleware(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyLaunchTemplate(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpModifyLaunchTemplate struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpModifyLaunchTemplate) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpModifyLaunchTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*ModifyLaunchTemplateInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *ModifyLaunchTemplateInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opModifyLaunchTemplateMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpModifyLaunchTemplate{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opModifyLaunchTemplate(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyLaunchTemplate",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyLocalGatewayRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyLocalGatewayRoute.go
deleted file mode 100644
index f4c0ea688..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyLocalGatewayRoute.go
+++ /dev/null
@@ -1,181 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the specified local gateway route.
-func (c *Client) ModifyLocalGatewayRoute(ctx context.Context, params *ModifyLocalGatewayRouteInput, optFns ...func(*Options)) (*ModifyLocalGatewayRouteOutput, error) {
- if params == nil {
- params = &ModifyLocalGatewayRouteInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyLocalGatewayRoute", params, optFns, c.addOperationModifyLocalGatewayRouteMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyLocalGatewayRouteOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyLocalGatewayRouteInput struct {
-
- // The ID of the local gateway route table.
- //
- // This member is required.
- LocalGatewayRouteTableId *string
-
- // The CIDR block used for destination matches. The value that you provide must
- // match the CIDR of an existing route in the table.
- DestinationCidrBlock *string
-
- // The ID of the prefix list. Use a prefix list in place of DestinationCidrBlock .
- // You cannot use DestinationPrefixListId and DestinationCidrBlock in the same
- // request.
- DestinationPrefixListId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the virtual interface group.
- LocalGatewayVirtualInterfaceGroupId *string
-
- // The ID of the network interface.
- NetworkInterfaceId *string
-
- noSmithyDocumentSerde
-}
-
-type ModifyLocalGatewayRouteOutput struct {
-
- // Information about the local gateway route table.
- Route *types.LocalGatewayRoute
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyLocalGatewayRouteMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyLocalGatewayRoute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyLocalGatewayRoute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyLocalGatewayRoute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyLocalGatewayRouteValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyLocalGatewayRoute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyLocalGatewayRoute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyLocalGatewayRoute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyManagedPrefixList.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyManagedPrefixList.go
deleted file mode 100644
index e732a83ae..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyManagedPrefixList.go
+++ /dev/null
@@ -1,192 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the specified managed prefix list.
-//
-// Adding or removing entries in a prefix list creates a new version of the prefix
-// list. Changing the name of the prefix list does not affect the version.
-//
-// If you specify a current version number that does not match the true current
-// version number, the request fails.
-func (c *Client) ModifyManagedPrefixList(ctx context.Context, params *ModifyManagedPrefixListInput, optFns ...func(*Options)) (*ModifyManagedPrefixListOutput, error) {
- if params == nil {
- params = &ModifyManagedPrefixListInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyManagedPrefixList", params, optFns, c.addOperationModifyManagedPrefixListMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyManagedPrefixListOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyManagedPrefixListInput struct {
-
- // The ID of the prefix list.
- //
- // This member is required.
- PrefixListId *string
-
- // One or more entries to add to the prefix list.
- AddEntries []types.AddPrefixListEntry
-
- // The current version of the prefix list.
- CurrentVersion *int64
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The maximum number of entries for the prefix list. You cannot modify the
- // entries of a prefix list and modify the size of a prefix list at the same time.
- //
- // If any of the resources that reference the prefix list cannot support the new
- // maximum size, the modify operation fails. Check the state message for the IDs of
- // the first ten resources that do not support the new maximum size.
- MaxEntries *int32
-
- // A name for the prefix list.
- PrefixListName *string
-
- // One or more entries to remove from the prefix list.
- RemoveEntries []types.RemovePrefixListEntry
-
- noSmithyDocumentSerde
-}
-
-type ModifyManagedPrefixListOutput struct {
-
- // Information about the prefix list.
- PrefixList *types.ManagedPrefixList
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyManagedPrefixListMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyManagedPrefixList{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyManagedPrefixList{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyManagedPrefixList"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyManagedPrefixListValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyManagedPrefixList(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyManagedPrefixList(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyManagedPrefixList",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyNetworkInterfaceAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyNetworkInterfaceAttribute.go
deleted file mode 100644
index 5491817ae..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyNetworkInterfaceAttribute.go
+++ /dev/null
@@ -1,216 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the specified network interface attribute. You can specify only one
-// attribute at a time. You can use this action to attach and detach security
-// groups from an existing EC2 instance.
-func (c *Client) ModifyNetworkInterfaceAttribute(ctx context.Context, params *ModifyNetworkInterfaceAttributeInput, optFns ...func(*Options)) (*ModifyNetworkInterfaceAttributeOutput, error) {
- if params == nil {
- params = &ModifyNetworkInterfaceAttributeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyNetworkInterfaceAttribute", params, optFns, c.addOperationModifyNetworkInterfaceAttributeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyNetworkInterfaceAttributeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for ModifyNetworkInterfaceAttribute.
-type ModifyNetworkInterfaceAttributeInput struct {
-
- // The ID of the network interface.
- //
- // This member is required.
- NetworkInterfaceId *string
-
- // Indicates whether to assign a public IPv4 address to a network interface. This
- // option can be enabled for any network interface but will only apply to the
- // primary network interface (eth0).
- AssociatePublicIpAddress *bool
-
- // A list of subnet IDs to associate with the network interface.
- AssociatedSubnetIds []string
-
- // Information about the interface attachment. If modifying the delete on
- // termination attribute, you must specify the ID of the interface attachment.
- Attachment *types.NetworkInterfaceAttachmentChanges
-
- // A connection tracking specification.
- ConnectionTrackingSpecification *types.ConnectionTrackingSpecificationRequest
-
- // A description for the network interface.
- Description *types.AttributeValue
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Updates the ENA Express configuration for the network interface that’s attached
- // to the instance.
- EnaSrdSpecification *types.EnaSrdSpecification
-
- // If you’re modifying a network interface in a dual-stack or IPv6-only subnet,
- // you have the option to assign a primary IPv6 IP address. A primary IPv6 address
- // is an IPv6 GUA address associated with an ENI that you have enabled to use a
- // primary IPv6 address. Use this option if the instance that this ENI will be
- // attached to relies on its IPv6 address not changing. Amazon Web Services will
- // automatically assign an IPv6 address associated with the ENI attached to your
- // instance to be the primary IPv6 address. Once you enable an IPv6 GUA address to
- // be a primary IPv6, you cannot disable it. When you enable an IPv6 GUA address to
- // be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address
- // until the instance is terminated or the network interface is detached. If you
- // have multiple IPv6 addresses associated with an ENI attached to your instance
- // and you enable a primary IPv6 address, the first IPv6 GUA address associated
- // with the ENI becomes the primary IPv6 address.
- EnablePrimaryIpv6 *bool
-
- // Changes the security groups for the network interface. The new set of groups
- // you specify replaces the current set. You must specify at least one group, even
- // if it's just the default security group in the VPC. You must specify the ID of
- // the security group, not the name.
- Groups []string
-
- // Enable or disable source/destination checks, which ensure that the instance is
- // either the source or the destination of any traffic that it receives. If the
- // value is true , source/destination checks are enabled; otherwise, they are
- // disabled. The default value is true . You must disable source/destination checks
- // if the instance runs services such as network address translation, routing, or
- // firewalls.
- SourceDestCheck *types.AttributeBooleanValue
-
- noSmithyDocumentSerde
-}
-
-type ModifyNetworkInterfaceAttributeOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyNetworkInterfaceAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyNetworkInterfaceAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyNetworkInterfaceAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyNetworkInterfaceAttribute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyNetworkInterfaceAttributeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyNetworkInterfaceAttribute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyNetworkInterfaceAttribute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyNetworkInterfaceAttribute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyPrivateDnsNameOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyPrivateDnsNameOptions.go
deleted file mode 100644
index db6750b86..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyPrivateDnsNameOptions.go
+++ /dev/null
@@ -1,180 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the options for instance hostnames for the specified instance.
-func (c *Client) ModifyPrivateDnsNameOptions(ctx context.Context, params *ModifyPrivateDnsNameOptionsInput, optFns ...func(*Options)) (*ModifyPrivateDnsNameOptionsOutput, error) {
- if params == nil {
- params = &ModifyPrivateDnsNameOptionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyPrivateDnsNameOptions", params, optFns, c.addOperationModifyPrivateDnsNameOptionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyPrivateDnsNameOptionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyPrivateDnsNameOptionsInput struct {
-
- // The ID of the instance.
- //
- // This member is required.
- InstanceId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Indicates whether to respond to DNS queries for instance hostnames with DNS
- // AAAA records.
- EnableResourceNameDnsAAAARecord *bool
-
- // Indicates whether to respond to DNS queries for instance hostnames with DNS A
- // records.
- EnableResourceNameDnsARecord *bool
-
- // The type of hostname for EC2 instances. For IPv4 only subnets, an instance DNS
- // name must be based on the instance IPv4 address. For IPv6 only subnets, an
- // instance DNS name must be based on the instance ID. For dual-stack subnets, you
- // can specify whether DNS names use the instance IPv4 address or the instance ID.
- PrivateDnsHostnameType types.HostnameType
-
- noSmithyDocumentSerde
-}
-
-type ModifyPrivateDnsNameOptionsOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyPrivateDnsNameOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyPrivateDnsNameOptions{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyPrivateDnsNameOptions{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyPrivateDnsNameOptions"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyPrivateDnsNameOptionsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyPrivateDnsNameOptions(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyPrivateDnsNameOptions(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyPrivateDnsNameOptions",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyPublicIpDnsNameOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyPublicIpDnsNameOptions.go
deleted file mode 100644
index 5e667c7fc..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyPublicIpDnsNameOptions.go
+++ /dev/null
@@ -1,192 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modify public hostname options for a network interface. For more information,
-// see [EC2 instance hostnames, DNS names, and domains]in the Amazon EC2 User Guide.
-//
-// [EC2 instance hostnames, DNS names, and domains]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-naming.html
-func (c *Client) ModifyPublicIpDnsNameOptions(ctx context.Context, params *ModifyPublicIpDnsNameOptionsInput, optFns ...func(*Options)) (*ModifyPublicIpDnsNameOptionsOutput, error) {
- if params == nil {
- params = &ModifyPublicIpDnsNameOptionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyPublicIpDnsNameOptions", params, optFns, c.addOperationModifyPublicIpDnsNameOptionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyPublicIpDnsNameOptionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyPublicIpDnsNameOptionsInput struct {
-
- // The public hostname type. For more information, see [EC2 instance hostnames, DNS names, and domains] in the Amazon EC2 User
- // Guide.
- //
- // - public-dual-stack-dns-name : A dual-stack public hostname for a network
- // interface. Requests from within the VPC resolve to both the private IPv4 address
- // and the IPv6 Global Unicast Address of the network interface. Requests from the
- // internet resolve to both the public IPv4 and the IPv6 GUA address of the network
- // interface.
- //
- // - public-ipv4-dns-name : An IPv4-enabled public hostname for a network
- // interface. Requests from within the VPC resolve to the private primary IPv4
- // address of the network interface. Requests from the internet resolve to the
- // public IPv4 address of the network interface.
- //
- // - public-ipv6-dns-name : An IPv6-enabled public hostname for a network
- // interface. Requests from within the VPC or from the internet resolve to the IPv6
- // GUA of the network interface.
- //
- // [EC2 instance hostnames, DNS names, and domains]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-naming.html
- //
- // This member is required.
- HostnameType types.PublicIpDnsOption
-
- // A network interface ID.
- //
- // This member is required.
- NetworkInterfaceId *string
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyPublicIpDnsNameOptionsOutput struct {
-
- // Whether or not the request was successful.
- Successful *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyPublicIpDnsNameOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyPublicIpDnsNameOptions{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyPublicIpDnsNameOptions{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyPublicIpDnsNameOptions"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyPublicIpDnsNameOptionsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyPublicIpDnsNameOptions(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyPublicIpDnsNameOptions(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyPublicIpDnsNameOptions",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyReservedInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyReservedInstances.go
deleted file mode 100644
index baa6b3a3c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyReservedInstances.go
+++ /dev/null
@@ -1,180 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the configuration of your Reserved Instances, such as the Availability
-// Zone, instance count, or instance type. The Reserved Instances to be modified
-// must be identical, except for Availability Zone, network platform, and instance
-// type.
-//
-// For more information, see [Modify Reserved Instances] in the Amazon EC2 User Guide.
-//
-// [Modify Reserved Instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html
-func (c *Client) ModifyReservedInstances(ctx context.Context, params *ModifyReservedInstancesInput, optFns ...func(*Options)) (*ModifyReservedInstancesOutput, error) {
- if params == nil {
- params = &ModifyReservedInstancesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyReservedInstances", params, optFns, c.addOperationModifyReservedInstancesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyReservedInstancesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for ModifyReservedInstances.
-type ModifyReservedInstancesInput struct {
-
- // The IDs of the Reserved Instances to modify.
- //
- // This member is required.
- ReservedInstancesIds []string
-
- // The configuration settings for the Reserved Instances to modify.
- //
- // This member is required.
- TargetConfigurations []types.ReservedInstancesConfiguration
-
- // A unique, case-sensitive token you provide to ensure idempotency of your
- // modification request. For more information, see [Ensuring Idempotency].
- //
- // [Ensuring Idempotency]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
- ClientToken *string
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of ModifyReservedInstances.
-type ModifyReservedInstancesOutput struct {
-
- // The ID for the modification.
- ReservedInstancesModificationId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyReservedInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyReservedInstances{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyReservedInstances{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyReservedInstances"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyReservedInstancesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyReservedInstances(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyReservedInstances(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyReservedInstances",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyRouteServer.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyRouteServer.go
deleted file mode 100644
index 43566c5cd..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyRouteServer.go
+++ /dev/null
@@ -1,221 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the configuration of an existing route server.
-//
-// Amazon VPC Route Server simplifies routing for traffic between workloads that
-// are deployed within a VPC and its internet gateways. With this feature, VPC
-// Route Server dynamically updates VPC and internet gateway route tables with your
-// preferred IPv4 or IPv6 routes to achieve routing fault tolerance for those
-// workloads. This enables you to automatically reroute traffic within a VPC, which
-// increases the manageability of VPC routing and interoperability with third-party
-// workloads.
-//
-// Route server supports the follow route table types:
-//
-// - VPC route tables not associated with subnets
-//
-// - Subnet route tables
-//
-// - Internet gateway route tables
-//
-// Route server does not support route tables associated with virtual private
-// gateways. To propagate routes into a transit gateway route table, use [Transit Gateway Connect].
-//
-// For more information see [Dynamic routing in your VPC with VPC Route Server] in the Amazon VPC User Guide.
-//
-// [Dynamic routing in your VPC with VPC Route Server]: https://docs.aws.amazon.com/vpc/latest/userguide/dynamic-routing-route-server.html
-// [Transit Gateway Connect]: https://docs.aws.amazon.com/vpc/latest/tgw/tgw-connect.html
-func (c *Client) ModifyRouteServer(ctx context.Context, params *ModifyRouteServerInput, optFns ...func(*Options)) (*ModifyRouteServerOutput, error) {
- if params == nil {
- params = &ModifyRouteServerInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyRouteServer", params, optFns, c.addOperationModifyRouteServerMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyRouteServerOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyRouteServerInput struct {
-
- // The ID of the route server to modify.
- //
- // This member is required.
- RouteServerId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Specifies whether to persist routes after all BGP sessions are terminated.
- //
- // - enable: Routes will be persisted in FIB and RIB after all BGP sessions are
- // terminated.
- //
- // - disable: Routes will not be persisted in FIB and RIB after all BGP sessions
- // are terminated.
- //
- // - reset: If a route server has persisted routes due to all BGP sessions
- // having ended, reset will withdraw all routes and reset route server to an empty
- // FIB and RIB.
- PersistRoutes types.RouteServerPersistRoutesAction
-
- // The number of minutes a route server will wait after BGP is re-established to
- // unpersist the routes in the FIB and RIB. Value must be in the range of 1-5.
- // Required if PersistRoutes is enabled .
- //
- // If you set the duration to 1 minute, then when your network appliance
- // re-establishes BGP with route server, it has 1 minute to relearn it's adjacent
- // network and advertise those routes to route server before route server resumes
- // normal functionality. In most cases, 1 minute is probably sufficient. If,
- // however, you have concerns that your BGP network may not be capable of fully
- // re-establishing and re-learning everything in 1 minute, you can increase the
- // duration up to 5 minutes.
- PersistRoutesDuration *int64
-
- // Specifies whether to enable SNS notifications for route server events. Enabling
- // SNS notifications persists BGP status changes to an SNS topic provisioned by
- // Amazon Web Services.
- SnsNotificationsEnabled *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyRouteServerOutput struct {
-
- // Information about the modified route server.
- RouteServer *types.RouteServer
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyRouteServerMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyRouteServer{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyRouteServer{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyRouteServer"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyRouteServerValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyRouteServer(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyRouteServer(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyRouteServer",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySecurityGroupRules.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySecurityGroupRules.go
deleted file mode 100644
index 6fdcf6bf4..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySecurityGroupRules.go
+++ /dev/null
@@ -1,171 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the rules of a security group.
-func (c *Client) ModifySecurityGroupRules(ctx context.Context, params *ModifySecurityGroupRulesInput, optFns ...func(*Options)) (*ModifySecurityGroupRulesOutput, error) {
- if params == nil {
- params = &ModifySecurityGroupRulesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifySecurityGroupRules", params, optFns, c.addOperationModifySecurityGroupRulesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifySecurityGroupRulesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifySecurityGroupRulesInput struct {
-
- // The ID of the security group.
- //
- // This member is required.
- GroupId *string
-
- // Information about the security group properties to update.
- //
- // This member is required.
- SecurityGroupRules []types.SecurityGroupRuleUpdate
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifySecurityGroupRulesOutput struct {
-
- // Returns true if the request succeeds; otherwise, returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifySecurityGroupRulesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifySecurityGroupRules{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifySecurityGroupRules{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifySecurityGroupRules"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifySecurityGroupRulesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifySecurityGroupRules(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifySecurityGroupRules(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifySecurityGroupRules",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySnapshotAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySnapshotAttribute.go
deleted file mode 100644
index 7859686eb..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySnapshotAttribute.go
+++ /dev/null
@@ -1,192 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Adds or removes permission settings for the specified snapshot. You may add or
-// remove specified Amazon Web Services account IDs from a snapshot's list of
-// create volume permissions, but you cannot do both in a single operation. If you
-// need to both add and remove account IDs for a snapshot, you must use multiple
-// operations. You can make up to 500 modifications to a snapshot in a single
-// operation.
-//
-// Encrypted snapshots and snapshots with Amazon Web Services Marketplace product
-// codes cannot be made public. Snapshots encrypted with your default KMS key
-// cannot be shared with other accounts.
-//
-// For more information about modifying snapshot permissions, see [Share a snapshot] in the Amazon
-// EBS User Guide.
-//
-// [Share a snapshot]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-modifying-snapshot-permissions.html
-func (c *Client) ModifySnapshotAttribute(ctx context.Context, params *ModifySnapshotAttributeInput, optFns ...func(*Options)) (*ModifySnapshotAttributeOutput, error) {
- if params == nil {
- params = &ModifySnapshotAttributeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifySnapshotAttribute", params, optFns, c.addOperationModifySnapshotAttributeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifySnapshotAttributeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifySnapshotAttributeInput struct {
-
- // The ID of the snapshot.
- //
- // This member is required.
- SnapshotId *string
-
- // The snapshot attribute to modify. Only volume creation permissions can be
- // modified.
- Attribute types.SnapshotAttributeName
-
- // A JSON representation of the snapshot attribute modification.
- CreateVolumePermission *types.CreateVolumePermissionModifications
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The group to modify for the snapshot.
- GroupNames []string
-
- // The type of operation to perform to the attribute.
- OperationType types.OperationType
-
- // The account ID to modify for the snapshot.
- UserIds []string
-
- noSmithyDocumentSerde
-}
-
-type ModifySnapshotAttributeOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifySnapshotAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifySnapshotAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifySnapshotAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifySnapshotAttribute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifySnapshotAttributeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifySnapshotAttribute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifySnapshotAttribute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifySnapshotAttribute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySnapshotTier.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySnapshotTier.go
deleted file mode 100644
index f7a5638ab..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySnapshotTier.go
+++ /dev/null
@@ -1,179 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Archives an Amazon EBS snapshot. When you archive a snapshot, it is converted
-// to a full snapshot that includes all of the blocks of data that were written to
-// the volume at the time the snapshot was created, and moved from the standard
-// tier to the archive tier. For more information, see [Archive Amazon EBS snapshots]in the Amazon EBS User
-// Guide.
-//
-// [Archive Amazon EBS snapshots]: https://docs.aws.amazon.com/ebs/latest/userguide/snapshot-archive.html
-func (c *Client) ModifySnapshotTier(ctx context.Context, params *ModifySnapshotTierInput, optFns ...func(*Options)) (*ModifySnapshotTierOutput, error) {
- if params == nil {
- params = &ModifySnapshotTierInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifySnapshotTier", params, optFns, c.addOperationModifySnapshotTierMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifySnapshotTierOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifySnapshotTierInput struct {
-
- // The ID of the snapshot.
- //
- // This member is required.
- SnapshotId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The name of the storage tier. You must specify archive .
- StorageTier types.TargetStorageTier
-
- noSmithyDocumentSerde
-}
-
-type ModifySnapshotTierOutput struct {
-
- // The ID of the snapshot.
- SnapshotId *string
-
- // The date and time when the archive process was started.
- TieringStartTime *time.Time
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifySnapshotTierMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifySnapshotTier{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifySnapshotTier{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifySnapshotTier"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifySnapshotTierValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifySnapshotTier(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifySnapshotTier(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifySnapshotTier",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySpotFleetRequest.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySpotFleetRequest.go
deleted file mode 100644
index ade6b27e1..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySpotFleetRequest.go
+++ /dev/null
@@ -1,213 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the specified Spot Fleet request.
-//
-// You can only modify a Spot Fleet request of type maintain .
-//
-// While the Spot Fleet request is being modified, it is in the modifying state.
-//
-// To scale up your Spot Fleet, increase its target capacity. The Spot Fleet
-// launches the additional Spot Instances according to the allocation strategy for
-// the Spot Fleet request. If the allocation strategy is lowestPrice , the Spot
-// Fleet launches instances using the Spot Instance pool with the lowest price. If
-// the allocation strategy is diversified , the Spot Fleet distributes the
-// instances across the Spot Instance pools. If the allocation strategy is
-// capacityOptimized , Spot Fleet launches instances from Spot Instance pools with
-// optimal capacity for the number of instances that are launching.
-//
-// To scale down your Spot Fleet, decrease its target capacity. First, the Spot
-// Fleet cancels any open requests that exceed the new target capacity. You can
-// request that the Spot Fleet terminate Spot Instances until the size of the fleet
-// no longer exceeds the new target capacity. If the allocation strategy is
-// lowestPrice , the Spot Fleet terminates the instances with the highest price per
-// unit. If the allocation strategy is capacityOptimized , the Spot Fleet
-// terminates the instances in the Spot Instance pools that have the least
-// available Spot Instance capacity. If the allocation strategy is diversified ,
-// the Spot Fleet terminates instances across the Spot Instance pools.
-// Alternatively, you can request that the Spot Fleet keep the fleet at its current
-// size, but not replace any Spot Instances that are interrupted or that you
-// terminate manually.
-//
-// If you are finished with your Spot Fleet for now, but will use it again later,
-// you can set the target capacity to 0.
-func (c *Client) ModifySpotFleetRequest(ctx context.Context, params *ModifySpotFleetRequestInput, optFns ...func(*Options)) (*ModifySpotFleetRequestOutput, error) {
- if params == nil {
- params = &ModifySpotFleetRequestInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifySpotFleetRequest", params, optFns, c.addOperationModifySpotFleetRequestMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifySpotFleetRequestOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for ModifySpotFleetRequest.
-type ModifySpotFleetRequestInput struct {
-
- // The ID of the Spot Fleet request.
- //
- // This member is required.
- SpotFleetRequestId *string
-
- // Reserved.
- Context *string
-
- // Indicates whether running instances should be terminated if the target capacity
- // of the Spot Fleet request is decreased below the current size of the Spot Fleet.
- //
- // Supported only for fleets of type maintain .
- ExcessCapacityTerminationPolicy types.ExcessCapacityTerminationPolicy
-
- // The launch template and overrides. You can only use this parameter if you
- // specified a launch template ( LaunchTemplateConfigs ) in your Spot Fleet
- // request. If you specified LaunchSpecifications in your Spot Fleet request, then
- // omit this parameter.
- LaunchTemplateConfigs []types.LaunchTemplateConfig
-
- // The number of On-Demand Instances in the fleet.
- OnDemandTargetCapacity *int32
-
- // The size of the fleet.
- TargetCapacity *int32
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of ModifySpotFleetRequest.
-type ModifySpotFleetRequestOutput struct {
-
- // If the request succeeds, the response returns true . If the request fails, no
- // response is returned, and instead an error message is returned.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifySpotFleetRequestMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifySpotFleetRequest{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifySpotFleetRequest{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifySpotFleetRequest"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifySpotFleetRequestValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifySpotFleetRequest(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifySpotFleetRequest(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifySpotFleetRequest",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySubnetAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySubnetAttribute.go
deleted file mode 100644
index 084623a55..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySubnetAttribute.go
+++ /dev/null
@@ -1,241 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies a subnet attribute. You can only modify one attribute at a time.
-//
-// Use this action to modify subnets on Amazon Web Services Outposts.
-//
-// - To modify a subnet on an Outpost rack, set both MapCustomerOwnedIpOnLaunch
-// and CustomerOwnedIpv4Pool . These two parameters act as a single attribute.
-//
-// - To modify a subnet on an Outpost server, set either EnableLniAtDeviceIndex
-// or DisableLniAtDeviceIndex .
-//
-// For more information about Amazon Web Services Outposts, see the following:
-//
-// [Outpost servers]
-//
-// [Outpost racks]
-//
-// [Outpost servers]: https://docs.aws.amazon.com/outposts/latest/userguide/how-servers-work.html
-// [Outpost racks]: https://docs.aws.amazon.com/outposts/latest/userguide/how-racks-work.html
-func (c *Client) ModifySubnetAttribute(ctx context.Context, params *ModifySubnetAttributeInput, optFns ...func(*Options)) (*ModifySubnetAttributeOutput, error) {
- if params == nil {
- params = &ModifySubnetAttributeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifySubnetAttribute", params, optFns, c.addOperationModifySubnetAttributeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifySubnetAttributeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifySubnetAttributeInput struct {
-
- // The ID of the subnet.
- //
- // This member is required.
- SubnetId *string
-
- // Specify true to indicate that network interfaces created in the specified
- // subnet should be assigned an IPv6 address. This includes a network interface
- // that's created when launching an instance into the subnet (the instance
- // therefore receives an IPv6 address).
- //
- // If you enable the IPv6 addressing feature for your subnet, your network
- // interface or instance only receives an IPv6 address if it's created using
- // version 2016-11-15 or later of the Amazon EC2 API.
- AssignIpv6AddressOnCreation *types.AttributeBooleanValue
-
- // The customer-owned IPv4 address pool associated with the subnet.
- //
- // You must set this value when you specify true for MapCustomerOwnedIpOnLaunch .
- CustomerOwnedIpv4Pool *string
-
- // Specify true to indicate that local network interfaces at the current position
- // should be disabled.
- DisableLniAtDeviceIndex *types.AttributeBooleanValue
-
- // Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this
- // subnet should return synthetic IPv6 addresses for IPv4-only destinations.
- //
- // You must first configure a NAT gateway in a public subnet (separate from the
- // subnet containing the IPv6-only workloads). For example, the subnet containing
- // the NAT gateway should have a 0.0.0.0/0 route pointing to the internet gateway.
- // For more information, see [Configure DNS64 and NAT64]in the Amazon VPC User Guide.
- //
- // [Configure DNS64 and NAT64]: https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-nat64-dns64.html#nat-gateway-nat64-dns64-walkthrough
- EnableDns64 *types.AttributeBooleanValue
-
- // Indicates the device position for local network interfaces in this subnet. For
- // example, 1 indicates local network interfaces in this subnet are the secondary
- // network interface (eth1). A local network interface cannot be the primary
- // network interface (eth0).
- EnableLniAtDeviceIndex *int32
-
- // Indicates whether to respond to DNS queries for instance hostnames with DNS
- // AAAA records.
- EnableResourceNameDnsAAAARecordOnLaunch *types.AttributeBooleanValue
-
- // Indicates whether to respond to DNS queries for instance hostnames with DNS A
- // records.
- EnableResourceNameDnsARecordOnLaunch *types.AttributeBooleanValue
-
- // Specify true to indicate that network interfaces attached to instances created
- // in the specified subnet should be assigned a customer-owned IPv4 address.
- //
- // When this value is true , you must specify the customer-owned IP pool using
- // CustomerOwnedIpv4Pool .
- MapCustomerOwnedIpOnLaunch *types.AttributeBooleanValue
-
- // Specify true to indicate that network interfaces attached to instances created
- // in the specified subnet should be assigned a public IPv4 address.
- //
- // Amazon Web Services charges for all public IPv4 addresses, including public
- // IPv4 addresses associated with running instances and Elastic IP addresses. For
- // more information, see the Public IPv4 Address tab on the [Amazon VPC pricing page].
- //
- // [Amazon VPC pricing page]: http://aws.amazon.com/vpc/pricing/
- MapPublicIpOnLaunch *types.AttributeBooleanValue
-
- // The type of hostname to assign to instances in the subnet at launch. For
- // IPv4-only and dual-stack (IPv4 and IPv6) subnets, an instance DNS name can be
- // based on the instance IPv4 address (ip-name) or the instance ID (resource-name).
- // For IPv6 only subnets, an instance DNS name must be based on the instance ID
- // (resource-name).
- PrivateDnsHostnameTypeOnLaunch types.HostnameType
-
- noSmithyDocumentSerde
-}
-
-type ModifySubnetAttributeOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifySubnetAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifySubnetAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifySubnetAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifySubnetAttribute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifySubnetAttributeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifySubnetAttribute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifySubnetAttribute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifySubnetAttribute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorFilterNetworkServices.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorFilterNetworkServices.go
deleted file mode 100644
index 0b0aff75a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorFilterNetworkServices.go
+++ /dev/null
@@ -1,179 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Allows or restricts mirroring network services.
-//
-// By default, Amazon DNS network services are not eligible for Traffic Mirror.
-// Use AddNetworkServices to add network services to a Traffic Mirror filter. When
-// a network service is added to the Traffic Mirror filter, all traffic related to
-// that network service will be mirrored. When you no longer want to mirror network
-// services, use RemoveNetworkServices to remove the network services from the
-// Traffic Mirror filter.
-func (c *Client) ModifyTrafficMirrorFilterNetworkServices(ctx context.Context, params *ModifyTrafficMirrorFilterNetworkServicesInput, optFns ...func(*Options)) (*ModifyTrafficMirrorFilterNetworkServicesOutput, error) {
- if params == nil {
- params = &ModifyTrafficMirrorFilterNetworkServicesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyTrafficMirrorFilterNetworkServices", params, optFns, c.addOperationModifyTrafficMirrorFilterNetworkServicesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyTrafficMirrorFilterNetworkServicesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyTrafficMirrorFilterNetworkServicesInput struct {
-
- // The ID of the Traffic Mirror filter.
- //
- // This member is required.
- TrafficMirrorFilterId *string
-
- // The network service, for example Amazon DNS, that you want to mirror.
- AddNetworkServices []types.TrafficMirrorNetworkService
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The network service, for example Amazon DNS, that you no longer want to mirror.
- RemoveNetworkServices []types.TrafficMirrorNetworkService
-
- noSmithyDocumentSerde
-}
-
-type ModifyTrafficMirrorFilterNetworkServicesOutput struct {
-
- // The Traffic Mirror filter that the network service is associated with.
- TrafficMirrorFilter *types.TrafficMirrorFilter
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyTrafficMirrorFilterNetworkServicesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyTrafficMirrorFilterNetworkServices{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyTrafficMirrorFilterNetworkServices"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyTrafficMirrorFilterNetworkServicesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyTrafficMirrorFilterNetworkServices(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyTrafficMirrorFilterNetworkServices(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyTrafficMirrorFilterNetworkServices",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorFilterRule.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorFilterRule.go
deleted file mode 100644
index d53823b59..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorFilterRule.go
+++ /dev/null
@@ -1,206 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the specified Traffic Mirror rule.
-//
-// DestinationCidrBlock and SourceCidrBlock must both be an IPv4 range or an IPv6
-// range.
-func (c *Client) ModifyTrafficMirrorFilterRule(ctx context.Context, params *ModifyTrafficMirrorFilterRuleInput, optFns ...func(*Options)) (*ModifyTrafficMirrorFilterRuleOutput, error) {
- if params == nil {
- params = &ModifyTrafficMirrorFilterRuleInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyTrafficMirrorFilterRule", params, optFns, c.addOperationModifyTrafficMirrorFilterRuleMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyTrafficMirrorFilterRuleOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyTrafficMirrorFilterRuleInput struct {
-
- // The ID of the Traffic Mirror rule.
- //
- // This member is required.
- TrafficMirrorFilterRuleId *string
-
- // The description to assign to the Traffic Mirror rule.
- Description *string
-
- // The destination CIDR block to assign to the Traffic Mirror rule.
- DestinationCidrBlock *string
-
- // The destination ports that are associated with the Traffic Mirror rule.
- DestinationPortRange *types.TrafficMirrorPortRangeRequest
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The protocol, for example TCP, to assign to the Traffic Mirror rule.
- Protocol *int32
-
- // The properties that you want to remove from the Traffic Mirror filter rule.
- //
- // When you remove a property from a Traffic Mirror filter rule, the property is
- // set to the default.
- RemoveFields []types.TrafficMirrorFilterRuleField
-
- // The action to assign to the rule.
- RuleAction types.TrafficMirrorRuleAction
-
- // The number of the Traffic Mirror rule. This number must be unique for each
- // Traffic Mirror rule in a given direction. The rules are processed in ascending
- // order by rule number.
- RuleNumber *int32
-
- // The source CIDR block to assign to the Traffic Mirror rule.
- SourceCidrBlock *string
-
- // The port range to assign to the Traffic Mirror rule.
- SourcePortRange *types.TrafficMirrorPortRangeRequest
-
- // The type of traffic to assign to the rule.
- TrafficDirection types.TrafficDirection
-
- noSmithyDocumentSerde
-}
-
-type ModifyTrafficMirrorFilterRuleOutput struct {
-
- // Tags are not returned for ModifyTrafficMirrorFilterRule.
- //
- // A Traffic Mirror rule.
- TrafficMirrorFilterRule *types.TrafficMirrorFilterRule
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyTrafficMirrorFilterRuleMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyTrafficMirrorFilterRule{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyTrafficMirrorFilterRule{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyTrafficMirrorFilterRule"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyTrafficMirrorFilterRuleValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyTrafficMirrorFilterRule(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyTrafficMirrorFilterRule(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyTrafficMirrorFilterRule",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorSession.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorSession.go
deleted file mode 100644
index 42dc53e19..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorSession.go
+++ /dev/null
@@ -1,203 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies a Traffic Mirror session.
-func (c *Client) ModifyTrafficMirrorSession(ctx context.Context, params *ModifyTrafficMirrorSessionInput, optFns ...func(*Options)) (*ModifyTrafficMirrorSessionOutput, error) {
- if params == nil {
- params = &ModifyTrafficMirrorSessionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyTrafficMirrorSession", params, optFns, c.addOperationModifyTrafficMirrorSessionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyTrafficMirrorSessionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyTrafficMirrorSessionInput struct {
-
- // The ID of the Traffic Mirror session.
- //
- // This member is required.
- TrafficMirrorSessionId *string
-
- // The description to assign to the Traffic Mirror session.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The number of bytes in each packet to mirror. These are bytes after the VXLAN
- // header. To mirror a subset, set this to the length (in bytes) to mirror. For
- // example, if you set this value to 100, then the first 100 bytes that meet the
- // filter criteria are copied to the target. Do not specify this parameter when you
- // want to mirror the entire packet.
- //
- // For sessions with Network Load Balancer (NLB) traffic mirror targets, the
- // default PacketLength will be set to 8500. Valid values are 1-8500. Setting a
- // PacketLength greater than 8500 will result in an error response.
- PacketLength *int32
-
- // The properties that you want to remove from the Traffic Mirror session.
- //
- // When you remove a property from a Traffic Mirror session, the property is set
- // to the default.
- RemoveFields []types.TrafficMirrorSessionField
-
- // The session number determines the order in which sessions are evaluated when an
- // interface is used by multiple sessions. The first session with a matching filter
- // is the one that mirrors the packets.
- //
- // Valid values are 1-32766.
- SessionNumber *int32
-
- // The ID of the Traffic Mirror filter.
- TrafficMirrorFilterId *string
-
- // The Traffic Mirror target. The target must be in the same VPC as the source, or
- // have a VPC peering connection with the source.
- TrafficMirrorTargetId *string
-
- // The virtual network ID of the Traffic Mirror session.
- VirtualNetworkId *int32
-
- noSmithyDocumentSerde
-}
-
-type ModifyTrafficMirrorSessionOutput struct {
-
- // Information about the Traffic Mirror session.
- TrafficMirrorSession *types.TrafficMirrorSession
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyTrafficMirrorSessionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyTrafficMirrorSession{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyTrafficMirrorSession{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyTrafficMirrorSession"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyTrafficMirrorSessionValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyTrafficMirrorSession(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyTrafficMirrorSession(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyTrafficMirrorSession",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGateway.go
deleted file mode 100644
index 60e23b5cf..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGateway.go
+++ /dev/null
@@ -1,174 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the specified transit gateway. When you modify a transit gateway, the
-// modified options are applied to new transit gateway attachments only. Your
-// existing transit gateway attachments are not modified.
-func (c *Client) ModifyTransitGateway(ctx context.Context, params *ModifyTransitGatewayInput, optFns ...func(*Options)) (*ModifyTransitGatewayOutput, error) {
- if params == nil {
- params = &ModifyTransitGatewayInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyTransitGateway", params, optFns, c.addOperationModifyTransitGatewayMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyTransitGatewayOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyTransitGatewayInput struct {
-
- // The ID of the transit gateway.
- //
- // This member is required.
- TransitGatewayId *string
-
- // The description for the transit gateway.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The options to modify.
- Options *types.ModifyTransitGatewayOptions
-
- noSmithyDocumentSerde
-}
-
-type ModifyTransitGatewayOutput struct {
-
- // Information about the transit gateway.
- TransitGateway *types.TransitGateway
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyTransitGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyTransitGateway{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyTransitGateway{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyTransitGateway"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyTransitGatewayValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyTransitGateway(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyTransitGateway(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyTransitGateway",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGatewayPrefixListReference.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGatewayPrefixListReference.go
deleted file mode 100644
index 9e4ea672b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGatewayPrefixListReference.go
+++ /dev/null
@@ -1,178 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies a reference (route) to a prefix list in a specified transit gateway
-// route table.
-func (c *Client) ModifyTransitGatewayPrefixListReference(ctx context.Context, params *ModifyTransitGatewayPrefixListReferenceInput, optFns ...func(*Options)) (*ModifyTransitGatewayPrefixListReferenceOutput, error) {
- if params == nil {
- params = &ModifyTransitGatewayPrefixListReferenceInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyTransitGatewayPrefixListReference", params, optFns, c.addOperationModifyTransitGatewayPrefixListReferenceMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyTransitGatewayPrefixListReferenceOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyTransitGatewayPrefixListReferenceInput struct {
-
- // The ID of the prefix list.
- //
- // This member is required.
- PrefixListId *string
-
- // The ID of the transit gateway route table.
- //
- // This member is required.
- TransitGatewayRouteTableId *string
-
- // Indicates whether to drop traffic that matches this route.
- Blackhole *bool
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the attachment to which traffic is routed.
- TransitGatewayAttachmentId *string
-
- noSmithyDocumentSerde
-}
-
-type ModifyTransitGatewayPrefixListReferenceOutput struct {
-
- // Information about the prefix list reference.
- TransitGatewayPrefixListReference *types.TransitGatewayPrefixListReference
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyTransitGatewayPrefixListReferenceMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyTransitGatewayPrefixListReference{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyTransitGatewayPrefixListReference"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyTransitGatewayPrefixListReferenceValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyTransitGatewayPrefixListReference(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyTransitGatewayPrefixListReference(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyTransitGatewayPrefixListReference",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGatewayVpcAttachment.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGatewayVpcAttachment.go
deleted file mode 100644
index 47cb7f654..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGatewayVpcAttachment.go
+++ /dev/null
@@ -1,176 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the specified VPC attachment.
-func (c *Client) ModifyTransitGatewayVpcAttachment(ctx context.Context, params *ModifyTransitGatewayVpcAttachmentInput, optFns ...func(*Options)) (*ModifyTransitGatewayVpcAttachmentOutput, error) {
- if params == nil {
- params = &ModifyTransitGatewayVpcAttachmentInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyTransitGatewayVpcAttachment", params, optFns, c.addOperationModifyTransitGatewayVpcAttachmentMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyTransitGatewayVpcAttachmentOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyTransitGatewayVpcAttachmentInput struct {
-
- // The ID of the attachment.
- //
- // This member is required.
- TransitGatewayAttachmentId *string
-
- // The IDs of one or more subnets to add. You can specify at most one subnet per
- // Availability Zone.
- AddSubnetIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The new VPC attachment options.
- Options *types.ModifyTransitGatewayVpcAttachmentRequestOptions
-
- // The IDs of one or more subnets to remove.
- RemoveSubnetIds []string
-
- noSmithyDocumentSerde
-}
-
-type ModifyTransitGatewayVpcAttachmentOutput struct {
-
- // Information about the modified attachment.
- TransitGatewayVpcAttachment *types.TransitGatewayVpcAttachment
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyTransitGatewayVpcAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyTransitGatewayVpcAttachment{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyTransitGatewayVpcAttachment"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyTransitGatewayVpcAttachmentValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyTransitGatewayVpcAttachment(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyTransitGatewayVpcAttachment(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyTransitGatewayVpcAttachment",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessEndpoint.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessEndpoint.go
deleted file mode 100644
index 5e55777e4..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessEndpoint.go
+++ /dev/null
@@ -1,228 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the configuration of the specified Amazon Web Services Verified Access
-// endpoint.
-func (c *Client) ModifyVerifiedAccessEndpoint(ctx context.Context, params *ModifyVerifiedAccessEndpointInput, optFns ...func(*Options)) (*ModifyVerifiedAccessEndpointOutput, error) {
- if params == nil {
- params = &ModifyVerifiedAccessEndpointInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyVerifiedAccessEndpoint", params, optFns, c.addOperationModifyVerifiedAccessEndpointMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyVerifiedAccessEndpointOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyVerifiedAccessEndpointInput struct {
-
- // The ID of the Verified Access endpoint.
- //
- // This member is required.
- VerifiedAccessEndpointId *string
-
- // The CIDR options.
- CidrOptions *types.ModifyVerifiedAccessEndpointCidrOptions
-
- // A unique, case-sensitive token that you provide to ensure idempotency of your
- // modification request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // A description for the Verified Access endpoint.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The load balancer details if creating the Verified Access endpoint as
- // load-balancer type.
- LoadBalancerOptions *types.ModifyVerifiedAccessEndpointLoadBalancerOptions
-
- // The network interface options.
- NetworkInterfaceOptions *types.ModifyVerifiedAccessEndpointEniOptions
-
- // The RDS options.
- RdsOptions *types.ModifyVerifiedAccessEndpointRdsOptions
-
- // The ID of the Verified Access group.
- VerifiedAccessGroupId *string
-
- noSmithyDocumentSerde
-}
-
-type ModifyVerifiedAccessEndpointOutput struct {
-
- // Details about the Verified Access endpoint.
- VerifiedAccessEndpoint *types.VerifiedAccessEndpoint
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyVerifiedAccessEndpointMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVerifiedAccessEndpoint{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVerifiedAccessEndpoint{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVerifiedAccessEndpoint"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opModifyVerifiedAccessEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpModifyVerifiedAccessEndpointValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVerifiedAccessEndpoint(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpModifyVerifiedAccessEndpoint struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpModifyVerifiedAccessEndpoint) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpModifyVerifiedAccessEndpoint) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*ModifyVerifiedAccessEndpointInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *ModifyVerifiedAccessEndpointInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opModifyVerifiedAccessEndpointMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpModifyVerifiedAccessEndpoint{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opModifyVerifiedAccessEndpoint(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyVerifiedAccessEndpoint",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessEndpointPolicy.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessEndpointPolicy.go
deleted file mode 100644
index 28d75f54d..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessEndpointPolicy.go
+++ /dev/null
@@ -1,223 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the specified Amazon Web Services Verified Access endpoint policy.
-func (c *Client) ModifyVerifiedAccessEndpointPolicy(ctx context.Context, params *ModifyVerifiedAccessEndpointPolicyInput, optFns ...func(*Options)) (*ModifyVerifiedAccessEndpointPolicyOutput, error) {
- if params == nil {
- params = &ModifyVerifiedAccessEndpointPolicyInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyVerifiedAccessEndpointPolicy", params, optFns, c.addOperationModifyVerifiedAccessEndpointPolicyMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyVerifiedAccessEndpointPolicyOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyVerifiedAccessEndpointPolicyInput struct {
-
- // The ID of the Verified Access endpoint.
- //
- // This member is required.
- VerifiedAccessEndpointId *string
-
- // A unique, case-sensitive token that you provide to ensure idempotency of your
- // modification request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The Verified Access policy document.
- PolicyDocument *string
-
- // The status of the Verified Access policy.
- PolicyEnabled *bool
-
- // The options for server side encryption.
- SseSpecification *types.VerifiedAccessSseSpecificationRequest
-
- noSmithyDocumentSerde
-}
-
-type ModifyVerifiedAccessEndpointPolicyOutput struct {
-
- // The Verified Access policy document.
- PolicyDocument *string
-
- // The status of the Verified Access policy.
- PolicyEnabled *bool
-
- // The options in use for server side encryption.
- SseSpecification *types.VerifiedAccessSseSpecificationResponse
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyVerifiedAccessEndpointPolicyMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVerifiedAccessEndpointPolicy{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVerifiedAccessEndpointPolicy{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVerifiedAccessEndpointPolicy"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opModifyVerifiedAccessEndpointPolicyMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpModifyVerifiedAccessEndpointPolicyValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVerifiedAccessEndpointPolicy(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpModifyVerifiedAccessEndpointPolicy struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpModifyVerifiedAccessEndpointPolicy) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpModifyVerifiedAccessEndpointPolicy) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*ModifyVerifiedAccessEndpointPolicyInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *ModifyVerifiedAccessEndpointPolicyInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opModifyVerifiedAccessEndpointPolicyMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpModifyVerifiedAccessEndpointPolicy{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opModifyVerifiedAccessEndpointPolicy(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyVerifiedAccessEndpointPolicy",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessGroup.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessGroup.go
deleted file mode 100644
index 36eb30823..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessGroup.go
+++ /dev/null
@@ -1,214 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the specified Amazon Web Services Verified Access group configuration.
-func (c *Client) ModifyVerifiedAccessGroup(ctx context.Context, params *ModifyVerifiedAccessGroupInput, optFns ...func(*Options)) (*ModifyVerifiedAccessGroupOutput, error) {
- if params == nil {
- params = &ModifyVerifiedAccessGroupInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyVerifiedAccessGroup", params, optFns, c.addOperationModifyVerifiedAccessGroupMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyVerifiedAccessGroupOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyVerifiedAccessGroupInput struct {
-
- // The ID of the Verified Access group.
- //
- // This member is required.
- VerifiedAccessGroupId *string
-
- // A unique, case-sensitive token that you provide to ensure idempotency of your
- // modification request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // A description for the Verified Access group.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the Verified Access instance.
- VerifiedAccessInstanceId *string
-
- noSmithyDocumentSerde
-}
-
-type ModifyVerifiedAccessGroupOutput struct {
-
- // Details about the Verified Access group.
- VerifiedAccessGroup *types.VerifiedAccessGroup
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyVerifiedAccessGroupMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVerifiedAccessGroup{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVerifiedAccessGroup{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVerifiedAccessGroup"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opModifyVerifiedAccessGroupMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpModifyVerifiedAccessGroupValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVerifiedAccessGroup(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpModifyVerifiedAccessGroup struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpModifyVerifiedAccessGroup) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpModifyVerifiedAccessGroup) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*ModifyVerifiedAccessGroupInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *ModifyVerifiedAccessGroupInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opModifyVerifiedAccessGroupMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpModifyVerifiedAccessGroup{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opModifyVerifiedAccessGroup(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyVerifiedAccessGroup",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessGroupPolicy.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessGroupPolicy.go
deleted file mode 100644
index 2b9352893..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessGroupPolicy.go
+++ /dev/null
@@ -1,223 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the specified Amazon Web Services Verified Access group policy.
-func (c *Client) ModifyVerifiedAccessGroupPolicy(ctx context.Context, params *ModifyVerifiedAccessGroupPolicyInput, optFns ...func(*Options)) (*ModifyVerifiedAccessGroupPolicyOutput, error) {
- if params == nil {
- params = &ModifyVerifiedAccessGroupPolicyInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyVerifiedAccessGroupPolicy", params, optFns, c.addOperationModifyVerifiedAccessGroupPolicyMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyVerifiedAccessGroupPolicyOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyVerifiedAccessGroupPolicyInput struct {
-
- // The ID of the Verified Access group.
- //
- // This member is required.
- VerifiedAccessGroupId *string
-
- // A unique, case-sensitive token that you provide to ensure idempotency of your
- // modification request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The Verified Access policy document.
- PolicyDocument *string
-
- // The status of the Verified Access policy.
- PolicyEnabled *bool
-
- // The options for server side encryption.
- SseSpecification *types.VerifiedAccessSseSpecificationRequest
-
- noSmithyDocumentSerde
-}
-
-type ModifyVerifiedAccessGroupPolicyOutput struct {
-
- // The Verified Access policy document.
- PolicyDocument *string
-
- // The status of the Verified Access policy.
- PolicyEnabled *bool
-
- // The options in use for server side encryption.
- SseSpecification *types.VerifiedAccessSseSpecificationResponse
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyVerifiedAccessGroupPolicyMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVerifiedAccessGroupPolicy{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVerifiedAccessGroupPolicy{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVerifiedAccessGroupPolicy"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opModifyVerifiedAccessGroupPolicyMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpModifyVerifiedAccessGroupPolicyValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVerifiedAccessGroupPolicy(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpModifyVerifiedAccessGroupPolicy struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpModifyVerifiedAccessGroupPolicy) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpModifyVerifiedAccessGroupPolicy) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*ModifyVerifiedAccessGroupPolicyInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *ModifyVerifiedAccessGroupPolicyInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opModifyVerifiedAccessGroupPolicyMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpModifyVerifiedAccessGroupPolicy{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opModifyVerifiedAccessGroupPolicy(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyVerifiedAccessGroupPolicy",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessInstance.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessInstance.go
deleted file mode 100644
index 492d54e4e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessInstance.go
+++ /dev/null
@@ -1,215 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the configuration of the specified Amazon Web Services Verified Access
-// instance.
-func (c *Client) ModifyVerifiedAccessInstance(ctx context.Context, params *ModifyVerifiedAccessInstanceInput, optFns ...func(*Options)) (*ModifyVerifiedAccessInstanceOutput, error) {
- if params == nil {
- params = &ModifyVerifiedAccessInstanceInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyVerifiedAccessInstance", params, optFns, c.addOperationModifyVerifiedAccessInstanceMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyVerifiedAccessInstanceOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyVerifiedAccessInstanceInput struct {
-
- // The ID of the Verified Access instance.
- //
- // This member is required.
- VerifiedAccessInstanceId *string
-
- // The custom subdomain.
- CidrEndpointsCustomSubDomain *string
-
- // A unique, case-sensitive token that you provide to ensure idempotency of your
- // modification request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // A description for the Verified Access instance.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyVerifiedAccessInstanceOutput struct {
-
- // Details about the Verified Access instance.
- VerifiedAccessInstance *types.VerifiedAccessInstance
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyVerifiedAccessInstanceMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVerifiedAccessInstance{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVerifiedAccessInstance{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVerifiedAccessInstance"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opModifyVerifiedAccessInstanceMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpModifyVerifiedAccessInstanceValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVerifiedAccessInstance(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpModifyVerifiedAccessInstance struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpModifyVerifiedAccessInstance) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpModifyVerifiedAccessInstance) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*ModifyVerifiedAccessInstanceInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *ModifyVerifiedAccessInstanceInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opModifyVerifiedAccessInstanceMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpModifyVerifiedAccessInstance{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opModifyVerifiedAccessInstance(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyVerifiedAccessInstance",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessInstanceLoggingConfiguration.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessInstanceLoggingConfiguration.go
deleted file mode 100644
index ca23d8f2e..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessInstanceLoggingConfiguration.go
+++ /dev/null
@@ -1,214 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the logging configuration for the specified Amazon Web Services
-// Verified Access instance.
-func (c *Client) ModifyVerifiedAccessInstanceLoggingConfiguration(ctx context.Context, params *ModifyVerifiedAccessInstanceLoggingConfigurationInput, optFns ...func(*Options)) (*ModifyVerifiedAccessInstanceLoggingConfigurationOutput, error) {
- if params == nil {
- params = &ModifyVerifiedAccessInstanceLoggingConfigurationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyVerifiedAccessInstanceLoggingConfiguration", params, optFns, c.addOperationModifyVerifiedAccessInstanceLoggingConfigurationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyVerifiedAccessInstanceLoggingConfigurationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyVerifiedAccessInstanceLoggingConfigurationInput struct {
-
- // The configuration options for Verified Access instances.
- //
- // This member is required.
- AccessLogs *types.VerifiedAccessLogOptions
-
- // The ID of the Verified Access instance.
- //
- // This member is required.
- VerifiedAccessInstanceId *string
-
- // A unique, case-sensitive token that you provide to ensure idempotency of your
- // modification request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyVerifiedAccessInstanceLoggingConfigurationOutput struct {
-
- // The logging configuration for the Verified Access instance.
- LoggingConfiguration *types.VerifiedAccessInstanceLoggingConfiguration
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyVerifiedAccessInstanceLoggingConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVerifiedAccessInstanceLoggingConfiguration{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVerifiedAccessInstanceLoggingConfiguration{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVerifiedAccessInstanceLoggingConfiguration"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opModifyVerifiedAccessInstanceLoggingConfigurationMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpModifyVerifiedAccessInstanceLoggingConfigurationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVerifiedAccessInstanceLoggingConfiguration(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpModifyVerifiedAccessInstanceLoggingConfiguration struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpModifyVerifiedAccessInstanceLoggingConfiguration) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpModifyVerifiedAccessInstanceLoggingConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*ModifyVerifiedAccessInstanceLoggingConfigurationInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *ModifyVerifiedAccessInstanceLoggingConfigurationInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opModifyVerifiedAccessInstanceLoggingConfigurationMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpModifyVerifiedAccessInstanceLoggingConfiguration{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opModifyVerifiedAccessInstanceLoggingConfiguration(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyVerifiedAccessInstanceLoggingConfiguration",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessTrustProvider.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessTrustProvider.go
deleted file mode 100644
index 5e8be30d6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVerifiedAccessTrustProvider.go
+++ /dev/null
@@ -1,225 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the configuration of the specified Amazon Web Services Verified Access
-// trust provider.
-func (c *Client) ModifyVerifiedAccessTrustProvider(ctx context.Context, params *ModifyVerifiedAccessTrustProviderInput, optFns ...func(*Options)) (*ModifyVerifiedAccessTrustProviderOutput, error) {
- if params == nil {
- params = &ModifyVerifiedAccessTrustProviderInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyVerifiedAccessTrustProvider", params, optFns, c.addOperationModifyVerifiedAccessTrustProviderMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyVerifiedAccessTrustProviderOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyVerifiedAccessTrustProviderInput struct {
-
- // The ID of the Verified Access trust provider.
- //
- // This member is required.
- VerifiedAccessTrustProviderId *string
-
- // A unique, case-sensitive token that you provide to ensure idempotency of your
- // modification request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // A description for the Verified Access trust provider.
- Description *string
-
- // The options for a device-based trust provider. This parameter is required when
- // the provider type is device .
- DeviceOptions *types.ModifyVerifiedAccessTrustProviderDeviceOptions
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The OpenID Connect (OIDC) options.
- NativeApplicationOidcOptions *types.ModifyVerifiedAccessNativeApplicationOidcOptions
-
- // The options for an OpenID Connect-compatible user-identity trust provider.
- OidcOptions *types.ModifyVerifiedAccessTrustProviderOidcOptions
-
- // The options for server side encryption.
- SseSpecification *types.VerifiedAccessSseSpecificationRequest
-
- noSmithyDocumentSerde
-}
-
-type ModifyVerifiedAccessTrustProviderOutput struct {
-
- // Details about the Verified Access trust provider.
- VerifiedAccessTrustProvider *types.VerifiedAccessTrustProvider
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyVerifiedAccessTrustProviderMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVerifiedAccessTrustProvider{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVerifiedAccessTrustProvider{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVerifiedAccessTrustProvider"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opModifyVerifiedAccessTrustProviderMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpModifyVerifiedAccessTrustProviderValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVerifiedAccessTrustProvider(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpModifyVerifiedAccessTrustProvider struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpModifyVerifiedAccessTrustProvider) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpModifyVerifiedAccessTrustProvider) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*ModifyVerifiedAccessTrustProviderInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *ModifyVerifiedAccessTrustProviderInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opModifyVerifiedAccessTrustProviderMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpModifyVerifiedAccessTrustProvider{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opModifyVerifiedAccessTrustProvider(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyVerifiedAccessTrustProvider",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVolume.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVolume.go
deleted file mode 100644
index ce905f1fa..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVolume.go
+++ /dev/null
@@ -1,251 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// You can modify several parameters of an existing EBS volume, including volume
-// size, volume type, and IOPS capacity. If your EBS volume is attached to a
-// current-generation EC2 instance type, you might be able to apply these changes
-// without stopping the instance or detaching the volume from it. For more
-// information about modifying EBS volumes, see [Amazon EBS Elastic Volumes]in the Amazon EBS User Guide.
-//
-// When you complete a resize operation on your volume, you need to extend the
-// volume's file-system size to take advantage of the new storage capacity. For
-// more information, see [Extend the file system].
-//
-// For more information, see [Monitor the progress of volume modifications] in the Amazon EBS User Guide.
-//
-// With previous-generation instance types, resizing an EBS volume might require
-// detaching and reattaching the volume or stopping and restarting the instance.
-//
-// After modifying a volume, you must wait at least six hours and ensure that the
-// volume is in the in-use or available state before you can modify the same
-// volume. This is sometimes referred to as a cooldown period.
-//
-// [Monitor the progress of volume modifications]: https://docs.aws.amazon.com/ebs/latest/userguide/monitoring-volume-modifications.html
-// [Amazon EBS Elastic Volumes]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-modify-volume.html
-// [Extend the file system]: https://docs.aws.amazon.com/ebs/latest/userguide/recognize-expanded-volume-linux.html
-func (c *Client) ModifyVolume(ctx context.Context, params *ModifyVolumeInput, optFns ...func(*Options)) (*ModifyVolumeOutput, error) {
- if params == nil {
- params = &ModifyVolumeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyVolume", params, optFns, c.addOperationModifyVolumeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyVolumeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyVolumeInput struct {
-
- // The ID of the volume.
- //
- // This member is required.
- VolumeId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The target IOPS rate of the volume. This parameter is valid only for gp3 , io1 ,
- // and io2 volumes.
- //
- // The following are the supported values for each volume type:
- //
- // - gp3 : 3,000 - 16,000 IOPS
- //
- // - io1 : 100 - 64,000 IOPS
- //
- // - io2 : 100 - 256,000 IOPS
- //
- // For io2 volumes, you can achieve up to 256,000 IOPS on [instances built on the Nitro System]. On other instances,
- // you can achieve performance up to 32,000 IOPS.
- //
- // Default: The existing value is retained if you keep the same volume type. If
- // you change the volume type to io1 , io2 , or gp3 , the default is 3,000.
- //
- // [instances built on the Nitro System]: https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html
- Iops *int32
-
- // Specifies whether to enable Amazon EBS Multi-Attach. If you enable
- // Multi-Attach, you can attach the volume to up to 16 [Nitro-based instances]in the same Availability
- // Zone. This parameter is supported with io1 and io2 volumes only. For more
- // information, see [Amazon EBS Multi-Attach]in the Amazon EBS User Guide.
- //
- // [Amazon EBS Multi-Attach]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volumes-multi.html
- // [Nitro-based instances]: https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html
- MultiAttachEnabled *bool
-
- // The target size of the volume, in GiB. The target volume size must be greater
- // than or equal to the existing size of the volume.
- //
- // The following are the supported volumes sizes for each volume type:
- //
- // - gp2 and gp3 : 1 - 16,384 GiB
- //
- // - io1 : 4 - 16,384 GiB
- //
- // - io2 : 4 - 65,536 GiB
- //
- // - st1 and sc1 : 125 - 16,384 GiB
- //
- // - standard : 1 - 1024 GiB
- //
- // Default: The existing size is retained.
- Size *int32
-
- // The target throughput of the volume, in MiB/s. This parameter is valid only for
- // gp3 volumes. The maximum value is 1,000.
- //
- // Default: The existing value is retained if the source and target volume type is
- // gp3 . Otherwise, the default value is 125.
- //
- // Valid Range: Minimum value of 125. Maximum value of 1000.
- Throughput *int32
-
- // The target EBS volume type of the volume. For more information, see [Amazon EBS volume types] in the
- // Amazon EBS User Guide.
- //
- // Default: The existing type is retained.
- //
- // [Amazon EBS volume types]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volume-types.html
- VolumeType types.VolumeType
-
- noSmithyDocumentSerde
-}
-
-type ModifyVolumeOutput struct {
-
- // Information about the volume modification.
- VolumeModification *types.VolumeModification
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyVolumeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVolume{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVolume{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVolume"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyVolumeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVolume(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyVolume(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyVolume",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVolumeAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVolumeAttribute.go
deleted file mode 100644
index c15a08d12..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVolumeAttribute.go
+++ /dev/null
@@ -1,175 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies a volume attribute.
-//
-// By default, all I/O operations for the volume are suspended when the data on
-// the volume is determined to be potentially inconsistent, to prevent
-// undetectable, latent data corruption. The I/O access to the volume can be
-// resumed by first enabling I/O access and then checking the data consistency on
-// your volume.
-//
-// You can change the default behavior to resume I/O operations. We recommend that
-// you change this only for boot volumes or for volumes that are stateless or
-// disposable.
-func (c *Client) ModifyVolumeAttribute(ctx context.Context, params *ModifyVolumeAttributeInput, optFns ...func(*Options)) (*ModifyVolumeAttributeOutput, error) {
- if params == nil {
- params = &ModifyVolumeAttributeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyVolumeAttribute", params, optFns, c.addOperationModifyVolumeAttributeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyVolumeAttributeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyVolumeAttributeInput struct {
-
- // The ID of the volume.
- //
- // This member is required.
- VolumeId *string
-
- // Indicates whether the volume should be auto-enabled for I/O operations.
- AutoEnableIO *types.AttributeBooleanValue
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyVolumeAttributeOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyVolumeAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVolumeAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVolumeAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVolumeAttribute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyVolumeAttributeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVolumeAttribute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyVolumeAttribute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyVolumeAttribute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcAttribute.go
deleted file mode 100644
index d75e7d116..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcAttribute.go
+++ /dev/null
@@ -1,177 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the specified attribute of the specified VPC.
-func (c *Client) ModifyVpcAttribute(ctx context.Context, params *ModifyVpcAttributeInput, optFns ...func(*Options)) (*ModifyVpcAttributeOutput, error) {
- if params == nil {
- params = &ModifyVpcAttributeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyVpcAttribute", params, optFns, c.addOperationModifyVpcAttributeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyVpcAttributeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyVpcAttributeInput struct {
-
- // The ID of the VPC.
- //
- // This member is required.
- VpcId *string
-
- // Indicates whether the instances launched in the VPC get DNS hostnames. If
- // enabled, instances in the VPC get DNS hostnames; otherwise, they do not.
- //
- // You cannot modify the DNS resolution and DNS hostnames attributes in the same
- // request. Use separate requests for each attribute. You can only enable DNS
- // hostnames if you've enabled DNS support.
- EnableDnsHostnames *types.AttributeBooleanValue
-
- // Indicates whether the DNS resolution is supported for the VPC. If enabled,
- // queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or
- // the reserved IP address at the base of the VPC network range "plus two" succeed.
- // If disabled, the Amazon provided DNS service in the VPC that resolves public DNS
- // hostnames to IP addresses is not enabled.
- //
- // You cannot modify the DNS resolution and DNS hostnames attributes in the same
- // request. Use separate requests for each attribute.
- EnableDnsSupport *types.AttributeBooleanValue
-
- // Indicates whether Network Address Usage metrics are enabled for your VPC.
- EnableNetworkAddressUsageMetrics *types.AttributeBooleanValue
-
- noSmithyDocumentSerde
-}
-
-type ModifyVpcAttributeOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyVpcAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpcAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVpcAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVpcAttribute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyVpcAttributeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVpcAttribute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyVpcAttribute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyVpcAttribute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcBlockPublicAccessExclusion.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcBlockPublicAccessExclusion.go
deleted file mode 100644
index b70c3f466..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcBlockPublicAccessExclusion.go
+++ /dev/null
@@ -1,183 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modify VPC Block Public Access (BPA) exclusions. A VPC BPA exclusion is a mode
-// that can be applied to a single VPC or subnet that exempts it from the account’s
-// BPA mode and will allow bidirectional or egress-only access. You can create BPA
-// exclusions for VPCs and subnets even when BPA is not enabled on the account to
-// ensure that there is no traffic disruption to the exclusions when VPC BPA is
-// turned on.
-func (c *Client) ModifyVpcBlockPublicAccessExclusion(ctx context.Context, params *ModifyVpcBlockPublicAccessExclusionInput, optFns ...func(*Options)) (*ModifyVpcBlockPublicAccessExclusionOutput, error) {
- if params == nil {
- params = &ModifyVpcBlockPublicAccessExclusionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyVpcBlockPublicAccessExclusion", params, optFns, c.addOperationModifyVpcBlockPublicAccessExclusionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyVpcBlockPublicAccessExclusionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyVpcBlockPublicAccessExclusionInput struct {
-
- // The ID of an exclusion.
- //
- // This member is required.
- ExclusionId *string
-
- // The exclusion mode for internet gateway traffic.
- //
- // - allow-bidirectional : Allow all internet traffic to and from the excluded
- // VPCs and subnets.
- //
- // - allow-egress : Allow outbound internet traffic from the excluded VPCs and
- // subnets. Block inbound internet traffic to the excluded VPCs and subnets. Only
- // applies when VPC Block Public Access is set to Bidirectional.
- //
- // This member is required.
- InternetGatewayExclusionMode types.InternetGatewayExclusionMode
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyVpcBlockPublicAccessExclusionOutput struct {
-
- // Details related to the exclusion.
- VpcBlockPublicAccessExclusion *types.VpcBlockPublicAccessExclusion
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyVpcBlockPublicAccessExclusionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpcBlockPublicAccessExclusion{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVpcBlockPublicAccessExclusion{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVpcBlockPublicAccessExclusion"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyVpcBlockPublicAccessExclusionValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVpcBlockPublicAccessExclusion(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyVpcBlockPublicAccessExclusion(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyVpcBlockPublicAccessExclusion",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcBlockPublicAccessOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcBlockPublicAccessOptions.go
deleted file mode 100644
index 0bfd6b6f6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcBlockPublicAccessOptions.go
+++ /dev/null
@@ -1,184 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modify VPC Block Public Access (BPA) options. VPC Block Public Access (BPA)
-// enables you to block resources in VPCs and subnets that you own in a Region from
-// reaching or being reached from the internet through internet gateways and
-// egress-only internet gateways. To learn more about VPC BPA, see [Block public access to VPCs and subnets]in the Amazon
-// VPC User Guide.
-//
-// [Block public access to VPCs and subnets]: https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html
-func (c *Client) ModifyVpcBlockPublicAccessOptions(ctx context.Context, params *ModifyVpcBlockPublicAccessOptionsInput, optFns ...func(*Options)) (*ModifyVpcBlockPublicAccessOptionsOutput, error) {
- if params == nil {
- params = &ModifyVpcBlockPublicAccessOptionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyVpcBlockPublicAccessOptions", params, optFns, c.addOperationModifyVpcBlockPublicAccessOptionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyVpcBlockPublicAccessOptionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyVpcBlockPublicAccessOptionsInput struct {
-
- // The mode of VPC BPA.
- //
- // - off : VPC BPA is not enabled and traffic is allowed to and from internet
- // gateways and egress-only internet gateways in this Region.
- //
- // - block-bidirectional : Block all traffic to and from internet gateways and
- // egress-only internet gateways in this Region (except for excluded VPCs and
- // subnets).
- //
- // - block-ingress : Block all internet traffic to the VPCs in this Region
- // (except for VPCs or subnets which are excluded). Only traffic to and from NAT
- // gateways and egress-only internet gateways is allowed because these gateways
- // only allow outbound connections to be established.
- //
- // This member is required.
- InternetGatewayBlockMode types.InternetGatewayBlockMode
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyVpcBlockPublicAccessOptionsOutput struct {
-
- // Details related to the VPC Block Public Access (BPA) options.
- VpcBlockPublicAccessOptions *types.VpcBlockPublicAccessOptions
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyVpcBlockPublicAccessOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpcBlockPublicAccessOptions{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVpcBlockPublicAccessOptions{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVpcBlockPublicAccessOptions"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyVpcBlockPublicAccessOptionsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVpcBlockPublicAccessOptions(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyVpcBlockPublicAccessOptions(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyVpcBlockPublicAccessOptions",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpoint.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpoint.go
deleted file mode 100644
index 19f783008..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpoint.go
+++ /dev/null
@@ -1,214 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies attributes of a specified VPC endpoint. The attributes that you can
-// modify depend on the type of VPC endpoint (interface, gateway, or Gateway Load
-// Balancer). For more information, see the [Amazon Web Services PrivateLink Guide].
-//
-// [Amazon Web Services PrivateLink Guide]: https://docs.aws.amazon.com/vpc/latest/privatelink/
-func (c *Client) ModifyVpcEndpoint(ctx context.Context, params *ModifyVpcEndpointInput, optFns ...func(*Options)) (*ModifyVpcEndpointOutput, error) {
- if params == nil {
- params = &ModifyVpcEndpointInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyVpcEndpoint", params, optFns, c.addOperationModifyVpcEndpointMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyVpcEndpointOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyVpcEndpointInput struct {
-
- // The ID of the endpoint.
- //
- // This member is required.
- VpcEndpointId *string
-
- // (Gateway endpoint) The IDs of the route tables to associate with the endpoint.
- AddRouteTableIds []string
-
- // (Interface endpoint) The IDs of the security groups to associate with the
- // endpoint network interfaces.
- AddSecurityGroupIds []string
-
- // (Interface and Gateway Load Balancer endpoints) The IDs of the subnets in which
- // to serve the endpoint. For a Gateway Load Balancer endpoint, you can specify
- // only one subnet.
- AddSubnetIds []string
-
- // The DNS options for the endpoint.
- DnsOptions *types.DnsOptionsSpecification
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The IP address type for the endpoint.
- IpAddressType types.IpAddressType
-
- // (Interface and gateway endpoints) A policy to attach to the endpoint that
- // controls access to the service. The policy must be in valid JSON format.
- PolicyDocument *string
-
- // (Interface endpoint) Indicates whether a private hosted zone is associated with
- // the VPC.
- PrivateDnsEnabled *bool
-
- // (Gateway endpoint) The IDs of the route tables to disassociate from the
- // endpoint.
- RemoveRouteTableIds []string
-
- // (Interface endpoint) The IDs of the security groups to disassociate from the
- // endpoint network interfaces.
- RemoveSecurityGroupIds []string
-
- // (Interface endpoint) The IDs of the subnets from which to remove the endpoint.
- RemoveSubnetIds []string
-
- // (Gateway endpoint) Specify true to reset the policy document to the default
- // policy. The default policy allows full access to the service.
- ResetPolicy *bool
-
- // The subnet configurations for the endpoint.
- SubnetConfigurations []types.SubnetConfiguration
-
- noSmithyDocumentSerde
-}
-
-type ModifyVpcEndpointOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyVpcEndpointMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpcEndpoint{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVpcEndpoint{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVpcEndpoint"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyVpcEndpointValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVpcEndpoint(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyVpcEndpoint(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyVpcEndpoint",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointConnectionNotification.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointConnectionNotification.go
deleted file mode 100644
index 34ad32959..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointConnectionNotification.go
+++ /dev/null
@@ -1,174 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies a connection notification for VPC endpoint or VPC endpoint service.
-// You can change the SNS topic for the notification, or the events for which to be
-// notified.
-func (c *Client) ModifyVpcEndpointConnectionNotification(ctx context.Context, params *ModifyVpcEndpointConnectionNotificationInput, optFns ...func(*Options)) (*ModifyVpcEndpointConnectionNotificationOutput, error) {
- if params == nil {
- params = &ModifyVpcEndpointConnectionNotificationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyVpcEndpointConnectionNotification", params, optFns, c.addOperationModifyVpcEndpointConnectionNotificationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyVpcEndpointConnectionNotificationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyVpcEndpointConnectionNotificationInput struct {
-
- // The ID of the notification.
- //
- // This member is required.
- ConnectionNotificationId *string
-
- // The events for the endpoint. Valid values are Accept , Connect , Delete , and
- // Reject .
- ConnectionEvents []string
-
- // The ARN for the SNS topic for the notification.
- ConnectionNotificationArn *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyVpcEndpointConnectionNotificationOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- ReturnValue *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyVpcEndpointConnectionNotificationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpcEndpointConnectionNotification{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVpcEndpointConnectionNotification"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyVpcEndpointConnectionNotificationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVpcEndpointConnectionNotification(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyVpcEndpointConnectionNotification(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyVpcEndpointConnectionNotification",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServiceConfiguration.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServiceConfiguration.go
deleted file mode 100644
index f47c1d0db..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServiceConfiguration.go
+++ /dev/null
@@ -1,208 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the attributes of the specified VPC endpoint service configuration.
-//
-// If you set or modify the private DNS name, you must prove that you own the
-// private DNS domain name.
-func (c *Client) ModifyVpcEndpointServiceConfiguration(ctx context.Context, params *ModifyVpcEndpointServiceConfigurationInput, optFns ...func(*Options)) (*ModifyVpcEndpointServiceConfigurationOutput, error) {
- if params == nil {
- params = &ModifyVpcEndpointServiceConfigurationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyVpcEndpointServiceConfiguration", params, optFns, c.addOperationModifyVpcEndpointServiceConfigurationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyVpcEndpointServiceConfigurationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyVpcEndpointServiceConfigurationInput struct {
-
- // The ID of the service.
- //
- // This member is required.
- ServiceId *string
-
- // Indicates whether requests to create an endpoint to the service must be
- // accepted.
- AcceptanceRequired *bool
-
- // The Amazon Resource Names (ARNs) of Gateway Load Balancers to add to the
- // service configuration.
- AddGatewayLoadBalancerArns []string
-
- // The Amazon Resource Names (ARNs) of Network Load Balancers to add to the
- // service configuration.
- AddNetworkLoadBalancerArns []string
-
- // The IP address types to add to the service configuration.
- AddSupportedIpAddressTypes []string
-
- // The supported Regions to add to the service configuration.
- AddSupportedRegions []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // (Interface endpoint configuration) The private DNS name to assign to the
- // endpoint service.
- PrivateDnsName *string
-
- // The Amazon Resource Names (ARNs) of Gateway Load Balancers to remove from the
- // service configuration.
- RemoveGatewayLoadBalancerArns []string
-
- // The Amazon Resource Names (ARNs) of Network Load Balancers to remove from the
- // service configuration.
- RemoveNetworkLoadBalancerArns []string
-
- // (Interface endpoint configuration) Removes the private DNS name of the endpoint
- // service.
- RemovePrivateDnsName *bool
-
- // The IP address types to remove from the service configuration.
- RemoveSupportedIpAddressTypes []string
-
- // The supported Regions to remove from the service configuration.
- RemoveSupportedRegions []string
-
- noSmithyDocumentSerde
-}
-
-type ModifyVpcEndpointServiceConfigurationOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyVpcEndpointServiceConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpcEndpointServiceConfiguration{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVpcEndpointServiceConfiguration"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyVpcEndpointServiceConfigurationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVpcEndpointServiceConfiguration(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyVpcEndpointServiceConfiguration(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyVpcEndpointServiceConfiguration",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServicePayerResponsibility.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServicePayerResponsibility.go
deleted file mode 100644
index 0623bbe71..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServicePayerResponsibility.go
+++ /dev/null
@@ -1,173 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the payer responsibility for your VPC endpoint service.
-func (c *Client) ModifyVpcEndpointServicePayerResponsibility(ctx context.Context, params *ModifyVpcEndpointServicePayerResponsibilityInput, optFns ...func(*Options)) (*ModifyVpcEndpointServicePayerResponsibilityOutput, error) {
- if params == nil {
- params = &ModifyVpcEndpointServicePayerResponsibilityInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyVpcEndpointServicePayerResponsibility", params, optFns, c.addOperationModifyVpcEndpointServicePayerResponsibilityMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyVpcEndpointServicePayerResponsibilityOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyVpcEndpointServicePayerResponsibilityInput struct {
-
- // The entity that is responsible for the endpoint costs. The default is the
- // endpoint owner. If you set the payer responsibility to the service owner, you
- // cannot set it back to the endpoint owner.
- //
- // This member is required.
- PayerResponsibility types.PayerResponsibility
-
- // The ID of the service.
- //
- // This member is required.
- ServiceId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyVpcEndpointServicePayerResponsibilityOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- ReturnValue *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyVpcEndpointServicePayerResponsibilityMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpcEndpointServicePayerResponsibility{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVpcEndpointServicePayerResponsibility"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyVpcEndpointServicePayerResponsibilityValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVpcEndpointServicePayerResponsibility(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyVpcEndpointServicePayerResponsibility(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyVpcEndpointServicePayerResponsibility",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServicePermissions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServicePermissions.go
deleted file mode 100644
index 356aecfe9..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServicePermissions.go
+++ /dev/null
@@ -1,186 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the permissions for your VPC endpoint service. You can add or remove
-// permissions for service consumers (Amazon Web Services accounts, users, and IAM
-// roles) to connect to your endpoint service. Principal ARNs with path components
-// aren't supported.
-//
-// If you grant permissions to all principals, the service is public. Any users
-// who know the name of a public service can send a request to attach an endpoint.
-// If the service does not require manual approval, attachments are automatically
-// approved.
-func (c *Client) ModifyVpcEndpointServicePermissions(ctx context.Context, params *ModifyVpcEndpointServicePermissionsInput, optFns ...func(*Options)) (*ModifyVpcEndpointServicePermissionsOutput, error) {
- if params == nil {
- params = &ModifyVpcEndpointServicePermissionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyVpcEndpointServicePermissions", params, optFns, c.addOperationModifyVpcEndpointServicePermissionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyVpcEndpointServicePermissionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyVpcEndpointServicePermissionsInput struct {
-
- // The ID of the service.
- //
- // This member is required.
- ServiceId *string
-
- // The Amazon Resource Names (ARN) of the principals. Permissions are granted to
- // the principals in this list. To grant permissions to all principals, specify an
- // asterisk (*).
- AddAllowedPrincipals []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The Amazon Resource Names (ARN) of the principals. Permissions are revoked for
- // principals in this list.
- RemoveAllowedPrincipals []string
-
- noSmithyDocumentSerde
-}
-
-type ModifyVpcEndpointServicePermissionsOutput struct {
-
- // Information about the added principals.
- AddedPrincipals []types.AddedPrincipal
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- ReturnValue *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyVpcEndpointServicePermissionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpcEndpointServicePermissions{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVpcEndpointServicePermissions{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVpcEndpointServicePermissions"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyVpcEndpointServicePermissionsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVpcEndpointServicePermissions(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyVpcEndpointServicePermissions(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyVpcEndpointServicePermissions",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go
deleted file mode 100644
index e90c06c55..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go
+++ /dev/null
@@ -1,188 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the VPC peering connection options on one side of a VPC peering
-// connection.
-//
-// If the peered VPCs are in the same Amazon Web Services account, you can enable
-// DNS resolution for queries from the local VPC. This ensures that queries from
-// the local VPC resolve to private IP addresses in the peer VPC. This option is
-// not available if the peered VPCs are in different Amazon Web Services accounts
-// or different Regions. For peered VPCs in different Amazon Web Services accounts,
-// each Amazon Web Services account owner must initiate a separate request to
-// modify the peering connection options. For inter-region peering connections, you
-// must use the Region for the requester VPC to modify the requester VPC peering
-// options and the Region for the accepter VPC to modify the accepter VPC peering
-// options. To verify which VPCs are the accepter and the requester for a VPC
-// peering connection, use the DescribeVpcPeeringConnectionscommand.
-func (c *Client) ModifyVpcPeeringConnectionOptions(ctx context.Context, params *ModifyVpcPeeringConnectionOptionsInput, optFns ...func(*Options)) (*ModifyVpcPeeringConnectionOptionsOutput, error) {
- if params == nil {
- params = &ModifyVpcPeeringConnectionOptionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyVpcPeeringConnectionOptions", params, optFns, c.addOperationModifyVpcPeeringConnectionOptionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyVpcPeeringConnectionOptionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyVpcPeeringConnectionOptionsInput struct {
-
- // The ID of the VPC peering connection.
- //
- // This member is required.
- VpcPeeringConnectionId *string
-
- // The VPC peering connection options for the accepter VPC.
- AccepterPeeringConnectionOptions *types.PeeringConnectionOptionsRequest
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The VPC peering connection options for the requester VPC.
- RequesterPeeringConnectionOptions *types.PeeringConnectionOptionsRequest
-
- noSmithyDocumentSerde
-}
-
-type ModifyVpcPeeringConnectionOptionsOutput struct {
-
- // Information about the VPC peering connection options for the accepter VPC.
- AccepterPeeringConnectionOptions *types.PeeringConnectionOptions
-
- // Information about the VPC peering connection options for the requester VPC.
- RequesterPeeringConnectionOptions *types.PeeringConnectionOptions
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyVpcPeeringConnectionOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpcPeeringConnectionOptions{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVpcPeeringConnectionOptions"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyVpcPeeringConnectionOptionsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVpcPeeringConnectionOptions(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyVpcPeeringConnectionOptions(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyVpcPeeringConnectionOptions",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcTenancy.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcTenancy.go
deleted file mode 100644
index 9ff055442..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcTenancy.go
+++ /dev/null
@@ -1,181 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the instance tenancy attribute of the specified VPC. You can change
-// the instance tenancy attribute of a VPC to default only. You cannot change the
-// instance tenancy attribute to dedicated .
-//
-// After you modify the tenancy of the VPC, any new instances that you launch into
-// the VPC have a tenancy of default , unless you specify otherwise during launch.
-// The tenancy of any existing instances in the VPC is not affected.
-//
-// For more information, see [Dedicated Instances] in the Amazon EC2 User Guide.
-//
-// [Dedicated Instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-instance.html
-func (c *Client) ModifyVpcTenancy(ctx context.Context, params *ModifyVpcTenancyInput, optFns ...func(*Options)) (*ModifyVpcTenancyOutput, error) {
- if params == nil {
- params = &ModifyVpcTenancyInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyVpcTenancy", params, optFns, c.addOperationModifyVpcTenancyMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyVpcTenancyOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyVpcTenancyInput struct {
-
- // The instance tenancy attribute for the VPC.
- //
- // This member is required.
- InstanceTenancy types.VpcTenancy
-
- // The ID of the VPC.
- //
- // This member is required.
- VpcId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyVpcTenancyOutput struct {
-
- // Returns true if the request succeeds; otherwise, returns an error.
- ReturnValue *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyVpcTenancyMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpcTenancy{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVpcTenancy{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVpcTenancy"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyVpcTenancyValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVpcTenancy(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyVpcTenancy(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyVpcTenancy",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnConnection.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnConnection.go
deleted file mode 100644
index eb47726b8..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnConnection.go
+++ /dev/null
@@ -1,217 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the customer gateway or the target gateway of an Amazon Web Services
-// Site-to-Site VPN connection. To modify the target gateway, the following
-// migration options are available:
-//
-// - An existing virtual private gateway to a new virtual private gateway
-//
-// - An existing virtual private gateway to a transit gateway
-//
-// - An existing transit gateway to a new transit gateway
-//
-// - An existing transit gateway to a virtual private gateway
-//
-// Before you perform the migration to the new gateway, you must configure the new
-// gateway. Use CreateVpnGatewayto create a virtual private gateway, or CreateTransitGateway to create a transit
-// gateway.
-//
-// This step is required when you migrate from a virtual private gateway with
-// static routes to a transit gateway.
-//
-// You must delete the static routes before you migrate to the new gateway.
-//
-// Keep a copy of the static route before you delete it. You will need to add back
-// these routes to the transit gateway after the VPN connection migration is
-// complete.
-//
-// After you migrate to the new gateway, you might need to modify your VPC route
-// table. Use CreateRouteand DeleteRoute to make the changes described in [Update VPC route tables] in the Amazon Web Services
-// Site-to-Site VPN User Guide.
-//
-// When the new gateway is a transit gateway, modify the transit gateway route
-// table to allow traffic between the VPC and the Amazon Web Services Site-to-Site
-// VPN connection. Use CreateTransitGatewayRouteto add the routes.
-//
-// If you deleted VPN static routes, you must add the static routes to the transit
-// gateway route table.
-//
-// After you perform this operation, the VPN endpoint's IP addresses on the Amazon
-// Web Services side and the tunnel options remain intact. Your Amazon Web Services
-// Site-to-Site VPN connection will be temporarily unavailable for a brief period
-// while we provision the new endpoints.
-//
-// [Update VPC route tables]: https://docs.aws.amazon.com/vpn/latest/s2svpn/modify-vpn-target.html#step-update-routing
-func (c *Client) ModifyVpnConnection(ctx context.Context, params *ModifyVpnConnectionInput, optFns ...func(*Options)) (*ModifyVpnConnectionOutput, error) {
- if params == nil {
- params = &ModifyVpnConnectionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyVpnConnection", params, optFns, c.addOperationModifyVpnConnectionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyVpnConnectionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyVpnConnectionInput struct {
-
- // The ID of the VPN connection.
- //
- // This member is required.
- VpnConnectionId *string
-
- // The ID of the customer gateway at your end of the VPN connection.
- CustomerGatewayId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the transit gateway.
- TransitGatewayId *string
-
- // The ID of the virtual private gateway at the Amazon Web Services side of the
- // VPN connection.
- VpnGatewayId *string
-
- noSmithyDocumentSerde
-}
-
-type ModifyVpnConnectionOutput struct {
-
- // Information about the VPN connection.
- VpnConnection *types.VpnConnection
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyVpnConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpnConnection{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVpnConnection{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVpnConnection"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyVpnConnectionValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVpnConnection(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyVpnConnection(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyVpnConnection",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnConnectionOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnConnectionOptions.go
deleted file mode 100644
index 492a64585..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnConnectionOptions.go
+++ /dev/null
@@ -1,191 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the connection options for your Site-to-Site VPN connection.
-//
-// When you modify the VPN connection options, the VPN endpoint IP addresses on
-// the Amazon Web Services side do not change, and the tunnel options do not
-// change. Your VPN connection will be temporarily unavailable for a brief period
-// while the VPN connection is updated.
-func (c *Client) ModifyVpnConnectionOptions(ctx context.Context, params *ModifyVpnConnectionOptionsInput, optFns ...func(*Options)) (*ModifyVpnConnectionOptionsOutput, error) {
- if params == nil {
- params = &ModifyVpnConnectionOptionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyVpnConnectionOptions", params, optFns, c.addOperationModifyVpnConnectionOptionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyVpnConnectionOptionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyVpnConnectionOptionsInput struct {
-
- // The ID of the Site-to-Site VPN connection.
- //
- // This member is required.
- VpnConnectionId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection.
- //
- // Default: 0.0.0.0/0
- LocalIpv4NetworkCidr *string
-
- // The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection.
- //
- // Default: ::/0
- LocalIpv6NetworkCidr *string
-
- // The IPv4 CIDR on the Amazon Web Services side of the VPN connection.
- //
- // Default: 0.0.0.0/0
- RemoteIpv4NetworkCidr *string
-
- // The IPv6 CIDR on the Amazon Web Services side of the VPN connection.
- //
- // Default: ::/0
- RemoteIpv6NetworkCidr *string
-
- noSmithyDocumentSerde
-}
-
-type ModifyVpnConnectionOptionsOutput struct {
-
- // Information about the VPN connection.
- VpnConnection *types.VpnConnection
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyVpnConnectionOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpnConnectionOptions{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVpnConnectionOptions{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVpnConnectionOptions"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyVpnConnectionOptionsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVpnConnectionOptions(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyVpnConnectionOptions(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyVpnConnectionOptions",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnTunnelCertificate.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnTunnelCertificate.go
deleted file mode 100644
index 41fd1b700..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnTunnelCertificate.go
+++ /dev/null
@@ -1,171 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the VPN tunnel endpoint certificate.
-func (c *Client) ModifyVpnTunnelCertificate(ctx context.Context, params *ModifyVpnTunnelCertificateInput, optFns ...func(*Options)) (*ModifyVpnTunnelCertificateOutput, error) {
- if params == nil {
- params = &ModifyVpnTunnelCertificateInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyVpnTunnelCertificate", params, optFns, c.addOperationModifyVpnTunnelCertificateMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyVpnTunnelCertificateOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyVpnTunnelCertificateInput struct {
-
- // The ID of the Amazon Web Services Site-to-Site VPN connection.
- //
- // This member is required.
- VpnConnectionId *string
-
- // The external IP address of the VPN tunnel.
- //
- // This member is required.
- VpnTunnelOutsideIpAddress *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyVpnTunnelCertificateOutput struct {
-
- // Information about the VPN connection.
- VpnConnection *types.VpnConnection
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyVpnTunnelCertificateMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpnTunnelCertificate{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVpnTunnelCertificate{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVpnTunnelCertificate"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyVpnTunnelCertificateValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVpnTunnelCertificate(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyVpnTunnelCertificate(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyVpnTunnelCertificate",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnTunnelOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnTunnelOptions.go
deleted file mode 100644
index 16ebe0c17..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnTunnelOptions.go
+++ /dev/null
@@ -1,192 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Modifies the options for a VPN tunnel in an Amazon Web Services Site-to-Site
-// VPN connection. You can modify multiple options for a tunnel in a single
-// request, but you can only modify one tunnel at a time. For more information, see
-// [Site-to-Site VPN tunnel options for your Site-to-Site VPN connection]in the Amazon Web Services Site-to-Site VPN User Guide.
-//
-// [Site-to-Site VPN tunnel options for your Site-to-Site VPN connection]: https://docs.aws.amazon.com/vpn/latest/s2svpn/VPNTunnels.html
-func (c *Client) ModifyVpnTunnelOptions(ctx context.Context, params *ModifyVpnTunnelOptionsInput, optFns ...func(*Options)) (*ModifyVpnTunnelOptionsOutput, error) {
- if params == nil {
- params = &ModifyVpnTunnelOptionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ModifyVpnTunnelOptions", params, optFns, c.addOperationModifyVpnTunnelOptionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ModifyVpnTunnelOptionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ModifyVpnTunnelOptionsInput struct {
-
- // The tunnel options to modify.
- //
- // This member is required.
- TunnelOptions *types.ModifyVpnTunnelOptionsSpecification
-
- // The ID of the Amazon Web Services Site-to-Site VPN connection.
- //
- // This member is required.
- VpnConnectionId *string
-
- // The external IP address of the VPN tunnel.
- //
- // This member is required.
- VpnTunnelOutsideIpAddress *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Specifies the storage mode for the pre-shared key (PSK). Valid values are
- // Standard (stored in Site-to-Site VPN service) or SecretsManager (stored in
- // Amazon Web Services Secrets Manager).
- PreSharedKeyStorage *string
-
- // Choose whether or not to trigger immediate tunnel replacement. This is only
- // applicable when turning on or off EnableTunnelLifecycleControl .
- //
- // Valid values: True | False
- SkipTunnelReplacement *bool
-
- noSmithyDocumentSerde
-}
-
-type ModifyVpnTunnelOptionsOutput struct {
-
- // Information about the VPN connection.
- VpnConnection *types.VpnConnection
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationModifyVpnTunnelOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpnTunnelOptions{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVpnTunnelOptions{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVpnTunnelOptions"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpModifyVpnTunnelOptionsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVpnTunnelOptions(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opModifyVpnTunnelOptions(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ModifyVpnTunnelOptions",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MonitorInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MonitorInstances.go
deleted file mode 100644
index 9c1fc3efc..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MonitorInstances.go
+++ /dev/null
@@ -1,172 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Enables detailed monitoring for a running instance. Otherwise, basic monitoring
-// is enabled. For more information, see [Monitor your instances using CloudWatch]in the Amazon EC2 User Guide.
-//
-// To disable detailed monitoring, see [UnmonitorInstances].
-//
-// [Monitor your instances using CloudWatch]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html
-// [UnmonitorInstances]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_UnmonitorInstances.html
-func (c *Client) MonitorInstances(ctx context.Context, params *MonitorInstancesInput, optFns ...func(*Options)) (*MonitorInstancesOutput, error) {
- if params == nil {
- params = &MonitorInstancesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "MonitorInstances", params, optFns, c.addOperationMonitorInstancesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*MonitorInstancesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type MonitorInstancesInput struct {
-
- // The IDs of the instances.
- //
- // This member is required.
- InstanceIds []string
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type MonitorInstancesOutput struct {
-
- // The monitoring information.
- InstanceMonitorings []types.InstanceMonitoring
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationMonitorInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpMonitorInstances{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpMonitorInstances{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "MonitorInstances"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpMonitorInstancesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opMonitorInstances(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opMonitorInstances(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "MonitorInstances",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MoveAddressToVpc.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MoveAddressToVpc.go
deleted file mode 100644
index d48870507..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MoveAddressToVpc.go
+++ /dev/null
@@ -1,177 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// This action is deprecated.
-//
-// Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC
-// platform. The Elastic IP address must be allocated to your account for more than
-// 24 hours, and it must not be associated with an instance. After the Elastic IP
-// address is moved, it is no longer available for use in the EC2-Classic platform,
-// unless you move it back using the RestoreAddressToClassicrequest. You cannot move an Elastic IP
-// address that was originally allocated for use in the EC2-VPC platform to the
-// EC2-Classic platform.
-func (c *Client) MoveAddressToVpc(ctx context.Context, params *MoveAddressToVpcInput, optFns ...func(*Options)) (*MoveAddressToVpcOutput, error) {
- if params == nil {
- params = &MoveAddressToVpcInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "MoveAddressToVpc", params, optFns, c.addOperationMoveAddressToVpcMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*MoveAddressToVpcOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type MoveAddressToVpcInput struct {
-
- // The Elastic IP address.
- //
- // This member is required.
- PublicIp *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type MoveAddressToVpcOutput struct {
-
- // The allocation ID for the Elastic IP address.
- AllocationId *string
-
- // The status of the move of the IP address.
- Status types.Status
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationMoveAddressToVpcMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpMoveAddressToVpc{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpMoveAddressToVpc{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "MoveAddressToVpc"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpMoveAddressToVpcValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opMoveAddressToVpc(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opMoveAddressToVpc(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "MoveAddressToVpc",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MoveByoipCidrToIpam.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MoveByoipCidrToIpam.go
deleted file mode 100644
index 9820d6159..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MoveByoipCidrToIpam.go
+++ /dev/null
@@ -1,183 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Move a BYOIPv4 CIDR to IPAM from a public IPv4 pool.
-//
-// If you already have a BYOIPv4 CIDR with Amazon Web Services, you can move the
-// CIDR to IPAM from a public IPv4 pool. You cannot move an IPv6 CIDR to IPAM. If
-// you are bringing a new IP address to Amazon Web Services for the first time,
-// complete the steps in [Tutorial: BYOIP address CIDRs to IPAM].
-//
-// [Tutorial: BYOIP address CIDRs to IPAM]: https://docs.aws.amazon.com/vpc/latest/ipam/tutorials-byoip-ipam.html
-func (c *Client) MoveByoipCidrToIpam(ctx context.Context, params *MoveByoipCidrToIpamInput, optFns ...func(*Options)) (*MoveByoipCidrToIpamOutput, error) {
- if params == nil {
- params = &MoveByoipCidrToIpamInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "MoveByoipCidrToIpam", params, optFns, c.addOperationMoveByoipCidrToIpamMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*MoveByoipCidrToIpamOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type MoveByoipCidrToIpamInput struct {
-
- // The BYOIP CIDR.
- //
- // This member is required.
- Cidr *string
-
- // The IPAM pool ID.
- //
- // This member is required.
- IpamPoolId *string
-
- // The Amazon Web Services account ID of the owner of the IPAM pool.
- //
- // This member is required.
- IpamPoolOwner *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type MoveByoipCidrToIpamOutput struct {
-
- // The BYOIP CIDR.
- ByoipCidr *types.ByoipCidr
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationMoveByoipCidrToIpamMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpMoveByoipCidrToIpam{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpMoveByoipCidrToIpam{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "MoveByoipCidrToIpam"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpMoveByoipCidrToIpamValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opMoveByoipCidrToIpam(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opMoveByoipCidrToIpam(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "MoveByoipCidrToIpam",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MoveCapacityReservationInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MoveCapacityReservationInstances.go
deleted file mode 100644
index 831794af7..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MoveCapacityReservationInstances.go
+++ /dev/null
@@ -1,241 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Move available capacity from a source Capacity Reservation to a destination
-// Capacity Reservation. The source Capacity Reservation and the destination
-// Capacity Reservation must be active , owned by your Amazon Web Services account,
-// and share the following:
-//
-// - Instance type
-//
-// - Platform
-//
-// - Availability Zone
-//
-// - Tenancy
-//
-// - Placement group
-//
-// - Capacity Reservation end time - At specific time or Manually .
-func (c *Client) MoveCapacityReservationInstances(ctx context.Context, params *MoveCapacityReservationInstancesInput, optFns ...func(*Options)) (*MoveCapacityReservationInstancesOutput, error) {
- if params == nil {
- params = &MoveCapacityReservationInstancesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "MoveCapacityReservationInstances", params, optFns, c.addOperationMoveCapacityReservationInstancesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*MoveCapacityReservationInstancesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type MoveCapacityReservationInstancesInput struct {
-
- // The ID of the Capacity Reservation that you want to move capacity into.
- //
- // This member is required.
- DestinationCapacityReservationId *string
-
- // The number of instances that you want to move from the source Capacity
- // Reservation.
- //
- // This member is required.
- InstanceCount *int32
-
- // The ID of the Capacity Reservation from which you want to move capacity.
- //
- // This member is required.
- SourceCapacityReservationId *string
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensure Idempotency].
- //
- // [Ensure Idempotency]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type MoveCapacityReservationInstancesOutput struct {
-
- // Information about the destination Capacity Reservation.
- DestinationCapacityReservation *types.CapacityReservation
-
- // The number of instances that were moved from the source Capacity Reservation
- // to the destination Capacity Reservation.
- InstanceCount *int32
-
- // Information about the source Capacity Reservation.
- SourceCapacityReservation *types.CapacityReservation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationMoveCapacityReservationInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpMoveCapacityReservationInstances{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpMoveCapacityReservationInstances{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "MoveCapacityReservationInstances"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opMoveCapacityReservationInstancesMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpMoveCapacityReservationInstancesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opMoveCapacityReservationInstances(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpMoveCapacityReservationInstances struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpMoveCapacityReservationInstances) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpMoveCapacityReservationInstances) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*MoveCapacityReservationInstancesInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *MoveCapacityReservationInstancesInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opMoveCapacityReservationInstancesMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpMoveCapacityReservationInstances{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opMoveCapacityReservationInstances(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "MoveCapacityReservationInstances",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionByoipCidr.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionByoipCidr.go
deleted file mode 100644
index ebb73589d..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionByoipCidr.go
+++ /dev/null
@@ -1,227 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Provisions an IPv4 or IPv6 address range for use with your Amazon Web Services
-// resources through bring your own IP addresses (BYOIP) and creates a
-// corresponding address pool. After the address range is provisioned, it is ready
-// to be advertised using AdvertiseByoipCidr.
-//
-// Amazon Web Services verifies that you own the address range and are authorized
-// to advertise it. You must ensure that the address range is registered to you and
-// that you created an RPKI ROA to authorize Amazon ASNs 16509 and 14618 to
-// advertise the address range. For more information, see [Bring your own IP addresses (BYOIP)]in the Amazon EC2 User
-// Guide.
-//
-// Provisioning an address range is an asynchronous operation, so the call returns
-// immediately, but the address range is not ready to use until its status changes
-// from pending-provision to provisioned . To monitor the status of an address
-// range, use DescribeByoipCidrs. To allocate an Elastic IP address from your IPv4 address pool, use AllocateAddress
-// with either the specific address from the address pool or the ID of the address
-// pool.
-//
-// [Bring your own IP addresses (BYOIP)]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html
-func (c *Client) ProvisionByoipCidr(ctx context.Context, params *ProvisionByoipCidrInput, optFns ...func(*Options)) (*ProvisionByoipCidrOutput, error) {
- if params == nil {
- params = &ProvisionByoipCidrInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ProvisionByoipCidr", params, optFns, c.addOperationProvisionByoipCidrMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ProvisionByoipCidrOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ProvisionByoipCidrInput struct {
-
- // The public IPv4 or IPv6 address range, in CIDR notation. The most specific IPv4
- // prefix that you can specify is /24. The most specific IPv6 address range that
- // you can bring is /48 for CIDRs that are publicly advertisable and /56 for CIDRs
- // that are not publicly advertisable. The address range cannot overlap with
- // another address range that you've brought to this or another Region.
- //
- // This member is required.
- Cidr *string
-
- // A signed document that proves that you are authorized to bring the specified IP
- // address range to Amazon using BYOIP.
- CidrAuthorizationContext *types.CidrAuthorizationContext
-
- // A description for the address range and the address pool.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Reserved.
- MultiRegion *bool
-
- // If you have [Local Zones] enabled, you can choose a network border group for Local Zones
- // when you provision and advertise a BYOIPv4 CIDR. Choose the network border group
- // carefully as the EIP and the Amazon Web Services resource it is associated with
- // must reside in the same network border group.
- //
- // You can provision BYOIP address ranges to and advertise them in the following
- // Local Zone network border groups:
- //
- // - us-east-1-dfw-2
- //
- // - us-west-2-lax-1
- //
- // - us-west-2-phx-2
- //
- // You cannot provision or advertise BYOIPv6 address ranges in Local Zones at this
- // time.
- //
- // [Local Zones]: https://docs.aws.amazon.com/local-zones/latest/ug/how-local-zones-work.html
- NetworkBorderGroup *string
-
- // The tags to apply to the address pool.
- PoolTagSpecifications []types.TagSpecification
-
- // (IPv6 only) Indicate whether the address range will be publicly advertised to
- // the internet.
- //
- // Default: true
- PubliclyAdvertisable *bool
-
- noSmithyDocumentSerde
-}
-
-type ProvisionByoipCidrOutput struct {
-
- // Information about the address range.
- ByoipCidr *types.ByoipCidr
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationProvisionByoipCidrMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpProvisionByoipCidr{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpProvisionByoipCidr{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ProvisionByoipCidr"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpProvisionByoipCidrValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opProvisionByoipCidr(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opProvisionByoipCidr(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ProvisionByoipCidr",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionIpamByoasn.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionIpamByoasn.go
deleted file mode 100644
index e07342273..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionIpamByoasn.go
+++ /dev/null
@@ -1,181 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Provisions your Autonomous System Number (ASN) for use in your Amazon Web
-// Services account. This action requires authorization context for Amazon to bring
-// the ASN to an Amazon Web Services account. For more information, see [Tutorial: Bring your ASN to IPAM]in the
-// Amazon VPC IPAM guide.
-//
-// [Tutorial: Bring your ASN to IPAM]: https://docs.aws.amazon.com/vpc/latest/ipam/tutorials-byoasn.html
-func (c *Client) ProvisionIpamByoasn(ctx context.Context, params *ProvisionIpamByoasnInput, optFns ...func(*Options)) (*ProvisionIpamByoasnOutput, error) {
- if params == nil {
- params = &ProvisionIpamByoasnInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ProvisionIpamByoasn", params, optFns, c.addOperationProvisionIpamByoasnMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ProvisionIpamByoasnOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ProvisionIpamByoasnInput struct {
-
- // A public 2-byte or 4-byte ASN.
- //
- // This member is required.
- Asn *string
-
- // An ASN authorization context.
- //
- // This member is required.
- AsnAuthorizationContext *types.AsnAuthorizationContext
-
- // An IPAM ID.
- //
- // This member is required.
- IpamId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ProvisionIpamByoasnOutput struct {
-
- // An ASN and BYOIP CIDR association.
- Byoasn *types.Byoasn
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationProvisionIpamByoasnMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpProvisionIpamByoasn{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpProvisionIpamByoasn{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ProvisionIpamByoasn"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpProvisionIpamByoasnValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opProvisionIpamByoasn(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opProvisionIpamByoasn(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ProvisionIpamByoasn",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionIpamPoolCidr.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionIpamPoolCidr.go
deleted file mode 100644
index 85e722c61..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionIpamPoolCidr.go
+++ /dev/null
@@ -1,239 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Provision a CIDR to an IPAM pool. You can use this action to provision new
-// CIDRs to a top-level pool or to transfer a CIDR from a top-level pool to a pool
-// within it.
-//
-// For more information, see [Provision CIDRs to pools] in the Amazon VPC IPAM User Guide.
-//
-// [Provision CIDRs to pools]: https://docs.aws.amazon.com/vpc/latest/ipam/prov-cidr-ipam.html
-func (c *Client) ProvisionIpamPoolCidr(ctx context.Context, params *ProvisionIpamPoolCidrInput, optFns ...func(*Options)) (*ProvisionIpamPoolCidrOutput, error) {
- if params == nil {
- params = &ProvisionIpamPoolCidrInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ProvisionIpamPoolCidr", params, optFns, c.addOperationProvisionIpamPoolCidrMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ProvisionIpamPoolCidrOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ProvisionIpamPoolCidrInput struct {
-
- // The ID of the IPAM pool to which you want to assign a CIDR.
- //
- // This member is required.
- IpamPoolId *string
-
- // The CIDR you want to assign to the IPAM pool. Either "NetmaskLength" or "Cidr"
- // is required. This value will be null if you specify "NetmaskLength" and will be
- // filled in during the provisioning process.
- Cidr *string
-
- // A signed document that proves that you are authorized to bring a specified IP
- // address range to Amazon using BYOIP. This option only applies to IPv4 and IPv6
- // pools in the public scope.
- CidrAuthorizationContext *types.IpamCidrAuthorizationContext
-
- // A unique, case-sensitive identifier that you provide to ensure the idempotency
- // of the request. For more information, see [Ensuring idempotency].
- //
- // [Ensuring idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- ClientToken *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Verification token ID. This option only applies to IPv4 and IPv6 pools in the
- // public scope.
- IpamExternalResourceVerificationTokenId *string
-
- // The netmask length of the CIDR you'd like to provision to a pool. Can be used
- // for provisioning Amazon-provided IPv6 CIDRs to top-level pools and for
- // provisioning CIDRs to pools with source pools. Cannot be used to provision BYOIP
- // CIDRs to top-level pools. Either "NetmaskLength" or "Cidr" is required.
- NetmaskLength *int32
-
- // The method for verifying control of a public IP address range. Defaults to
- // remarks-x509 if not specified. This option only applies to IPv4 and IPv6 pools
- // in the public scope.
- VerificationMethod types.VerificationMethod
-
- noSmithyDocumentSerde
-}
-
-type ProvisionIpamPoolCidrOutput struct {
-
- // Information about the provisioned CIDR.
- IpamPoolCidr *types.IpamPoolCidr
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationProvisionIpamPoolCidrMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpProvisionIpamPoolCidr{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpProvisionIpamPoolCidr{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ProvisionIpamPoolCidr"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opProvisionIpamPoolCidrMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpProvisionIpamPoolCidrValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opProvisionIpamPoolCidr(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpProvisionIpamPoolCidr struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpProvisionIpamPoolCidr) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpProvisionIpamPoolCidr) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*ProvisionIpamPoolCidrInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *ProvisionIpamPoolCidrInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opProvisionIpamPoolCidrMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpProvisionIpamPoolCidr{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opProvisionIpamPoolCidr(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ProvisionIpamPoolCidr",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionPublicIpv4PoolCidr.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionPublicIpv4PoolCidr.go
deleted file mode 100644
index 03dac86a6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionPublicIpv4PoolCidr.go
+++ /dev/null
@@ -1,192 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Provision a CIDR to a public IPv4 pool.
-//
-// For more information about IPAM, see [What is IPAM?] in the Amazon VPC IPAM User Guide.
-//
-// [What is IPAM?]: https://docs.aws.amazon.com/vpc/latest/ipam/what-is-it-ipam.html
-func (c *Client) ProvisionPublicIpv4PoolCidr(ctx context.Context, params *ProvisionPublicIpv4PoolCidrInput, optFns ...func(*Options)) (*ProvisionPublicIpv4PoolCidrOutput, error) {
- if params == nil {
- params = &ProvisionPublicIpv4PoolCidrInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ProvisionPublicIpv4PoolCidr", params, optFns, c.addOperationProvisionPublicIpv4PoolCidrMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ProvisionPublicIpv4PoolCidrOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ProvisionPublicIpv4PoolCidrInput struct {
-
- // The ID of the IPAM pool you would like to use to allocate this CIDR.
- //
- // This member is required.
- IpamPoolId *string
-
- // The netmask length of the CIDR you would like to allocate to the public IPv4
- // pool. The least specific netmask length you can define is 24.
- //
- // This member is required.
- NetmaskLength *int32
-
- // The ID of the public IPv4 pool you would like to use for this CIDR.
- //
- // This member is required.
- PoolId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The Availability Zone (AZ) or Local Zone (LZ) network border group that the
- // resource that the IP address is assigned to is in. Defaults to an AZ network
- // border group. For more information on available Local Zones, see [Local Zone availability]in the Amazon
- // EC2 User Guide.
- //
- // [Local Zone availability]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#byoip-zone-avail
- NetworkBorderGroup *string
-
- noSmithyDocumentSerde
-}
-
-type ProvisionPublicIpv4PoolCidrOutput struct {
-
- // Information about the address range of the public IPv4 pool.
- PoolAddressRange *types.PublicIpv4PoolRange
-
- // The ID of the pool that you want to provision the CIDR to.
- PoolId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationProvisionPublicIpv4PoolCidrMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpProvisionPublicIpv4PoolCidr{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpProvisionPublicIpv4PoolCidr{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ProvisionPublicIpv4PoolCidr"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpProvisionPublicIpv4PoolCidrValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opProvisionPublicIpv4PoolCidr(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opProvisionPublicIpv4PoolCidr(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ProvisionPublicIpv4PoolCidr",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseCapacityBlock.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseCapacityBlock.go
deleted file mode 100644
index 2314cb751..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseCapacityBlock.go
+++ /dev/null
@@ -1,179 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Purchase the Capacity Block for use with your account. With Capacity Blocks you
-// ensure GPU capacity is available for machine learning (ML) workloads. You must
-// specify the ID of the Capacity Block offering you are purchasing.
-func (c *Client) PurchaseCapacityBlock(ctx context.Context, params *PurchaseCapacityBlockInput, optFns ...func(*Options)) (*PurchaseCapacityBlockOutput, error) {
- if params == nil {
- params = &PurchaseCapacityBlockInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "PurchaseCapacityBlock", params, optFns, c.addOperationPurchaseCapacityBlockMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*PurchaseCapacityBlockOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type PurchaseCapacityBlockInput struct {
-
- // The ID of the Capacity Block offering.
- //
- // This member is required.
- CapacityBlockOfferingId *string
-
- // The type of operating system for which to reserve capacity.
- //
- // This member is required.
- InstancePlatform types.CapacityReservationInstancePlatform
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags to apply to the Capacity Block during launch.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type PurchaseCapacityBlockOutput struct {
-
- // The Capacity Block.
- CapacityBlocks []types.CapacityBlock
-
- // The Capacity Reservation.
- CapacityReservation *types.CapacityReservation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationPurchaseCapacityBlockMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpPurchaseCapacityBlock{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpPurchaseCapacityBlock{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "PurchaseCapacityBlock"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpPurchaseCapacityBlockValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPurchaseCapacityBlock(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opPurchaseCapacityBlock(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "PurchaseCapacityBlock",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseCapacityBlockExtension.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseCapacityBlockExtension.go
deleted file mode 100644
index 36a59a061..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseCapacityBlockExtension.go
+++ /dev/null
@@ -1,172 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Purchase the Capacity Block extension for use with your account. You must
-// specify the ID of the Capacity Block extension offering you are purchasing.
-func (c *Client) PurchaseCapacityBlockExtension(ctx context.Context, params *PurchaseCapacityBlockExtensionInput, optFns ...func(*Options)) (*PurchaseCapacityBlockExtensionOutput, error) {
- if params == nil {
- params = &PurchaseCapacityBlockExtensionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "PurchaseCapacityBlockExtension", params, optFns, c.addOperationPurchaseCapacityBlockExtensionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*PurchaseCapacityBlockExtensionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type PurchaseCapacityBlockExtensionInput struct {
-
- // The ID of the Capacity Block extension offering to purchase.
- //
- // This member is required.
- CapacityBlockExtensionOfferingId *string
-
- // The ID of the Capacity reservation to be extended.
- //
- // This member is required.
- CapacityReservationId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type PurchaseCapacityBlockExtensionOutput struct {
-
- // The purchased Capacity Block extensions.
- CapacityBlockExtensions []types.CapacityBlockExtension
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationPurchaseCapacityBlockExtensionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpPurchaseCapacityBlockExtension{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpPurchaseCapacityBlockExtension{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "PurchaseCapacityBlockExtension"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpPurchaseCapacityBlockExtensionValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPurchaseCapacityBlockExtension(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opPurchaseCapacityBlockExtension(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "PurchaseCapacityBlockExtension",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseHostReservation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseHostReservation.go
deleted file mode 100644
index eeb6c7320..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseHostReservation.go
+++ /dev/null
@@ -1,205 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Purchase a reservation with configurations that match those of your Dedicated
-// Host. You must have active Dedicated Hosts in your account before you purchase a
-// reservation. This action results in the specified reservation being purchased
-// and charged to your account.
-func (c *Client) PurchaseHostReservation(ctx context.Context, params *PurchaseHostReservationInput, optFns ...func(*Options)) (*PurchaseHostReservationOutput, error) {
- if params == nil {
- params = &PurchaseHostReservationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "PurchaseHostReservation", params, optFns, c.addOperationPurchaseHostReservationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*PurchaseHostReservationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type PurchaseHostReservationInput struct {
-
- // The IDs of the Dedicated Hosts with which the reservation will be associated.
- //
- // This member is required.
- HostIdSet []string
-
- // The ID of the offering.
- //
- // This member is required.
- OfferingId *string
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensuring Idempotency].
- //
- // [Ensuring Idempotency]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
- ClientToken *string
-
- // The currency in which the totalUpfrontPrice , LimitPrice , and totalHourlyPrice
- // amounts are specified. At this time, the only supported currency is USD .
- CurrencyCode types.CurrencyCodeValues
-
- // The specified limit is checked against the total upfront cost of the
- // reservation (calculated as the offering's upfront cost multiplied by the host
- // count). If the total upfront cost is greater than the specified price limit, the
- // request fails. This is used to ensure that the purchase does not exceed the
- // expected upfront cost of the purchase. At this time, the only supported currency
- // is USD . For example, to indicate a limit price of USD 100, specify 100.00.
- LimitPrice *string
-
- // The tags to apply to the Dedicated Host Reservation during purchase.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type PurchaseHostReservationOutput struct {
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensuring Idempotency].
- //
- // [Ensuring Idempotency]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
- ClientToken *string
-
- // The currency in which the totalUpfrontPrice and totalHourlyPrice amounts are
- // specified. At this time, the only supported currency is USD .
- CurrencyCode types.CurrencyCodeValues
-
- // Describes the details of the purchase.
- Purchase []types.Purchase
-
- // The total hourly price of the reservation calculated per hour.
- TotalHourlyPrice *string
-
- // The total amount charged to your account when you purchase the reservation.
- TotalUpfrontPrice *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationPurchaseHostReservationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpPurchaseHostReservation{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpPurchaseHostReservation{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "PurchaseHostReservation"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpPurchaseHostReservationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPurchaseHostReservation(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opPurchaseHostReservation(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "PurchaseHostReservation",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseReservedInstancesOffering.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseReservedInstancesOffering.go
deleted file mode 100644
index 08fef06a1..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseReservedInstancesOffering.go
+++ /dev/null
@@ -1,199 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Purchases a Reserved Instance for use with your account. With Reserved
-// Instances, you pay a lower hourly rate compared to On-Demand instance pricing.
-//
-// Use DescribeReservedInstancesOfferings to get a list of Reserved Instance offerings that match your
-// specifications. After you've purchased a Reserved Instance, you can check for
-// your new Reserved Instance with DescribeReservedInstances.
-//
-// To queue a purchase for a future date and time, specify a purchase time. If you
-// do not specify a purchase time, the default is the current time.
-//
-// For more information, see [Reserved Instances] and [Sell in the Reserved Instance Marketplace] in the Amazon EC2 User Guide.
-//
-// [Reserved Instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html
-// [Sell in the Reserved Instance Marketplace]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html
-func (c *Client) PurchaseReservedInstancesOffering(ctx context.Context, params *PurchaseReservedInstancesOfferingInput, optFns ...func(*Options)) (*PurchaseReservedInstancesOfferingOutput, error) {
- if params == nil {
- params = &PurchaseReservedInstancesOfferingInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "PurchaseReservedInstancesOffering", params, optFns, c.addOperationPurchaseReservedInstancesOfferingMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*PurchaseReservedInstancesOfferingOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for PurchaseReservedInstancesOffering.
-type PurchaseReservedInstancesOfferingInput struct {
-
- // The number of Reserved Instances to purchase.
- //
- // This member is required.
- InstanceCount *int32
-
- // The ID of the Reserved Instance offering to purchase.
- //
- // This member is required.
- ReservedInstancesOfferingId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Specified for Reserved Instance Marketplace offerings to limit the total order
- // and ensure that the Reserved Instances are not purchased at unexpected prices.
- LimitPrice *types.ReservedInstanceLimitPrice
-
- // The time at which to purchase the Reserved Instance, in UTC format (for
- // example, YYYY-MM-DDTHH:MM:SSZ).
- PurchaseTime *time.Time
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of PurchaseReservedInstancesOffering.
-type PurchaseReservedInstancesOfferingOutput struct {
-
- // The IDs of the purchased Reserved Instances. If your purchase crosses into a
- // discounted pricing tier, the final Reserved Instances IDs might change. For more
- // information, see [Crossing pricing tiers]in the Amazon EC2 User Guide.
- //
- // [Crossing pricing tiers]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-reserved-instances-application.html#crossing-pricing-tiers
- ReservedInstancesId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationPurchaseReservedInstancesOfferingMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpPurchaseReservedInstancesOffering{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpPurchaseReservedInstancesOffering{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "PurchaseReservedInstancesOffering"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpPurchaseReservedInstancesOfferingValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPurchaseReservedInstancesOffering(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opPurchaseReservedInstancesOffering(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "PurchaseReservedInstancesOffering",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseScheduledInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseScheduledInstances.go
deleted file mode 100644
index 0a7a12d9d..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseScheduledInstances.go
+++ /dev/null
@@ -1,220 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// You can no longer purchase Scheduled Instances.
-//
-// Purchases the Scheduled Instances with the specified schedule.
-//
-// Scheduled Instances enable you to purchase Amazon EC2 compute capacity by the
-// hour for a one-year term. Before you can purchase a Scheduled Instance, you must
-// call DescribeScheduledInstanceAvailabilityto check for available schedules and obtain a purchase token. After you
-// purchase a Scheduled Instance, you must call RunScheduledInstancesduring each scheduled time period.
-//
-// After you purchase a Scheduled Instance, you can't cancel, modify, or resell
-// your purchase.
-func (c *Client) PurchaseScheduledInstances(ctx context.Context, params *PurchaseScheduledInstancesInput, optFns ...func(*Options)) (*PurchaseScheduledInstancesOutput, error) {
- if params == nil {
- params = &PurchaseScheduledInstancesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "PurchaseScheduledInstances", params, optFns, c.addOperationPurchaseScheduledInstancesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*PurchaseScheduledInstancesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for PurchaseScheduledInstances.
-type PurchaseScheduledInstancesInput struct {
-
- // The purchase requests.
- //
- // This member is required.
- PurchaseRequests []types.PurchaseRequest
-
- // Unique, case-sensitive identifier that ensures the idempotency of the request.
- // For more information, see [Ensuring Idempotency].
- //
- // [Ensuring Idempotency]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of PurchaseScheduledInstances.
-type PurchaseScheduledInstancesOutput struct {
-
- // Information about the Scheduled Instances.
- ScheduledInstanceSet []types.ScheduledInstance
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationPurchaseScheduledInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpPurchaseScheduledInstances{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpPurchaseScheduledInstances{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "PurchaseScheduledInstances"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opPurchaseScheduledInstancesMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpPurchaseScheduledInstancesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPurchaseScheduledInstances(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpPurchaseScheduledInstances struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpPurchaseScheduledInstances) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpPurchaseScheduledInstances) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*PurchaseScheduledInstancesInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *PurchaseScheduledInstancesInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opPurchaseScheduledInstancesMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpPurchaseScheduledInstances{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opPurchaseScheduledInstances(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "PurchaseScheduledInstances",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RebootInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RebootInstances.go
deleted file mode 100644
index 4535284b0..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RebootInstances.go
+++ /dev/null
@@ -1,171 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Requests a reboot of the specified instances. This operation is asynchronous;
-// it only queues a request to reboot the specified instances. The operation
-// succeeds if the instances are valid and belong to you. Requests to reboot
-// terminated instances are ignored.
-//
-// If an instance does not cleanly shut down within a few minutes, Amazon EC2
-// performs a hard reboot.
-//
-// For more information about troubleshooting, see [Troubleshoot an unreachable instance] in the Amazon EC2 User Guide.
-//
-// [Troubleshoot an unreachable instance]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html
-func (c *Client) RebootInstances(ctx context.Context, params *RebootInstancesInput, optFns ...func(*Options)) (*RebootInstancesOutput, error) {
- if params == nil {
- params = &RebootInstancesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "RebootInstances", params, optFns, c.addOperationRebootInstancesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*RebootInstancesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type RebootInstancesInput struct {
-
- // The instance IDs.
- //
- // This member is required.
- InstanceIds []string
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type RebootInstancesOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationRebootInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpRebootInstances{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpRebootInstances{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "RebootInstances"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpRebootInstancesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRebootInstances(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opRebootInstances(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "RebootInstances",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterImage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterImage.go
deleted file mode 100644
index 0daabd0b6..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterImage.go
+++ /dev/null
@@ -1,345 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Registers an AMI. When you're creating an instance-store backed AMI,
-// registering the AMI is the final step in the creation process. For more
-// information about creating AMIs, see [Create an AMI from a snapshot]and [Create an instance-store backed AMI] in the Amazon EC2 User Guide.
-//
-// For Amazon EBS-backed instances, CreateImage creates and registers the AMI in a single
-// request, so you don't have to register the AMI yourself. We recommend that you
-// always use CreateImageunless you have a specific reason to use RegisterImage.
-//
-// If needed, you can deregister an AMI at any time. Any modifications you make to
-// an AMI backed by an instance store volume invalidates its registration. If you
-// make changes to an image, deregister the previous image and register the new
-// image.
-//
-// # Register a snapshot of a root device volume
-//
-// You can use RegisterImage to create an Amazon EBS-backed Linux AMI from a
-// snapshot of a root device volume. You specify the snapshot using a block device
-// mapping. You can't set the encryption state of the volume using the block device
-// mapping. If the snapshot is encrypted, or encryption by default is enabled, the
-// root volume of an instance launched from the AMI is encrypted.
-//
-// For more information, see [Create an AMI from a snapshot] and [Use encryption with EBS-backed AMIs] in the Amazon EC2 User Guide.
-//
-// # Amazon Web Services Marketplace product codes
-//
-// If any snapshots have Amazon Web Services Marketplace product codes, they are
-// copied to the new AMI.
-//
-// In most cases, AMIs for Windows, RedHat, SUSE, and SQL Server require correct
-// licensing information to be present on the AMI. For more information, see [Understand AMI billing information]in
-// the Amazon EC2 User Guide. When creating an AMI from a snapshot, the
-// RegisterImage operation derives the correct billing information from the
-// snapshot's metadata, but this requires the appropriate metadata to be present.
-// To verify if the correct billing information was applied, check the
-// PlatformDetails field on the new AMI. If the field is empty or doesn't match the
-// expected operating system code (for example, Windows, RedHat, SUSE, or SQL), the
-// AMI creation was unsuccessful, and you should discard the AMI and instead create
-// the AMI from an instance using CreateImage. For more information, see [Create an AMI from an instance] in the Amazon EC2
-// User Guide.
-//
-// If you purchase a Reserved Instance to apply to an On-Demand Instance that was
-// launched from an AMI with a billing product code, make sure that the Reserved
-// Instance has the matching billing product code. If you purchase a Reserved
-// Instance without the matching billing product code, the Reserved Instance will
-// not be applied to the On-Demand Instance. For information about how to obtain
-// the platform details and billing information of an AMI, see [Understand AMI billing information]in the Amazon EC2
-// User Guide.
-//
-// [Use encryption with EBS-backed AMIs]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIEncryption.html
-// [Understand AMI billing information]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-billing-info.html
-// [Create an instance-store backed AMI]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-instance-store.html
-// [Create an AMI from an instance]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html#how-to-create-ebs-ami
-// [Create an AMI from a snapshot]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html#creating-launching-ami-from-snapshot
-func (c *Client) RegisterImage(ctx context.Context, params *RegisterImageInput, optFns ...func(*Options)) (*RegisterImageOutput, error) {
- if params == nil {
- params = &RegisterImageInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "RegisterImage", params, optFns, c.addOperationRegisterImageMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*RegisterImageOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for RegisterImage.
-type RegisterImageInput struct {
-
- // A name for your AMI.
- //
- // Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets
- // ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('),
- // at-signs (@), or underscores(_)
- //
- // This member is required.
- Name *string
-
- // The architecture of the AMI.
- //
- // Default: For Amazon EBS-backed AMIs, i386 . For instance store-backed AMIs, the
- // architecture specified in the manifest file.
- Architecture types.ArchitectureValues
-
- // The billing product codes. Your account must be authorized to specify billing
- // product codes.
- //
- // If your account is not authorized to specify billing product codes, you can
- // publish AMIs that include billable software and list them on the Amazon Web
- // Services Marketplace. You must first register as a seller on the Amazon Web
- // Services Marketplace. For more information, see [Getting started as an Amazon Web Services Marketplace seller]and [AMI-based products in Amazon Web Services Marketplace] in the Amazon Web Services
- // Marketplace Seller Guide.
- //
- // [AMI-based products in Amazon Web Services Marketplace]: https://docs.aws.amazon.com/marketplace/latest/userguide/ami-products.html
- // [Getting started as an Amazon Web Services Marketplace seller]: https://docs.aws.amazon.com/marketplace/latest/userguide/user-guide-for-sellers.html
- BillingProducts []string
-
- // The block device mapping entries.
- //
- // If you specify an Amazon EBS volume using the ID of an Amazon EBS snapshot, you
- // can't specify the encryption state of the volume.
- //
- // If you create an AMI on an Outpost, then all backing snapshots must be on the
- // same Outpost or in the Region of that Outpost. AMIs on an Outpost that include
- // local snapshots can be used to launch instances on the same Outpost only. For
- // more information, [Create AMIs from local snapshots]in the Amazon EBS User Guide.
- //
- // [Create AMIs from local snapshots]: https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#ami
- BlockDeviceMappings []types.BlockDeviceMapping
-
- // The boot mode of the AMI. A value of uefi-preferred indicates that the AMI
- // supports both UEFI and Legacy BIOS.
- //
- // The operating system contained in the AMI must be configured to support the
- // specified boot mode.
- //
- // For more information, see [Instance launch behavior with Amazon EC2 boot modes] in the Amazon EC2 User Guide.
- //
- // [Instance launch behavior with Amazon EC2 boot modes]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-boot.html
- BootMode types.BootModeValues
-
- // A description for your AMI.
- Description *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Set to true to enable enhanced networking with ENA for the AMI and any
- // instances that you launch from the AMI.
- //
- // This option is supported only for HVM AMIs. Specifying this option with a PV
- // AMI can make instances launched from the AMI unreachable.
- EnaSupport *bool
-
- // The full path to your AMI manifest in Amazon S3 storage. The specified bucket
- // must have the aws-exec-read canned access control list (ACL) to ensure that it
- // can be accessed by Amazon EC2. For more information, see [Canned ACL]in the Amazon S3
- // Service Developer Guide.
- //
- // [Canned ACL]: https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
- ImageLocation *string
-
- // Set to v2.0 to indicate that IMDSv2 is specified in the AMI. Instances launched
- // from this AMI will have HttpTokens automatically set to required so that, by
- // default, the instance requires that IMDSv2 is used when requesting instance
- // metadata. In addition, HttpPutResponseHopLimit is set to 2 . For more
- // information, see [Configure the AMI]in the Amazon EC2 User Guide.
- //
- // If you set the value to v2.0 , make sure that your AMI software can support
- // IMDSv2.
- //
- // [Configure the AMI]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration
- ImdsSupport types.ImdsSupportValues
-
- // The ID of the kernel.
- KernelId *string
-
- // The ID of the RAM disk.
- RamdiskId *string
-
- // The device name of the root device volume (for example, /dev/sda1 ).
- RootDeviceName *string
-
- // Set to simple to enable enhanced networking with the Intel 82599 Virtual
- // Function interface for the AMI and any instances that you launch from the AMI.
- //
- // There is no way to disable sriovNetSupport at this time.
- //
- // This option is supported only for HVM AMIs. Specifying this option with a PV
- // AMI can make instances launched from the AMI unreachable.
- SriovNetSupport *string
-
- // The tags to apply to the AMI.
- //
- // To tag the AMI, the value for ResourceType must be image . If you specify
- // another value for ResourceType , the request fails.
- //
- // To tag an AMI after it has been registered, see [CreateTags].
- //
- // [CreateTags]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html
- TagSpecifications []types.TagSpecification
-
- // Set to v2.0 to enable Trusted Platform Module (TPM) support. For more
- // information, see [NitroTPM]in the Amazon EC2 User Guide.
- //
- // [NitroTPM]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nitrotpm.html
- TpmSupport types.TpmSupportValues
-
- // Base64 representation of the non-volatile UEFI variable store. To retrieve the
- // UEFI data, use the [GetInstanceUefiData]command. You can inspect and modify the UEFI data by using
- // the [python-uefivars tool]on GitHub. For more information, see [UEFI Secure Boot for Amazon EC2 instances] in the Amazon EC2 User Guide.
- //
- // [UEFI Secure Boot for Amazon EC2 instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/uefi-secure-boot.html
- // [GetInstanceUefiData]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceUefiData
- // [python-uefivars tool]: https://github.com/awslabs/python-uefivars
- UefiData *string
-
- // The type of virtualization ( hvm | paravirtual ).
- //
- // Default: paravirtual
- VirtualizationType *string
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of RegisterImage.
-type RegisterImageOutput struct {
-
- // The ID of the newly registered AMI.
- ImageId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationRegisterImageMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpRegisterImage{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpRegisterImage{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "RegisterImage"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpRegisterImageValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRegisterImage(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opRegisterImage(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "RegisterImage",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterInstanceEventNotificationAttributes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterInstanceEventNotificationAttributes.go
deleted file mode 100644
index 8b75f8e1a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterInstanceEventNotificationAttributes.go
+++ /dev/null
@@ -1,171 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Registers a set of tag keys to include in scheduled event notifications for
-// your resources.
-//
-// To remove tags, use [DeregisterInstanceEventNotificationAttributes].
-//
-// [DeregisterInstanceEventNotificationAttributes]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DeregisterInstanceEventNotificationAttributes.html
-func (c *Client) RegisterInstanceEventNotificationAttributes(ctx context.Context, params *RegisterInstanceEventNotificationAttributesInput, optFns ...func(*Options)) (*RegisterInstanceEventNotificationAttributesOutput, error) {
- if params == nil {
- params = &RegisterInstanceEventNotificationAttributesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "RegisterInstanceEventNotificationAttributes", params, optFns, c.addOperationRegisterInstanceEventNotificationAttributesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*RegisterInstanceEventNotificationAttributesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type RegisterInstanceEventNotificationAttributesInput struct {
-
- // Information about the tag keys to register.
- //
- // This member is required.
- InstanceTagAttribute *types.RegisterInstanceTagAttributeRequest
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type RegisterInstanceEventNotificationAttributesOutput struct {
-
- // The resulting set of tag keys.
- InstanceTagAttribute *types.InstanceTagNotificationAttribute
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationRegisterInstanceEventNotificationAttributesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpRegisterInstanceEventNotificationAttributes{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "RegisterInstanceEventNotificationAttributes"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpRegisterInstanceEventNotificationAttributesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRegisterInstanceEventNotificationAttributes(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opRegisterInstanceEventNotificationAttributes(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "RegisterInstanceEventNotificationAttributes",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterTransitGatewayMulticastGroupMembers.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterTransitGatewayMulticastGroupMembers.go
deleted file mode 100644
index e4023f878..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterTransitGatewayMulticastGroupMembers.go
+++ /dev/null
@@ -1,184 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Registers members (network interfaces) with the transit gateway multicast
-// group. A member is a network interface associated with a supported EC2 instance
-// that receives multicast traffic. For more information, see [Multicast on transit gateways]in the Amazon Web
-// Services Transit Gateways Guide.
-//
-// After you add the members, use [SearchTransitGatewayMulticastGroups] to verify that the members were added to the
-// transit gateway multicast group.
-//
-// [SearchTransitGatewayMulticastGroups]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SearchTransitGatewayMulticastGroups.html
-// [Multicast on transit gateways]: https://docs.aws.amazon.com/vpc/latest/tgw/tgw-multicast-overview.html
-func (c *Client) RegisterTransitGatewayMulticastGroupMembers(ctx context.Context, params *RegisterTransitGatewayMulticastGroupMembersInput, optFns ...func(*Options)) (*RegisterTransitGatewayMulticastGroupMembersOutput, error) {
- if params == nil {
- params = &RegisterTransitGatewayMulticastGroupMembersInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "RegisterTransitGatewayMulticastGroupMembers", params, optFns, c.addOperationRegisterTransitGatewayMulticastGroupMembersMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*RegisterTransitGatewayMulticastGroupMembersOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type RegisterTransitGatewayMulticastGroupMembersInput struct {
-
- // The group members' network interface IDs to register with the transit gateway
- // multicast group.
- //
- // This member is required.
- NetworkInterfaceIds []string
-
- // The ID of the transit gateway multicast domain.
- //
- // This member is required.
- TransitGatewayMulticastDomainId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The IP address assigned to the transit gateway multicast group.
- GroupIpAddress *string
-
- noSmithyDocumentSerde
-}
-
-type RegisterTransitGatewayMulticastGroupMembersOutput struct {
-
- // Information about the registered transit gateway multicast group members.
- RegisteredMulticastGroupMembers *types.TransitGatewayMulticastRegisteredGroupMembers
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationRegisterTransitGatewayMulticastGroupMembersMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpRegisterTransitGatewayMulticastGroupMembers{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "RegisterTransitGatewayMulticastGroupMembers"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpRegisterTransitGatewayMulticastGroupMembersValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRegisterTransitGatewayMulticastGroupMembers(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opRegisterTransitGatewayMulticastGroupMembers(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "RegisterTransitGatewayMulticastGroupMembers",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterTransitGatewayMulticastGroupSources.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterTransitGatewayMulticastGroupSources.go
deleted file mode 100644
index 139c3f445..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterTransitGatewayMulticastGroupSources.go
+++ /dev/null
@@ -1,186 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Registers sources (network interfaces) with the specified transit gateway
-// multicast group.
-//
-// A multicast source is a network interface attached to a supported instance that
-// sends multicast traffic. For more information about supported instances, see [Multicast on transit gateways]in
-// the Amazon Web Services Transit Gateways Guide.
-//
-// After you add the source, use [SearchTransitGatewayMulticastGroups] to verify that the source was added to the
-// multicast group.
-//
-// [SearchTransitGatewayMulticastGroups]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SearchTransitGatewayMulticastGroups.html
-// [Multicast on transit gateways]: https://docs.aws.amazon.com/vpc/latest/tgw/tgw-multicast-overview.html
-func (c *Client) RegisterTransitGatewayMulticastGroupSources(ctx context.Context, params *RegisterTransitGatewayMulticastGroupSourcesInput, optFns ...func(*Options)) (*RegisterTransitGatewayMulticastGroupSourcesOutput, error) {
- if params == nil {
- params = &RegisterTransitGatewayMulticastGroupSourcesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "RegisterTransitGatewayMulticastGroupSources", params, optFns, c.addOperationRegisterTransitGatewayMulticastGroupSourcesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*RegisterTransitGatewayMulticastGroupSourcesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type RegisterTransitGatewayMulticastGroupSourcesInput struct {
-
- // The group sources' network interface IDs to register with the transit gateway
- // multicast group.
- //
- // This member is required.
- NetworkInterfaceIds []string
-
- // The ID of the transit gateway multicast domain.
- //
- // This member is required.
- TransitGatewayMulticastDomainId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The IP address assigned to the transit gateway multicast group.
- GroupIpAddress *string
-
- noSmithyDocumentSerde
-}
-
-type RegisterTransitGatewayMulticastGroupSourcesOutput struct {
-
- // Information about the transit gateway multicast group sources.
- RegisteredMulticastGroupSources *types.TransitGatewayMulticastRegisteredGroupSources
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationRegisterTransitGatewayMulticastGroupSourcesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpRegisterTransitGatewayMulticastGroupSources{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "RegisterTransitGatewayMulticastGroupSources"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpRegisterTransitGatewayMulticastGroupSourcesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRegisterTransitGatewayMulticastGroupSources(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opRegisterTransitGatewayMulticastGroupSources(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "RegisterTransitGatewayMulticastGroupSources",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectCapacityReservationBillingOwnership.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectCapacityReservationBillingOwnership.go
deleted file mode 100644
index e81596144..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectCapacityReservationBillingOwnership.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Rejects a request to assign billing of the available capacity of a shared
-// Capacity Reservation to your account. For more information, see [Billing assignment for shared Amazon EC2 Capacity Reservations].
-//
-// [Billing assignment for shared Amazon EC2 Capacity Reservations]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/assign-billing.html
-func (c *Client) RejectCapacityReservationBillingOwnership(ctx context.Context, params *RejectCapacityReservationBillingOwnershipInput, optFns ...func(*Options)) (*RejectCapacityReservationBillingOwnershipOutput, error) {
- if params == nil {
- params = &RejectCapacityReservationBillingOwnershipInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "RejectCapacityReservationBillingOwnership", params, optFns, c.addOperationRejectCapacityReservationBillingOwnershipMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*RejectCapacityReservationBillingOwnershipOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type RejectCapacityReservationBillingOwnershipInput struct {
-
- // The ID of the Capacity Reservation for which to reject the request.
- //
- // This member is required.
- CapacityReservationId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type RejectCapacityReservationBillingOwnershipOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationRejectCapacityReservationBillingOwnershipMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpRejectCapacityReservationBillingOwnership{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpRejectCapacityReservationBillingOwnership{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "RejectCapacityReservationBillingOwnership"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpRejectCapacityReservationBillingOwnershipValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRejectCapacityReservationBillingOwnership(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opRejectCapacityReservationBillingOwnership(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "RejectCapacityReservationBillingOwnership",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayMulticastDomainAssociations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayMulticastDomainAssociations.go
deleted file mode 100644
index fa6546e94..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayMulticastDomainAssociations.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Rejects a request to associate cross-account subnets with a transit gateway
-// multicast domain.
-func (c *Client) RejectTransitGatewayMulticastDomainAssociations(ctx context.Context, params *RejectTransitGatewayMulticastDomainAssociationsInput, optFns ...func(*Options)) (*RejectTransitGatewayMulticastDomainAssociationsOutput, error) {
- if params == nil {
- params = &RejectTransitGatewayMulticastDomainAssociationsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "RejectTransitGatewayMulticastDomainAssociations", params, optFns, c.addOperationRejectTransitGatewayMulticastDomainAssociationsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*RejectTransitGatewayMulticastDomainAssociationsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type RejectTransitGatewayMulticastDomainAssociationsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The IDs of the subnets to associate with the transit gateway multicast domain.
- SubnetIds []string
-
- // The ID of the transit gateway attachment.
- TransitGatewayAttachmentId *string
-
- // The ID of the transit gateway multicast domain.
- TransitGatewayMulticastDomainId *string
-
- noSmithyDocumentSerde
-}
-
-type RejectTransitGatewayMulticastDomainAssociationsOutput struct {
-
- // Information about the multicast domain associations.
- Associations *types.TransitGatewayMulticastDomainAssociations
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationRejectTransitGatewayMulticastDomainAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpRejectTransitGatewayMulticastDomainAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "RejectTransitGatewayMulticastDomainAssociations"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRejectTransitGatewayMulticastDomainAssociations(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opRejectTransitGatewayMulticastDomainAssociations(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "RejectTransitGatewayMulticastDomainAssociations",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayPeeringAttachment.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayPeeringAttachment.go
deleted file mode 100644
index 6d1f1b8d4..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayPeeringAttachment.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Rejects a transit gateway peering attachment request.
-func (c *Client) RejectTransitGatewayPeeringAttachment(ctx context.Context, params *RejectTransitGatewayPeeringAttachmentInput, optFns ...func(*Options)) (*RejectTransitGatewayPeeringAttachmentOutput, error) {
- if params == nil {
- params = &RejectTransitGatewayPeeringAttachmentInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "RejectTransitGatewayPeeringAttachment", params, optFns, c.addOperationRejectTransitGatewayPeeringAttachmentMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*RejectTransitGatewayPeeringAttachmentOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type RejectTransitGatewayPeeringAttachmentInput struct {
-
- // The ID of the transit gateway peering attachment.
- //
- // This member is required.
- TransitGatewayAttachmentId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type RejectTransitGatewayPeeringAttachmentOutput struct {
-
- // The transit gateway peering attachment.
- TransitGatewayPeeringAttachment *types.TransitGatewayPeeringAttachment
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationRejectTransitGatewayPeeringAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpRejectTransitGatewayPeeringAttachment{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "RejectTransitGatewayPeeringAttachment"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpRejectTransitGatewayPeeringAttachmentValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRejectTransitGatewayPeeringAttachment(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opRejectTransitGatewayPeeringAttachment(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "RejectTransitGatewayPeeringAttachment",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayVpcAttachment.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayVpcAttachment.go
deleted file mode 100644
index 7bbe41ef9..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayVpcAttachment.go
+++ /dev/null
@@ -1,169 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Rejects a request to attach a VPC to a transit gateway.
-//
-// The VPC attachment must be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments to view your
-// pending VPC attachment requests. Use AcceptTransitGatewayVpcAttachmentto accept a VPC attachment request.
-func (c *Client) RejectTransitGatewayVpcAttachment(ctx context.Context, params *RejectTransitGatewayVpcAttachmentInput, optFns ...func(*Options)) (*RejectTransitGatewayVpcAttachmentOutput, error) {
- if params == nil {
- params = &RejectTransitGatewayVpcAttachmentInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "RejectTransitGatewayVpcAttachment", params, optFns, c.addOperationRejectTransitGatewayVpcAttachmentMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*RejectTransitGatewayVpcAttachmentOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type RejectTransitGatewayVpcAttachmentInput struct {
-
- // The ID of the attachment.
- //
- // This member is required.
- TransitGatewayAttachmentId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type RejectTransitGatewayVpcAttachmentOutput struct {
-
- // Information about the attachment.
- TransitGatewayVpcAttachment *types.TransitGatewayVpcAttachment
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationRejectTransitGatewayVpcAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpRejectTransitGatewayVpcAttachment{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "RejectTransitGatewayVpcAttachment"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpRejectTransitGatewayVpcAttachmentValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRejectTransitGatewayVpcAttachment(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opRejectTransitGatewayVpcAttachment(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "RejectTransitGatewayVpcAttachment",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectVpcEndpointConnections.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectVpcEndpointConnections.go
deleted file mode 100644
index c869dae06..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectVpcEndpointConnections.go
+++ /dev/null
@@ -1,171 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Rejects VPC endpoint connection requests to your VPC endpoint service.
-func (c *Client) RejectVpcEndpointConnections(ctx context.Context, params *RejectVpcEndpointConnectionsInput, optFns ...func(*Options)) (*RejectVpcEndpointConnectionsOutput, error) {
- if params == nil {
- params = &RejectVpcEndpointConnectionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "RejectVpcEndpointConnections", params, optFns, c.addOperationRejectVpcEndpointConnectionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*RejectVpcEndpointConnectionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type RejectVpcEndpointConnectionsInput struct {
-
- // The ID of the service.
- //
- // This member is required.
- ServiceId *string
-
- // The IDs of the VPC endpoints.
- //
- // This member is required.
- VpcEndpointIds []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type RejectVpcEndpointConnectionsOutput struct {
-
- // Information about the endpoints that were not rejected, if applicable.
- Unsuccessful []types.UnsuccessfulItem
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationRejectVpcEndpointConnectionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpRejectVpcEndpointConnections{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpRejectVpcEndpointConnections{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "RejectVpcEndpointConnections"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpRejectVpcEndpointConnectionsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRejectVpcEndpointConnections(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opRejectVpcEndpointConnections(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "RejectVpcEndpointConnections",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectVpcPeeringConnection.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectVpcPeeringConnection.go
deleted file mode 100644
index 16313c5ce..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectVpcPeeringConnection.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Rejects a VPC peering connection request. The VPC peering connection must be in
-// the pending-acceptance state. Use the DescribeVpcPeeringConnections request to view your outstanding VPC
-// peering connection requests. To delete an active VPC peering connection, or to
-// delete a VPC peering connection request that you initiated, use DeleteVpcPeeringConnection.
-func (c *Client) RejectVpcPeeringConnection(ctx context.Context, params *RejectVpcPeeringConnectionInput, optFns ...func(*Options)) (*RejectVpcPeeringConnectionOutput, error) {
- if params == nil {
- params = &RejectVpcPeeringConnectionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "RejectVpcPeeringConnection", params, optFns, c.addOperationRejectVpcPeeringConnectionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*RejectVpcPeeringConnectionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type RejectVpcPeeringConnectionInput struct {
-
- // The ID of the VPC peering connection.
- //
- // This member is required.
- VpcPeeringConnectionId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type RejectVpcPeeringConnectionOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationRejectVpcPeeringConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpRejectVpcPeeringConnection{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpRejectVpcPeeringConnection{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "RejectVpcPeeringConnection"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpRejectVpcPeeringConnectionValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRejectVpcPeeringConnection(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opRejectVpcPeeringConnection(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "RejectVpcPeeringConnection",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReleaseAddress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReleaseAddress.go
deleted file mode 100644
index 5adfacaac..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReleaseAddress.go
+++ /dev/null
@@ -1,183 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Releases the specified Elastic IP address.
-//
-// [Default VPC] Releasing an Elastic IP address automatically disassociates it
-// from any instance that it's associated with. To disassociate an Elastic IP
-// address without releasing it, use DisassociateAddress.
-//
-// [Nondefault VPC] You must use DisassociateAddress to disassociate the Elastic IP address before
-// you can release it. Otherwise, Amazon EC2 returns an error (
-// InvalidIPAddress.InUse ).
-//
-// After releasing an Elastic IP address, it is released to the IP address pool.
-// Be sure to update your DNS records and any servers or devices that communicate
-// with the address. If you attempt to release an Elastic IP address that you
-// already released, you'll get an AuthFailure error if the address is already
-// allocated to another Amazon Web Services account.
-//
-// After you release an Elastic IP address, you might be able to recover it. For
-// more information, see AllocateAddress.
-func (c *Client) ReleaseAddress(ctx context.Context, params *ReleaseAddressInput, optFns ...func(*Options)) (*ReleaseAddressOutput, error) {
- if params == nil {
- params = &ReleaseAddressInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ReleaseAddress", params, optFns, c.addOperationReleaseAddressMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ReleaseAddressOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ReleaseAddressInput struct {
-
- // The allocation ID. This parameter is required.
- AllocationId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The set of Availability Zones, Local Zones, or Wavelength Zones from which
- // Amazon Web Services advertises IP addresses.
- //
- // If you provide an incorrect network border group, you receive an
- // InvalidAddress.NotFound error.
- NetworkBorderGroup *string
-
- // Deprecated.
- PublicIp *string
-
- noSmithyDocumentSerde
-}
-
-type ReleaseAddressOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationReleaseAddressMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpReleaseAddress{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpReleaseAddress{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ReleaseAddress"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opReleaseAddress(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opReleaseAddress(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ReleaseAddress",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReleaseHosts.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReleaseHosts.go
deleted file mode 100644
index 212b99180..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReleaseHosts.go
+++ /dev/null
@@ -1,174 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// When you no longer want to use an On-Demand Dedicated Host it can be released.
-// On-Demand billing is stopped and the host goes into released state. The host ID
-// of Dedicated Hosts that have been released can no longer be specified in another
-// request, for example, to modify the host. You must stop or terminate all
-// instances on a host before it can be released.
-//
-// When Dedicated Hosts are released, it may take some time for them to stop
-// counting toward your limit and you may receive capacity errors when trying to
-// allocate new Dedicated Hosts. Wait a few minutes and then try again.
-//
-// Released hosts still appear in a DescribeHosts response.
-func (c *Client) ReleaseHosts(ctx context.Context, params *ReleaseHostsInput, optFns ...func(*Options)) (*ReleaseHostsOutput, error) {
- if params == nil {
- params = &ReleaseHostsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ReleaseHosts", params, optFns, c.addOperationReleaseHostsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ReleaseHostsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ReleaseHostsInput struct {
-
- // The IDs of the Dedicated Hosts to release.
- //
- // This member is required.
- HostIds []string
-
- noSmithyDocumentSerde
-}
-
-type ReleaseHostsOutput struct {
-
- // The IDs of the Dedicated Hosts that were successfully released.
- Successful []string
-
- // The IDs of the Dedicated Hosts that could not be released, including an error
- // message.
- Unsuccessful []types.UnsuccessfulItem
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationReleaseHostsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpReleaseHosts{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpReleaseHosts{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ReleaseHosts"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpReleaseHostsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opReleaseHosts(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opReleaseHosts(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ReleaseHosts",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReleaseIpamPoolAllocation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReleaseIpamPoolAllocation.go
deleted file mode 100644
index a063b06a9..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReleaseIpamPoolAllocation.go
+++ /dev/null
@@ -1,186 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Release an allocation within an IPAM pool. The Region you use should be the
-// IPAM pool locale. The locale is the Amazon Web Services Region where this IPAM
-// pool is available for allocations. You can only use this action to release
-// manual allocations. To remove an allocation for a resource without deleting the
-// resource, set its monitored state to false using [ModifyIpamResourceCidr]. For more information, see [Release an allocation]
-// in the Amazon VPC IPAM User Guide.
-//
-// All EC2 API actions follow an [eventual consistency] model.
-//
-// [Release an allocation]: https://docs.aws.amazon.com/vpc/latest/ipam/release-alloc-ipam.html
-// [eventual consistency]: https://docs.aws.amazon.com/ec2/latest/devguide/eventual-consistency.html
-// [ModifyIpamResourceCidr]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyIpamResourceCidr.html
-func (c *Client) ReleaseIpamPoolAllocation(ctx context.Context, params *ReleaseIpamPoolAllocationInput, optFns ...func(*Options)) (*ReleaseIpamPoolAllocationOutput, error) {
- if params == nil {
- params = &ReleaseIpamPoolAllocationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ReleaseIpamPoolAllocation", params, optFns, c.addOperationReleaseIpamPoolAllocationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ReleaseIpamPoolAllocationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ReleaseIpamPoolAllocationInput struct {
-
- // The CIDR of the allocation you want to release.
- //
- // This member is required.
- Cidr *string
-
- // The ID of the allocation.
- //
- // This member is required.
- IpamPoolAllocationId *string
-
- // The ID of the IPAM pool which contains the allocation you want to release.
- //
- // This member is required.
- IpamPoolId *string
-
- // A check for whether you have the required permissions for the action without
- // actually making the request and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ReleaseIpamPoolAllocationOutput struct {
-
- // Indicates if the release was successful.
- Success *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationReleaseIpamPoolAllocationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpReleaseIpamPoolAllocation{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpReleaseIpamPoolAllocation{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ReleaseIpamPoolAllocation"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpReleaseIpamPoolAllocationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opReleaseIpamPoolAllocation(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opReleaseIpamPoolAllocation(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ReleaseIpamPoolAllocation",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceIamInstanceProfileAssociation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceIamInstanceProfileAssociation.go
deleted file mode 100644
index c7e6be166..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceIamInstanceProfileAssociation.go
+++ /dev/null
@@ -1,169 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Replaces an IAM instance profile for the specified running instance. You can
-// use this action to change the IAM instance profile that's associated with an
-// instance without having to disassociate the existing IAM instance profile first.
-//
-// Use DescribeIamInstanceProfileAssociations to get the association ID.
-func (c *Client) ReplaceIamInstanceProfileAssociation(ctx context.Context, params *ReplaceIamInstanceProfileAssociationInput, optFns ...func(*Options)) (*ReplaceIamInstanceProfileAssociationOutput, error) {
- if params == nil {
- params = &ReplaceIamInstanceProfileAssociationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ReplaceIamInstanceProfileAssociation", params, optFns, c.addOperationReplaceIamInstanceProfileAssociationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ReplaceIamInstanceProfileAssociationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ReplaceIamInstanceProfileAssociationInput struct {
-
- // The ID of the existing IAM instance profile association.
- //
- // This member is required.
- AssociationId *string
-
- // The IAM instance profile.
- //
- // This member is required.
- IamInstanceProfile *types.IamInstanceProfileSpecification
-
- noSmithyDocumentSerde
-}
-
-type ReplaceIamInstanceProfileAssociationOutput struct {
-
- // Information about the IAM instance profile association.
- IamInstanceProfileAssociation *types.IamInstanceProfileAssociation
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationReplaceIamInstanceProfileAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpReplaceIamInstanceProfileAssociation{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ReplaceIamInstanceProfileAssociation"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpReplaceIamInstanceProfileAssociationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opReplaceIamInstanceProfileAssociation(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opReplaceIamInstanceProfileAssociation(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ReplaceIamInstanceProfileAssociation",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceImageCriteriaInAllowedImagesSettings.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceImageCriteriaInAllowedImagesSettings.go
deleted file mode 100644
index e3eb32c73..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceImageCriteriaInAllowedImagesSettings.go
+++ /dev/null
@@ -1,171 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Sets or replaces the criteria for Allowed AMIs.
-//
-// The Allowed AMIs feature does not restrict the AMIs owned by your account.
-// Regardless of the criteria you set, the AMIs created by your account will always
-// be discoverable and usable by users in your account.
-//
-// For more information, see [Control the discovery and use of AMIs in Amazon EC2 with Allowed AMIs] in Amazon EC2 User Guide.
-//
-// [Control the discovery and use of AMIs in Amazon EC2 with Allowed AMIs]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-allowed-amis.html
-func (c *Client) ReplaceImageCriteriaInAllowedImagesSettings(ctx context.Context, params *ReplaceImageCriteriaInAllowedImagesSettingsInput, optFns ...func(*Options)) (*ReplaceImageCriteriaInAllowedImagesSettingsOutput, error) {
- if params == nil {
- params = &ReplaceImageCriteriaInAllowedImagesSettingsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ReplaceImageCriteriaInAllowedImagesSettings", params, optFns, c.addOperationReplaceImageCriteriaInAllowedImagesSettingsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ReplaceImageCriteriaInAllowedImagesSettingsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ReplaceImageCriteriaInAllowedImagesSettingsInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The list of criteria that are evaluated to determine whether AMIs are
- // discoverable and usable in the account in the specified Amazon Web Services
- // Region.
- ImageCriteria []types.ImageCriterionRequest
-
- noSmithyDocumentSerde
-}
-
-type ReplaceImageCriteriaInAllowedImagesSettingsOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- ReturnValue *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationReplaceImageCriteriaInAllowedImagesSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpReplaceImageCriteriaInAllowedImagesSettings{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpReplaceImageCriteriaInAllowedImagesSettings{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ReplaceImageCriteriaInAllowedImagesSettings"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opReplaceImageCriteriaInAllowedImagesSettings(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opReplaceImageCriteriaInAllowedImagesSettings(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ReplaceImageCriteriaInAllowedImagesSettings",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceNetworkAclAssociation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceNetworkAclAssociation.go
deleted file mode 100644
index 5b34fd45a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceNetworkAclAssociation.go
+++ /dev/null
@@ -1,177 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Changes which network ACL a subnet is associated with. By default when you
-// create a subnet, it's automatically associated with the default network ACL. For
-// more information, see [Network ACLs]in the Amazon VPC User Guide.
-//
-// This is an idempotent operation.
-//
-// [Network ACLs]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-network-acls.html
-func (c *Client) ReplaceNetworkAclAssociation(ctx context.Context, params *ReplaceNetworkAclAssociationInput, optFns ...func(*Options)) (*ReplaceNetworkAclAssociationOutput, error) {
- if params == nil {
- params = &ReplaceNetworkAclAssociationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ReplaceNetworkAclAssociation", params, optFns, c.addOperationReplaceNetworkAclAssociationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ReplaceNetworkAclAssociationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ReplaceNetworkAclAssociationInput struct {
-
- // The ID of the current association between the original network ACL and the
- // subnet.
- //
- // This member is required.
- AssociationId *string
-
- // The ID of the new network ACL to associate with the subnet.
- //
- // This member is required.
- NetworkAclId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ReplaceNetworkAclAssociationOutput struct {
-
- // The ID of the new association.
- NewAssociationId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationReplaceNetworkAclAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpReplaceNetworkAclAssociation{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpReplaceNetworkAclAssociation{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ReplaceNetworkAclAssociation"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpReplaceNetworkAclAssociationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opReplaceNetworkAclAssociation(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opReplaceNetworkAclAssociation(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ReplaceNetworkAclAssociation",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceNetworkAclEntry.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceNetworkAclEntry.go
deleted file mode 100644
index 0d1d256b4..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceNetworkAclEntry.go
+++ /dev/null
@@ -1,209 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Replaces an entry (rule) in a network ACL. For more information, see [Network ACLs] in the
-// Amazon VPC User Guide.
-//
-// [Network ACLs]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-network-acls.html
-func (c *Client) ReplaceNetworkAclEntry(ctx context.Context, params *ReplaceNetworkAclEntryInput, optFns ...func(*Options)) (*ReplaceNetworkAclEntryOutput, error) {
- if params == nil {
- params = &ReplaceNetworkAclEntryInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ReplaceNetworkAclEntry", params, optFns, c.addOperationReplaceNetworkAclEntryMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ReplaceNetworkAclEntryOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ReplaceNetworkAclEntryInput struct {
-
- // Indicates whether to replace the egress rule.
- //
- // Default: If no value is specified, we replace the ingress rule.
- //
- // This member is required.
- Egress *bool
-
- // The ID of the ACL.
- //
- // This member is required.
- NetworkAclId *string
-
- // The protocol number. A value of "-1" means all protocols. If you specify "-1"
- // or a protocol number other than "6" (TCP), "17" (UDP), or "1" (ICMP), traffic on
- // all ports is allowed, regardless of any ports or ICMP types or codes that you
- // specify. If you specify protocol "58" (ICMPv6) and specify an IPv4 CIDR block,
- // traffic for all ICMP types and codes allowed, regardless of any that you
- // specify. If you specify protocol "58" (ICMPv6) and specify an IPv6 CIDR block,
- // you must specify an ICMP type and code.
- //
- // This member is required.
- Protocol *string
-
- // Indicates whether to allow or deny the traffic that matches the rule.
- //
- // This member is required.
- RuleAction types.RuleAction
-
- // The rule number of the entry to replace.
- //
- // This member is required.
- RuleNumber *int32
-
- // The IPv4 network range to allow or deny, in CIDR notation (for example
- // 172.16.0.0/24 ).
- CidrBlock *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying
- // protocol 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR block.
- IcmpTypeCode *types.IcmpTypeCode
-
- // The IPv6 network range to allow or deny, in CIDR notation (for example
- // 2001:bd8:1234:1a00::/64 ).
- Ipv6CidrBlock *string
-
- // TCP or UDP protocols: The range of ports the rule applies to. Required if
- // specifying protocol 6 (TCP) or 17 (UDP).
- PortRange *types.PortRange
-
- noSmithyDocumentSerde
-}
-
-type ReplaceNetworkAclEntryOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationReplaceNetworkAclEntryMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpReplaceNetworkAclEntry{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpReplaceNetworkAclEntry{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ReplaceNetworkAclEntry"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpReplaceNetworkAclEntryValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opReplaceNetworkAclEntry(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opReplaceNetworkAclEntry(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ReplaceNetworkAclEntry",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceRoute.go
deleted file mode 100644
index 04eb1598c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceRoute.go
+++ /dev/null
@@ -1,219 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Replaces an existing route within a route table in a VPC.
-//
-// You must specify either a destination CIDR block or a prefix list ID. You must
-// also specify exactly one of the resources from the parameter list, or reset the
-// local route to its default target.
-//
-// For more information, see [Route tables] in the Amazon VPC User Guide.
-//
-// [Route tables]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html
-func (c *Client) ReplaceRoute(ctx context.Context, params *ReplaceRouteInput, optFns ...func(*Options)) (*ReplaceRouteOutput, error) {
- if params == nil {
- params = &ReplaceRouteInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ReplaceRoute", params, optFns, c.addOperationReplaceRouteMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ReplaceRouteOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ReplaceRouteInput struct {
-
- // The ID of the route table.
- //
- // This member is required.
- RouteTableId *string
-
- // [IPv4 traffic only] The ID of a carrier gateway.
- CarrierGatewayId *string
-
- // The Amazon Resource Name (ARN) of the core network.
- CoreNetworkArn *string
-
- // The IPv4 CIDR address block used for the destination match. The value that you
- // provide must match the CIDR of an existing route in the table.
- DestinationCidrBlock *string
-
- // The IPv6 CIDR address block used for the destination match. The value that you
- // provide must match the CIDR of an existing route in the table.
- DestinationIpv6CidrBlock *string
-
- // The ID of the prefix list for the route.
- DestinationPrefixListId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // [IPv6 traffic only] The ID of an egress-only internet gateway.
- EgressOnlyInternetGatewayId *string
-
- // The ID of an internet gateway or virtual private gateway.
- GatewayId *string
-
- // The ID of a NAT instance in your VPC.
- InstanceId *string
-
- // The ID of the local gateway.
- LocalGatewayId *string
-
- // Specifies whether to reset the local route to its default target ( local ).
- LocalTarget *bool
-
- // [IPv4 traffic only] The ID of a NAT gateway.
- NatGatewayId *string
-
- // The ID of a network interface.
- NetworkInterfaceId *string
-
- // The Amazon Resource Name (ARN) of the ODB network.
- OdbNetworkArn *string
-
- // The ID of a transit gateway.
- TransitGatewayId *string
-
- // The ID of a VPC endpoint. Supported for Gateway Load Balancer endpoints only.
- VpcEndpointId *string
-
- // The ID of a VPC peering connection.
- VpcPeeringConnectionId *string
-
- noSmithyDocumentSerde
-}
-
-type ReplaceRouteOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationReplaceRouteMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpReplaceRoute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpReplaceRoute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ReplaceRoute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpReplaceRouteValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opReplaceRoute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opReplaceRoute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ReplaceRoute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceRouteTableAssociation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceRouteTableAssociation.go
deleted file mode 100644
index fb79fc094..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceRouteTableAssociation.go
+++ /dev/null
@@ -1,183 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Changes the route table associated with a given subnet, internet gateway, or
-// virtual private gateway in a VPC. After the operation completes, the subnet or
-// gateway uses the routes in the new route table. For more information about route
-// tables, see [Route tables]in the Amazon VPC User Guide.
-//
-// You can also use this operation to change which table is the main route table
-// in the VPC. Specify the main route table's association ID and the route table ID
-// of the new main route table.
-//
-// [Route tables]: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html
-func (c *Client) ReplaceRouteTableAssociation(ctx context.Context, params *ReplaceRouteTableAssociationInput, optFns ...func(*Options)) (*ReplaceRouteTableAssociationOutput, error) {
- if params == nil {
- params = &ReplaceRouteTableAssociationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ReplaceRouteTableAssociation", params, optFns, c.addOperationReplaceRouteTableAssociationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ReplaceRouteTableAssociationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ReplaceRouteTableAssociationInput struct {
-
- // The association ID.
- //
- // This member is required.
- AssociationId *string
-
- // The ID of the new route table to associate with the subnet.
- //
- // This member is required.
- RouteTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ReplaceRouteTableAssociationOutput struct {
-
- // The state of the association.
- AssociationState *types.RouteTableAssociationState
-
- // The ID of the new association.
- NewAssociationId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationReplaceRouteTableAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpReplaceRouteTableAssociation{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpReplaceRouteTableAssociation{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ReplaceRouteTableAssociation"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpReplaceRouteTableAssociationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opReplaceRouteTableAssociation(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opReplaceRouteTableAssociation(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ReplaceRouteTableAssociation",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceTransitGatewayRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceTransitGatewayRoute.go
deleted file mode 100644
index 06c369180..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceTransitGatewayRoute.go
+++ /dev/null
@@ -1,178 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Replaces the specified route in the specified transit gateway route table.
-func (c *Client) ReplaceTransitGatewayRoute(ctx context.Context, params *ReplaceTransitGatewayRouteInput, optFns ...func(*Options)) (*ReplaceTransitGatewayRouteOutput, error) {
- if params == nil {
- params = &ReplaceTransitGatewayRouteInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ReplaceTransitGatewayRoute", params, optFns, c.addOperationReplaceTransitGatewayRouteMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ReplaceTransitGatewayRouteOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ReplaceTransitGatewayRouteInput struct {
-
- // The CIDR range used for the destination match. Routing decisions are based on
- // the most specific match.
- //
- // This member is required.
- DestinationCidrBlock *string
-
- // The ID of the route table.
- //
- // This member is required.
- TransitGatewayRouteTableId *string
-
- // Indicates whether traffic matching this route is to be dropped.
- Blackhole *bool
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the attachment.
- TransitGatewayAttachmentId *string
-
- noSmithyDocumentSerde
-}
-
-type ReplaceTransitGatewayRouteOutput struct {
-
- // Information about the modified route.
- Route *types.TransitGatewayRoute
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationReplaceTransitGatewayRouteMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpReplaceTransitGatewayRoute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpReplaceTransitGatewayRoute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ReplaceTransitGatewayRoute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpReplaceTransitGatewayRouteValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opReplaceTransitGatewayRoute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opReplaceTransitGatewayRoute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ReplaceTransitGatewayRoute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceVpnTunnel.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceVpnTunnel.go
deleted file mode 100644
index 84bed6dc2..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceVpnTunnel.go
+++ /dev/null
@@ -1,173 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Trigger replacement of specified VPN tunnel.
-func (c *Client) ReplaceVpnTunnel(ctx context.Context, params *ReplaceVpnTunnelInput, optFns ...func(*Options)) (*ReplaceVpnTunnelOutput, error) {
- if params == nil {
- params = &ReplaceVpnTunnelInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ReplaceVpnTunnel", params, optFns, c.addOperationReplaceVpnTunnelMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ReplaceVpnTunnelOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ReplaceVpnTunnelInput struct {
-
- // The ID of the Site-to-Site VPN connection.
- //
- // This member is required.
- VpnConnectionId *string
-
- // The external IP address of the VPN tunnel.
- //
- // This member is required.
- VpnTunnelOutsideIpAddress *string
-
- // Trigger pending tunnel endpoint maintenance.
- ApplyPendingMaintenance *bool
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ReplaceVpnTunnelOutput struct {
-
- // Confirmation of replace tunnel operation.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationReplaceVpnTunnelMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpReplaceVpnTunnel{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpReplaceVpnTunnel{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ReplaceVpnTunnel"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpReplaceVpnTunnelValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opReplaceVpnTunnel(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opReplaceVpnTunnel(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ReplaceVpnTunnel",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReportInstanceStatus.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReportInstanceStatus.go
deleted file mode 100644
index 2172db87f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReportInstanceStatus.go
+++ /dev/null
@@ -1,210 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Submits feedback about the status of an instance. The instance must be in the
-// running state. If your experience with the instance differs from the instance
-// status returned by DescribeInstanceStatus, use ReportInstanceStatus to report your experience with the instance. Amazon
-// EC2 collects this information to improve the accuracy of status checks.
-//
-// Use of this action does not change the value returned by DescribeInstanceStatus.
-func (c *Client) ReportInstanceStatus(ctx context.Context, params *ReportInstanceStatusInput, optFns ...func(*Options)) (*ReportInstanceStatusOutput, error) {
- if params == nil {
- params = &ReportInstanceStatusInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ReportInstanceStatus", params, optFns, c.addOperationReportInstanceStatusMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ReportInstanceStatusOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ReportInstanceStatusInput struct {
-
- // The instances.
- //
- // This member is required.
- Instances []string
-
- // The reason codes that describe the health state of your instance.
- //
- // - instance-stuck-in-state : My instance is stuck in a state.
- //
- // - unresponsive : My instance is unresponsive.
- //
- // - not-accepting-credentials : My instance is not accepting my credentials.
- //
- // - password-not-available : A password is not available for my instance.
- //
- // - performance-network : My instance is experiencing performance problems that
- // I believe are network related.
- //
- // - performance-instance-store : My instance is experiencing performance
- // problems that I believe are related to the instance stores.
- //
- // - performance-ebs-volume : My instance is experiencing performance problems
- // that I believe are related to an EBS volume.
- //
- // - performance-other : My instance is experiencing performance problems.
- //
- // - other : [explain using the description parameter]
- //
- // This member is required.
- ReasonCodes []types.ReportInstanceReasonCodes
-
- // The status of all instances listed.
- //
- // This member is required.
- Status types.ReportStatusType
-
- // Descriptive text about the health state of your instance.
- //
- // Deprecated: This member has been deprecated
- Description *string
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The time at which the reported instance health state ended.
- EndTime *time.Time
-
- // The time at which the reported instance health state began.
- StartTime *time.Time
-
- noSmithyDocumentSerde
-}
-
-type ReportInstanceStatusOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationReportInstanceStatusMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpReportInstanceStatus{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpReportInstanceStatus{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ReportInstanceStatus"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpReportInstanceStatusValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opReportInstanceStatus(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opReportInstanceStatus(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ReportInstanceStatus",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RequestSpotFleet.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RequestSpotFleet.go
deleted file mode 100644
index 5db4d2505..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RequestSpotFleet.go
+++ /dev/null
@@ -1,198 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Creates a Spot Fleet request.
-//
-// The Spot Fleet request specifies the total target capacity and the On-Demand
-// target capacity. Amazon EC2 calculates the difference between the total capacity
-// and On-Demand capacity, and launches the difference as Spot capacity.
-//
-// You can submit a single request that includes multiple launch specifications
-// that vary by instance type, AMI, Availability Zone, or subnet.
-//
-// By default, the Spot Fleet requests Spot Instances in the Spot Instance pool
-// where the price per unit is the lowest. Each launch specification can include
-// its own instance weighting that reflects the value of the instance type to your
-// application workload.
-//
-// Alternatively, you can specify that the Spot Fleet distribute the target
-// capacity across the Spot pools included in its launch specifications. By
-// ensuring that the Spot Instances in your Spot Fleet are in different Spot pools,
-// you can improve the availability of your fleet.
-//
-// You can specify tags for the Spot Fleet request and instances launched by the
-// fleet. You cannot tag other resource types in a Spot Fleet request because only
-// the spot-fleet-request and instance resource types are supported.
-//
-// For more information, see [Spot Fleet requests] in the Amazon EC2 User Guide.
-//
-// We strongly discourage using the RequestSpotFleet API because it is a legacy
-// API with no planned investment. For options for requesting Spot Instances, see [Which is the best Spot request method to use?]
-// in the Amazon EC2 User Guide.
-//
-// [Spot Fleet requests]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html
-// [Which is the best Spot request method to use?]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-best-practices.html#which-spot-request-method-to-use
-func (c *Client) RequestSpotFleet(ctx context.Context, params *RequestSpotFleetInput, optFns ...func(*Options)) (*RequestSpotFleetOutput, error) {
- if params == nil {
- params = &RequestSpotFleetInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "RequestSpotFleet", params, optFns, c.addOperationRequestSpotFleetMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*RequestSpotFleetOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for RequestSpotFleet.
-type RequestSpotFleetInput struct {
-
- // The configuration for the Spot Fleet request.
- //
- // This member is required.
- SpotFleetRequestConfig *types.SpotFleetRequestConfigData
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of RequestSpotFleet.
-type RequestSpotFleetOutput struct {
-
- // The ID of the Spot Fleet request.
- SpotFleetRequestId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationRequestSpotFleetMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpRequestSpotFleet{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpRequestSpotFleet{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "RequestSpotFleet"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpRequestSpotFleetValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRequestSpotFleet(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opRequestSpotFleet(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "RequestSpotFleet",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RequestSpotInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RequestSpotInstances.go
deleted file mode 100644
index f0abba7ab..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RequestSpotInstances.go
+++ /dev/null
@@ -1,266 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Creates a Spot Instance request.
-//
-// For more information, see [Work with Spot Instance] in the Amazon EC2 User Guide.
-//
-// We strongly discourage using the RequestSpotInstances API because it is a
-// legacy API with no planned investment. For options for requesting Spot
-// Instances, see [Which is the best Spot request method to use?]in the Amazon EC2 User Guide.
-//
-// [Work with Spot Instance]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html
-// [Which is the best Spot request method to use?]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-best-practices.html#which-spot-request-method-to-use
-func (c *Client) RequestSpotInstances(ctx context.Context, params *RequestSpotInstancesInput, optFns ...func(*Options)) (*RequestSpotInstancesOutput, error) {
- if params == nil {
- params = &RequestSpotInstancesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "RequestSpotInstances", params, optFns, c.addOperationRequestSpotInstancesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*RequestSpotInstancesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for RequestSpotInstances.
-type RequestSpotInstancesInput struct {
-
- // The user-specified name for a logical grouping of requests.
- //
- // When you specify an Availability Zone group in a Spot Instance request, all
- // Spot Instances in the request are launched in the same Availability Zone.
- // Instance proximity is maintained with this parameter, but the choice of
- // Availability Zone is not. The group applies only to requests for Spot Instances
- // of the same instance type. Any additional Spot Instance requests that are
- // specified with the same Availability Zone group name are launched in that same
- // Availability Zone, as long as at least one instance from the group is still
- // active.
- //
- // If there is no active instance running in the Availability Zone group that you
- // specify for a new Spot Instance request (all instances are terminated, the
- // request is expired, or the maximum price you specified falls below current Spot
- // price), then Amazon EC2 launches the instance in any Availability Zone where the
- // constraint can be met. Consequently, the subsequent set of Spot Instances could
- // be placed in a different zone from the original request, even if you specified
- // the same Availability Zone group.
- //
- // Default: Instances are launched in any available Availability Zone.
- AvailabilityZoneGroup *string
-
- // Deprecated.
- BlockDurationMinutes *int32
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [Ensuring idempotency in Amazon EC2 API requests]in the Amazon EC2 User Guide.
- //
- // [Ensuring idempotency in Amazon EC2 API requests]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The maximum number of Spot Instances to launch.
- //
- // Default: 1
- InstanceCount *int32
-
- // The behavior when a Spot Instance is interrupted. The default is terminate .
- InstanceInterruptionBehavior types.InstanceInterruptionBehavior
-
- // The instance launch group. Launch groups are Spot Instances that launch
- // together and terminate together.
- //
- // Default: Instances are launched and terminated individually
- LaunchGroup *string
-
- // The launch specification.
- LaunchSpecification *types.RequestSpotLaunchSpecification
-
- // The maximum price per unit hour that you are willing to pay for a Spot
- // Instance. We do not recommend using this parameter because it can lead to
- // increased interruptions. If you do not specify this parameter, you will pay the
- // current Spot price.
- //
- // If you specify a maximum price, your instances will be interrupted more
- // frequently than if you do not specify this parameter.
- SpotPrice *string
-
- // The key-value pair for tagging the Spot Instance request on creation. The value
- // for ResourceType must be spot-instances-request , otherwise the Spot Instance
- // request fails. To tag the Spot Instance request after it has been created, see [CreateTags]
- // .
- //
- // [CreateTags]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html
- TagSpecifications []types.TagSpecification
-
- // The Spot Instance request type.
- //
- // Default: one-time
- Type types.SpotInstanceType
-
- // The start date of the request. If this is a one-time request, the request
- // becomes active at this date and time and remains active until all instances
- // launch, the request expires, or the request is canceled. If the request is
- // persistent, the request becomes active at this date and time and remains active
- // until it expires or is canceled.
- //
- // The specified start date and time cannot be equal to the current date and time.
- // You must specify a start date and time that occurs after the current date and
- // time.
- ValidFrom *time.Time
-
- // The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ).
- //
- // - For a persistent request, the request remains active until the ValidUntil
- // date and time is reached. Otherwise, the request remains active until you cancel
- // it.
- //
- // - For a one-time request, the request remains active until all instances
- // launch, the request is canceled, or the ValidUntil date and time is reached.
- // By default, the request is valid for 7 days from the date the request was
- // created.
- ValidUntil *time.Time
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of RequestSpotInstances.
-type RequestSpotInstancesOutput struct {
-
- // The Spot Instance requests.
- SpotInstanceRequests []types.SpotInstanceRequest
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationRequestSpotInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpRequestSpotInstances{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpRequestSpotInstances{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "RequestSpotInstances"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpRequestSpotInstancesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRequestSpotInstances(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opRequestSpotInstances(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "RequestSpotInstances",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetAddressAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetAddressAttribute.go
deleted file mode 100644
index 97839a172..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetAddressAttribute.go
+++ /dev/null
@@ -1,173 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Resets the attribute of the specified IP address. For requirements, see [Using reverse DNS for email applications].
-//
-// [Using reverse DNS for email applications]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html#Using_Elastic_Addressing_Reverse_DNS
-func (c *Client) ResetAddressAttribute(ctx context.Context, params *ResetAddressAttributeInput, optFns ...func(*Options)) (*ResetAddressAttributeOutput, error) {
- if params == nil {
- params = &ResetAddressAttributeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ResetAddressAttribute", params, optFns, c.addOperationResetAddressAttributeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ResetAddressAttributeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ResetAddressAttributeInput struct {
-
- // [EC2-VPC] The allocation ID.
- //
- // This member is required.
- AllocationId *string
-
- // The attribute of the IP address.
- //
- // This member is required.
- Attribute types.AddressAttributeName
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ResetAddressAttributeOutput struct {
-
- // Information about the IP address.
- Address *types.AddressAttribute
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationResetAddressAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpResetAddressAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpResetAddressAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ResetAddressAttribute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpResetAddressAttributeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opResetAddressAttribute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opResetAddressAttribute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ResetAddressAttribute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetEbsDefaultKmsKeyId.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetEbsDefaultKmsKeyId.go
deleted file mode 100644
index 70613ad59..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetEbsDefaultKmsKeyId.go
+++ /dev/null
@@ -1,165 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Resets the default KMS key for EBS encryption for your account in this Region
-// to the Amazon Web Services managed KMS key for EBS.
-//
-// After resetting the default KMS key to the Amazon Web Services managed KMS key,
-// you can continue to encrypt by a customer managed KMS key by specifying it when
-// you create the volume. For more information, see [Amazon EBS encryption]in the Amazon EBS User Guide.
-//
-// [Amazon EBS encryption]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html
-func (c *Client) ResetEbsDefaultKmsKeyId(ctx context.Context, params *ResetEbsDefaultKmsKeyIdInput, optFns ...func(*Options)) (*ResetEbsDefaultKmsKeyIdOutput, error) {
- if params == nil {
- params = &ResetEbsDefaultKmsKeyIdInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ResetEbsDefaultKmsKeyId", params, optFns, c.addOperationResetEbsDefaultKmsKeyIdMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ResetEbsDefaultKmsKeyIdOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ResetEbsDefaultKmsKeyIdInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ResetEbsDefaultKmsKeyIdOutput struct {
-
- // The Amazon Resource Name (ARN) of the default KMS key for EBS encryption by
- // default.
- KmsKeyId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationResetEbsDefaultKmsKeyIdMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpResetEbsDefaultKmsKeyId{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpResetEbsDefaultKmsKeyId{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ResetEbsDefaultKmsKeyId"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opResetEbsDefaultKmsKeyId(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opResetEbsDefaultKmsKeyId(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ResetEbsDefaultKmsKeyId",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetFpgaImageAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetFpgaImageAttribute.go
deleted file mode 100644
index cce50b258..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetFpgaImageAttribute.go
+++ /dev/null
@@ -1,170 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Resets the specified attribute of the specified Amazon FPGA Image (AFI) to its
-// default value. You can only reset the load permission attribute.
-func (c *Client) ResetFpgaImageAttribute(ctx context.Context, params *ResetFpgaImageAttributeInput, optFns ...func(*Options)) (*ResetFpgaImageAttributeOutput, error) {
- if params == nil {
- params = &ResetFpgaImageAttributeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ResetFpgaImageAttribute", params, optFns, c.addOperationResetFpgaImageAttributeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ResetFpgaImageAttributeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ResetFpgaImageAttributeInput struct {
-
- // The ID of the AFI.
- //
- // This member is required.
- FpgaImageId *string
-
- // The attribute.
- Attribute types.ResetFpgaImageAttributeName
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ResetFpgaImageAttributeOutput struct {
-
- // Is true if the request succeeds, and an error otherwise.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationResetFpgaImageAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpResetFpgaImageAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpResetFpgaImageAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ResetFpgaImageAttribute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpResetFpgaImageAttributeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opResetFpgaImageAttribute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opResetFpgaImageAttribute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ResetFpgaImageAttribute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetImageAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetImageAttribute.go
deleted file mode 100644
index 4782499b2..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetImageAttribute.go
+++ /dev/null
@@ -1,169 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Resets an attribute of an AMI to its default value.
-func (c *Client) ResetImageAttribute(ctx context.Context, params *ResetImageAttributeInput, optFns ...func(*Options)) (*ResetImageAttributeOutput, error) {
- if params == nil {
- params = &ResetImageAttributeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ResetImageAttribute", params, optFns, c.addOperationResetImageAttributeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ResetImageAttributeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for ResetImageAttribute.
-type ResetImageAttributeInput struct {
-
- // The attribute to reset (currently you can only reset the launch permission
- // attribute).
- //
- // This member is required.
- Attribute types.ResetImageAttributeName
-
- // The ID of the AMI.
- //
- // This member is required.
- ImageId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ResetImageAttributeOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationResetImageAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpResetImageAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpResetImageAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ResetImageAttribute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpResetImageAttributeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opResetImageAttribute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opResetImageAttribute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ResetImageAttribute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetInstanceAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetInstanceAttribute.go
deleted file mode 100644
index dfbae0e39..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetInstanceAttribute.go
+++ /dev/null
@@ -1,178 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Resets an attribute of an instance to its default value. To reset the kernel or
-// ramdisk , the instance must be in a stopped state. To reset the sourceDestCheck
-// , the instance can be either running or stopped.
-//
-// The sourceDestCheck attribute controls whether source/destination checking is
-// enabled. The default value is true , which means checking is enabled. This value
-// must be false for a NAT instance to perform NAT. For more information, see [NAT instances] in
-// the Amazon VPC User Guide.
-//
-// [NAT instances]: https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html
-func (c *Client) ResetInstanceAttribute(ctx context.Context, params *ResetInstanceAttributeInput, optFns ...func(*Options)) (*ResetInstanceAttributeOutput, error) {
- if params == nil {
- params = &ResetInstanceAttributeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ResetInstanceAttribute", params, optFns, c.addOperationResetInstanceAttributeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ResetInstanceAttributeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ResetInstanceAttributeInput struct {
-
- // The attribute to reset.
- //
- // You can only reset the following attributes: kernel | ramdisk | sourceDestCheck .
- //
- // This member is required.
- Attribute types.InstanceAttributeName
-
- // The ID of the instance.
- //
- // This member is required.
- InstanceId *string
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ResetInstanceAttributeOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationResetInstanceAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpResetInstanceAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpResetInstanceAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ResetInstanceAttribute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpResetInstanceAttributeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opResetInstanceAttribute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opResetInstanceAttribute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ResetInstanceAttribute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetNetworkInterfaceAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetNetworkInterfaceAttribute.go
deleted file mode 100644
index 741d64102..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetNetworkInterfaceAttribute.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Resets a network interface attribute. You can specify only one attribute at a
-// time.
-func (c *Client) ResetNetworkInterfaceAttribute(ctx context.Context, params *ResetNetworkInterfaceAttributeInput, optFns ...func(*Options)) (*ResetNetworkInterfaceAttributeOutput, error) {
- if params == nil {
- params = &ResetNetworkInterfaceAttributeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ResetNetworkInterfaceAttribute", params, optFns, c.addOperationResetNetworkInterfaceAttributeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ResetNetworkInterfaceAttributeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for ResetNetworkInterfaceAttribute.
-type ResetNetworkInterfaceAttributeInput struct {
-
- // The ID of the network interface.
- //
- // This member is required.
- NetworkInterfaceId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The source/destination checking attribute. Resets the value to true .
- SourceDestCheck *string
-
- noSmithyDocumentSerde
-}
-
-type ResetNetworkInterfaceAttributeOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationResetNetworkInterfaceAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpResetNetworkInterfaceAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpResetNetworkInterfaceAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ResetNetworkInterfaceAttribute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpResetNetworkInterfaceAttributeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opResetNetworkInterfaceAttribute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opResetNetworkInterfaceAttribute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ResetNetworkInterfaceAttribute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetSnapshotAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetSnapshotAttribute.go
deleted file mode 100644
index b44d4b725..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetSnapshotAttribute.go
+++ /dev/null
@@ -1,173 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Resets permission settings for the specified snapshot.
-//
-// For more information about modifying snapshot permissions, see [Share a snapshot] in the Amazon
-// EBS User Guide.
-//
-// [Share a snapshot]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-modifying-snapshot-permissions.html
-func (c *Client) ResetSnapshotAttribute(ctx context.Context, params *ResetSnapshotAttributeInput, optFns ...func(*Options)) (*ResetSnapshotAttributeOutput, error) {
- if params == nil {
- params = &ResetSnapshotAttributeInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "ResetSnapshotAttribute", params, optFns, c.addOperationResetSnapshotAttributeMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*ResetSnapshotAttributeOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type ResetSnapshotAttributeInput struct {
-
- // The attribute to reset. Currently, only the attribute for permission to create
- // volumes can be reset.
- //
- // This member is required.
- Attribute types.SnapshotAttributeName
-
- // The ID of the snapshot.
- //
- // This member is required.
- SnapshotId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type ResetSnapshotAttributeOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationResetSnapshotAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpResetSnapshotAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpResetSnapshotAttribute{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "ResetSnapshotAttribute"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpResetSnapshotAttributeValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opResetSnapshotAttribute(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opResetSnapshotAttribute(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "ResetSnapshotAttribute",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreAddressToClassic.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreAddressToClassic.go
deleted file mode 100644
index afdf13c84..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreAddressToClassic.go
+++ /dev/null
@@ -1,174 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// This action is deprecated.
-//
-// Restores an Elastic IP address that was previously moved to the EC2-VPC
-// platform back to the EC2-Classic platform. You cannot move an Elastic IP address
-// that was originally allocated for use in EC2-VPC. The Elastic IP address must
-// not be associated with an instance or network interface.
-func (c *Client) RestoreAddressToClassic(ctx context.Context, params *RestoreAddressToClassicInput, optFns ...func(*Options)) (*RestoreAddressToClassicOutput, error) {
- if params == nil {
- params = &RestoreAddressToClassicInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "RestoreAddressToClassic", params, optFns, c.addOperationRestoreAddressToClassicMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*RestoreAddressToClassicOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type RestoreAddressToClassicInput struct {
-
- // The Elastic IP address.
- //
- // This member is required.
- PublicIp *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type RestoreAddressToClassicOutput struct {
-
- // The Elastic IP address.
- PublicIp *string
-
- // The move status for the IP address.
- Status types.Status
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationRestoreAddressToClassicMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpRestoreAddressToClassic{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpRestoreAddressToClassic{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "RestoreAddressToClassic"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpRestoreAddressToClassicValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRestoreAddressToClassic(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opRestoreAddressToClassic(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "RestoreAddressToClassic",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreImageFromRecycleBin.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreImageFromRecycleBin.go
deleted file mode 100644
index b590b0143..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreImageFromRecycleBin.go
+++ /dev/null
@@ -1,168 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Restores an AMI from the Recycle Bin. For more information, see [Recover deleted Amazon EBS snapshots and EBS-back AMIs with Recycle Bin] in the Amazon
-// EC2 User Guide.
-//
-// [Recover deleted Amazon EBS snapshots and EBS-back AMIs with Recycle Bin]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html
-func (c *Client) RestoreImageFromRecycleBin(ctx context.Context, params *RestoreImageFromRecycleBinInput, optFns ...func(*Options)) (*RestoreImageFromRecycleBinOutput, error) {
- if params == nil {
- params = &RestoreImageFromRecycleBinInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "RestoreImageFromRecycleBin", params, optFns, c.addOperationRestoreImageFromRecycleBinMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*RestoreImageFromRecycleBinOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type RestoreImageFromRecycleBinInput struct {
-
- // The ID of the AMI to restore.
- //
- // This member is required.
- ImageId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type RestoreImageFromRecycleBinOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationRestoreImageFromRecycleBinMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpRestoreImageFromRecycleBin{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpRestoreImageFromRecycleBin{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "RestoreImageFromRecycleBin"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpRestoreImageFromRecycleBinValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRestoreImageFromRecycleBin(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opRestoreImageFromRecycleBin(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "RestoreImageFromRecycleBin",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreManagedPrefixListVersion.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreManagedPrefixListVersion.go
deleted file mode 100644
index e712cecd9..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreManagedPrefixListVersion.go
+++ /dev/null
@@ -1,177 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Restores the entries from a previous version of a managed prefix list to a new
-// version of the prefix list.
-func (c *Client) RestoreManagedPrefixListVersion(ctx context.Context, params *RestoreManagedPrefixListVersionInput, optFns ...func(*Options)) (*RestoreManagedPrefixListVersionOutput, error) {
- if params == nil {
- params = &RestoreManagedPrefixListVersionInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "RestoreManagedPrefixListVersion", params, optFns, c.addOperationRestoreManagedPrefixListVersionMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*RestoreManagedPrefixListVersionOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type RestoreManagedPrefixListVersionInput struct {
-
- // The current version number for the prefix list.
- //
- // This member is required.
- CurrentVersion *int64
-
- // The ID of the prefix list.
- //
- // This member is required.
- PrefixListId *string
-
- // The version to restore.
- //
- // This member is required.
- PreviousVersion *int64
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type RestoreManagedPrefixListVersionOutput struct {
-
- // Information about the prefix list.
- PrefixList *types.ManagedPrefixList
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationRestoreManagedPrefixListVersionMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpRestoreManagedPrefixListVersion{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpRestoreManagedPrefixListVersion{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "RestoreManagedPrefixListVersion"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpRestoreManagedPrefixListVersionValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRestoreManagedPrefixListVersion(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opRestoreManagedPrefixListVersion(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "RestoreManagedPrefixListVersion",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreSnapshotFromRecycleBin.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreSnapshotFromRecycleBin.go
deleted file mode 100644
index 5e5e0e28c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreSnapshotFromRecycleBin.go
+++ /dev/null
@@ -1,203 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Restores a snapshot from the Recycle Bin. For more information, see [Restore snapshots from the Recycle Bin] in the
-// Amazon EBS User Guide.
-//
-// [Restore snapshots from the Recycle Bin]: https://docs.aws.amazon.com/ebs/latest/userguide/recycle-bin-working-with-snaps.html#recycle-bin-restore-snaps
-func (c *Client) RestoreSnapshotFromRecycleBin(ctx context.Context, params *RestoreSnapshotFromRecycleBinInput, optFns ...func(*Options)) (*RestoreSnapshotFromRecycleBinOutput, error) {
- if params == nil {
- params = &RestoreSnapshotFromRecycleBinInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "RestoreSnapshotFromRecycleBin", params, optFns, c.addOperationRestoreSnapshotFromRecycleBinMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*RestoreSnapshotFromRecycleBinOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type RestoreSnapshotFromRecycleBinInput struct {
-
- // The ID of the snapshot to restore.
- //
- // This member is required.
- SnapshotId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type RestoreSnapshotFromRecycleBinOutput struct {
-
- // The description for the snapshot.
- Description *string
-
- // Indicates whether the snapshot is encrypted.
- Encrypted *bool
-
- // The ARN of the Outpost on which the snapshot is stored. For more information,
- // see [Amazon EBS local snapshots on Outposts]in the Amazon EBS User Guide.
- //
- // [Amazon EBS local snapshots on Outposts]: https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html
- OutpostArn *string
-
- // The ID of the Amazon Web Services account that owns the EBS snapshot.
- OwnerId *string
-
- // The progress of the snapshot, as a percentage.
- Progress *string
-
- // The ID of the snapshot.
- SnapshotId *string
-
- // Reserved for future use.
- SseType types.SSEType
-
- // The time stamp when the snapshot was initiated.
- StartTime *time.Time
-
- // The state of the snapshot.
- State types.SnapshotState
-
- // The ID of the volume that was used to create the snapshot.
- VolumeId *string
-
- // The size of the volume, in GiB.
- VolumeSize *int32
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationRestoreSnapshotFromRecycleBinMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpRestoreSnapshotFromRecycleBin{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpRestoreSnapshotFromRecycleBin{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "RestoreSnapshotFromRecycleBin"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpRestoreSnapshotFromRecycleBinValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRestoreSnapshotFromRecycleBin(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opRestoreSnapshotFromRecycleBin(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "RestoreSnapshotFromRecycleBin",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreSnapshotTier.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreSnapshotTier.go
deleted file mode 100644
index 159304187..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreSnapshotTier.go
+++ /dev/null
@@ -1,197 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
- "time"
-)
-
-// Restores an archived Amazon EBS snapshot for use temporarily or permanently, or
-// modifies the restore period or restore type for a snapshot that was previously
-// temporarily restored.
-//
-// For more information see [Restore an archived snapshot] and [modify the restore period or restore type for a temporarily restored snapshot] in the Amazon EBS User Guide.
-//
-// [Restore an archived snapshot]: https://docs.aws.amazon.com/ebs/latest/userguide/working-with-snapshot-archiving.html#restore-archived-snapshot
-// [modify the restore period or restore type for a temporarily restored snapshot]: https://docs.aws.amazon.com/ebs/latest/userguide/working-with-snapshot-archiving.html#modify-temp-restore-period
-func (c *Client) RestoreSnapshotTier(ctx context.Context, params *RestoreSnapshotTierInput, optFns ...func(*Options)) (*RestoreSnapshotTierOutput, error) {
- if params == nil {
- params = &RestoreSnapshotTierInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "RestoreSnapshotTier", params, optFns, c.addOperationRestoreSnapshotTierMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*RestoreSnapshotTierOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type RestoreSnapshotTierInput struct {
-
- // The ID of the snapshot to restore.
- //
- // This member is required.
- SnapshotId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Indicates whether to permanently restore an archived snapshot. To permanently
- // restore an archived snapshot, specify true and omit the
- // RestoreSnapshotTierRequest$TemporaryRestoreDays parameter.
- PermanentRestore *bool
-
- // Specifies the number of days for which to temporarily restore an archived
- // snapshot. Required for temporary restores only. The snapshot will be
- // automatically re-archived after this period.
- //
- // To temporarily restore an archived snapshot, specify the number of days and
- // omit the PermanentRestore parameter or set it to false .
- TemporaryRestoreDays *int32
-
- noSmithyDocumentSerde
-}
-
-type RestoreSnapshotTierOutput struct {
-
- // Indicates whether the snapshot is permanently restored. true indicates a
- // permanent restore. false indicates a temporary restore.
- IsPermanentRestore *bool
-
- // For temporary restores only. The number of days for which the archived snapshot
- // is temporarily restored.
- RestoreDuration *int32
-
- // The date and time when the snapshot restore process started.
- RestoreStartTime *time.Time
-
- // The ID of the snapshot.
- SnapshotId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationRestoreSnapshotTierMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpRestoreSnapshotTier{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpRestoreSnapshotTier{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "RestoreSnapshotTier"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpRestoreSnapshotTierValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRestoreSnapshotTier(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opRestoreSnapshotTier(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "RestoreSnapshotTier",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeClientVpnIngress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeClientVpnIngress.go
deleted file mode 100644
index 7a287609a..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeClientVpnIngress.go
+++ /dev/null
@@ -1,182 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Removes an ingress authorization rule from a Client VPN endpoint.
-func (c *Client) RevokeClientVpnIngress(ctx context.Context, params *RevokeClientVpnIngressInput, optFns ...func(*Options)) (*RevokeClientVpnIngressOutput, error) {
- if params == nil {
- params = &RevokeClientVpnIngressInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "RevokeClientVpnIngress", params, optFns, c.addOperationRevokeClientVpnIngressMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*RevokeClientVpnIngressOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type RevokeClientVpnIngressInput struct {
-
- // The ID of the Client VPN endpoint with which the authorization rule is
- // associated.
- //
- // This member is required.
- ClientVpnEndpointId *string
-
- // The IPv4 address range, in CIDR notation, of the network for which access is
- // being removed.
- //
- // This member is required.
- TargetNetworkCidr *string
-
- // The ID of the Active Directory group for which to revoke access.
- AccessGroupId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Indicates whether access should be revoked for all groups for a single
- // TargetNetworkCidr that earlier authorized ingress for all groups using
- // AuthorizeAllGroups . This does not impact other authorization rules that allowed
- // ingress to the same TargetNetworkCidr with a specific AccessGroupId .
- RevokeAllGroups *bool
-
- noSmithyDocumentSerde
-}
-
-type RevokeClientVpnIngressOutput struct {
-
- // The current state of the authorization rule.
- Status *types.ClientVpnAuthorizationRuleStatus
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationRevokeClientVpnIngressMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpRevokeClientVpnIngress{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpRevokeClientVpnIngress{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "RevokeClientVpnIngress"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpRevokeClientVpnIngressValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRevokeClientVpnIngress(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opRevokeClientVpnIngress(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "RevokeClientVpnIngress",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeSecurityGroupEgress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeSecurityGroupEgress.go
deleted file mode 100644
index 4b95eae30..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeSecurityGroupEgress.go
+++ /dev/null
@@ -1,221 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Removes the specified outbound (egress) rules from the specified security group.
-//
-// You can specify rules using either rule IDs or security group rule properties.
-// If you use rule properties, the values that you specify (for example, ports)
-// must match the existing rule's values exactly. Each rule has a protocol, from
-// and to ports, and destination (CIDR range, security group, or prefix list). For
-// the TCP and UDP protocols, you must also specify the destination port or range
-// of ports. For the ICMP protocol, you must also specify the ICMP type and code.
-// If the security group rule has a description, you do not need to specify the
-// description to revoke the rule.
-//
-// For a default VPC, if the values you specify do not match the existing rule's
-// values, no error is returned, and the output describes the security group rules
-// that were not revoked.
-//
-// Amazon Web Services recommends that you describe the security group to verify
-// that the rules were removed.
-//
-// Rule changes are propagated to instances within the security group as quickly
-// as possible. However, a small delay might occur.
-func (c *Client) RevokeSecurityGroupEgress(ctx context.Context, params *RevokeSecurityGroupEgressInput, optFns ...func(*Options)) (*RevokeSecurityGroupEgressOutput, error) {
- if params == nil {
- params = &RevokeSecurityGroupEgressInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "RevokeSecurityGroupEgress", params, optFns, c.addOperationRevokeSecurityGroupEgressMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*RevokeSecurityGroupEgressOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type RevokeSecurityGroupEgressInput struct {
-
- // The ID of the security group.
- //
- // This member is required.
- GroupId *string
-
- // Not supported. Use a set of IP permissions to specify the CIDR.
- CidrIp *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Not supported. Use a set of IP permissions to specify the port.
- FromPort *int32
-
- // The sets of IP permissions. You can't specify a destination security group and
- // a CIDR IP address range in the same set of permissions.
- IpPermissions []types.IpPermission
-
- // Not supported. Use a set of IP permissions to specify the protocol name or
- // number.
- IpProtocol *string
-
- // The IDs of the security group rules.
- SecurityGroupRuleIds []string
-
- // Not supported. Use a set of IP permissions to specify a destination security
- // group.
- SourceSecurityGroupName *string
-
- // Not supported. Use a set of IP permissions to specify a destination security
- // group.
- SourceSecurityGroupOwnerId *string
-
- // Not supported. Use a set of IP permissions to specify the port.
- ToPort *int32
-
- noSmithyDocumentSerde
-}
-
-type RevokeSecurityGroupEgressOutput struct {
-
- // Returns true if the request succeeds; otherwise, returns an error.
- Return *bool
-
- // Details about the revoked security group rules.
- RevokedSecurityGroupRules []types.RevokedSecurityGroupRule
-
- // The outbound rules that were unknown to the service. In some cases,
- // unknownIpPermissionSet might be in a different format from the request
- // parameter.
- UnknownIpPermissions []types.IpPermission
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationRevokeSecurityGroupEgressMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpRevokeSecurityGroupEgress{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpRevokeSecurityGroupEgress{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "RevokeSecurityGroupEgress"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpRevokeSecurityGroupEgressValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRevokeSecurityGroupEgress(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opRevokeSecurityGroupEgress(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "RevokeSecurityGroupEgress",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeSecurityGroupIngress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeSecurityGroupIngress.go
deleted file mode 100644
index 0d29a58a2..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeSecurityGroupIngress.go
+++ /dev/null
@@ -1,232 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Removes the specified inbound (ingress) rules from a security group.
-//
-// You can specify rules using either rule IDs or security group rule properties.
-// If you use rule properties, the values that you specify (for example, ports)
-// must match the existing rule's values exactly. Each rule has a protocol, from
-// and to ports, and source (CIDR range, security group, or prefix list). For the
-// TCP and UDP protocols, you must also specify the destination port or range of
-// ports. For the ICMP protocol, you must also specify the ICMP type and code. If
-// the security group rule has a description, you do not need to specify the
-// description to revoke the rule.
-//
-// For a default VPC, if the values you specify do not match the existing rule's
-// values, no error is returned, and the output describes the security group rules
-// that were not revoked.
-//
-// For a non-default VPC, if the values you specify do not match the existing
-// rule's values, an InvalidPermission.NotFound client error is returned, and no
-// rules are revoked.
-//
-// Amazon Web Services recommends that you describe the security group to verify
-// that the rules were removed.
-//
-// Rule changes are propagated to instances within the security group as quickly
-// as possible. However, a small delay might occur.
-func (c *Client) RevokeSecurityGroupIngress(ctx context.Context, params *RevokeSecurityGroupIngressInput, optFns ...func(*Options)) (*RevokeSecurityGroupIngressOutput, error) {
- if params == nil {
- params = &RevokeSecurityGroupIngressInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "RevokeSecurityGroupIngress", params, optFns, c.addOperationRevokeSecurityGroupIngressMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*RevokeSecurityGroupIngressOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type RevokeSecurityGroupIngressInput struct {
-
- // The CIDR IP address range. You can't specify this parameter when specifying a
- // source security group.
- CidrIp *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // If the protocol is TCP or UDP, this is the start of the port range. If the
- // protocol is ICMP, this is the ICMP type or -1 (all ICMP types).
- FromPort *int32
-
- // The ID of the security group.
- GroupId *string
-
- // [Default VPC] The name of the security group. You must specify either the
- // security group ID or the security group name in the request. For security groups
- // in a nondefault VPC, you must specify the security group ID.
- GroupName *string
-
- // The sets of IP permissions. You can't specify a source security group and a
- // CIDR IP address range in the same set of permissions.
- IpPermissions []types.IpPermission
-
- // The IP protocol name ( tcp , udp , icmp ) or number (see [Protocol Numbers]). Use -1 to specify
- // all.
- //
- // [Protocol Numbers]: http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
- IpProtocol *string
-
- // The IDs of the security group rules.
- SecurityGroupRuleIds []string
-
- // [Default VPC] The name of the source security group. You can't specify this
- // parameter in combination with the following parameters: the CIDR IP address
- // range, the start of the port range, the IP protocol, and the end of the port
- // range. The source security group must be in the same VPC. To revoke a specific
- // rule for an IP protocol and port range, use a set of IP permissions instead.
- SourceSecurityGroupName *string
-
- // Not supported.
- SourceSecurityGroupOwnerId *string
-
- // If the protocol is TCP or UDP, this is the end of the port range. If the
- // protocol is ICMP, this is the ICMP code or -1 (all ICMP codes).
- ToPort *int32
-
- noSmithyDocumentSerde
-}
-
-type RevokeSecurityGroupIngressOutput struct {
-
- // Returns true if the request succeeds; otherwise, returns an error.
- Return *bool
-
- // Details about the revoked security group rules.
- RevokedSecurityGroupRules []types.RevokedSecurityGroupRule
-
- // The inbound rules that were unknown to the service. In some cases,
- // unknownIpPermissionSet might be in a different format from the request
- // parameter.
- UnknownIpPermissions []types.IpPermission
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationRevokeSecurityGroupIngressMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpRevokeSecurityGroupIngress{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpRevokeSecurityGroupIngress{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "RevokeSecurityGroupIngress"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRevokeSecurityGroupIngress(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opRevokeSecurityGroupIngress(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "RevokeSecurityGroupIngress",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RunInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RunInstances.go
deleted file mode 100644
index fb3d480ae..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RunInstances.go
+++ /dev/null
@@ -1,566 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Launches the specified number of instances using an AMI for which you have
-// permissions.
-//
-// You can specify a number of options, or leave the default options. The
-// following rules apply:
-//
-// - If you don't specify a subnet ID, we choose a default subnet from your
-// default VPC for you. If you don't have a default VPC, you must specify a subnet
-// ID in the request.
-//
-// - All instances have a network interface with a primary private IPv4 address.
-// If you don't specify this address, we choose one from the IPv4 range of your
-// subnet.
-//
-// - Not all instance types support IPv6 addresses. For more information, see [Instance types].
-//
-// - If you don't specify a security group ID, we use the default security group
-// for the VPC. For more information, see [Security groups].
-//
-// - If any of the AMIs have a product code attached for which the user has not
-// subscribed, the request fails.
-//
-// You can create a [launch template], which is a resource that contains the parameters to launch
-// an instance. When you launch an instance using RunInstances, you can specify the launch
-// template instead of specifying the launch parameters.
-//
-// To ensure faster instance launches, break up large requests into smaller
-// batches. For example, create five separate launch requests for 100 instances
-// each instead of one launch request for 500 instances.
-//
-// RunInstances is subject to both request rate limiting and resource rate
-// limiting. For more information, see [Request throttling].
-//
-// An instance is ready for you to use when it's in the running state. You can
-// check the state of your instance using DescribeInstances. You can tag instances and EBS volumes
-// during launch, after launch, or both. For more information, see CreateTagsand [Tagging your Amazon EC2 resources].
-//
-// Linux instances have access to the public key of the key pair at boot. You can
-// use this key to provide secure access to the instance. Amazon EC2 public images
-// use this feature to provide secure access without passwords. For more
-// information, see [Key pairs].
-//
-// For troubleshooting, see [What to do if an instance immediately terminates], and [Troubleshooting connecting to your instance].
-//
-// [Key pairs]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html
-// [What to do if an instance immediately terminates]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_InstanceStraightToTerminated.html
-// [Tagging your Amazon EC2 resources]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html
-// [launch template]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html
-// [Security groups]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html
-// [Request throttling]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-throttling.html
-// [Instance types]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html
-// [Troubleshooting connecting to your instance]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html
-func (c *Client) RunInstances(ctx context.Context, params *RunInstancesInput, optFns ...func(*Options)) (*RunInstancesOutput, error) {
- if params == nil {
- params = &RunInstancesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "RunInstances", params, optFns, c.addOperationRunInstancesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*RunInstancesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type RunInstancesInput struct {
-
- // The maximum number of instances to launch. If you specify a value that is more
- // capacity than Amazon EC2 can launch in the target Availability Zone, Amazon EC2
- // launches the largest possible number of instances above the specified minimum
- // count.
- //
- // Constraints: Between 1 and the quota for the specified instance type for your
- // account for this Region. For more information, see [Amazon EC2 instance type quotas].
- //
- // [Amazon EC2 instance type quotas]: https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-instance-quotas.html
- //
- // This member is required.
- MaxCount *int32
-
- // The minimum number of instances to launch. If you specify a value that is more
- // capacity than Amazon EC2 can provide in the target Availability Zone, Amazon EC2
- // does not launch any instances.
- //
- // Constraints: Between 1 and the quota for the specified instance type for your
- // account for this Region. For more information, see [Amazon EC2 instance type quotas].
- //
- // [Amazon EC2 instance type quotas]: https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-instance-quotas.html
- //
- // This member is required.
- MinCount *int32
-
- // Reserved.
- AdditionalInfo *string
-
- // The block device mapping, which defines the EBS volumes and instance store
- // volumes to attach to the instance at launch. For more information, see [Block device mappings]in the
- // Amazon EC2 User Guide.
- //
- // [Block device mappings]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html
- BlockDeviceMappings []types.BlockDeviceMapping
-
- // Information about the Capacity Reservation targeting option. If you do not
- // specify this parameter, the instance's Capacity Reservation preference defaults
- // to open , which enables it to run in any open Capacity Reservation that has
- // matching attributes (instance type, platform, Availability Zone, and tenancy).
- CapacityReservationSpecification *types.CapacityReservationSpecification
-
- // Unique, case-sensitive identifier you provide to ensure the idempotency of the
- // request. If you do not specify a client token, a randomly generated token is
- // used for the request to ensure idempotency.
- //
- // For more information, see [Ensuring Idempotency].
- //
- // Constraints: Maximum 64 ASCII characters
- //
- // [Ensuring Idempotency]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
- ClientToken *string
-
- // The CPU options for the instance. For more information, see [Optimize CPU options] in the Amazon EC2
- // User Guide.
- //
- // [Optimize CPU options]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html
- CpuOptions *types.CpuOptionsRequest
-
- // The credit option for CPU usage of the burstable performance instance. Valid
- // values are standard and unlimited . To change this attribute after launch, use [ModifyInstanceCreditSpecification]
- // . For more information, see [Burstable performance instances]in the Amazon EC2 User Guide.
- //
- // Default: standard (T2 instances) or unlimited (T3/T3a/T4g instances)
- //
- // For T3 instances with host tenancy, only standard is supported.
- //
- // [ModifyInstanceCreditSpecification]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyInstanceCreditSpecification.html
- // [Burstable performance instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html
- CreditSpecification *types.CreditSpecificationRequest
-
- // Indicates whether an instance is enabled for stop protection. For more
- // information, see [Stop protection].
- //
- // [Stop protection]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection
- DisableApiStop *bool
-
- // Indicates whether termination protection is enabled for the instance. The
- // default is false , which means that you can terminate the instance using the
- // Amazon EC2 console, command line tools, or API. You can enable termination
- // protection when you launch an instance, while the instance is running, or while
- // the instance is stopped.
- DisableApiTermination *bool
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Indicates whether the instance is optimized for Amazon EBS I/O. This
- // optimization provides dedicated throughput to Amazon EBS and an optimized
- // configuration stack to provide optimal Amazon EBS I/O performance. This
- // optimization isn't available with all instance types. Additional usage charges
- // apply when using an EBS-optimized instance.
- //
- // Default: false
- EbsOptimized *bool
-
- // An elastic GPU to associate with the instance.
- //
- // Amazon Elastic Graphics reached end of life on January 8, 2024.
- ElasticGpuSpecification []types.ElasticGpuSpecification
-
- // An elastic inference accelerator to associate with the instance.
- //
- // Amazon Elastic Inference is no longer available.
- ElasticInferenceAccelerators []types.ElasticInferenceAccelerator
-
- // If you’re launching an instance into a dual-stack or IPv6-only subnet, you can
- // enable assigning a primary IPv6 address. A primary IPv6 address is an IPv6 GUA
- // address associated with an ENI that you have enabled to use a primary IPv6
- // address. Use this option if an instance relies on its IPv6 address not changing.
- // When you launch the instance, Amazon Web Services will automatically assign an
- // IPv6 address associated with the ENI attached to your instance to be the primary
- // IPv6 address. Once you enable an IPv6 GUA address to be a primary IPv6, you
- // cannot disable it. When you enable an IPv6 GUA address to be a primary IPv6, the
- // first IPv6 GUA will be made the primary IPv6 address until the instance is
- // terminated or the network interface is detached. If you have multiple IPv6
- // addresses associated with an ENI attached to your instance and you enable a
- // primary IPv6 address, the first IPv6 GUA address associated with the ENI becomes
- // the primary IPv6 address.
- EnablePrimaryIpv6 *bool
-
- // Indicates whether the instance is enabled for Amazon Web Services Nitro
- // Enclaves. For more information, see [What is Amazon Web Services Nitro Enclaves?]in the Amazon Web Services Nitro Enclaves
- // User Guide.
- //
- // You can't enable Amazon Web Services Nitro Enclaves and hibernation on the same
- // instance.
- //
- // [What is Amazon Web Services Nitro Enclaves?]: https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html
- EnclaveOptions *types.EnclaveOptionsRequest
-
- // Indicates whether an instance is enabled for hibernation. This parameter is
- // valid only if the instance meets the [hibernation prerequisites]. For more information, see [Hibernate your Amazon EC2 instance] in the Amazon
- // EC2 User Guide.
- //
- // You can't enable hibernation and Amazon Web Services Nitro Enclaves on the same
- // instance.
- //
- // [Hibernate your Amazon EC2 instance]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html
- // [hibernation prerequisites]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html
- HibernationOptions *types.HibernationOptionsRequest
-
- // The name or Amazon Resource Name (ARN) of an IAM instance profile.
- IamInstanceProfile *types.IamInstanceProfileSpecification
-
- // The ID of the AMI. An AMI ID is required to launch an instance and must be
- // specified here or in a launch template.
- ImageId *string
-
- // Indicates whether an instance stops or terminates when you initiate shutdown
- // from the instance (using the operating system command for system shutdown).
- //
- // Default: stop
- InstanceInitiatedShutdownBehavior types.ShutdownBehavior
-
- // The market (purchasing) option for the instances.
- //
- // For RunInstances, persistent Spot Instance requests are only supported when
- // InstanceInterruptionBehavior is set to either hibernate or stop .
- InstanceMarketOptions *types.InstanceMarketOptionsRequest
-
- // The instance type. For more information, see [Amazon EC2 instance types] in the Amazon EC2 User Guide.
- //
- // [Amazon EC2 instance types]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html
- InstanceType types.InstanceType
-
- // The number of IPv6 addresses to associate with the primary network interface.
- // Amazon EC2 chooses the IPv6 addresses from the range of your subnet. You cannot
- // specify this option and the option to assign specific IPv6 addresses in the same
- // request. You can specify this option if you've specified a minimum number of
- // instances to launch.
- //
- // You cannot specify this option and the network interfaces option in the same
- // request.
- Ipv6AddressCount *int32
-
- // The IPv6 addresses from the range of the subnet to associate with the primary
- // network interface. You cannot specify this option and the option to assign a
- // number of IPv6 addresses in the same request. You cannot specify this option if
- // you've specified a minimum number of instances to launch.
- //
- // You cannot specify this option and the network interfaces option in the same
- // request.
- Ipv6Addresses []types.InstanceIpv6Address
-
- // The ID of the kernel.
- //
- // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more
- // information, see [PV-GRUB]in the Amazon EC2 User Guide.
- //
- // [PV-GRUB]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html
- KernelId *string
-
- // The name of the key pair. You can create a key pair using [CreateKeyPair] or [ImportKeyPair].
- //
- // If you do not specify a key pair, you can't connect to the instance unless you
- // choose an AMI that is configured to allow users another way to log in.
- //
- // [ImportKeyPair]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportKeyPair.html
- // [CreateKeyPair]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateKeyPair.html
- KeyName *string
-
- // The launch template. Any additional parameters that you specify for the new
- // instance overwrite the corresponding parameters included in the launch template.
- LaunchTemplate *types.LaunchTemplateSpecification
-
- // The license configurations.
- LicenseSpecifications []types.LicenseConfigurationRequest
-
- // The maintenance and recovery options for the instance.
- MaintenanceOptions *types.InstanceMaintenanceOptionsRequest
-
- // The metadata options for the instance. For more information, see [Instance metadata and user data].
- //
- // [Instance metadata and user data]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
- MetadataOptions *types.InstanceMetadataOptionsRequest
-
- // Specifies whether detailed monitoring is enabled for the instance.
- Monitoring *types.RunInstancesMonitoringEnabled
-
- // The network interfaces to associate with the instance.
- NetworkInterfaces []types.InstanceNetworkInterfaceSpecification
-
- // Contains settings for the network performance options for the instance.
- NetworkPerformanceOptions *types.InstanceNetworkPerformanceOptionsRequest
-
- // Reserved for internal use.
- Operator *types.OperatorRequest
-
- // The placement for the instance.
- Placement *types.Placement
-
- // The options for the instance hostname. The default values are inherited from
- // the subnet. Applies only if creating a network interface, not attaching an
- // existing one.
- PrivateDnsNameOptions *types.PrivateDnsNameOptionsRequest
-
- // The primary IPv4 address. You must specify a value from the IPv4 address range
- // of the subnet.
- //
- // Only one private IP address can be designated as primary. You can't specify
- // this option if you've specified the option to designate a private IP address as
- // the primary IP address in a network interface specification. You cannot specify
- // this option if you're launching more than one instance in the request.
- //
- // You cannot specify this option and the network interfaces option in the same
- // request.
- PrivateIpAddress *string
-
- // The ID of the RAM disk to select. Some kernels require additional drivers at
- // launch. Check the kernel requirements for information about whether you need to
- // specify a RAM disk. To find kernel requirements, go to the Amazon Web Services
- // Resource Center and search for the kernel ID.
- //
- // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more
- // information, see [PV-GRUB]in the Amazon EC2 User Guide.
- //
- // [PV-GRUB]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html
- RamdiskId *string
-
- // The IDs of the security groups. You can create a security group using [CreateSecurityGroup].
- //
- // If you specify a network interface, you must specify any security groups as
- // part of the network interface instead of using this parameter.
- //
- // [CreateSecurityGroup]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateSecurityGroup.html
- SecurityGroupIds []string
-
- // [Default VPC] The names of the security groups.
- //
- // If you specify a network interface, you must specify any security groups as
- // part of the network interface instead of using this parameter.
- //
- // Default: Amazon EC2 uses the default security group.
- SecurityGroups []string
-
- // The ID of the subnet to launch the instance into.
- //
- // If you specify a network interface, you must specify any subnets as part of the
- // network interface instead of using this parameter.
- SubnetId *string
-
- // The tags to apply to the resources that are created during instance launch.
- //
- // You can specify tags for the following resources only:
- //
- // - Instances
- //
- // - Volumes
- //
- // - Spot Instance requests
- //
- // - Network interfaces
- //
- // To tag a resource after it has been created, see [CreateTags].
- //
- // [CreateTags]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html
- TagSpecifications []types.TagSpecification
-
- // The user data to make available to the instance. User data must be
- // base64-encoded. Depending on the tool or SDK that you're using, the
- // base64-encoding might be performed for you. For more information, see [Work with instance user data].
- //
- // [Work with instance user data]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-add-user-data.html
- UserData *string
-
- noSmithyDocumentSerde
-}
-
-// Describes a launch request for one or more instances, and includes owner,
-// requester, and security group information that applies to all instances in the
-// launch request.
-type RunInstancesOutput struct {
-
- // Not supported.
- Groups []types.GroupIdentifier
-
- // The instances.
- Instances []types.Instance
-
- // The ID of the Amazon Web Services account that owns the reservation.
- OwnerId *string
-
- // The ID of the requester that launched the instances on your behalf (for
- // example, Amazon Web Services Management Console or Auto Scaling).
- RequesterId *string
-
- // The ID of the reservation.
- ReservationId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationRunInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpRunInstances{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpRunInstances{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "RunInstances"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opRunInstancesMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpRunInstancesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRunInstances(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpRunInstances struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpRunInstances) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpRunInstances) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*RunInstancesInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *RunInstancesInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opRunInstancesMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpRunInstances{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opRunInstances(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "RunInstances",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RunScheduledInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RunScheduledInstances.go
deleted file mode 100644
index 115a5ea02..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RunScheduledInstances.go
+++ /dev/null
@@ -1,229 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Launches the specified Scheduled Instances.
-//
-// Before you can launch a Scheduled Instance, you must purchase it and obtain an
-// identifier using PurchaseScheduledInstances.
-//
-// You must launch a Scheduled Instance during its scheduled time period. You
-// can't stop or reboot a Scheduled Instance, but you can terminate it as needed.
-// If you terminate a Scheduled Instance before the current scheduled time period
-// ends, you can launch it again after a few minutes.
-func (c *Client) RunScheduledInstances(ctx context.Context, params *RunScheduledInstancesInput, optFns ...func(*Options)) (*RunScheduledInstancesOutput, error) {
- if params == nil {
- params = &RunScheduledInstancesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "RunScheduledInstances", params, optFns, c.addOperationRunScheduledInstancesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*RunScheduledInstancesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for RunScheduledInstances.
-type RunScheduledInstancesInput struct {
-
- // The launch specification. You must match the instance type, Availability Zone,
- // network, and platform of the schedule that you purchased.
- //
- // This member is required.
- LaunchSpecification *types.ScheduledInstancesLaunchSpecification
-
- // The Scheduled Instance ID.
- //
- // This member is required.
- ScheduledInstanceId *string
-
- // Unique, case-sensitive identifier that ensures the idempotency of the request.
- // For more information, see [Ensuring Idempotency].
- //
- // [Ensuring Idempotency]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
- ClientToken *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The number of instances.
- //
- // Default: 1
- InstanceCount *int32
-
- noSmithyDocumentSerde
-}
-
-// Contains the output of RunScheduledInstances.
-type RunScheduledInstancesOutput struct {
-
- // The IDs of the newly launched instances.
- InstanceIdSet []string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationRunScheduledInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpRunScheduledInstances{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpRunScheduledInstances{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "RunScheduledInstances"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opRunScheduledInstancesMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpRunScheduledInstancesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRunScheduledInstances(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpRunScheduledInstances struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpRunScheduledInstances) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpRunScheduledInstances) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*RunScheduledInstancesInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *RunScheduledInstancesInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opRunScheduledInstancesMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpRunScheduledInstances{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opRunScheduledInstances(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "RunScheduledInstances",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchLocalGatewayRoutes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchLocalGatewayRoutes.go
deleted file mode 100644
index ce524019c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchLocalGatewayRoutes.go
+++ /dev/null
@@ -1,295 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Searches for routes in the specified local gateway route table.
-func (c *Client) SearchLocalGatewayRoutes(ctx context.Context, params *SearchLocalGatewayRoutesInput, optFns ...func(*Options)) (*SearchLocalGatewayRoutesOutput, error) {
- if params == nil {
- params = &SearchLocalGatewayRoutesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "SearchLocalGatewayRoutes", params, optFns, c.addOperationSearchLocalGatewayRoutesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*SearchLocalGatewayRoutesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type SearchLocalGatewayRoutesInput struct {
-
- // The ID of the local gateway route table.
- //
- // This member is required.
- LocalGatewayRouteTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters.
- //
- // - prefix-list-id - The ID of the prefix list.
- //
- // - route-search.exact-match - The exact match of the specified filter.
- //
- // - route-search.longest-prefix-match - The longest prefix that matches the
- // route.
- //
- // - route-search.subnet-of-match - The routes with a subnet that match the
- // specified CIDR filter.
- //
- // - route-search.supernet-of-match - The routes with a CIDR that encompass the
- // CIDR filter. For example, if you have 10.0.1.0/29 and 10.0.1.0/31 routes in your
- // route table and you specify supernet-of-match as 10.0.1.0/30, then the result
- // returns 10.0.1.0/29.
- //
- // - state - The state of the route.
- //
- // - type - The route type.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type SearchLocalGatewayRoutesOutput struct {
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Information about the routes.
- Routes []types.LocalGatewayRoute
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationSearchLocalGatewayRoutesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpSearchLocalGatewayRoutes{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpSearchLocalGatewayRoutes{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "SearchLocalGatewayRoutes"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpSearchLocalGatewayRoutesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opSearchLocalGatewayRoutes(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// SearchLocalGatewayRoutesPaginatorOptions is the paginator options for
-// SearchLocalGatewayRoutes
-type SearchLocalGatewayRoutesPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// SearchLocalGatewayRoutesPaginator is a paginator for SearchLocalGatewayRoutes
-type SearchLocalGatewayRoutesPaginator struct {
- options SearchLocalGatewayRoutesPaginatorOptions
- client SearchLocalGatewayRoutesAPIClient
- params *SearchLocalGatewayRoutesInput
- nextToken *string
- firstPage bool
-}
-
-// NewSearchLocalGatewayRoutesPaginator returns a new
-// SearchLocalGatewayRoutesPaginator
-func NewSearchLocalGatewayRoutesPaginator(client SearchLocalGatewayRoutesAPIClient, params *SearchLocalGatewayRoutesInput, optFns ...func(*SearchLocalGatewayRoutesPaginatorOptions)) *SearchLocalGatewayRoutesPaginator {
- if params == nil {
- params = &SearchLocalGatewayRoutesInput{}
- }
-
- options := SearchLocalGatewayRoutesPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &SearchLocalGatewayRoutesPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *SearchLocalGatewayRoutesPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next SearchLocalGatewayRoutes page.
-func (p *SearchLocalGatewayRoutesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*SearchLocalGatewayRoutesOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.SearchLocalGatewayRoutes(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// SearchLocalGatewayRoutesAPIClient is a client that implements the
-// SearchLocalGatewayRoutes operation.
-type SearchLocalGatewayRoutesAPIClient interface {
- SearchLocalGatewayRoutes(context.Context, *SearchLocalGatewayRoutesInput, ...func(*Options)) (*SearchLocalGatewayRoutesOutput, error)
-}
-
-var _ SearchLocalGatewayRoutesAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opSearchLocalGatewayRoutes(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "SearchLocalGatewayRoutes",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchTransitGatewayMulticastGroups.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchTransitGatewayMulticastGroups.go
deleted file mode 100644
index bbb9cdef5..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchTransitGatewayMulticastGroups.go
+++ /dev/null
@@ -1,299 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Searches one or more transit gateway multicast groups and returns the group
-// membership information.
-func (c *Client) SearchTransitGatewayMulticastGroups(ctx context.Context, params *SearchTransitGatewayMulticastGroupsInput, optFns ...func(*Options)) (*SearchTransitGatewayMulticastGroupsOutput, error) {
- if params == nil {
- params = &SearchTransitGatewayMulticastGroupsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "SearchTransitGatewayMulticastGroups", params, optFns, c.addOperationSearchTransitGatewayMulticastGroupsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*SearchTransitGatewayMulticastGroupsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type SearchTransitGatewayMulticastGroupsInput struct {
-
- // The ID of the transit gateway multicast domain.
- //
- // This member is required.
- TransitGatewayMulticastDomainId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // One or more filters. The possible values are:
- //
- // - group-ip-address - The IP address of the transit gateway multicast group.
- //
- // - is-group-member - The resource is a group member. Valid values are true |
- // false .
- //
- // - is-group-source - The resource is a group source. Valid values are true |
- // false .
- //
- // - member-type - The member type. Valid values are igmp | static .
- //
- // - resource-id - The ID of the resource.
- //
- // - resource-type - The type of resource. Valid values are vpc | vpn |
- // direct-connect-gateway | tgw-peering .
- //
- // - source-type - The source type. Valid values are igmp | static .
- //
- // - subnet-id - The ID of the subnet.
- //
- // - transit-gateway-attachment-id - The id of the transit gateway attachment.
- Filters []types.Filter
-
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int32
-
- // The token for the next page of results.
- NextToken *string
-
- noSmithyDocumentSerde
-}
-
-type SearchTransitGatewayMulticastGroupsOutput struct {
-
- // Information about the transit gateway multicast group.
- MulticastGroups []types.TransitGatewayMulticastGroup
-
- // The token to use to retrieve the next page of results. This value is null when
- // there are no more results to return.
- NextToken *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationSearchTransitGatewayMulticastGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpSearchTransitGatewayMulticastGroups{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "SearchTransitGatewayMulticastGroups"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpSearchTransitGatewayMulticastGroupsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opSearchTransitGatewayMulticastGroups(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-// SearchTransitGatewayMulticastGroupsPaginatorOptions is the paginator options
-// for SearchTransitGatewayMulticastGroups
-type SearchTransitGatewayMulticastGroupsPaginatorOptions struct {
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- Limit int32
-
- // Set to true if pagination should stop if the service returns a pagination token
- // that matches the most recent token provided to the service.
- StopOnDuplicateToken bool
-}
-
-// SearchTransitGatewayMulticastGroupsPaginator is a paginator for
-// SearchTransitGatewayMulticastGroups
-type SearchTransitGatewayMulticastGroupsPaginator struct {
- options SearchTransitGatewayMulticastGroupsPaginatorOptions
- client SearchTransitGatewayMulticastGroupsAPIClient
- params *SearchTransitGatewayMulticastGroupsInput
- nextToken *string
- firstPage bool
-}
-
-// NewSearchTransitGatewayMulticastGroupsPaginator returns a new
-// SearchTransitGatewayMulticastGroupsPaginator
-func NewSearchTransitGatewayMulticastGroupsPaginator(client SearchTransitGatewayMulticastGroupsAPIClient, params *SearchTransitGatewayMulticastGroupsInput, optFns ...func(*SearchTransitGatewayMulticastGroupsPaginatorOptions)) *SearchTransitGatewayMulticastGroupsPaginator {
- if params == nil {
- params = &SearchTransitGatewayMulticastGroupsInput{}
- }
-
- options := SearchTransitGatewayMulticastGroupsPaginatorOptions{}
- if params.MaxResults != nil {
- options.Limit = *params.MaxResults
- }
-
- for _, fn := range optFns {
- fn(&options)
- }
-
- return &SearchTransitGatewayMulticastGroupsPaginator{
- options: options,
- client: client,
- params: params,
- firstPage: true,
- nextToken: params.NextToken,
- }
-}
-
-// HasMorePages returns a boolean indicating whether more pages are available
-func (p *SearchTransitGatewayMulticastGroupsPaginator) HasMorePages() bool {
- return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
-}
-
-// NextPage retrieves the next SearchTransitGatewayMulticastGroups page.
-func (p *SearchTransitGatewayMulticastGroupsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*SearchTransitGatewayMulticastGroupsOutput, error) {
- if !p.HasMorePages() {
- return nil, fmt.Errorf("no more pages available")
- }
-
- params := *p.params
- params.NextToken = p.nextToken
-
- var limit *int32
- if p.options.Limit > 0 {
- limit = &p.options.Limit
- }
- params.MaxResults = limit
-
- optFns = append([]func(*Options){
- addIsPaginatorUserAgent,
- }, optFns...)
- result, err := p.client.SearchTransitGatewayMulticastGroups(ctx, ¶ms, optFns...)
- if err != nil {
- return nil, err
- }
- p.firstPage = false
-
- prevToken := p.nextToken
- p.nextToken = result.NextToken
-
- if p.options.StopOnDuplicateToken &&
- prevToken != nil &&
- p.nextToken != nil &&
- *prevToken == *p.nextToken {
- p.nextToken = nil
- }
-
- return result, nil
-}
-
-// SearchTransitGatewayMulticastGroupsAPIClient is a client that implements the
-// SearchTransitGatewayMulticastGroups operation.
-type SearchTransitGatewayMulticastGroupsAPIClient interface {
- SearchTransitGatewayMulticastGroups(context.Context, *SearchTransitGatewayMulticastGroupsInput, ...func(*Options)) (*SearchTransitGatewayMulticastGroupsOutput, error)
-}
-
-var _ SearchTransitGatewayMulticastGroupsAPIClient = (*Client)(nil)
-
-func newServiceMetadataMiddleware_opSearchTransitGatewayMulticastGroups(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "SearchTransitGatewayMulticastGroups",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchTransitGatewayRoutes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchTransitGatewayRoutes.go
deleted file mode 100644
index d74b9d0eb..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchTransitGatewayRoutes.go
+++ /dev/null
@@ -1,205 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Searches for routes in the specified transit gateway route table.
-func (c *Client) SearchTransitGatewayRoutes(ctx context.Context, params *SearchTransitGatewayRoutesInput, optFns ...func(*Options)) (*SearchTransitGatewayRoutesOutput, error) {
- if params == nil {
- params = &SearchTransitGatewayRoutesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "SearchTransitGatewayRoutes", params, optFns, c.addOperationSearchTransitGatewayRoutesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*SearchTransitGatewayRoutesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type SearchTransitGatewayRoutesInput struct {
-
- // One or more filters. The possible values are:
- //
- // - attachment.transit-gateway-attachment-id - The id of the transit gateway
- // attachment.
- //
- // - attachment.resource-id - The resource id of the transit gateway attachment.
- //
- // - attachment.resource-type - The attachment resource type. Valid values are
- // vpc | vpn | direct-connect-gateway | peering | connect .
- //
- // - prefix-list-id - The ID of the prefix list.
- //
- // - route-search.exact-match - The exact match of the specified filter.
- //
- // - route-search.longest-prefix-match - The longest prefix that matches the
- // route.
- //
- // - route-search.subnet-of-match - The routes with a subnet that match the
- // specified CIDR filter.
- //
- // - route-search.supernet-of-match - The routes with a CIDR that encompass the
- // CIDR filter. For example, if you have 10.0.1.0/29 and 10.0.1.0/31 routes in your
- // route table and you specify supernet-of-match as 10.0.1.0/30, then the result
- // returns 10.0.1.0/29.
- //
- // - state - The state of the route ( active | blackhole ).
- //
- // - type - The type of route ( propagated | static ).
- //
- // This member is required.
- Filters []types.Filter
-
- // The ID of the transit gateway route table.
- //
- // This member is required.
- TransitGatewayRouteTableId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The maximum number of routes to return. If a value is not provided, the default
- // is 1000.
- MaxResults *int32
-
- noSmithyDocumentSerde
-}
-
-type SearchTransitGatewayRoutesOutput struct {
-
- // Indicates whether there are additional routes available.
- AdditionalRoutesAvailable *bool
-
- // Information about the routes.
- Routes []types.TransitGatewayRoute
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationSearchTransitGatewayRoutesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpSearchTransitGatewayRoutes{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpSearchTransitGatewayRoutes{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "SearchTransitGatewayRoutes"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpSearchTransitGatewayRoutesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opSearchTransitGatewayRoutes(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opSearchTransitGatewayRoutes(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "SearchTransitGatewayRoutes",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SendDiagnosticInterrupt.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SendDiagnosticInterrupt.go
deleted file mode 100644
index 564dea3bd..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SendDiagnosticInterrupt.go
+++ /dev/null
@@ -1,178 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Sends a diagnostic interrupt to the specified Amazon EC2 instance to trigger a
-// kernel panic (on Linux instances), or a blue screen/stop error (on Windows
-// instances). For instances based on Intel and AMD processors, the interrupt is
-// received as a non-maskable interrupt (NMI).
-//
-// In general, the operating system crashes and reboots when a kernel panic or
-// stop error is triggered. The operating system can also be configured to perform
-// diagnostic tasks, such as generating a memory dump file, loading a secondary
-// kernel, or obtaining a call trace.
-//
-// Before sending a diagnostic interrupt to your instance, ensure that its
-// operating system is configured to perform the required diagnostic tasks.
-//
-// For more information about configuring your operating system to generate a
-// crash dump when a kernel panic or stop error occurs, see [Send a diagnostic interrupt (for advanced users)]in the Amazon EC2 User
-// Guide.
-//
-// [Send a diagnostic interrupt (for advanced users)]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/diagnostic-interrupt.html
-func (c *Client) SendDiagnosticInterrupt(ctx context.Context, params *SendDiagnosticInterruptInput, optFns ...func(*Options)) (*SendDiagnosticInterruptOutput, error) {
- if params == nil {
- params = &SendDiagnosticInterruptInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "SendDiagnosticInterrupt", params, optFns, c.addOperationSendDiagnosticInterruptMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*SendDiagnosticInterruptOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type SendDiagnosticInterruptInput struct {
-
- // The ID of the instance.
- //
- // This member is required.
- InstanceId *string
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type SendDiagnosticInterruptOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationSendDiagnosticInterruptMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpSendDiagnosticInterrupt{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpSendDiagnosticInterrupt{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "SendDiagnosticInterrupt"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpSendDiagnosticInterruptValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opSendDiagnosticInterrupt(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opSendDiagnosticInterrupt(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "SendDiagnosticInterrupt",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartDeclarativePoliciesReport.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartDeclarativePoliciesReport.go
deleted file mode 100644
index 8a9a9618d..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartDeclarativePoliciesReport.go
+++ /dev/null
@@ -1,226 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Generates an account status report. The report is generated asynchronously, and
-// can take several hours to complete.
-//
-// The report provides the current status of all attributes supported by
-// declarative policies for the accounts within the specified scope. The scope is
-// determined by the specified TargetId , which can represent an individual
-// account, or all the accounts that fall under the specified organizational unit
-// (OU) or root (the entire Amazon Web Services Organization).
-//
-// The report is saved to your specified S3 bucket, using the following path
-// structure (with the italicized placeholders representing your specific values):
-//
-// s3://amzn-s3-demo-bucket/your-optional-s3-prefix/ec2_targetId_reportId_yyyyMMddThhmmZ.csv
-//
-// Prerequisites for generating a report
-//
-// - The StartDeclarativePoliciesReport API can only be called by the management
-// account or delegated administrators for the organization.
-//
-// - An S3 bucket must be available before generating the report (you can create
-// a new one or use an existing one), it must be in the same Region where the
-// report generation request is made, and it must have an appropriate bucket
-// policy. For a sample S3 policy, see Sample Amazon S3 policy under [Examples].
-//
-// - Trusted access must be enabled for the service for which the declarative
-// policy will enforce a baseline configuration. If you use the Amazon Web Services
-// Organizations console, this is done automatically when you enable declarative
-// policies. The API uses the following service principal to identify the EC2
-// service: ec2.amazonaws.com . For more information on how to enable trusted
-// access with the Amazon Web Services CLI and Amazon Web Services SDKs, see [Using Organizations with other Amazon Web Services services]in
-// the Amazon Web Services Organizations User Guide.
-//
-// - Only one report per organization can be generated at a time. Attempting to
-// generate a report while another is in progress will result in an error.
-//
-// For more information, including the required IAM permissions to run this API,
-// see [Generating the account status report for declarative policies]in the Amazon Web Services Organizations User Guide.
-//
-// [Generating the account status report for declarative policies]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative_status-report.html
-// [Using Organizations with other Amazon Web Services services]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
-// [Examples]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_StartDeclarativePoliciesReport.html#API_StartDeclarativePoliciesReport_Examples
-func (c *Client) StartDeclarativePoliciesReport(ctx context.Context, params *StartDeclarativePoliciesReportInput, optFns ...func(*Options)) (*StartDeclarativePoliciesReportOutput, error) {
- if params == nil {
- params = &StartDeclarativePoliciesReportInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "StartDeclarativePoliciesReport", params, optFns, c.addOperationStartDeclarativePoliciesReportMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*StartDeclarativePoliciesReportOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type StartDeclarativePoliciesReportInput struct {
-
- // The name of the S3 bucket where the report will be saved. The bucket must be in
- // the same Region where the report generation request is made.
- //
- // This member is required.
- S3Bucket *string
-
- // The root ID, organizational unit ID, or account ID.
- //
- // Format:
- //
- // - For root: r-ab12
- //
- // - For OU: ou-ab12-cdef1234
- //
- // - For account: 123456789012
- //
- // This member is required.
- TargetId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The prefix for your S3 object.
- S3Prefix *string
-
- // The tags to apply.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type StartDeclarativePoliciesReportOutput struct {
-
- // The ID of the report.
- ReportId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationStartDeclarativePoliciesReportMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpStartDeclarativePoliciesReport{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpStartDeclarativePoliciesReport{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "StartDeclarativePoliciesReport"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpStartDeclarativePoliciesReportValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartDeclarativePoliciesReport(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opStartDeclarativePoliciesReport(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "StartDeclarativePoliciesReport",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartInstances.go
deleted file mode 100644
index c1b55560c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartInstances.go
+++ /dev/null
@@ -1,192 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Starts an Amazon EBS-backed instance that you've previously stopped.
-//
-// Instances that use Amazon EBS volumes as their root devices can be quickly
-// stopped and started. When an instance is stopped, the compute resources are
-// released and you are not billed for instance usage. However, your root partition
-// Amazon EBS volume remains and continues to persist your data, and you are
-// charged for Amazon EBS volume usage. You can restart your instance at any time.
-// Every time you start your instance, Amazon EC2 charges a one-minute minimum for
-// instance usage, and thereafter charges per second for instance usage.
-//
-// Before stopping an instance, make sure it is in a state from which it can be
-// restarted. Stopping an instance does not preserve data stored in RAM.
-//
-// Performing this operation on an instance that uses an instance store as its
-// root device returns an error.
-//
-// If you attempt to start a T3 instance with host tenancy and the unlimited CPU
-// credit option, the request fails. The unlimited CPU credit option is not
-// supported on Dedicated Hosts. Before you start the instance, either change its
-// CPU credit option to standard , or change its tenancy to default or dedicated .
-//
-// For more information, see [Stop and start Amazon EC2 instances] in the Amazon EC2 User Guide.
-//
-// [Stop and start Amazon EC2 instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html
-func (c *Client) StartInstances(ctx context.Context, params *StartInstancesInput, optFns ...func(*Options)) (*StartInstancesOutput, error) {
- if params == nil {
- params = &StartInstancesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "StartInstances", params, optFns, c.addOperationStartInstancesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*StartInstancesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type StartInstancesInput struct {
-
- // The IDs of the instances.
- //
- // This member is required.
- InstanceIds []string
-
- // Reserved.
- AdditionalInfo *string
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type StartInstancesOutput struct {
-
- // Information about the started instances.
- StartingInstances []types.InstanceStateChange
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationStartInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpStartInstances{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpStartInstances{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "StartInstances"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpStartInstancesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartInstances(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opStartInstances(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "StartInstances",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartNetworkInsightsAccessScopeAnalysis.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartNetworkInsightsAccessScopeAnalysis.go
deleted file mode 100644
index dab841f97..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartNetworkInsightsAccessScopeAnalysis.go
+++ /dev/null
@@ -1,213 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Starts analyzing the specified Network Access Scope.
-func (c *Client) StartNetworkInsightsAccessScopeAnalysis(ctx context.Context, params *StartNetworkInsightsAccessScopeAnalysisInput, optFns ...func(*Options)) (*StartNetworkInsightsAccessScopeAnalysisOutput, error) {
- if params == nil {
- params = &StartNetworkInsightsAccessScopeAnalysisInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "StartNetworkInsightsAccessScopeAnalysis", params, optFns, c.addOperationStartNetworkInsightsAccessScopeAnalysisMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*StartNetworkInsightsAccessScopeAnalysisOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type StartNetworkInsightsAccessScopeAnalysisInput struct {
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [How to ensure idempotency].
- //
- // [How to ensure idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- //
- // This member is required.
- ClientToken *string
-
- // The ID of the Network Access Scope.
- //
- // This member is required.
- NetworkInsightsAccessScopeId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The tags to apply.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type StartNetworkInsightsAccessScopeAnalysisOutput struct {
-
- // The Network Access Scope analysis.
- NetworkInsightsAccessScopeAnalysis *types.NetworkInsightsAccessScopeAnalysis
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationStartNetworkInsightsAccessScopeAnalysisMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpStartNetworkInsightsAccessScopeAnalysis{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpStartNetworkInsightsAccessScopeAnalysis{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "StartNetworkInsightsAccessScopeAnalysis"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opStartNetworkInsightsAccessScopeAnalysisMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpStartNetworkInsightsAccessScopeAnalysisValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartNetworkInsightsAccessScopeAnalysis(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpStartNetworkInsightsAccessScopeAnalysis struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpStartNetworkInsightsAccessScopeAnalysis) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpStartNetworkInsightsAccessScopeAnalysis) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*StartNetworkInsightsAccessScopeAnalysisInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *StartNetworkInsightsAccessScopeAnalysisInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opStartNetworkInsightsAccessScopeAnalysisMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpStartNetworkInsightsAccessScopeAnalysis{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opStartNetworkInsightsAccessScopeAnalysis(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "StartNetworkInsightsAccessScopeAnalysis",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartNetworkInsightsAnalysis.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartNetworkInsightsAnalysis.go
deleted file mode 100644
index 53918d51f..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartNetworkInsightsAnalysis.go
+++ /dev/null
@@ -1,223 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Starts analyzing the specified path. If the path is reachable, the operation
-// returns the shortest feasible path.
-func (c *Client) StartNetworkInsightsAnalysis(ctx context.Context, params *StartNetworkInsightsAnalysisInput, optFns ...func(*Options)) (*StartNetworkInsightsAnalysisOutput, error) {
- if params == nil {
- params = &StartNetworkInsightsAnalysisInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "StartNetworkInsightsAnalysis", params, optFns, c.addOperationStartNetworkInsightsAnalysisMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*StartNetworkInsightsAnalysisOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type StartNetworkInsightsAnalysisInput struct {
-
- // Unique, case-sensitive identifier that you provide to ensure the idempotency of
- // the request. For more information, see [How to ensure idempotency].
- //
- // [How to ensure idempotency]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
- //
- // This member is required.
- ClientToken *string
-
- // The ID of the path.
- //
- // This member is required.
- NetworkInsightsPathId *string
-
- // The member accounts that contain resources that the path can traverse.
- AdditionalAccounts []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The Amazon Resource Names (ARN) of the resources that the path must traverse.
- FilterInArns []string
-
- // The Amazon Resource Names (ARN) of the resources that the path will ignore.
- FilterOutArns []string
-
- // The tags to apply.
- TagSpecifications []types.TagSpecification
-
- noSmithyDocumentSerde
-}
-
-type StartNetworkInsightsAnalysisOutput struct {
-
- // Information about the network insights analysis.
- NetworkInsightsAnalysis *types.NetworkInsightsAnalysis
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationStartNetworkInsightsAnalysisMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpStartNetworkInsightsAnalysis{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpStartNetworkInsightsAnalysis{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "StartNetworkInsightsAnalysis"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addIdempotencyToken_opStartNetworkInsightsAnalysisMiddleware(stack, options); err != nil {
- return err
- }
- if err = addOpStartNetworkInsightsAnalysisValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartNetworkInsightsAnalysis(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-type idempotencyToken_initializeOpStartNetworkInsightsAnalysis struct {
- tokenProvider IdempotencyTokenProvider
-}
-
-func (*idempotencyToken_initializeOpStartNetworkInsightsAnalysis) ID() string {
- return "OperationIdempotencyTokenAutoFill"
-}
-
-func (m *idempotencyToken_initializeOpStartNetworkInsightsAnalysis) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
- out middleware.InitializeOutput, metadata middleware.Metadata, err error,
-) {
- if m.tokenProvider == nil {
- return next.HandleInitialize(ctx, in)
- }
-
- input, ok := in.Parameters.(*StartNetworkInsightsAnalysisInput)
- if !ok {
- return out, metadata, fmt.Errorf("expected middleware input to be of type *StartNetworkInsightsAnalysisInput ")
- }
-
- if input.ClientToken == nil {
- t, err := m.tokenProvider.GetIdempotencyToken()
- if err != nil {
- return out, metadata, err
- }
- input.ClientToken = &t
- }
- return next.HandleInitialize(ctx, in)
-}
-func addIdempotencyToken_opStartNetworkInsightsAnalysisMiddleware(stack *middleware.Stack, cfg Options) error {
- return stack.Initialize.Add(&idempotencyToken_initializeOpStartNetworkInsightsAnalysis{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
-}
-
-func newServiceMetadataMiddleware_opStartNetworkInsightsAnalysis(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "StartNetworkInsightsAnalysis",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartVpcEndpointServicePrivateDnsVerification.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartVpcEndpointServicePrivateDnsVerification.go
deleted file mode 100644
index 8ee0dff8b..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartVpcEndpointServicePrivateDnsVerification.go
+++ /dev/null
@@ -1,172 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Initiates the verification process to prove that the service provider owns the
-// private DNS name domain for the endpoint service.
-//
-// The service provider must successfully perform the verification before the
-// consumer can use the name to access the service.
-//
-// Before the service provider runs this command, they must add a record to the
-// DNS server.
-func (c *Client) StartVpcEndpointServicePrivateDnsVerification(ctx context.Context, params *StartVpcEndpointServicePrivateDnsVerificationInput, optFns ...func(*Options)) (*StartVpcEndpointServicePrivateDnsVerificationOutput, error) {
- if params == nil {
- params = &StartVpcEndpointServicePrivateDnsVerificationInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "StartVpcEndpointServicePrivateDnsVerification", params, optFns, c.addOperationStartVpcEndpointServicePrivateDnsVerificationMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*StartVpcEndpointServicePrivateDnsVerificationOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type StartVpcEndpointServicePrivateDnsVerificationInput struct {
-
- // The ID of the endpoint service.
- //
- // This member is required.
- ServiceId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type StartVpcEndpointServicePrivateDnsVerificationOutput struct {
-
- // Returns true if the request succeeds; otherwise, it returns an error.
- ReturnValue *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationStartVpcEndpointServicePrivateDnsVerificationMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpStartVpcEndpointServicePrivateDnsVerification{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "StartVpcEndpointServicePrivateDnsVerification"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpStartVpcEndpointServicePrivateDnsVerificationValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartVpcEndpointServicePrivateDnsVerification(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opStartVpcEndpointServicePrivateDnsVerification(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "StartVpcEndpointServicePrivateDnsVerification",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StopInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StopInstances.go
deleted file mode 100644
index 1aac0e22c..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StopInstances.go
+++ /dev/null
@@ -1,226 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Stops an Amazon EBS-backed instance. You can restart your instance at any time
-// using the [StartInstances]API. For more information, see [Stop and start Amazon EC2 instances] in the Amazon EC2 User Guide.
-//
-// When you stop an instance, we shut it down.
-//
-// You can use the Stop operation together with the Hibernate parameter to
-// hibernate an instance if the instance is [enabled for hibernation]and meets the [hibernation prerequisites]. Stopping an instance
-// doesn't preserve data stored in RAM, while hibernation does. If hibernation
-// fails, a normal shutdown occurs. For more information, see [Hibernate your Amazon EC2 instance]in the Amazon EC2
-// User Guide.
-//
-// If your instance appears stuck in the stopping state, there might be an issue
-// with the underlying host computer. You can use the Stop operation together with
-// the Force parameter to force stop your instance. For more information, see [Troubleshoot Amazon EC2 instance stop issues]in
-// the Amazon EC2 User Guide.
-//
-// Stopping and hibernating an instance differs from rebooting or terminating it.
-// For example, a stopped or hibernated instance retains its root volume and any
-// data volumes, unlike terminated instances where these volumes are automatically
-// deleted. For more information about the differences between stopping,
-// hibernating, rebooting, and terminating instances, see [Amazon EC2 instance state changes]in the Amazon EC2 User
-// Guide.
-//
-// We don't charge for instance usage or data transfer fees when an instance is
-// stopped. However, the root volume and any data volumes remain and continue to
-// persist your data, and you're charged for volume usage. Every time you start
-// your instance, Amazon EC2 charges a one-minute minimum for instance usage,
-// followed by per-second billing.
-//
-// You can't stop or hibernate instance store-backed instances.
-//
-// [Troubleshoot Amazon EC2 instance stop issues]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html
-// [Stop and start Amazon EC2 instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html
-// [Hibernate your Amazon EC2 instance]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html
-// [Amazon EC2 instance state changes]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html
-// [enabled for hibernation]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/enabling-hibernation.html
-// [StartInstances]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_StartInstances.html
-// [hibernation prerequisites]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html
-func (c *Client) StopInstances(ctx context.Context, params *StopInstancesInput, optFns ...func(*Options)) (*StopInstancesOutput, error) {
- if params == nil {
- params = &StopInstancesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "StopInstances", params, optFns, c.addOperationStopInstancesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*StopInstancesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type StopInstancesInput struct {
-
- // The IDs of the instances.
- //
- // This member is required.
- InstanceIds []string
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // Forces the instance to stop. The instance will first attempt a graceful
- // shutdown, which includes flushing file system caches and metadata. If the
- // graceful shutdown fails to complete within the timeout period, the instance
- // shuts down forcibly without flushing the file system caches and metadata.
- //
- // After using this option, you must perform file system check and repair
- // procedures. This option is not recommended for Windows instances. For more
- // information, see [Troubleshoot Amazon EC2 instance stop issues]in the Amazon EC2 User Guide.
- //
- // Default: false
- //
- // [Troubleshoot Amazon EC2 instance stop issues]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html
- Force *bool
-
- // Hibernates the instance if the instance was enabled for hibernation at launch.
- // If the instance cannot hibernate successfully, a normal shutdown occurs. For
- // more information, see [Hibernate your instance]in the Amazon EC2 User Guide.
- //
- // Default: false
- //
- // [Hibernate your instance]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html
- Hibernate *bool
-
- noSmithyDocumentSerde
-}
-
-type StopInstancesOutput struct {
-
- // Information about the stopped instances.
- StoppingInstances []types.InstanceStateChange
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationStopInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpStopInstances{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpStopInstances{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "StopInstances"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpStopInstancesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopInstances(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opStopInstances(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "StopInstances",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_TerminateClientVpnConnections.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_TerminateClientVpnConnections.go
deleted file mode 100644
index 02c9fc6c7..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_TerminateClientVpnConnections.go
+++ /dev/null
@@ -1,182 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Terminates active Client VPN endpoint connections. This action can be used to
-// terminate a specific client connection, or up to five connections established by
-// a specific user.
-func (c *Client) TerminateClientVpnConnections(ctx context.Context, params *TerminateClientVpnConnectionsInput, optFns ...func(*Options)) (*TerminateClientVpnConnectionsOutput, error) {
- if params == nil {
- params = &TerminateClientVpnConnectionsInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "TerminateClientVpnConnections", params, optFns, c.addOperationTerminateClientVpnConnectionsMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*TerminateClientVpnConnectionsOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type TerminateClientVpnConnectionsInput struct {
-
- // The ID of the Client VPN endpoint to which the client is connected.
- //
- // This member is required.
- ClientVpnEndpointId *string
-
- // The ID of the client connection to be terminated.
- ConnectionId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The name of the user who initiated the connection. Use this option to terminate
- // all active connections for the specified user. This option can only be used if
- // the user has established up to five connections.
- Username *string
-
- noSmithyDocumentSerde
-}
-
-type TerminateClientVpnConnectionsOutput struct {
-
- // The ID of the Client VPN endpoint.
- ClientVpnEndpointId *string
-
- // The current state of the client connections.
- ConnectionStatuses []types.TerminateConnectionStatus
-
- // The user who established the terminated client connections.
- Username *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationTerminateClientVpnConnectionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpTerminateClientVpnConnections{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpTerminateClientVpnConnections{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "TerminateClientVpnConnections"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpTerminateClientVpnConnectionsValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opTerminateClientVpnConnections(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opTerminateClientVpnConnections(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "TerminateClientVpnConnections",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_TerminateInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_TerminateInstances.go
deleted file mode 100644
index d95d6be95..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_TerminateInstances.go
+++ /dev/null
@@ -1,224 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Shuts down the specified instances. This operation is [idempotent]; if you terminate an
-// instance more than once, each call succeeds.
-//
-// If you specify multiple instances and the request fails (for example, because
-// of a single incorrect instance ID), none of the instances are terminated.
-//
-// If you terminate multiple instances across multiple Availability Zones, and one
-// or more of the specified instances are enabled for termination protection, the
-// request fails with the following results:
-//
-// - The specified instances that are in the same Availability Zone as the
-// protected instance are not terminated.
-//
-// - The specified instances that are in different Availability Zones, where no
-// other specified instances are protected, are successfully terminated.
-//
-// For example, say you have the following instances:
-//
-// - Instance A: us-east-1a ; Not protected
-//
-// - Instance B: us-east-1a ; Not protected
-//
-// - Instance C: us-east-1b ; Protected
-//
-// - Instance D: us-east-1b ; not protected
-//
-// If you attempt to terminate all of these instances in the same request, the
-// request reports failure with the following results:
-//
-// - Instance A and Instance B are successfully terminated because none of the
-// specified instances in us-east-1a are enabled for termination protection.
-//
-// - Instance C and Instance D fail to terminate because at least one of the
-// specified instances in us-east-1b (Instance C) is enabled for termination
-// protection.
-//
-// Terminated instances remain visible after termination (for approximately one
-// hour).
-//
-// By default, Amazon EC2 deletes all EBS volumes that were attached when the
-// instance launched. Volumes attached after instance launch continue running.
-//
-// You can stop, start, and terminate EBS-backed instances. You can only terminate
-// instance store-backed instances. What happens to an instance differs if you stop
-// or terminate it. For example, when you stop an instance, the root device and any
-// other devices attached to the instance persist. When you terminate an instance,
-// any attached EBS volumes with the DeleteOnTermination block device mapping
-// parameter set to true are automatically deleted. For more information about the
-// differences between stopping and terminating instances, see [Instance lifecycle]in the Amazon EC2
-// User Guide.
-//
-// For more information about troubleshooting, see [Troubleshooting terminating your instance] in the Amazon EC2 User Guide.
-//
-// [idempotent]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
-// [Instance lifecycle]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html
-// [Troubleshooting terminating your instance]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesShuttingDown.html
-func (c *Client) TerminateInstances(ctx context.Context, params *TerminateInstancesInput, optFns ...func(*Options)) (*TerminateInstancesOutput, error) {
- if params == nil {
- params = &TerminateInstancesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "TerminateInstances", params, optFns, c.addOperationTerminateInstancesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*TerminateInstancesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type TerminateInstancesInput struct {
-
- // The IDs of the instances.
- //
- // Constraints: Up to 1000 instance IDs. We recommend breaking up this request
- // into smaller batches.
- //
- // This member is required.
- InstanceIds []string
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type TerminateInstancesOutput struct {
-
- // Information about the terminated instances.
- TerminatingInstances []types.InstanceStateChange
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationTerminateInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpTerminateInstances{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpTerminateInstances{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "TerminateInstances"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpTerminateInstancesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opTerminateInstances(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opTerminateInstances(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "TerminateInstances",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnassignIpv6Addresses.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnassignIpv6Addresses.go
deleted file mode 100644
index 9391b4ea7..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnassignIpv6Addresses.go
+++ /dev/null
@@ -1,172 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Unassigns the specified IPv6 addresses or Prefix Delegation prefixes from a
-// network interface.
-func (c *Client) UnassignIpv6Addresses(ctx context.Context, params *UnassignIpv6AddressesInput, optFns ...func(*Options)) (*UnassignIpv6AddressesOutput, error) {
- if params == nil {
- params = &UnassignIpv6AddressesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "UnassignIpv6Addresses", params, optFns, c.addOperationUnassignIpv6AddressesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*UnassignIpv6AddressesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type UnassignIpv6AddressesInput struct {
-
- // The ID of the network interface.
- //
- // This member is required.
- NetworkInterfaceId *string
-
- // The IPv6 addresses to unassign from the network interface.
- Ipv6Addresses []string
-
- // The IPv6 prefixes to unassign from the network interface.
- Ipv6Prefixes []string
-
- noSmithyDocumentSerde
-}
-
-type UnassignIpv6AddressesOutput struct {
-
- // The ID of the network interface.
- NetworkInterfaceId *string
-
- // The IPv6 addresses that have been unassigned from the network interface.
- UnassignedIpv6Addresses []string
-
- // The IPv6 prefixes that have been unassigned from the network interface.
- UnassignedIpv6Prefixes []string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationUnassignIpv6AddressesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpUnassignIpv6Addresses{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpUnassignIpv6Addresses{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "UnassignIpv6Addresses"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpUnassignIpv6AddressesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUnassignIpv6Addresses(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opUnassignIpv6Addresses(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "UnassignIpv6Addresses",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnassignPrivateIpAddresses.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnassignPrivateIpAddresses.go
deleted file mode 100644
index 5e0947232..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnassignPrivateIpAddresses.go
+++ /dev/null
@@ -1,164 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Unassigns the specified secondary private IP addresses or IPv4 Prefix
-// Delegation prefixes from a network interface.
-func (c *Client) UnassignPrivateIpAddresses(ctx context.Context, params *UnassignPrivateIpAddressesInput, optFns ...func(*Options)) (*UnassignPrivateIpAddressesOutput, error) {
- if params == nil {
- params = &UnassignPrivateIpAddressesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "UnassignPrivateIpAddresses", params, optFns, c.addOperationUnassignPrivateIpAddressesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*UnassignPrivateIpAddressesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-// Contains the parameters for UnassignPrivateIpAddresses.
-type UnassignPrivateIpAddressesInput struct {
-
- // The ID of the network interface.
- //
- // This member is required.
- NetworkInterfaceId *string
-
- // The IPv4 prefixes to unassign from the network interface.
- Ipv4Prefixes []string
-
- // The secondary private IP addresses to unassign from the network interface. You
- // can specify this option multiple times to unassign more than one IP address.
- PrivateIpAddresses []string
-
- noSmithyDocumentSerde
-}
-
-type UnassignPrivateIpAddressesOutput struct {
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationUnassignPrivateIpAddressesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpUnassignPrivateIpAddresses{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpUnassignPrivateIpAddresses{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "UnassignPrivateIpAddresses"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpUnassignPrivateIpAddressesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUnassignPrivateIpAddresses(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opUnassignPrivateIpAddresses(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "UnassignPrivateIpAddresses",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnassignPrivateNatGatewayAddress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnassignPrivateNatGatewayAddress.go
deleted file mode 100644
index bda920aef..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnassignPrivateNatGatewayAddress.go
+++ /dev/null
@@ -1,192 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Unassigns secondary private IPv4 addresses from a private NAT gateway. You
-// cannot unassign your primary private IP. For more information, see [Edit secondary IP address associations]in the
-// Amazon VPC User Guide.
-//
-// While unassigning is in progress, you cannot assign/unassign additional IP
-// addresses while the connections are being drained. You are, however, allowed to
-// delete the NAT gateway.
-//
-// A private IP address will only be released at the end of
-// MaxDrainDurationSeconds. The private IP addresses stay associated and support
-// the existing connections, but do not support any new connections (new
-// connections are distributed across the remaining assigned private IP address).
-// After the existing connections drain out, the private IP addresses are released.
-//
-// [Edit secondary IP address associations]: https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-working-with.html#nat-gateway-edit-secondary
-func (c *Client) UnassignPrivateNatGatewayAddress(ctx context.Context, params *UnassignPrivateNatGatewayAddressInput, optFns ...func(*Options)) (*UnassignPrivateNatGatewayAddressOutput, error) {
- if params == nil {
- params = &UnassignPrivateNatGatewayAddressInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "UnassignPrivateNatGatewayAddress", params, optFns, c.addOperationUnassignPrivateNatGatewayAddressMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*UnassignPrivateNatGatewayAddressOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type UnassignPrivateNatGatewayAddressInput struct {
-
- // The ID of the NAT gateway.
- //
- // This member is required.
- NatGatewayId *string
-
- // The private IPv4 addresses you want to unassign.
- //
- // This member is required.
- PrivateIpAddresses []string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The maximum amount of time to wait (in seconds) before forcibly releasing the
- // IP addresses if connections are still in progress. Default value is 350 seconds.
- MaxDrainDurationSeconds *int32
-
- noSmithyDocumentSerde
-}
-
-type UnassignPrivateNatGatewayAddressOutput struct {
-
- // Information about the NAT gateway IP addresses.
- NatGatewayAddresses []types.NatGatewayAddress
-
- // The ID of the NAT gateway.
- NatGatewayId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationUnassignPrivateNatGatewayAddressMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpUnassignPrivateNatGatewayAddress{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpUnassignPrivateNatGatewayAddress{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "UnassignPrivateNatGatewayAddress"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpUnassignPrivateNatGatewayAddressValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUnassignPrivateNatGatewayAddress(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opUnassignPrivateNatGatewayAddress(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "UnassignPrivateNatGatewayAddress",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnlockSnapshot.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnlockSnapshot.go
deleted file mode 100644
index f012a89ca..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnlockSnapshot.go
+++ /dev/null
@@ -1,167 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Unlocks a snapshot that is locked in governance mode or that is locked in
-// compliance mode but still in the cooling-off period. You can't unlock a snapshot
-// that is locked in compliance mode after the cooling-off period has expired.
-func (c *Client) UnlockSnapshot(ctx context.Context, params *UnlockSnapshotInput, optFns ...func(*Options)) (*UnlockSnapshotOutput, error) {
- if params == nil {
- params = &UnlockSnapshotInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "UnlockSnapshot", params, optFns, c.addOperationUnlockSnapshotMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*UnlockSnapshotOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type UnlockSnapshotInput struct {
-
- // The ID of the snapshot to unlock.
- //
- // This member is required.
- SnapshotId *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type UnlockSnapshotOutput struct {
-
- // The ID of the snapshot.
- SnapshotId *string
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationUnlockSnapshotMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpUnlockSnapshot{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpUnlockSnapshot{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "UnlockSnapshot"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpUnlockSnapshotValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUnlockSnapshot(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opUnlockSnapshot(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "UnlockSnapshot",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnmonitorInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnmonitorInstances.go
deleted file mode 100644
index 35e27ca55..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnmonitorInstances.go
+++ /dev/null
@@ -1,169 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Disables detailed monitoring for a running instance. For more information, see [Monitoring your instances and volumes]
-// in the Amazon EC2 User Guide.
-//
-// [Monitoring your instances and volumes]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html
-func (c *Client) UnmonitorInstances(ctx context.Context, params *UnmonitorInstancesInput, optFns ...func(*Options)) (*UnmonitorInstancesOutput, error) {
- if params == nil {
- params = &UnmonitorInstancesInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "UnmonitorInstances", params, optFns, c.addOperationUnmonitorInstancesMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*UnmonitorInstancesOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type UnmonitorInstancesInput struct {
-
- // The IDs of the instances.
- //
- // This member is required.
- InstanceIds []string
-
- // Checks whether you have the required permissions for the operation, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type UnmonitorInstancesOutput struct {
-
- // The monitoring information.
- InstanceMonitorings []types.InstanceMonitoring
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationUnmonitorInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpUnmonitorInstances{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpUnmonitorInstances{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "UnmonitorInstances"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpUnmonitorInstancesValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUnmonitorInstances(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opUnmonitorInstances(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "UnmonitorInstances",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsEgress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsEgress.go
deleted file mode 100644
index 690480f66..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsEgress.go
+++ /dev/null
@@ -1,178 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Updates the description of an egress (outbound) security group rule. You can
-// replace an existing description, or add a description to a rule that did not
-// have one previously. You can remove a description for a security group rule by
-// omitting the description parameter in the request.
-func (c *Client) UpdateSecurityGroupRuleDescriptionsEgress(ctx context.Context, params *UpdateSecurityGroupRuleDescriptionsEgressInput, optFns ...func(*Options)) (*UpdateSecurityGroupRuleDescriptionsEgressOutput, error) {
- if params == nil {
- params = &UpdateSecurityGroupRuleDescriptionsEgressInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "UpdateSecurityGroupRuleDescriptionsEgress", params, optFns, c.addOperationUpdateSecurityGroupRuleDescriptionsEgressMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*UpdateSecurityGroupRuleDescriptionsEgressOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type UpdateSecurityGroupRuleDescriptionsEgressInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the security group. You must specify either the security group ID or
- // the security group name in the request. For security groups in a nondefault VPC,
- // you must specify the security group ID.
- GroupId *string
-
- // [Default VPC] The name of the security group. You must specify either the
- // security group ID or the security group name.
- GroupName *string
-
- // The IP permissions for the security group rule. You must specify either the IP
- // permissions or the description.
- IpPermissions []types.IpPermission
-
- // The description for the egress security group rules. You must specify either
- // the description or the IP permissions.
- SecurityGroupRuleDescriptions []types.SecurityGroupRuleDescription
-
- noSmithyDocumentSerde
-}
-
-type UpdateSecurityGroupRuleDescriptionsEgressOutput struct {
-
- // Returns true if the request succeeds; otherwise, returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationUpdateSecurityGroupRuleDescriptionsEgressMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpUpdateSecurityGroupRuleDescriptionsEgress{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpUpdateSecurityGroupRuleDescriptionsEgress{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateSecurityGroupRuleDescriptionsEgress"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateSecurityGroupRuleDescriptionsEgress(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opUpdateSecurityGroupRuleDescriptionsEgress(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "UpdateSecurityGroupRuleDescriptionsEgress",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsIngress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsIngress.go
deleted file mode 100644
index f2ee39e81..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsIngress.go
+++ /dev/null
@@ -1,179 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Updates the description of an ingress (inbound) security group rule. You can
-// replace an existing description, or add a description to a rule that did not
-// have one previously. You can remove a description for a security group rule by
-// omitting the description parameter in the request.
-func (c *Client) UpdateSecurityGroupRuleDescriptionsIngress(ctx context.Context, params *UpdateSecurityGroupRuleDescriptionsIngressInput, optFns ...func(*Options)) (*UpdateSecurityGroupRuleDescriptionsIngressOutput, error) {
- if params == nil {
- params = &UpdateSecurityGroupRuleDescriptionsIngressInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "UpdateSecurityGroupRuleDescriptionsIngress", params, optFns, c.addOperationUpdateSecurityGroupRuleDescriptionsIngressMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*UpdateSecurityGroupRuleDescriptionsIngressOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type UpdateSecurityGroupRuleDescriptionsIngressInput struct {
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- // The ID of the security group. You must specify either the security group ID or
- // the security group name in the request. For security groups in a nondefault VPC,
- // you must specify the security group ID.
- GroupId *string
-
- // [Default VPC] The name of the security group. You must specify either the
- // security group ID or the security group name. For security groups in a
- // nondefault VPC, you must specify the security group ID.
- GroupName *string
-
- // The IP permissions for the security group rule. You must specify either IP
- // permissions or a description.
- IpPermissions []types.IpPermission
-
- // The description for the ingress security group rules. You must specify either a
- // description or IP permissions.
- SecurityGroupRuleDescriptions []types.SecurityGroupRuleDescription
-
- noSmithyDocumentSerde
-}
-
-type UpdateSecurityGroupRuleDescriptionsIngressOutput struct {
-
- // Returns true if the request succeeds; otherwise, returns an error.
- Return *bool
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationUpdateSecurityGroupRuleDescriptionsIngressMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpUpdateSecurityGroupRuleDescriptionsIngress{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpUpdateSecurityGroupRuleDescriptionsIngress{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateSecurityGroupRuleDescriptionsIngress"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateSecurityGroupRuleDescriptionsIngress(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opUpdateSecurityGroupRuleDescriptionsIngress(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "UpdateSecurityGroupRuleDescriptionsIngress",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_WithdrawByoipCidr.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_WithdrawByoipCidr.go
deleted file mode 100644
index abb6d6536..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_WithdrawByoipCidr.go
+++ /dev/null
@@ -1,172 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/service/ec2/types"
- "github.com/aws/smithy-go/middleware"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-// Stops advertising an address range that is provisioned as an address pool.
-//
-// You can perform this operation at most once every 10 seconds, even if you
-// specify different address ranges each time.
-//
-// It can take a few minutes before traffic to the specified addresses stops
-// routing to Amazon Web Services because of BGP propagation delays.
-func (c *Client) WithdrawByoipCidr(ctx context.Context, params *WithdrawByoipCidrInput, optFns ...func(*Options)) (*WithdrawByoipCidrOutput, error) {
- if params == nil {
- params = &WithdrawByoipCidrInput{}
- }
-
- result, metadata, err := c.invokeOperation(ctx, "WithdrawByoipCidr", params, optFns, c.addOperationWithdrawByoipCidrMiddlewares)
- if err != nil {
- return nil, err
- }
-
- out := result.(*WithdrawByoipCidrOutput)
- out.ResultMetadata = metadata
- return out, nil
-}
-
-type WithdrawByoipCidrInput struct {
-
- // The address range, in CIDR notation.
- //
- // This member is required.
- Cidr *string
-
- // Checks whether you have the required permissions for the action, without
- // actually making the request, and provides an error response. If you have the
- // required permissions, the error response is DryRunOperation . Otherwise, it is
- // UnauthorizedOperation .
- DryRun *bool
-
- noSmithyDocumentSerde
-}
-
-type WithdrawByoipCidrOutput struct {
-
- // Information about the address pool.
- ByoipCidr *types.ByoipCidr
-
- // Metadata pertaining to the operation's result.
- ResultMetadata middleware.Metadata
-
- noSmithyDocumentSerde
-}
-
-func (c *Client) addOperationWithdrawByoipCidrMiddlewares(stack *middleware.Stack, options Options) (err error) {
- if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
- return err
- }
- err = stack.Serialize.Add(&awsEc2query_serializeOpWithdrawByoipCidr{}, middleware.After)
- if err != nil {
- return err
- }
- err = stack.Deserialize.Add(&awsEc2query_deserializeOpWithdrawByoipCidr{}, middleware.After)
- if err != nil {
- return err
- }
- if err := addProtocolFinalizerMiddlewares(stack, options, "WithdrawByoipCidr"); err != nil {
- return fmt.Errorf("add protocol finalizers: %v", err)
- }
-
- if err = addlegacyEndpointContextSetter(stack, options); err != nil {
- return err
- }
- if err = addSetLoggerMiddleware(stack, options); err != nil {
- return err
- }
- if err = addClientRequestID(stack); err != nil {
- return err
- }
- if err = addComputeContentLength(stack); err != nil {
- return err
- }
- if err = addResolveEndpointMiddleware(stack, options); err != nil {
- return err
- }
- if err = addComputePayloadSHA256(stack); err != nil {
- return err
- }
- if err = addRetry(stack, options); err != nil {
- return err
- }
- if err = addRawResponseToMetadata(stack); err != nil {
- return err
- }
- if err = addRecordResponseTiming(stack); err != nil {
- return err
- }
- if err = addSpanRetryLoop(stack, options); err != nil {
- return err
- }
- if err = addClientUserAgent(stack, options); err != nil {
- return err
- }
- if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
- return err
- }
- if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
- return err
- }
- if err = addTimeOffsetBuild(stack, c); err != nil {
- return err
- }
- if err = addUserAgentRetryMode(stack, options); err != nil {
- return err
- }
- if err = addCredentialSource(stack, options); err != nil {
- return err
- }
- if err = addOpWithdrawByoipCidrValidationMiddleware(stack); err != nil {
- return err
- }
- if err = stack.Initialize.Add(newServiceMetadataMiddleware_opWithdrawByoipCidr(options.Region), middleware.Before); err != nil {
- return err
- }
- if err = addRecursionDetection(stack); err != nil {
- return err
- }
- if err = addRequestIDRetrieverMiddleware(stack); err != nil {
- return err
- }
- if err = addResponseErrorMiddleware(stack); err != nil {
- return err
- }
- if err = addRequestResponseLogging(stack, options); err != nil {
- return err
- }
- if err = addDisableHTTPSMiddleware(stack, options); err != nil {
- return err
- }
- if err = addSpanInitializeStart(stack); err != nil {
- return err
- }
- if err = addSpanInitializeEnd(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestStart(stack); err != nil {
- return err
- }
- if err = addSpanBuildRequestEnd(stack); err != nil {
- return err
- }
- return nil
-}
-
-func newServiceMetadataMiddleware_opWithdrawByoipCidr(region string) *awsmiddleware.RegisterServiceMetadata {
- return &awsmiddleware.RegisterServiceMetadata{
- Region: region,
- ServiceID: ServiceID,
- OperationName: "WithdrawByoipCidr",
- }
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/auth.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/auth.go
deleted file mode 100644
index 1fe418e02..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/auth.go
+++ /dev/null
@@ -1,313 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "context"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- smithy "github.com/aws/smithy-go"
- smithyauth "github.com/aws/smithy-go/auth"
- "github.com/aws/smithy-go/metrics"
- "github.com/aws/smithy-go/middleware"
- "github.com/aws/smithy-go/tracing"
- smithyhttp "github.com/aws/smithy-go/transport/http"
-)
-
-func bindAuthParamsRegion(_ interface{}, params *AuthResolverParameters, _ interface{}, options Options) {
- params.Region = options.Region
-}
-
-type setLegacyContextSigningOptionsMiddleware struct {
-}
-
-func (*setLegacyContextSigningOptionsMiddleware) ID() string {
- return "setLegacyContextSigningOptions"
-}
-
-func (m *setLegacyContextSigningOptionsMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
- out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
-) {
- rscheme := getResolvedAuthScheme(ctx)
- schemeID := rscheme.Scheme.SchemeID()
-
- if sn := awsmiddleware.GetSigningName(ctx); sn != "" {
- if schemeID == "aws.auth#sigv4" {
- smithyhttp.SetSigV4SigningName(&rscheme.SignerProperties, sn)
- } else if schemeID == "aws.auth#sigv4a" {
- smithyhttp.SetSigV4ASigningName(&rscheme.SignerProperties, sn)
- }
- }
-
- if sr := awsmiddleware.GetSigningRegion(ctx); sr != "" {
- if schemeID == "aws.auth#sigv4" {
- smithyhttp.SetSigV4SigningRegion(&rscheme.SignerProperties, sr)
- } else if schemeID == "aws.auth#sigv4a" {
- smithyhttp.SetSigV4ASigningRegions(&rscheme.SignerProperties, []string{sr})
- }
- }
-
- return next.HandleFinalize(ctx, in)
-}
-
-func addSetLegacyContextSigningOptionsMiddleware(stack *middleware.Stack) error {
- return stack.Finalize.Insert(&setLegacyContextSigningOptionsMiddleware{}, "Signing", middleware.Before)
-}
-
-type withAnonymous struct {
- resolver AuthSchemeResolver
-}
-
-var _ AuthSchemeResolver = (*withAnonymous)(nil)
-
-func (v *withAnonymous) ResolveAuthSchemes(ctx context.Context, params *AuthResolverParameters) ([]*smithyauth.Option, error) {
- opts, err := v.resolver.ResolveAuthSchemes(ctx, params)
- if err != nil {
- return nil, err
- }
-
- opts = append(opts, &smithyauth.Option{
- SchemeID: smithyauth.SchemeIDAnonymous,
- })
- return opts, nil
-}
-
-func wrapWithAnonymousAuth(options *Options) {
- if _, ok := options.AuthSchemeResolver.(*defaultAuthSchemeResolver); !ok {
- return
- }
-
- options.AuthSchemeResolver = &withAnonymous{
- resolver: options.AuthSchemeResolver,
- }
-}
-
-// AuthResolverParameters contains the set of inputs necessary for auth scheme
-// resolution.
-type AuthResolverParameters struct {
- // The name of the operation being invoked.
- Operation string
-
- // The region in which the operation is being invoked.
- Region string
-}
-
-func bindAuthResolverParams(ctx context.Context, operation string, input interface{}, options Options) *AuthResolverParameters {
- params := &AuthResolverParameters{
- Operation: operation,
- }
-
- bindAuthParamsRegion(ctx, params, input, options)
-
- return params
-}
-
-// AuthSchemeResolver returns a set of possible authentication options for an
-// operation.
-type AuthSchemeResolver interface {
- ResolveAuthSchemes(context.Context, *AuthResolverParameters) ([]*smithyauth.Option, error)
-}
-
-type defaultAuthSchemeResolver struct{}
-
-var _ AuthSchemeResolver = (*defaultAuthSchemeResolver)(nil)
-
-func (*defaultAuthSchemeResolver) ResolveAuthSchemes(ctx context.Context, params *AuthResolverParameters) ([]*smithyauth.Option, error) {
- if overrides, ok := operationAuthOptions[params.Operation]; ok {
- return overrides(params), nil
- }
- return serviceAuthOptions(params), nil
-}
-
-var operationAuthOptions = map[string]func(*AuthResolverParameters) []*smithyauth.Option{}
-
-func serviceAuthOptions(params *AuthResolverParameters) []*smithyauth.Option {
- return []*smithyauth.Option{
- {
- SchemeID: smithyauth.SchemeIDSigV4,
- SignerProperties: func() smithy.Properties {
- var props smithy.Properties
- smithyhttp.SetSigV4SigningName(&props, "ec2")
- smithyhttp.SetSigV4SigningRegion(&props, params.Region)
- return props
- }(),
- },
- }
-}
-
-type resolveAuthSchemeMiddleware struct {
- operation string
- options Options
-}
-
-func (*resolveAuthSchemeMiddleware) ID() string {
- return "ResolveAuthScheme"
-}
-
-func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
- out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
-) {
- _, span := tracing.StartSpan(ctx, "ResolveAuthScheme")
- defer span.End()
-
- params := bindAuthResolverParams(ctx, m.operation, getOperationInput(ctx), m.options)
- options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params)
- if err != nil {
- return out, metadata, fmt.Errorf("resolve auth scheme: %w", err)
- }
-
- scheme, ok := m.selectScheme(options)
- if !ok {
- return out, metadata, fmt.Errorf("could not select an auth scheme")
- }
-
- ctx = setResolvedAuthScheme(ctx, scheme)
-
- span.SetProperty("auth.scheme_id", scheme.Scheme.SchemeID())
- span.End()
- return next.HandleFinalize(ctx, in)
-}
-
-func (m *resolveAuthSchemeMiddleware) selectScheme(options []*smithyauth.Option) (*resolvedAuthScheme, bool) {
- for _, option := range options {
- if option.SchemeID == smithyauth.SchemeIDAnonymous {
- return newResolvedAuthScheme(smithyhttp.NewAnonymousScheme(), option), true
- }
-
- for _, scheme := range m.options.AuthSchemes {
- if scheme.SchemeID() != option.SchemeID {
- continue
- }
-
- if scheme.IdentityResolver(m.options) != nil {
- return newResolvedAuthScheme(scheme, option), true
- }
- }
- }
-
- return nil, false
-}
-
-type resolvedAuthSchemeKey struct{}
-
-type resolvedAuthScheme struct {
- Scheme smithyhttp.AuthScheme
- IdentityProperties smithy.Properties
- SignerProperties smithy.Properties
-}
-
-func newResolvedAuthScheme(scheme smithyhttp.AuthScheme, option *smithyauth.Option) *resolvedAuthScheme {
- return &resolvedAuthScheme{
- Scheme: scheme,
- IdentityProperties: option.IdentityProperties,
- SignerProperties: option.SignerProperties,
- }
-}
-
-func setResolvedAuthScheme(ctx context.Context, scheme *resolvedAuthScheme) context.Context {
- return middleware.WithStackValue(ctx, resolvedAuthSchemeKey{}, scheme)
-}
-
-func getResolvedAuthScheme(ctx context.Context) *resolvedAuthScheme {
- v, _ := middleware.GetStackValue(ctx, resolvedAuthSchemeKey{}).(*resolvedAuthScheme)
- return v
-}
-
-type getIdentityMiddleware struct {
- options Options
-}
-
-func (*getIdentityMiddleware) ID() string {
- return "GetIdentity"
-}
-
-func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
- out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
-) {
- innerCtx, span := tracing.StartSpan(ctx, "GetIdentity")
- defer span.End()
-
- rscheme := getResolvedAuthScheme(innerCtx)
- if rscheme == nil {
- return out, metadata, fmt.Errorf("no resolved auth scheme")
- }
-
- resolver := rscheme.Scheme.IdentityResolver(m.options)
- if resolver == nil {
- return out, metadata, fmt.Errorf("no identity resolver")
- }
-
- identity, err := timeOperationMetric(ctx, "client.call.resolve_identity_duration",
- func() (smithyauth.Identity, error) {
- return resolver.GetIdentity(innerCtx, rscheme.IdentityProperties)
- },
- func(o *metrics.RecordMetricOptions) {
- o.Properties.Set("auth.scheme_id", rscheme.Scheme.SchemeID())
- })
- if err != nil {
- return out, metadata, fmt.Errorf("get identity: %w", err)
- }
-
- ctx = setIdentity(ctx, identity)
-
- span.End()
- return next.HandleFinalize(ctx, in)
-}
-
-type identityKey struct{}
-
-func setIdentity(ctx context.Context, identity smithyauth.Identity) context.Context {
- return middleware.WithStackValue(ctx, identityKey{}, identity)
-}
-
-func getIdentity(ctx context.Context) smithyauth.Identity {
- v, _ := middleware.GetStackValue(ctx, identityKey{}).(smithyauth.Identity)
- return v
-}
-
-type signRequestMiddleware struct {
- options Options
-}
-
-func (*signRequestMiddleware) ID() string {
- return "Signing"
-}
-
-func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
- out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
-) {
- _, span := tracing.StartSpan(ctx, "SignRequest")
- defer span.End()
-
- req, ok := in.Request.(*smithyhttp.Request)
- if !ok {
- return out, metadata, fmt.Errorf("unexpected transport type %T", in.Request)
- }
-
- rscheme := getResolvedAuthScheme(ctx)
- if rscheme == nil {
- return out, metadata, fmt.Errorf("no resolved auth scheme")
- }
-
- identity := getIdentity(ctx)
- if identity == nil {
- return out, metadata, fmt.Errorf("no identity")
- }
-
- signer := rscheme.Scheme.Signer()
- if signer == nil {
- return out, metadata, fmt.Errorf("no signer")
- }
-
- _, err = timeOperationMetric(ctx, "client.call.signing_duration", func() (any, error) {
- return nil, signer.SignRequest(ctx, req, identity, rscheme.SignerProperties)
- }, func(o *metrics.RecordMetricOptions) {
- o.Properties.Set("auth.scheme_id", rscheme.Scheme.SchemeID())
- })
- if err != nil {
- return out, metadata, fmt.Errorf("sign request: %w", err)
- }
-
- span.End()
- return next.HandleFinalize(ctx, in)
-}
diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/deserializers.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/deserializers.go
deleted file mode 100644
index 0057ce0ea..000000000
--- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/deserializers.go
+++ /dev/null
@@ -1,194326 +0,0 @@
-// Code generated by smithy-go-codegen DO NOT EDIT.
-
-package ec2
-
-import (
- "bytes"
- "context"
- "encoding/base64"
- "encoding/xml"
- "fmt"
- awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
- "github.com/aws/aws-sdk-go-v2/aws/protocol/ec2query"
- "github.com/aws/aws-sdk-go-v2/service/ec2/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"
- "io/ioutil"
- "strconv"
- "strings"
- "time"
-)
-
-func deserializeS3Expires(v string) (*time.Time, error) {
- t, err := smithytime.ParseHTTPDate(v)
- if err != nil {
- return nil, nil
- }
- return &t, nil
-}
-
-type awsEc2query_deserializeOpAcceptAddressTransfer struct {
-}
-
-func (*awsEc2query_deserializeOpAcceptAddressTransfer) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAcceptAddressTransfer) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAcceptAddressTransfer(response, &metadata)
- }
- output := &AcceptAddressTransferOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAcceptAddressTransferOutput(&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 awsEc2query_deserializeOpErrorAcceptAddressTransfer(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAcceptCapacityReservationBillingOwnership struct {
-}
-
-func (*awsEc2query_deserializeOpAcceptCapacityReservationBillingOwnership) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAcceptCapacityReservationBillingOwnership) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAcceptCapacityReservationBillingOwnership(response, &metadata)
- }
- output := &AcceptCapacityReservationBillingOwnershipOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAcceptCapacityReservationBillingOwnershipOutput(&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 awsEc2query_deserializeOpErrorAcceptCapacityReservationBillingOwnership(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAcceptReservedInstancesExchangeQuote struct {
-}
-
-func (*awsEc2query_deserializeOpAcceptReservedInstancesExchangeQuote) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAcceptReservedInstancesExchangeQuote) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAcceptReservedInstancesExchangeQuote(response, &metadata)
- }
- output := &AcceptReservedInstancesExchangeQuoteOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAcceptReservedInstancesExchangeQuoteOutput(&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 awsEc2query_deserializeOpErrorAcceptReservedInstancesExchangeQuote(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAcceptTransitGatewayMulticastDomainAssociations struct {
-}
-
-func (*awsEc2query_deserializeOpAcceptTransitGatewayMulticastDomainAssociations) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAcceptTransitGatewayMulticastDomainAssociations) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAcceptTransitGatewayMulticastDomainAssociations(response, &metadata)
- }
- output := &AcceptTransitGatewayMulticastDomainAssociationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAcceptTransitGatewayMulticastDomainAssociationsOutput(&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 awsEc2query_deserializeOpErrorAcceptTransitGatewayMulticastDomainAssociations(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAcceptTransitGatewayPeeringAttachment struct {
-}
-
-func (*awsEc2query_deserializeOpAcceptTransitGatewayPeeringAttachment) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAcceptTransitGatewayPeeringAttachment) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAcceptTransitGatewayPeeringAttachment(response, &metadata)
- }
- output := &AcceptTransitGatewayPeeringAttachmentOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAcceptTransitGatewayPeeringAttachmentOutput(&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 awsEc2query_deserializeOpErrorAcceptTransitGatewayPeeringAttachment(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAcceptTransitGatewayVpcAttachment struct {
-}
-
-func (*awsEc2query_deserializeOpAcceptTransitGatewayVpcAttachment) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAcceptTransitGatewayVpcAttachment) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAcceptTransitGatewayVpcAttachment(response, &metadata)
- }
- output := &AcceptTransitGatewayVpcAttachmentOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAcceptTransitGatewayVpcAttachmentOutput(&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 awsEc2query_deserializeOpErrorAcceptTransitGatewayVpcAttachment(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAcceptVpcEndpointConnections struct {
-}
-
-func (*awsEc2query_deserializeOpAcceptVpcEndpointConnections) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAcceptVpcEndpointConnections) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAcceptVpcEndpointConnections(response, &metadata)
- }
- output := &AcceptVpcEndpointConnectionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAcceptVpcEndpointConnectionsOutput(&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 awsEc2query_deserializeOpErrorAcceptVpcEndpointConnections(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAcceptVpcPeeringConnection struct {
-}
-
-func (*awsEc2query_deserializeOpAcceptVpcPeeringConnection) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAcceptVpcPeeringConnection) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAcceptVpcPeeringConnection(response, &metadata)
- }
- output := &AcceptVpcPeeringConnectionOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAcceptVpcPeeringConnectionOutput(&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 awsEc2query_deserializeOpErrorAcceptVpcPeeringConnection(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAdvertiseByoipCidr struct {
-}
-
-func (*awsEc2query_deserializeOpAdvertiseByoipCidr) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAdvertiseByoipCidr) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAdvertiseByoipCidr(response, &metadata)
- }
- output := &AdvertiseByoipCidrOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAdvertiseByoipCidrOutput(&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 awsEc2query_deserializeOpErrorAdvertiseByoipCidr(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAllocateAddress struct {
-}
-
-func (*awsEc2query_deserializeOpAllocateAddress) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAllocateAddress) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAllocateAddress(response, &metadata)
- }
- output := &AllocateAddressOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAllocateAddressOutput(&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 awsEc2query_deserializeOpErrorAllocateAddress(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAllocateHosts struct {
-}
-
-func (*awsEc2query_deserializeOpAllocateHosts) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAllocateHosts) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAllocateHosts(response, &metadata)
- }
- output := &AllocateHostsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAllocateHostsOutput(&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 awsEc2query_deserializeOpErrorAllocateHosts(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAllocateIpamPoolCidr struct {
-}
-
-func (*awsEc2query_deserializeOpAllocateIpamPoolCidr) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAllocateIpamPoolCidr) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAllocateIpamPoolCidr(response, &metadata)
- }
- output := &AllocateIpamPoolCidrOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAllocateIpamPoolCidrOutput(&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 awsEc2query_deserializeOpErrorAllocateIpamPoolCidr(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpApplySecurityGroupsToClientVpnTargetNetwork struct {
-}
-
-func (*awsEc2query_deserializeOpApplySecurityGroupsToClientVpnTargetNetwork) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpApplySecurityGroupsToClientVpnTargetNetwork) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorApplySecurityGroupsToClientVpnTargetNetwork(response, &metadata)
- }
- output := &ApplySecurityGroupsToClientVpnTargetNetworkOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentApplySecurityGroupsToClientVpnTargetNetworkOutput(&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 awsEc2query_deserializeOpErrorApplySecurityGroupsToClientVpnTargetNetwork(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAssignIpv6Addresses struct {
-}
-
-func (*awsEc2query_deserializeOpAssignIpv6Addresses) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAssignIpv6Addresses) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAssignIpv6Addresses(response, &metadata)
- }
- output := &AssignIpv6AddressesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAssignIpv6AddressesOutput(&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 awsEc2query_deserializeOpErrorAssignIpv6Addresses(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAssignPrivateIpAddresses struct {
-}
-
-func (*awsEc2query_deserializeOpAssignPrivateIpAddresses) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAssignPrivateIpAddresses) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAssignPrivateIpAddresses(response, &metadata)
- }
- output := &AssignPrivateIpAddressesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAssignPrivateIpAddressesOutput(&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 awsEc2query_deserializeOpErrorAssignPrivateIpAddresses(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAssignPrivateNatGatewayAddress struct {
-}
-
-func (*awsEc2query_deserializeOpAssignPrivateNatGatewayAddress) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAssignPrivateNatGatewayAddress) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAssignPrivateNatGatewayAddress(response, &metadata)
- }
- output := &AssignPrivateNatGatewayAddressOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAssignPrivateNatGatewayAddressOutput(&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 awsEc2query_deserializeOpErrorAssignPrivateNatGatewayAddress(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAssociateAddress struct {
-}
-
-func (*awsEc2query_deserializeOpAssociateAddress) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAssociateAddress) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAssociateAddress(response, &metadata)
- }
- output := &AssociateAddressOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAssociateAddressOutput(&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 awsEc2query_deserializeOpErrorAssociateAddress(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAssociateCapacityReservationBillingOwner struct {
-}
-
-func (*awsEc2query_deserializeOpAssociateCapacityReservationBillingOwner) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAssociateCapacityReservationBillingOwner) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAssociateCapacityReservationBillingOwner(response, &metadata)
- }
- output := &AssociateCapacityReservationBillingOwnerOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAssociateCapacityReservationBillingOwnerOutput(&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 awsEc2query_deserializeOpErrorAssociateCapacityReservationBillingOwner(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAssociateClientVpnTargetNetwork struct {
-}
-
-func (*awsEc2query_deserializeOpAssociateClientVpnTargetNetwork) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAssociateClientVpnTargetNetwork) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAssociateClientVpnTargetNetwork(response, &metadata)
- }
- output := &AssociateClientVpnTargetNetworkOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAssociateClientVpnTargetNetworkOutput(&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 awsEc2query_deserializeOpErrorAssociateClientVpnTargetNetwork(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAssociateDhcpOptions struct {
-}
-
-func (*awsEc2query_deserializeOpAssociateDhcpOptions) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAssociateDhcpOptions) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAssociateDhcpOptions(response, &metadata)
- }
- output := &AssociateDhcpOptionsOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorAssociateDhcpOptions(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAssociateEnclaveCertificateIamRole struct {
-}
-
-func (*awsEc2query_deserializeOpAssociateEnclaveCertificateIamRole) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAssociateEnclaveCertificateIamRole) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAssociateEnclaveCertificateIamRole(response, &metadata)
- }
- output := &AssociateEnclaveCertificateIamRoleOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAssociateEnclaveCertificateIamRoleOutput(&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 awsEc2query_deserializeOpErrorAssociateEnclaveCertificateIamRole(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAssociateIamInstanceProfile struct {
-}
-
-func (*awsEc2query_deserializeOpAssociateIamInstanceProfile) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAssociateIamInstanceProfile) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAssociateIamInstanceProfile(response, &metadata)
- }
- output := &AssociateIamInstanceProfileOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAssociateIamInstanceProfileOutput(&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 awsEc2query_deserializeOpErrorAssociateIamInstanceProfile(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAssociateInstanceEventWindow struct {
-}
-
-func (*awsEc2query_deserializeOpAssociateInstanceEventWindow) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAssociateInstanceEventWindow) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAssociateInstanceEventWindow(response, &metadata)
- }
- output := &AssociateInstanceEventWindowOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAssociateInstanceEventWindowOutput(&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 awsEc2query_deserializeOpErrorAssociateInstanceEventWindow(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAssociateIpamByoasn struct {
-}
-
-func (*awsEc2query_deserializeOpAssociateIpamByoasn) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAssociateIpamByoasn) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAssociateIpamByoasn(response, &metadata)
- }
- output := &AssociateIpamByoasnOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAssociateIpamByoasnOutput(&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 awsEc2query_deserializeOpErrorAssociateIpamByoasn(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAssociateIpamResourceDiscovery struct {
-}
-
-func (*awsEc2query_deserializeOpAssociateIpamResourceDiscovery) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAssociateIpamResourceDiscovery) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAssociateIpamResourceDiscovery(response, &metadata)
- }
- output := &AssociateIpamResourceDiscoveryOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAssociateIpamResourceDiscoveryOutput(&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 awsEc2query_deserializeOpErrorAssociateIpamResourceDiscovery(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAssociateNatGatewayAddress struct {
-}
-
-func (*awsEc2query_deserializeOpAssociateNatGatewayAddress) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAssociateNatGatewayAddress) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAssociateNatGatewayAddress(response, &metadata)
- }
- output := &AssociateNatGatewayAddressOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAssociateNatGatewayAddressOutput(&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 awsEc2query_deserializeOpErrorAssociateNatGatewayAddress(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAssociateRouteServer struct {
-}
-
-func (*awsEc2query_deserializeOpAssociateRouteServer) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAssociateRouteServer) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAssociateRouteServer(response, &metadata)
- }
- output := &AssociateRouteServerOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAssociateRouteServerOutput(&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 awsEc2query_deserializeOpErrorAssociateRouteServer(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAssociateRouteTable struct {
-}
-
-func (*awsEc2query_deserializeOpAssociateRouteTable) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAssociateRouteTable) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAssociateRouteTable(response, &metadata)
- }
- output := &AssociateRouteTableOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAssociateRouteTableOutput(&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 awsEc2query_deserializeOpErrorAssociateRouteTable(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAssociateSecurityGroupVpc struct {
-}
-
-func (*awsEc2query_deserializeOpAssociateSecurityGroupVpc) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAssociateSecurityGroupVpc) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAssociateSecurityGroupVpc(response, &metadata)
- }
- output := &AssociateSecurityGroupVpcOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAssociateSecurityGroupVpcOutput(&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 awsEc2query_deserializeOpErrorAssociateSecurityGroupVpc(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAssociateSubnetCidrBlock struct {
-}
-
-func (*awsEc2query_deserializeOpAssociateSubnetCidrBlock) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAssociateSubnetCidrBlock) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAssociateSubnetCidrBlock(response, &metadata)
- }
- output := &AssociateSubnetCidrBlockOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAssociateSubnetCidrBlockOutput(&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 awsEc2query_deserializeOpErrorAssociateSubnetCidrBlock(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAssociateTransitGatewayMulticastDomain struct {
-}
-
-func (*awsEc2query_deserializeOpAssociateTransitGatewayMulticastDomain) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAssociateTransitGatewayMulticastDomain) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAssociateTransitGatewayMulticastDomain(response, &metadata)
- }
- output := &AssociateTransitGatewayMulticastDomainOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAssociateTransitGatewayMulticastDomainOutput(&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 awsEc2query_deserializeOpErrorAssociateTransitGatewayMulticastDomain(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAssociateTransitGatewayPolicyTable struct {
-}
-
-func (*awsEc2query_deserializeOpAssociateTransitGatewayPolicyTable) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAssociateTransitGatewayPolicyTable) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAssociateTransitGatewayPolicyTable(response, &metadata)
- }
- output := &AssociateTransitGatewayPolicyTableOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAssociateTransitGatewayPolicyTableOutput(&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 awsEc2query_deserializeOpErrorAssociateTransitGatewayPolicyTable(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAssociateTransitGatewayRouteTable struct {
-}
-
-func (*awsEc2query_deserializeOpAssociateTransitGatewayRouteTable) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAssociateTransitGatewayRouteTable) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAssociateTransitGatewayRouteTable(response, &metadata)
- }
- output := &AssociateTransitGatewayRouteTableOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAssociateTransitGatewayRouteTableOutput(&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 awsEc2query_deserializeOpErrorAssociateTransitGatewayRouteTable(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAssociateTrunkInterface struct {
-}
-
-func (*awsEc2query_deserializeOpAssociateTrunkInterface) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAssociateTrunkInterface) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAssociateTrunkInterface(response, &metadata)
- }
- output := &AssociateTrunkInterfaceOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAssociateTrunkInterfaceOutput(&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 awsEc2query_deserializeOpErrorAssociateTrunkInterface(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAssociateVpcCidrBlock struct {
-}
-
-func (*awsEc2query_deserializeOpAssociateVpcCidrBlock) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAssociateVpcCidrBlock) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAssociateVpcCidrBlock(response, &metadata)
- }
- output := &AssociateVpcCidrBlockOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAssociateVpcCidrBlockOutput(&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 awsEc2query_deserializeOpErrorAssociateVpcCidrBlock(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAttachClassicLinkVpc struct {
-}
-
-func (*awsEc2query_deserializeOpAttachClassicLinkVpc) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAttachClassicLinkVpc) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAttachClassicLinkVpc(response, &metadata)
- }
- output := &AttachClassicLinkVpcOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAttachClassicLinkVpcOutput(&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 awsEc2query_deserializeOpErrorAttachClassicLinkVpc(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAttachInternetGateway struct {
-}
-
-func (*awsEc2query_deserializeOpAttachInternetGateway) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAttachInternetGateway) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAttachInternetGateway(response, &metadata)
- }
- output := &AttachInternetGatewayOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorAttachInternetGateway(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAttachNetworkInterface struct {
-}
-
-func (*awsEc2query_deserializeOpAttachNetworkInterface) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAttachNetworkInterface) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAttachNetworkInterface(response, &metadata)
- }
- output := &AttachNetworkInterfaceOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAttachNetworkInterfaceOutput(&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 awsEc2query_deserializeOpErrorAttachNetworkInterface(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAttachVerifiedAccessTrustProvider struct {
-}
-
-func (*awsEc2query_deserializeOpAttachVerifiedAccessTrustProvider) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAttachVerifiedAccessTrustProvider) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAttachVerifiedAccessTrustProvider(response, &metadata)
- }
- output := &AttachVerifiedAccessTrustProviderOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAttachVerifiedAccessTrustProviderOutput(&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 awsEc2query_deserializeOpErrorAttachVerifiedAccessTrustProvider(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAttachVolume struct {
-}
-
-func (*awsEc2query_deserializeOpAttachVolume) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAttachVolume) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAttachVolume(response, &metadata)
- }
- output := &AttachVolumeOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAttachVolumeOutput(&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 awsEc2query_deserializeOpErrorAttachVolume(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAttachVpnGateway struct {
-}
-
-func (*awsEc2query_deserializeOpAttachVpnGateway) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAttachVpnGateway) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAttachVpnGateway(response, &metadata)
- }
- output := &AttachVpnGatewayOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAttachVpnGatewayOutput(&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 awsEc2query_deserializeOpErrorAttachVpnGateway(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAuthorizeClientVpnIngress struct {
-}
-
-func (*awsEc2query_deserializeOpAuthorizeClientVpnIngress) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAuthorizeClientVpnIngress) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAuthorizeClientVpnIngress(response, &metadata)
- }
- output := &AuthorizeClientVpnIngressOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAuthorizeClientVpnIngressOutput(&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 awsEc2query_deserializeOpErrorAuthorizeClientVpnIngress(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAuthorizeSecurityGroupEgress struct {
-}
-
-func (*awsEc2query_deserializeOpAuthorizeSecurityGroupEgress) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAuthorizeSecurityGroupEgress) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAuthorizeSecurityGroupEgress(response, &metadata)
- }
- output := &AuthorizeSecurityGroupEgressOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAuthorizeSecurityGroupEgressOutput(&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 awsEc2query_deserializeOpErrorAuthorizeSecurityGroupEgress(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpAuthorizeSecurityGroupIngress struct {
-}
-
-func (*awsEc2query_deserializeOpAuthorizeSecurityGroupIngress) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpAuthorizeSecurityGroupIngress) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorAuthorizeSecurityGroupIngress(response, &metadata)
- }
- output := &AuthorizeSecurityGroupIngressOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentAuthorizeSecurityGroupIngressOutput(&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 awsEc2query_deserializeOpErrorAuthorizeSecurityGroupIngress(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpBundleInstance struct {
-}
-
-func (*awsEc2query_deserializeOpBundleInstance) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpBundleInstance) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorBundleInstance(response, &metadata)
- }
- output := &BundleInstanceOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentBundleInstanceOutput(&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 awsEc2query_deserializeOpErrorBundleInstance(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCancelBundleTask struct {
-}
-
-func (*awsEc2query_deserializeOpCancelBundleTask) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCancelBundleTask) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCancelBundleTask(response, &metadata)
- }
- output := &CancelBundleTaskOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCancelBundleTaskOutput(&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 awsEc2query_deserializeOpErrorCancelBundleTask(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCancelCapacityReservation struct {
-}
-
-func (*awsEc2query_deserializeOpCancelCapacityReservation) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCancelCapacityReservation) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCancelCapacityReservation(response, &metadata)
- }
- output := &CancelCapacityReservationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCancelCapacityReservationOutput(&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 awsEc2query_deserializeOpErrorCancelCapacityReservation(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCancelCapacityReservationFleets struct {
-}
-
-func (*awsEc2query_deserializeOpCancelCapacityReservationFleets) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCancelCapacityReservationFleets) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCancelCapacityReservationFleets(response, &metadata)
- }
- output := &CancelCapacityReservationFleetsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCancelCapacityReservationFleetsOutput(&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 awsEc2query_deserializeOpErrorCancelCapacityReservationFleets(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCancelConversionTask struct {
-}
-
-func (*awsEc2query_deserializeOpCancelConversionTask) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCancelConversionTask) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCancelConversionTask(response, &metadata)
- }
- output := &CancelConversionTaskOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorCancelConversionTask(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCancelDeclarativePoliciesReport struct {
-}
-
-func (*awsEc2query_deserializeOpCancelDeclarativePoliciesReport) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCancelDeclarativePoliciesReport) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCancelDeclarativePoliciesReport(response, &metadata)
- }
- output := &CancelDeclarativePoliciesReportOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCancelDeclarativePoliciesReportOutput(&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 awsEc2query_deserializeOpErrorCancelDeclarativePoliciesReport(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCancelExportTask struct {
-}
-
-func (*awsEc2query_deserializeOpCancelExportTask) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCancelExportTask) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCancelExportTask(response, &metadata)
- }
- output := &CancelExportTaskOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorCancelExportTask(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCancelImageLaunchPermission struct {
-}
-
-func (*awsEc2query_deserializeOpCancelImageLaunchPermission) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCancelImageLaunchPermission) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCancelImageLaunchPermission(response, &metadata)
- }
- output := &CancelImageLaunchPermissionOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCancelImageLaunchPermissionOutput(&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 awsEc2query_deserializeOpErrorCancelImageLaunchPermission(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCancelImportTask struct {
-}
-
-func (*awsEc2query_deserializeOpCancelImportTask) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCancelImportTask) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCancelImportTask(response, &metadata)
- }
- output := &CancelImportTaskOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCancelImportTaskOutput(&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 awsEc2query_deserializeOpErrorCancelImportTask(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCancelReservedInstancesListing struct {
-}
-
-func (*awsEc2query_deserializeOpCancelReservedInstancesListing) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCancelReservedInstancesListing) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCancelReservedInstancesListing(response, &metadata)
- }
- output := &CancelReservedInstancesListingOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCancelReservedInstancesListingOutput(&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 awsEc2query_deserializeOpErrorCancelReservedInstancesListing(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCancelSpotFleetRequests struct {
-}
-
-func (*awsEc2query_deserializeOpCancelSpotFleetRequests) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCancelSpotFleetRequests) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCancelSpotFleetRequests(response, &metadata)
- }
- output := &CancelSpotFleetRequestsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCancelSpotFleetRequestsOutput(&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 awsEc2query_deserializeOpErrorCancelSpotFleetRequests(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCancelSpotInstanceRequests struct {
-}
-
-func (*awsEc2query_deserializeOpCancelSpotInstanceRequests) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCancelSpotInstanceRequests) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCancelSpotInstanceRequests(response, &metadata)
- }
- output := &CancelSpotInstanceRequestsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCancelSpotInstanceRequestsOutput(&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 awsEc2query_deserializeOpErrorCancelSpotInstanceRequests(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpConfirmProductInstance struct {
-}
-
-func (*awsEc2query_deserializeOpConfirmProductInstance) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpConfirmProductInstance) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorConfirmProductInstance(response, &metadata)
- }
- output := &ConfirmProductInstanceOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentConfirmProductInstanceOutput(&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 awsEc2query_deserializeOpErrorConfirmProductInstance(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCopyFpgaImage struct {
-}
-
-func (*awsEc2query_deserializeOpCopyFpgaImage) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCopyFpgaImage) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCopyFpgaImage(response, &metadata)
- }
- output := &CopyFpgaImageOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCopyFpgaImageOutput(&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 awsEc2query_deserializeOpErrorCopyFpgaImage(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCopyImage struct {
-}
-
-func (*awsEc2query_deserializeOpCopyImage) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCopyImage) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCopyImage(response, &metadata)
- }
- output := &CopyImageOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCopyImageOutput(&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 awsEc2query_deserializeOpErrorCopyImage(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCopySnapshot struct {
-}
-
-func (*awsEc2query_deserializeOpCopySnapshot) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCopySnapshot) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCopySnapshot(response, &metadata)
- }
- output := &CopySnapshotOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCopySnapshotOutput(&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 awsEc2query_deserializeOpErrorCopySnapshot(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateCapacityReservation struct {
-}
-
-func (*awsEc2query_deserializeOpCreateCapacityReservation) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateCapacityReservation) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateCapacityReservation(response, &metadata)
- }
- output := &CreateCapacityReservationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateCapacityReservationOutput(&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 awsEc2query_deserializeOpErrorCreateCapacityReservation(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateCapacityReservationBySplitting struct {
-}
-
-func (*awsEc2query_deserializeOpCreateCapacityReservationBySplitting) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateCapacityReservationBySplitting) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateCapacityReservationBySplitting(response, &metadata)
- }
- output := &CreateCapacityReservationBySplittingOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateCapacityReservationBySplittingOutput(&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 awsEc2query_deserializeOpErrorCreateCapacityReservationBySplitting(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateCapacityReservationFleet struct {
-}
-
-func (*awsEc2query_deserializeOpCreateCapacityReservationFleet) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateCapacityReservationFleet) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateCapacityReservationFleet(response, &metadata)
- }
- output := &CreateCapacityReservationFleetOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateCapacityReservationFleetOutput(&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 awsEc2query_deserializeOpErrorCreateCapacityReservationFleet(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateCarrierGateway struct {
-}
-
-func (*awsEc2query_deserializeOpCreateCarrierGateway) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateCarrierGateway) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateCarrierGateway(response, &metadata)
- }
- output := &CreateCarrierGatewayOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateCarrierGatewayOutput(&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 awsEc2query_deserializeOpErrorCreateCarrierGateway(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateClientVpnEndpoint struct {
-}
-
-func (*awsEc2query_deserializeOpCreateClientVpnEndpoint) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateClientVpnEndpoint) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateClientVpnEndpoint(response, &metadata)
- }
- output := &CreateClientVpnEndpointOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateClientVpnEndpointOutput(&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 awsEc2query_deserializeOpErrorCreateClientVpnEndpoint(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateClientVpnRoute struct {
-}
-
-func (*awsEc2query_deserializeOpCreateClientVpnRoute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateClientVpnRoute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateClientVpnRoute(response, &metadata)
- }
- output := &CreateClientVpnRouteOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateClientVpnRouteOutput(&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 awsEc2query_deserializeOpErrorCreateClientVpnRoute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateCoipCidr struct {
-}
-
-func (*awsEc2query_deserializeOpCreateCoipCidr) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateCoipCidr) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateCoipCidr(response, &metadata)
- }
- output := &CreateCoipCidrOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateCoipCidrOutput(&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 awsEc2query_deserializeOpErrorCreateCoipCidr(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateCoipPool struct {
-}
-
-func (*awsEc2query_deserializeOpCreateCoipPool) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateCoipPool) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateCoipPool(response, &metadata)
- }
- output := &CreateCoipPoolOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateCoipPoolOutput(&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 awsEc2query_deserializeOpErrorCreateCoipPool(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateCustomerGateway struct {
-}
-
-func (*awsEc2query_deserializeOpCreateCustomerGateway) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateCustomerGateway) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateCustomerGateway(response, &metadata)
- }
- output := &CreateCustomerGatewayOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateCustomerGatewayOutput(&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 awsEc2query_deserializeOpErrorCreateCustomerGateway(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateDefaultSubnet struct {
-}
-
-func (*awsEc2query_deserializeOpCreateDefaultSubnet) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateDefaultSubnet) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateDefaultSubnet(response, &metadata)
- }
- output := &CreateDefaultSubnetOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateDefaultSubnetOutput(&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 awsEc2query_deserializeOpErrorCreateDefaultSubnet(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateDefaultVpc struct {
-}
-
-func (*awsEc2query_deserializeOpCreateDefaultVpc) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateDefaultVpc) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateDefaultVpc(response, &metadata)
- }
- output := &CreateDefaultVpcOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateDefaultVpcOutput(&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 awsEc2query_deserializeOpErrorCreateDefaultVpc(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateDelegateMacVolumeOwnershipTask struct {
-}
-
-func (*awsEc2query_deserializeOpCreateDelegateMacVolumeOwnershipTask) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateDelegateMacVolumeOwnershipTask) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateDelegateMacVolumeOwnershipTask(response, &metadata)
- }
- output := &CreateDelegateMacVolumeOwnershipTaskOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateDelegateMacVolumeOwnershipTaskOutput(&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 awsEc2query_deserializeOpErrorCreateDelegateMacVolumeOwnershipTask(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateDhcpOptions struct {
-}
-
-func (*awsEc2query_deserializeOpCreateDhcpOptions) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateDhcpOptions) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateDhcpOptions(response, &metadata)
- }
- output := &CreateDhcpOptionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateDhcpOptionsOutput(&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 awsEc2query_deserializeOpErrorCreateDhcpOptions(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateEgressOnlyInternetGateway struct {
-}
-
-func (*awsEc2query_deserializeOpCreateEgressOnlyInternetGateway) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateEgressOnlyInternetGateway) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateEgressOnlyInternetGateway(response, &metadata)
- }
- output := &CreateEgressOnlyInternetGatewayOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateEgressOnlyInternetGatewayOutput(&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 awsEc2query_deserializeOpErrorCreateEgressOnlyInternetGateway(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateFleet struct {
-}
-
-func (*awsEc2query_deserializeOpCreateFleet) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateFleet) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateFleet(response, &metadata)
- }
- output := &CreateFleetOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateFleetOutput(&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 awsEc2query_deserializeOpErrorCreateFleet(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateFlowLogs struct {
-}
-
-func (*awsEc2query_deserializeOpCreateFlowLogs) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateFlowLogs) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateFlowLogs(response, &metadata)
- }
- output := &CreateFlowLogsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateFlowLogsOutput(&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 awsEc2query_deserializeOpErrorCreateFlowLogs(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateFpgaImage struct {
-}
-
-func (*awsEc2query_deserializeOpCreateFpgaImage) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateFpgaImage) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateFpgaImage(response, &metadata)
- }
- output := &CreateFpgaImageOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateFpgaImageOutput(&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 awsEc2query_deserializeOpErrorCreateFpgaImage(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateImage struct {
-}
-
-func (*awsEc2query_deserializeOpCreateImage) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateImage) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateImage(response, &metadata)
- }
- output := &CreateImageOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateImageOutput(&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 awsEc2query_deserializeOpErrorCreateImage(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateInstanceConnectEndpoint struct {
-}
-
-func (*awsEc2query_deserializeOpCreateInstanceConnectEndpoint) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateInstanceConnectEndpoint) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateInstanceConnectEndpoint(response, &metadata)
- }
- output := &CreateInstanceConnectEndpointOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateInstanceConnectEndpointOutput(&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 awsEc2query_deserializeOpErrorCreateInstanceConnectEndpoint(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateInstanceEventWindow struct {
-}
-
-func (*awsEc2query_deserializeOpCreateInstanceEventWindow) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateInstanceEventWindow) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateInstanceEventWindow(response, &metadata)
- }
- output := &CreateInstanceEventWindowOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateInstanceEventWindowOutput(&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 awsEc2query_deserializeOpErrorCreateInstanceEventWindow(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateInstanceExportTask struct {
-}
-
-func (*awsEc2query_deserializeOpCreateInstanceExportTask) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateInstanceExportTask) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateInstanceExportTask(response, &metadata)
- }
- output := &CreateInstanceExportTaskOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateInstanceExportTaskOutput(&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 awsEc2query_deserializeOpErrorCreateInstanceExportTask(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateInternetGateway struct {
-}
-
-func (*awsEc2query_deserializeOpCreateInternetGateway) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateInternetGateway) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateInternetGateway(response, &metadata)
- }
- output := &CreateInternetGatewayOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateInternetGatewayOutput(&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 awsEc2query_deserializeOpErrorCreateInternetGateway(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateIpam struct {
-}
-
-func (*awsEc2query_deserializeOpCreateIpam) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateIpam) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateIpam(response, &metadata)
- }
- output := &CreateIpamOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateIpamOutput(&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 awsEc2query_deserializeOpErrorCreateIpam(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateIpamExternalResourceVerificationToken struct {
-}
-
-func (*awsEc2query_deserializeOpCreateIpamExternalResourceVerificationToken) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateIpamExternalResourceVerificationToken) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateIpamExternalResourceVerificationToken(response, &metadata)
- }
- output := &CreateIpamExternalResourceVerificationTokenOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateIpamExternalResourceVerificationTokenOutput(&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 awsEc2query_deserializeOpErrorCreateIpamExternalResourceVerificationToken(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateIpamPool struct {
-}
-
-func (*awsEc2query_deserializeOpCreateIpamPool) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateIpamPool) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateIpamPool(response, &metadata)
- }
- output := &CreateIpamPoolOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateIpamPoolOutput(&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 awsEc2query_deserializeOpErrorCreateIpamPool(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateIpamResourceDiscovery struct {
-}
-
-func (*awsEc2query_deserializeOpCreateIpamResourceDiscovery) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateIpamResourceDiscovery) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateIpamResourceDiscovery(response, &metadata)
- }
- output := &CreateIpamResourceDiscoveryOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateIpamResourceDiscoveryOutput(&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 awsEc2query_deserializeOpErrorCreateIpamResourceDiscovery(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateIpamScope struct {
-}
-
-func (*awsEc2query_deserializeOpCreateIpamScope) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateIpamScope) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateIpamScope(response, &metadata)
- }
- output := &CreateIpamScopeOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateIpamScopeOutput(&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 awsEc2query_deserializeOpErrorCreateIpamScope(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateKeyPair struct {
-}
-
-func (*awsEc2query_deserializeOpCreateKeyPair) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateKeyPair) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateKeyPair(response, &metadata)
- }
- output := &CreateKeyPairOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateKeyPairOutput(&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 awsEc2query_deserializeOpErrorCreateKeyPair(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateLaunchTemplate struct {
-}
-
-func (*awsEc2query_deserializeOpCreateLaunchTemplate) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateLaunchTemplate) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateLaunchTemplate(response, &metadata)
- }
- output := &CreateLaunchTemplateOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateLaunchTemplateOutput(&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 awsEc2query_deserializeOpErrorCreateLaunchTemplate(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateLaunchTemplateVersion struct {
-}
-
-func (*awsEc2query_deserializeOpCreateLaunchTemplateVersion) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateLaunchTemplateVersion) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateLaunchTemplateVersion(response, &metadata)
- }
- output := &CreateLaunchTemplateVersionOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateLaunchTemplateVersionOutput(&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 awsEc2query_deserializeOpErrorCreateLaunchTemplateVersion(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateLocalGatewayRoute struct {
-}
-
-func (*awsEc2query_deserializeOpCreateLocalGatewayRoute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateLocalGatewayRoute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateLocalGatewayRoute(response, &metadata)
- }
- output := &CreateLocalGatewayRouteOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateLocalGatewayRouteOutput(&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 awsEc2query_deserializeOpErrorCreateLocalGatewayRoute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateLocalGatewayRouteTable struct {
-}
-
-func (*awsEc2query_deserializeOpCreateLocalGatewayRouteTable) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateLocalGatewayRouteTable) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateLocalGatewayRouteTable(response, &metadata)
- }
- output := &CreateLocalGatewayRouteTableOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateLocalGatewayRouteTableOutput(&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 awsEc2query_deserializeOpErrorCreateLocalGatewayRouteTable(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation struct {
-}
-
-func (*awsEc2query_deserializeOpCreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation(response, &metadata)
- }
- output := &CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput(&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 awsEc2query_deserializeOpErrorCreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateLocalGatewayRouteTableVpcAssociation struct {
-}
-
-func (*awsEc2query_deserializeOpCreateLocalGatewayRouteTableVpcAssociation) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateLocalGatewayRouteTableVpcAssociation) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateLocalGatewayRouteTableVpcAssociation(response, &metadata)
- }
- output := &CreateLocalGatewayRouteTableVpcAssociationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateLocalGatewayRouteTableVpcAssociationOutput(&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 awsEc2query_deserializeOpErrorCreateLocalGatewayRouteTableVpcAssociation(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateLocalGatewayVirtualInterface struct {
-}
-
-func (*awsEc2query_deserializeOpCreateLocalGatewayVirtualInterface) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateLocalGatewayVirtualInterface) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateLocalGatewayVirtualInterface(response, &metadata)
- }
- output := &CreateLocalGatewayVirtualInterfaceOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateLocalGatewayVirtualInterfaceOutput(&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 awsEc2query_deserializeOpErrorCreateLocalGatewayVirtualInterface(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateLocalGatewayVirtualInterfaceGroup struct {
-}
-
-func (*awsEc2query_deserializeOpCreateLocalGatewayVirtualInterfaceGroup) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateLocalGatewayVirtualInterfaceGroup) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateLocalGatewayVirtualInterfaceGroup(response, &metadata)
- }
- output := &CreateLocalGatewayVirtualInterfaceGroupOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateLocalGatewayVirtualInterfaceGroupOutput(&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 awsEc2query_deserializeOpErrorCreateLocalGatewayVirtualInterfaceGroup(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateMacSystemIntegrityProtectionModificationTask struct {
-}
-
-func (*awsEc2query_deserializeOpCreateMacSystemIntegrityProtectionModificationTask) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateMacSystemIntegrityProtectionModificationTask) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateMacSystemIntegrityProtectionModificationTask(response, &metadata)
- }
- output := &CreateMacSystemIntegrityProtectionModificationTaskOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateMacSystemIntegrityProtectionModificationTaskOutput(&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 awsEc2query_deserializeOpErrorCreateMacSystemIntegrityProtectionModificationTask(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateManagedPrefixList struct {
-}
-
-func (*awsEc2query_deserializeOpCreateManagedPrefixList) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateManagedPrefixList) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateManagedPrefixList(response, &metadata)
- }
- output := &CreateManagedPrefixListOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateManagedPrefixListOutput(&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 awsEc2query_deserializeOpErrorCreateManagedPrefixList(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateNatGateway struct {
-}
-
-func (*awsEc2query_deserializeOpCreateNatGateway) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateNatGateway) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateNatGateway(response, &metadata)
- }
- output := &CreateNatGatewayOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateNatGatewayOutput(&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 awsEc2query_deserializeOpErrorCreateNatGateway(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateNetworkAcl struct {
-}
-
-func (*awsEc2query_deserializeOpCreateNetworkAcl) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateNetworkAcl) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateNetworkAcl(response, &metadata)
- }
- output := &CreateNetworkAclOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateNetworkAclOutput(&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 awsEc2query_deserializeOpErrorCreateNetworkAcl(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateNetworkAclEntry struct {
-}
-
-func (*awsEc2query_deserializeOpCreateNetworkAclEntry) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateNetworkAclEntry) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateNetworkAclEntry(response, &metadata)
- }
- output := &CreateNetworkAclEntryOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorCreateNetworkAclEntry(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateNetworkInsightsAccessScope struct {
-}
-
-func (*awsEc2query_deserializeOpCreateNetworkInsightsAccessScope) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateNetworkInsightsAccessScope) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateNetworkInsightsAccessScope(response, &metadata)
- }
- output := &CreateNetworkInsightsAccessScopeOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateNetworkInsightsAccessScopeOutput(&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 awsEc2query_deserializeOpErrorCreateNetworkInsightsAccessScope(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateNetworkInsightsPath struct {
-}
-
-func (*awsEc2query_deserializeOpCreateNetworkInsightsPath) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateNetworkInsightsPath) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateNetworkInsightsPath(response, &metadata)
- }
- output := &CreateNetworkInsightsPathOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateNetworkInsightsPathOutput(&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 awsEc2query_deserializeOpErrorCreateNetworkInsightsPath(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateNetworkInterface struct {
-}
-
-func (*awsEc2query_deserializeOpCreateNetworkInterface) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateNetworkInterface) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateNetworkInterface(response, &metadata)
- }
- output := &CreateNetworkInterfaceOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateNetworkInterfaceOutput(&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 awsEc2query_deserializeOpErrorCreateNetworkInterface(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateNetworkInterfacePermission struct {
-}
-
-func (*awsEc2query_deserializeOpCreateNetworkInterfacePermission) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateNetworkInterfacePermission) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateNetworkInterfacePermission(response, &metadata)
- }
- output := &CreateNetworkInterfacePermissionOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateNetworkInterfacePermissionOutput(&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 awsEc2query_deserializeOpErrorCreateNetworkInterfacePermission(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreatePlacementGroup struct {
-}
-
-func (*awsEc2query_deserializeOpCreatePlacementGroup) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreatePlacementGroup) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreatePlacementGroup(response, &metadata)
- }
- output := &CreatePlacementGroupOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreatePlacementGroupOutput(&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 awsEc2query_deserializeOpErrorCreatePlacementGroup(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreatePublicIpv4Pool struct {
-}
-
-func (*awsEc2query_deserializeOpCreatePublicIpv4Pool) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreatePublicIpv4Pool) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreatePublicIpv4Pool(response, &metadata)
- }
- output := &CreatePublicIpv4PoolOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreatePublicIpv4PoolOutput(&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 awsEc2query_deserializeOpErrorCreatePublicIpv4Pool(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateReplaceRootVolumeTask struct {
-}
-
-func (*awsEc2query_deserializeOpCreateReplaceRootVolumeTask) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateReplaceRootVolumeTask) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateReplaceRootVolumeTask(response, &metadata)
- }
- output := &CreateReplaceRootVolumeTaskOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateReplaceRootVolumeTaskOutput(&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 awsEc2query_deserializeOpErrorCreateReplaceRootVolumeTask(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateReservedInstancesListing struct {
-}
-
-func (*awsEc2query_deserializeOpCreateReservedInstancesListing) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateReservedInstancesListing) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateReservedInstancesListing(response, &metadata)
- }
- output := &CreateReservedInstancesListingOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateReservedInstancesListingOutput(&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 awsEc2query_deserializeOpErrorCreateReservedInstancesListing(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateRestoreImageTask struct {
-}
-
-func (*awsEc2query_deserializeOpCreateRestoreImageTask) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateRestoreImageTask) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateRestoreImageTask(response, &metadata)
- }
- output := &CreateRestoreImageTaskOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateRestoreImageTaskOutput(&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 awsEc2query_deserializeOpErrorCreateRestoreImageTask(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateRoute struct {
-}
-
-func (*awsEc2query_deserializeOpCreateRoute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateRoute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateRoute(response, &metadata)
- }
- output := &CreateRouteOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateRouteOutput(&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 awsEc2query_deserializeOpErrorCreateRoute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateRouteServer struct {
-}
-
-func (*awsEc2query_deserializeOpCreateRouteServer) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateRouteServer) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateRouteServer(response, &metadata)
- }
- output := &CreateRouteServerOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateRouteServerOutput(&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 awsEc2query_deserializeOpErrorCreateRouteServer(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateRouteServerEndpoint struct {
-}
-
-func (*awsEc2query_deserializeOpCreateRouteServerEndpoint) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateRouteServerEndpoint) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateRouteServerEndpoint(response, &metadata)
- }
- output := &CreateRouteServerEndpointOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateRouteServerEndpointOutput(&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 awsEc2query_deserializeOpErrorCreateRouteServerEndpoint(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateRouteServerPeer struct {
-}
-
-func (*awsEc2query_deserializeOpCreateRouteServerPeer) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateRouteServerPeer) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateRouteServerPeer(response, &metadata)
- }
- output := &CreateRouteServerPeerOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateRouteServerPeerOutput(&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 awsEc2query_deserializeOpErrorCreateRouteServerPeer(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateRouteTable struct {
-}
-
-func (*awsEc2query_deserializeOpCreateRouteTable) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateRouteTable) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateRouteTable(response, &metadata)
- }
- output := &CreateRouteTableOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateRouteTableOutput(&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 awsEc2query_deserializeOpErrorCreateRouteTable(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateSecurityGroup struct {
-}
-
-func (*awsEc2query_deserializeOpCreateSecurityGroup) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateSecurityGroup) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateSecurityGroup(response, &metadata)
- }
- output := &CreateSecurityGroupOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateSecurityGroupOutput(&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 awsEc2query_deserializeOpErrorCreateSecurityGroup(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateSnapshot struct {
-}
-
-func (*awsEc2query_deserializeOpCreateSnapshot) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateSnapshot) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateSnapshot(response, &metadata)
- }
- output := &CreateSnapshotOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateSnapshotOutput(&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 awsEc2query_deserializeOpErrorCreateSnapshot(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateSnapshots struct {
-}
-
-func (*awsEc2query_deserializeOpCreateSnapshots) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateSnapshots) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateSnapshots(response, &metadata)
- }
- output := &CreateSnapshotsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateSnapshotsOutput(&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 awsEc2query_deserializeOpErrorCreateSnapshots(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateSpotDatafeedSubscription struct {
-}
-
-func (*awsEc2query_deserializeOpCreateSpotDatafeedSubscription) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateSpotDatafeedSubscription) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateSpotDatafeedSubscription(response, &metadata)
- }
- output := &CreateSpotDatafeedSubscriptionOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateSpotDatafeedSubscriptionOutput(&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 awsEc2query_deserializeOpErrorCreateSpotDatafeedSubscription(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateStoreImageTask struct {
-}
-
-func (*awsEc2query_deserializeOpCreateStoreImageTask) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateStoreImageTask) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateStoreImageTask(response, &metadata)
- }
- output := &CreateStoreImageTaskOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateStoreImageTaskOutput(&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 awsEc2query_deserializeOpErrorCreateStoreImageTask(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateSubnet struct {
-}
-
-func (*awsEc2query_deserializeOpCreateSubnet) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateSubnet) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateSubnet(response, &metadata)
- }
- output := &CreateSubnetOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateSubnetOutput(&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 awsEc2query_deserializeOpErrorCreateSubnet(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateSubnetCidrReservation struct {
-}
-
-func (*awsEc2query_deserializeOpCreateSubnetCidrReservation) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateSubnetCidrReservation) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateSubnetCidrReservation(response, &metadata)
- }
- output := &CreateSubnetCidrReservationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateSubnetCidrReservationOutput(&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 awsEc2query_deserializeOpErrorCreateSubnetCidrReservation(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateTags struct {
-}
-
-func (*awsEc2query_deserializeOpCreateTags) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateTags) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateTags(response, &metadata)
- }
- output := &CreateTagsOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorCreateTags(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateTrafficMirrorFilter struct {
-}
-
-func (*awsEc2query_deserializeOpCreateTrafficMirrorFilter) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilter) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateTrafficMirrorFilter(response, &metadata)
- }
- output := &CreateTrafficMirrorFilterOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateTrafficMirrorFilterOutput(&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 awsEc2query_deserializeOpErrorCreateTrafficMirrorFilter(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateTrafficMirrorFilterRule struct {
-}
-
-func (*awsEc2query_deserializeOpCreateTrafficMirrorFilterRule) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateTrafficMirrorFilterRule) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateTrafficMirrorFilterRule(response, &metadata)
- }
- output := &CreateTrafficMirrorFilterRuleOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateTrafficMirrorFilterRuleOutput(&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 awsEc2query_deserializeOpErrorCreateTrafficMirrorFilterRule(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateTrafficMirrorSession struct {
-}
-
-func (*awsEc2query_deserializeOpCreateTrafficMirrorSession) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateTrafficMirrorSession) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateTrafficMirrorSession(response, &metadata)
- }
- output := &CreateTrafficMirrorSessionOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateTrafficMirrorSessionOutput(&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 awsEc2query_deserializeOpErrorCreateTrafficMirrorSession(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateTrafficMirrorTarget struct {
-}
-
-func (*awsEc2query_deserializeOpCreateTrafficMirrorTarget) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateTrafficMirrorTarget) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateTrafficMirrorTarget(response, &metadata)
- }
- output := &CreateTrafficMirrorTargetOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateTrafficMirrorTargetOutput(&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 awsEc2query_deserializeOpErrorCreateTrafficMirrorTarget(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateTransitGateway struct {
-}
-
-func (*awsEc2query_deserializeOpCreateTransitGateway) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateTransitGateway) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGateway(response, &metadata)
- }
- output := &CreateTransitGatewayOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateTransitGatewayOutput(&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 awsEc2query_deserializeOpErrorCreateTransitGateway(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateTransitGatewayConnect struct {
-}
-
-func (*awsEc2query_deserializeOpCreateTransitGatewayConnect) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateTransitGatewayConnect) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayConnect(response, &metadata)
- }
- output := &CreateTransitGatewayConnectOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateTransitGatewayConnectOutput(&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 awsEc2query_deserializeOpErrorCreateTransitGatewayConnect(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateTransitGatewayConnectPeer struct {
-}
-
-func (*awsEc2query_deserializeOpCreateTransitGatewayConnectPeer) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateTransitGatewayConnectPeer) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayConnectPeer(response, &metadata)
- }
- output := &CreateTransitGatewayConnectPeerOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateTransitGatewayConnectPeerOutput(&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 awsEc2query_deserializeOpErrorCreateTransitGatewayConnectPeer(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateTransitGatewayMulticastDomain struct {
-}
-
-func (*awsEc2query_deserializeOpCreateTransitGatewayMulticastDomain) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateTransitGatewayMulticastDomain) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayMulticastDomain(response, &metadata)
- }
- output := &CreateTransitGatewayMulticastDomainOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateTransitGatewayMulticastDomainOutput(&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 awsEc2query_deserializeOpErrorCreateTransitGatewayMulticastDomain(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateTransitGatewayPeeringAttachment struct {
-}
-
-func (*awsEc2query_deserializeOpCreateTransitGatewayPeeringAttachment) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateTransitGatewayPeeringAttachment) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayPeeringAttachment(response, &metadata)
- }
- output := &CreateTransitGatewayPeeringAttachmentOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateTransitGatewayPeeringAttachmentOutput(&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 awsEc2query_deserializeOpErrorCreateTransitGatewayPeeringAttachment(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateTransitGatewayPolicyTable struct {
-}
-
-func (*awsEc2query_deserializeOpCreateTransitGatewayPolicyTable) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateTransitGatewayPolicyTable) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayPolicyTable(response, &metadata)
- }
- output := &CreateTransitGatewayPolicyTableOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateTransitGatewayPolicyTableOutput(&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 awsEc2query_deserializeOpErrorCreateTransitGatewayPolicyTable(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateTransitGatewayPrefixListReference struct {
-}
-
-func (*awsEc2query_deserializeOpCreateTransitGatewayPrefixListReference) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateTransitGatewayPrefixListReference) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayPrefixListReference(response, &metadata)
- }
- output := &CreateTransitGatewayPrefixListReferenceOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateTransitGatewayPrefixListReferenceOutput(&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 awsEc2query_deserializeOpErrorCreateTransitGatewayPrefixListReference(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateTransitGatewayRoute struct {
-}
-
-func (*awsEc2query_deserializeOpCreateTransitGatewayRoute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateTransitGatewayRoute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayRoute(response, &metadata)
- }
- output := &CreateTransitGatewayRouteOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateTransitGatewayRouteOutput(&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 awsEc2query_deserializeOpErrorCreateTransitGatewayRoute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateTransitGatewayRouteTable struct {
-}
-
-func (*awsEc2query_deserializeOpCreateTransitGatewayRouteTable) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateTransitGatewayRouteTable) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayRouteTable(response, &metadata)
- }
- output := &CreateTransitGatewayRouteTableOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateTransitGatewayRouteTableOutput(&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 awsEc2query_deserializeOpErrorCreateTransitGatewayRouteTable(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateTransitGatewayRouteTableAnnouncement struct {
-}
-
-func (*awsEc2query_deserializeOpCreateTransitGatewayRouteTableAnnouncement) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateTransitGatewayRouteTableAnnouncement) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayRouteTableAnnouncement(response, &metadata)
- }
- output := &CreateTransitGatewayRouteTableAnnouncementOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateTransitGatewayRouteTableAnnouncementOutput(&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 awsEc2query_deserializeOpErrorCreateTransitGatewayRouteTableAnnouncement(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateTransitGatewayVpcAttachment struct {
-}
-
-func (*awsEc2query_deserializeOpCreateTransitGatewayVpcAttachment) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateTransitGatewayVpcAttachment) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateTransitGatewayVpcAttachment(response, &metadata)
- }
- output := &CreateTransitGatewayVpcAttachmentOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateTransitGatewayVpcAttachmentOutput(&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 awsEc2query_deserializeOpErrorCreateTransitGatewayVpcAttachment(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateVerifiedAccessEndpoint struct {
-}
-
-func (*awsEc2query_deserializeOpCreateVerifiedAccessEndpoint) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateVerifiedAccessEndpoint) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateVerifiedAccessEndpoint(response, &metadata)
- }
- output := &CreateVerifiedAccessEndpointOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateVerifiedAccessEndpointOutput(&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 awsEc2query_deserializeOpErrorCreateVerifiedAccessEndpoint(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateVerifiedAccessGroup struct {
-}
-
-func (*awsEc2query_deserializeOpCreateVerifiedAccessGroup) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateVerifiedAccessGroup) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateVerifiedAccessGroup(response, &metadata)
- }
- output := &CreateVerifiedAccessGroupOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateVerifiedAccessGroupOutput(&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 awsEc2query_deserializeOpErrorCreateVerifiedAccessGroup(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateVerifiedAccessInstance struct {
-}
-
-func (*awsEc2query_deserializeOpCreateVerifiedAccessInstance) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateVerifiedAccessInstance) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateVerifiedAccessInstance(response, &metadata)
- }
- output := &CreateVerifiedAccessInstanceOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateVerifiedAccessInstanceOutput(&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 awsEc2query_deserializeOpErrorCreateVerifiedAccessInstance(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateVerifiedAccessTrustProvider struct {
-}
-
-func (*awsEc2query_deserializeOpCreateVerifiedAccessTrustProvider) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateVerifiedAccessTrustProvider) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateVerifiedAccessTrustProvider(response, &metadata)
- }
- output := &CreateVerifiedAccessTrustProviderOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateVerifiedAccessTrustProviderOutput(&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 awsEc2query_deserializeOpErrorCreateVerifiedAccessTrustProvider(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateVolume struct {
-}
-
-func (*awsEc2query_deserializeOpCreateVolume) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateVolume) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateVolume(response, &metadata)
- }
- output := &CreateVolumeOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateVolumeOutput(&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 awsEc2query_deserializeOpErrorCreateVolume(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateVpc struct {
-}
-
-func (*awsEc2query_deserializeOpCreateVpc) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateVpc) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateVpc(response, &metadata)
- }
- output := &CreateVpcOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateVpcOutput(&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 awsEc2query_deserializeOpErrorCreateVpc(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateVpcBlockPublicAccessExclusion struct {
-}
-
-func (*awsEc2query_deserializeOpCreateVpcBlockPublicAccessExclusion) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateVpcBlockPublicAccessExclusion) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateVpcBlockPublicAccessExclusion(response, &metadata)
- }
- output := &CreateVpcBlockPublicAccessExclusionOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateVpcBlockPublicAccessExclusionOutput(&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 awsEc2query_deserializeOpErrorCreateVpcBlockPublicAccessExclusion(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateVpcEndpoint struct {
-}
-
-func (*awsEc2query_deserializeOpCreateVpcEndpoint) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateVpcEndpoint) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateVpcEndpoint(response, &metadata)
- }
- output := &CreateVpcEndpointOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateVpcEndpointOutput(&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 awsEc2query_deserializeOpErrorCreateVpcEndpoint(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateVpcEndpointConnectionNotification struct {
-}
-
-func (*awsEc2query_deserializeOpCreateVpcEndpointConnectionNotification) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateVpcEndpointConnectionNotification) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateVpcEndpointConnectionNotification(response, &metadata)
- }
- output := &CreateVpcEndpointConnectionNotificationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateVpcEndpointConnectionNotificationOutput(&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 awsEc2query_deserializeOpErrorCreateVpcEndpointConnectionNotification(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateVpcEndpointServiceConfiguration struct {
-}
-
-func (*awsEc2query_deserializeOpCreateVpcEndpointServiceConfiguration) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateVpcEndpointServiceConfiguration) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateVpcEndpointServiceConfiguration(response, &metadata)
- }
- output := &CreateVpcEndpointServiceConfigurationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateVpcEndpointServiceConfigurationOutput(&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 awsEc2query_deserializeOpErrorCreateVpcEndpointServiceConfiguration(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateVpcPeeringConnection struct {
-}
-
-func (*awsEc2query_deserializeOpCreateVpcPeeringConnection) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateVpcPeeringConnection) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateVpcPeeringConnection(response, &metadata)
- }
- output := &CreateVpcPeeringConnectionOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateVpcPeeringConnectionOutput(&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 awsEc2query_deserializeOpErrorCreateVpcPeeringConnection(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateVpnConnection struct {
-}
-
-func (*awsEc2query_deserializeOpCreateVpnConnection) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateVpnConnection) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateVpnConnection(response, &metadata)
- }
- output := &CreateVpnConnectionOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateVpnConnectionOutput(&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 awsEc2query_deserializeOpErrorCreateVpnConnection(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateVpnConnectionRoute struct {
-}
-
-func (*awsEc2query_deserializeOpCreateVpnConnectionRoute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateVpnConnectionRoute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateVpnConnectionRoute(response, &metadata)
- }
- output := &CreateVpnConnectionRouteOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorCreateVpnConnectionRoute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpCreateVpnGateway struct {
-}
-
-func (*awsEc2query_deserializeOpCreateVpnGateway) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpCreateVpnGateway) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorCreateVpnGateway(response, &metadata)
- }
- output := &CreateVpnGatewayOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentCreateVpnGatewayOutput(&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 awsEc2query_deserializeOpErrorCreateVpnGateway(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteCarrierGateway struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteCarrierGateway) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteCarrierGateway) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteCarrierGateway(response, &metadata)
- }
- output := &DeleteCarrierGatewayOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteCarrierGatewayOutput(&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 awsEc2query_deserializeOpErrorDeleteCarrierGateway(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteClientVpnEndpoint struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteClientVpnEndpoint) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteClientVpnEndpoint) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteClientVpnEndpoint(response, &metadata)
- }
- output := &DeleteClientVpnEndpointOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteClientVpnEndpointOutput(&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 awsEc2query_deserializeOpErrorDeleteClientVpnEndpoint(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteClientVpnRoute struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteClientVpnRoute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteClientVpnRoute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteClientVpnRoute(response, &metadata)
- }
- output := &DeleteClientVpnRouteOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteClientVpnRouteOutput(&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 awsEc2query_deserializeOpErrorDeleteClientVpnRoute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteCoipCidr struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteCoipCidr) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteCoipCidr) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteCoipCidr(response, &metadata)
- }
- output := &DeleteCoipCidrOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteCoipCidrOutput(&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 awsEc2query_deserializeOpErrorDeleteCoipCidr(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteCoipPool struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteCoipPool) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteCoipPool) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteCoipPool(response, &metadata)
- }
- output := &DeleteCoipPoolOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteCoipPoolOutput(&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 awsEc2query_deserializeOpErrorDeleteCoipPool(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteCustomerGateway struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteCustomerGateway) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteCustomerGateway) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteCustomerGateway(response, &metadata)
- }
- output := &DeleteCustomerGatewayOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorDeleteCustomerGateway(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteDhcpOptions struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteDhcpOptions) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteDhcpOptions) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteDhcpOptions(response, &metadata)
- }
- output := &DeleteDhcpOptionsOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorDeleteDhcpOptions(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteEgressOnlyInternetGateway struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteEgressOnlyInternetGateway) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteEgressOnlyInternetGateway) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteEgressOnlyInternetGateway(response, &metadata)
- }
- output := &DeleteEgressOnlyInternetGatewayOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteEgressOnlyInternetGatewayOutput(&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 awsEc2query_deserializeOpErrorDeleteEgressOnlyInternetGateway(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteFleets struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteFleets) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteFleets) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteFleets(response, &metadata)
- }
- output := &DeleteFleetsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteFleetsOutput(&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 awsEc2query_deserializeOpErrorDeleteFleets(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteFlowLogs struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteFlowLogs) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteFlowLogs) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteFlowLogs(response, &metadata)
- }
- output := &DeleteFlowLogsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteFlowLogsOutput(&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 awsEc2query_deserializeOpErrorDeleteFlowLogs(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteFpgaImage struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteFpgaImage) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteFpgaImage) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteFpgaImage(response, &metadata)
- }
- output := &DeleteFpgaImageOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteFpgaImageOutput(&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 awsEc2query_deserializeOpErrorDeleteFpgaImage(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteInstanceConnectEndpoint struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteInstanceConnectEndpoint) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteInstanceConnectEndpoint) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteInstanceConnectEndpoint(response, &metadata)
- }
- output := &DeleteInstanceConnectEndpointOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteInstanceConnectEndpointOutput(&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 awsEc2query_deserializeOpErrorDeleteInstanceConnectEndpoint(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteInstanceEventWindow struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteInstanceEventWindow) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteInstanceEventWindow) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteInstanceEventWindow(response, &metadata)
- }
- output := &DeleteInstanceEventWindowOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteInstanceEventWindowOutput(&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 awsEc2query_deserializeOpErrorDeleteInstanceEventWindow(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteInternetGateway struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteInternetGateway) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteInternetGateway) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteInternetGateway(response, &metadata)
- }
- output := &DeleteInternetGatewayOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorDeleteInternetGateway(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteIpam struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteIpam) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteIpam) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteIpam(response, &metadata)
- }
- output := &DeleteIpamOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteIpamOutput(&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 awsEc2query_deserializeOpErrorDeleteIpam(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteIpamExternalResourceVerificationToken struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteIpamExternalResourceVerificationToken) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteIpamExternalResourceVerificationToken) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteIpamExternalResourceVerificationToken(response, &metadata)
- }
- output := &DeleteIpamExternalResourceVerificationTokenOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteIpamExternalResourceVerificationTokenOutput(&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 awsEc2query_deserializeOpErrorDeleteIpamExternalResourceVerificationToken(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteIpamPool struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteIpamPool) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteIpamPool) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteIpamPool(response, &metadata)
- }
- output := &DeleteIpamPoolOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteIpamPoolOutput(&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 awsEc2query_deserializeOpErrorDeleteIpamPool(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteIpamResourceDiscovery struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteIpamResourceDiscovery) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteIpamResourceDiscovery) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteIpamResourceDiscovery(response, &metadata)
- }
- output := &DeleteIpamResourceDiscoveryOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteIpamResourceDiscoveryOutput(&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 awsEc2query_deserializeOpErrorDeleteIpamResourceDiscovery(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteIpamScope struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteIpamScope) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteIpamScope) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteIpamScope(response, &metadata)
- }
- output := &DeleteIpamScopeOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteIpamScopeOutput(&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 awsEc2query_deserializeOpErrorDeleteIpamScope(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteKeyPair struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteKeyPair) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteKeyPair) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteKeyPair(response, &metadata)
- }
- output := &DeleteKeyPairOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteKeyPairOutput(&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 awsEc2query_deserializeOpErrorDeleteKeyPair(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteLaunchTemplate struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteLaunchTemplate) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteLaunchTemplate) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteLaunchTemplate(response, &metadata)
- }
- output := &DeleteLaunchTemplateOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteLaunchTemplateOutput(&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 awsEc2query_deserializeOpErrorDeleteLaunchTemplate(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteLaunchTemplateVersions struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteLaunchTemplateVersions) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteLaunchTemplateVersions) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteLaunchTemplateVersions(response, &metadata)
- }
- output := &DeleteLaunchTemplateVersionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteLaunchTemplateVersionsOutput(&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 awsEc2query_deserializeOpErrorDeleteLaunchTemplateVersions(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteLocalGatewayRoute struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteLocalGatewayRoute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteLocalGatewayRoute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteLocalGatewayRoute(response, &metadata)
- }
- output := &DeleteLocalGatewayRouteOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteLocalGatewayRouteOutput(&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 awsEc2query_deserializeOpErrorDeleteLocalGatewayRoute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteLocalGatewayRouteTable struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteLocalGatewayRouteTable) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteLocalGatewayRouteTable) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteLocalGatewayRouteTable(response, &metadata)
- }
- output := &DeleteLocalGatewayRouteTableOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteLocalGatewayRouteTableOutput(&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 awsEc2query_deserializeOpErrorDeleteLocalGatewayRouteTable(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation(response, &metadata)
- }
- output := &DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput(&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 awsEc2query_deserializeOpErrorDeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteLocalGatewayRouteTableVpcAssociation struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteLocalGatewayRouteTableVpcAssociation) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteLocalGatewayRouteTableVpcAssociation) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteLocalGatewayRouteTableVpcAssociation(response, &metadata)
- }
- output := &DeleteLocalGatewayRouteTableVpcAssociationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteLocalGatewayRouteTableVpcAssociationOutput(&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 awsEc2query_deserializeOpErrorDeleteLocalGatewayRouteTableVpcAssociation(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteLocalGatewayVirtualInterface struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteLocalGatewayVirtualInterface) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteLocalGatewayVirtualInterface) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteLocalGatewayVirtualInterface(response, &metadata)
- }
- output := &DeleteLocalGatewayVirtualInterfaceOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteLocalGatewayVirtualInterfaceOutput(&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 awsEc2query_deserializeOpErrorDeleteLocalGatewayVirtualInterface(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteLocalGatewayVirtualInterfaceGroup struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteLocalGatewayVirtualInterfaceGroup) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteLocalGatewayVirtualInterfaceGroup) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteLocalGatewayVirtualInterfaceGroup(response, &metadata)
- }
- output := &DeleteLocalGatewayVirtualInterfaceGroupOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteLocalGatewayVirtualInterfaceGroupOutput(&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 awsEc2query_deserializeOpErrorDeleteLocalGatewayVirtualInterfaceGroup(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteManagedPrefixList struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteManagedPrefixList) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteManagedPrefixList) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteManagedPrefixList(response, &metadata)
- }
- output := &DeleteManagedPrefixListOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteManagedPrefixListOutput(&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 awsEc2query_deserializeOpErrorDeleteManagedPrefixList(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteNatGateway struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteNatGateway) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteNatGateway) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteNatGateway(response, &metadata)
- }
- output := &DeleteNatGatewayOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteNatGatewayOutput(&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 awsEc2query_deserializeOpErrorDeleteNatGateway(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteNetworkAcl struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteNetworkAcl) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteNetworkAcl) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteNetworkAcl(response, &metadata)
- }
- output := &DeleteNetworkAclOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorDeleteNetworkAcl(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteNetworkAclEntry struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteNetworkAclEntry) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteNetworkAclEntry) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteNetworkAclEntry(response, &metadata)
- }
- output := &DeleteNetworkAclEntryOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorDeleteNetworkAclEntry(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteNetworkInsightsAccessScope struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteNetworkInsightsAccessScope) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteNetworkInsightsAccessScope) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteNetworkInsightsAccessScope(response, &metadata)
- }
- output := &DeleteNetworkInsightsAccessScopeOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteNetworkInsightsAccessScopeOutput(&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 awsEc2query_deserializeOpErrorDeleteNetworkInsightsAccessScope(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteNetworkInsightsAccessScopeAnalysis struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteNetworkInsightsAccessScopeAnalysis) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteNetworkInsightsAccessScopeAnalysis) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteNetworkInsightsAccessScopeAnalysis(response, &metadata)
- }
- output := &DeleteNetworkInsightsAccessScopeAnalysisOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteNetworkInsightsAccessScopeAnalysisOutput(&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 awsEc2query_deserializeOpErrorDeleteNetworkInsightsAccessScopeAnalysis(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteNetworkInsightsAnalysis struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteNetworkInsightsAnalysis) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteNetworkInsightsAnalysis) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteNetworkInsightsAnalysis(response, &metadata)
- }
- output := &DeleteNetworkInsightsAnalysisOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteNetworkInsightsAnalysisOutput(&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 awsEc2query_deserializeOpErrorDeleteNetworkInsightsAnalysis(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteNetworkInsightsPath struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteNetworkInsightsPath) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteNetworkInsightsPath) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteNetworkInsightsPath(response, &metadata)
- }
- output := &DeleteNetworkInsightsPathOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteNetworkInsightsPathOutput(&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 awsEc2query_deserializeOpErrorDeleteNetworkInsightsPath(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteNetworkInterface struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteNetworkInterface) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteNetworkInterface) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteNetworkInterface(response, &metadata)
- }
- output := &DeleteNetworkInterfaceOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorDeleteNetworkInterface(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteNetworkInterfacePermission struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteNetworkInterfacePermission) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteNetworkInterfacePermission) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteNetworkInterfacePermission(response, &metadata)
- }
- output := &DeleteNetworkInterfacePermissionOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteNetworkInterfacePermissionOutput(&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 awsEc2query_deserializeOpErrorDeleteNetworkInterfacePermission(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeletePlacementGroup struct {
-}
-
-func (*awsEc2query_deserializeOpDeletePlacementGroup) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeletePlacementGroup) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeletePlacementGroup(response, &metadata)
- }
- output := &DeletePlacementGroupOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorDeletePlacementGroup(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeletePublicIpv4Pool struct {
-}
-
-func (*awsEc2query_deserializeOpDeletePublicIpv4Pool) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeletePublicIpv4Pool) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeletePublicIpv4Pool(response, &metadata)
- }
- output := &DeletePublicIpv4PoolOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeletePublicIpv4PoolOutput(&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 awsEc2query_deserializeOpErrorDeletePublicIpv4Pool(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteQueuedReservedInstances struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteQueuedReservedInstances) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteQueuedReservedInstances) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteQueuedReservedInstances(response, &metadata)
- }
- output := &DeleteQueuedReservedInstancesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteQueuedReservedInstancesOutput(&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 awsEc2query_deserializeOpErrorDeleteQueuedReservedInstances(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteRoute struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteRoute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteRoute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteRoute(response, &metadata)
- }
- output := &DeleteRouteOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorDeleteRoute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteRouteServer struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteRouteServer) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteRouteServer) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteRouteServer(response, &metadata)
- }
- output := &DeleteRouteServerOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteRouteServerOutput(&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 awsEc2query_deserializeOpErrorDeleteRouteServer(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteRouteServerEndpoint struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteRouteServerEndpoint) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteRouteServerEndpoint) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteRouteServerEndpoint(response, &metadata)
- }
- output := &DeleteRouteServerEndpointOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteRouteServerEndpointOutput(&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 awsEc2query_deserializeOpErrorDeleteRouteServerEndpoint(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteRouteServerPeer struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteRouteServerPeer) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteRouteServerPeer) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteRouteServerPeer(response, &metadata)
- }
- output := &DeleteRouteServerPeerOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteRouteServerPeerOutput(&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 awsEc2query_deserializeOpErrorDeleteRouteServerPeer(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteRouteTable struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteRouteTable) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteRouteTable) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteRouteTable(response, &metadata)
- }
- output := &DeleteRouteTableOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorDeleteRouteTable(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteSecurityGroup struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteSecurityGroup) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteSecurityGroup) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteSecurityGroup(response, &metadata)
- }
- output := &DeleteSecurityGroupOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteSecurityGroupOutput(&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 awsEc2query_deserializeOpErrorDeleteSecurityGroup(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteSnapshot struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteSnapshot) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteSnapshot) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteSnapshot(response, &metadata)
- }
- output := &DeleteSnapshotOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorDeleteSnapshot(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteSpotDatafeedSubscription struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteSpotDatafeedSubscription) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteSpotDatafeedSubscription) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteSpotDatafeedSubscription(response, &metadata)
- }
- output := &DeleteSpotDatafeedSubscriptionOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorDeleteSpotDatafeedSubscription(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteSubnet struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteSubnet) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteSubnet) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteSubnet(response, &metadata)
- }
- output := &DeleteSubnetOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorDeleteSubnet(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteSubnetCidrReservation struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteSubnetCidrReservation) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteSubnetCidrReservation) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteSubnetCidrReservation(response, &metadata)
- }
- output := &DeleteSubnetCidrReservationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteSubnetCidrReservationOutput(&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 awsEc2query_deserializeOpErrorDeleteSubnetCidrReservation(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteTags struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteTags) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteTags) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteTags(response, &metadata)
- }
- output := &DeleteTagsOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorDeleteTags(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteTrafficMirrorFilter struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteTrafficMirrorFilter) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteTrafficMirrorFilter) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteTrafficMirrorFilter(response, &metadata)
- }
- output := &DeleteTrafficMirrorFilterOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteTrafficMirrorFilterOutput(&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 awsEc2query_deserializeOpErrorDeleteTrafficMirrorFilter(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteTrafficMirrorFilterRule struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteTrafficMirrorFilterRule) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteTrafficMirrorFilterRule) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteTrafficMirrorFilterRule(response, &metadata)
- }
- output := &DeleteTrafficMirrorFilterRuleOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteTrafficMirrorFilterRuleOutput(&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 awsEc2query_deserializeOpErrorDeleteTrafficMirrorFilterRule(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteTrafficMirrorSession struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteTrafficMirrorSession) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteTrafficMirrorSession) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteTrafficMirrorSession(response, &metadata)
- }
- output := &DeleteTrafficMirrorSessionOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteTrafficMirrorSessionOutput(&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 awsEc2query_deserializeOpErrorDeleteTrafficMirrorSession(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteTrafficMirrorTarget struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteTrafficMirrorTarget) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteTrafficMirrorTarget) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteTrafficMirrorTarget(response, &metadata)
- }
- output := &DeleteTrafficMirrorTargetOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteTrafficMirrorTargetOutput(&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 awsEc2query_deserializeOpErrorDeleteTrafficMirrorTarget(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteTransitGateway struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteTransitGateway) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteTransitGateway) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGateway(response, &metadata)
- }
- output := &DeleteTransitGatewayOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayOutput(&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 awsEc2query_deserializeOpErrorDeleteTransitGateway(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteTransitGatewayConnect struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteTransitGatewayConnect) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteTransitGatewayConnect) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayConnect(response, &metadata)
- }
- output := &DeleteTransitGatewayConnectOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayConnectOutput(&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 awsEc2query_deserializeOpErrorDeleteTransitGatewayConnect(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteTransitGatewayConnectPeer struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteTransitGatewayConnectPeer) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteTransitGatewayConnectPeer) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayConnectPeer(response, &metadata)
- }
- output := &DeleteTransitGatewayConnectPeerOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayConnectPeerOutput(&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 awsEc2query_deserializeOpErrorDeleteTransitGatewayConnectPeer(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteTransitGatewayMulticastDomain struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteTransitGatewayMulticastDomain) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteTransitGatewayMulticastDomain) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayMulticastDomain(response, &metadata)
- }
- output := &DeleteTransitGatewayMulticastDomainOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayMulticastDomainOutput(&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 awsEc2query_deserializeOpErrorDeleteTransitGatewayMulticastDomain(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteTransitGatewayPeeringAttachment struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteTransitGatewayPeeringAttachment) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteTransitGatewayPeeringAttachment) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayPeeringAttachment(response, &metadata)
- }
- output := &DeleteTransitGatewayPeeringAttachmentOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayPeeringAttachmentOutput(&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 awsEc2query_deserializeOpErrorDeleteTransitGatewayPeeringAttachment(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteTransitGatewayPolicyTable struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteTransitGatewayPolicyTable) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteTransitGatewayPolicyTable) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayPolicyTable(response, &metadata)
- }
- output := &DeleteTransitGatewayPolicyTableOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayPolicyTableOutput(&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 awsEc2query_deserializeOpErrorDeleteTransitGatewayPolicyTable(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteTransitGatewayPrefixListReference struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteTransitGatewayPrefixListReference) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteTransitGatewayPrefixListReference) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayPrefixListReference(response, &metadata)
- }
- output := &DeleteTransitGatewayPrefixListReferenceOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayPrefixListReferenceOutput(&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 awsEc2query_deserializeOpErrorDeleteTransitGatewayPrefixListReference(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteTransitGatewayRoute struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteTransitGatewayRoute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteTransitGatewayRoute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayRoute(response, &metadata)
- }
- output := &DeleteTransitGatewayRouteOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayRouteOutput(&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 awsEc2query_deserializeOpErrorDeleteTransitGatewayRoute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteTransitGatewayRouteTable struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteTransitGatewayRouteTable) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteTransitGatewayRouteTable) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayRouteTable(response, &metadata)
- }
- output := &DeleteTransitGatewayRouteTableOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayRouteTableOutput(&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 awsEc2query_deserializeOpErrorDeleteTransitGatewayRouteTable(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteTransitGatewayRouteTableAnnouncement struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteTransitGatewayRouteTableAnnouncement) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteTransitGatewayRouteTableAnnouncement) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayRouteTableAnnouncement(response, &metadata)
- }
- output := &DeleteTransitGatewayRouteTableAnnouncementOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayRouteTableAnnouncementOutput(&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 awsEc2query_deserializeOpErrorDeleteTransitGatewayRouteTableAnnouncement(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteTransitGatewayVpcAttachment struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteTransitGatewayVpcAttachment) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteTransitGatewayVpcAttachment) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteTransitGatewayVpcAttachment(response, &metadata)
- }
- output := &DeleteTransitGatewayVpcAttachmentOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteTransitGatewayVpcAttachmentOutput(&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 awsEc2query_deserializeOpErrorDeleteTransitGatewayVpcAttachment(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteVerifiedAccessEndpoint struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteVerifiedAccessEndpoint) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteVerifiedAccessEndpoint) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteVerifiedAccessEndpoint(response, &metadata)
- }
- output := &DeleteVerifiedAccessEndpointOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteVerifiedAccessEndpointOutput(&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 awsEc2query_deserializeOpErrorDeleteVerifiedAccessEndpoint(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteVerifiedAccessGroup struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteVerifiedAccessGroup) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteVerifiedAccessGroup) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteVerifiedAccessGroup(response, &metadata)
- }
- output := &DeleteVerifiedAccessGroupOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteVerifiedAccessGroupOutput(&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 awsEc2query_deserializeOpErrorDeleteVerifiedAccessGroup(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteVerifiedAccessInstance struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteVerifiedAccessInstance) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteVerifiedAccessInstance) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteVerifiedAccessInstance(response, &metadata)
- }
- output := &DeleteVerifiedAccessInstanceOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteVerifiedAccessInstanceOutput(&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 awsEc2query_deserializeOpErrorDeleteVerifiedAccessInstance(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteVerifiedAccessTrustProvider struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteVerifiedAccessTrustProvider) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteVerifiedAccessTrustProvider) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteVerifiedAccessTrustProvider(response, &metadata)
- }
- output := &DeleteVerifiedAccessTrustProviderOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteVerifiedAccessTrustProviderOutput(&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 awsEc2query_deserializeOpErrorDeleteVerifiedAccessTrustProvider(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteVolume struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteVolume) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteVolume) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteVolume(response, &metadata)
- }
- output := &DeleteVolumeOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorDeleteVolume(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteVpc struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteVpc) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteVpc) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteVpc(response, &metadata)
- }
- output := &DeleteVpcOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorDeleteVpc(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteVpcBlockPublicAccessExclusion struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteVpcBlockPublicAccessExclusion) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteVpcBlockPublicAccessExclusion) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteVpcBlockPublicAccessExclusion(response, &metadata)
- }
- output := &DeleteVpcBlockPublicAccessExclusionOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteVpcBlockPublicAccessExclusionOutput(&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 awsEc2query_deserializeOpErrorDeleteVpcBlockPublicAccessExclusion(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteVpcEndpointConnectionNotifications struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteVpcEndpointConnectionNotifications) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteVpcEndpointConnectionNotifications) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteVpcEndpointConnectionNotifications(response, &metadata)
- }
- output := &DeleteVpcEndpointConnectionNotificationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteVpcEndpointConnectionNotificationsOutput(&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 awsEc2query_deserializeOpErrorDeleteVpcEndpointConnectionNotifications(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteVpcEndpoints struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteVpcEndpoints) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteVpcEndpoints) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteVpcEndpoints(response, &metadata)
- }
- output := &DeleteVpcEndpointsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteVpcEndpointsOutput(&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 awsEc2query_deserializeOpErrorDeleteVpcEndpoints(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteVpcEndpointServiceConfigurations struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteVpcEndpointServiceConfigurations) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteVpcEndpointServiceConfigurations) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteVpcEndpointServiceConfigurations(response, &metadata)
- }
- output := &DeleteVpcEndpointServiceConfigurationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteVpcEndpointServiceConfigurationsOutput(&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 awsEc2query_deserializeOpErrorDeleteVpcEndpointServiceConfigurations(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteVpcPeeringConnection struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteVpcPeeringConnection) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteVpcPeeringConnection) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteVpcPeeringConnection(response, &metadata)
- }
- output := &DeleteVpcPeeringConnectionOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeleteVpcPeeringConnectionOutput(&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 awsEc2query_deserializeOpErrorDeleteVpcPeeringConnection(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteVpnConnection struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteVpnConnection) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteVpnConnection) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteVpnConnection(response, &metadata)
- }
- output := &DeleteVpnConnectionOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorDeleteVpnConnection(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteVpnConnectionRoute struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteVpnConnectionRoute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteVpnConnectionRoute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteVpnConnectionRoute(response, &metadata)
- }
- output := &DeleteVpnConnectionRouteOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorDeleteVpnConnectionRoute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeleteVpnGateway struct {
-}
-
-func (*awsEc2query_deserializeOpDeleteVpnGateway) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeleteVpnGateway) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeleteVpnGateway(response, &metadata)
- }
- output := &DeleteVpnGatewayOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorDeleteVpnGateway(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeprovisionByoipCidr struct {
-}
-
-func (*awsEc2query_deserializeOpDeprovisionByoipCidr) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeprovisionByoipCidr) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeprovisionByoipCidr(response, &metadata)
- }
- output := &DeprovisionByoipCidrOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeprovisionByoipCidrOutput(&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 awsEc2query_deserializeOpErrorDeprovisionByoipCidr(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeprovisionIpamByoasn struct {
-}
-
-func (*awsEc2query_deserializeOpDeprovisionIpamByoasn) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeprovisionIpamByoasn) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeprovisionIpamByoasn(response, &metadata)
- }
- output := &DeprovisionIpamByoasnOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeprovisionIpamByoasnOutput(&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 awsEc2query_deserializeOpErrorDeprovisionIpamByoasn(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeprovisionIpamPoolCidr struct {
-}
-
-func (*awsEc2query_deserializeOpDeprovisionIpamPoolCidr) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeprovisionIpamPoolCidr) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeprovisionIpamPoolCidr(response, &metadata)
- }
- output := &DeprovisionIpamPoolCidrOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeprovisionIpamPoolCidrOutput(&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 awsEc2query_deserializeOpErrorDeprovisionIpamPoolCidr(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeprovisionPublicIpv4PoolCidr struct {
-}
-
-func (*awsEc2query_deserializeOpDeprovisionPublicIpv4PoolCidr) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeprovisionPublicIpv4PoolCidr) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeprovisionPublicIpv4PoolCidr(response, &metadata)
- }
- output := &DeprovisionPublicIpv4PoolCidrOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeprovisionPublicIpv4PoolCidrOutput(&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 awsEc2query_deserializeOpErrorDeprovisionPublicIpv4PoolCidr(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeregisterImage struct {
-}
-
-func (*awsEc2query_deserializeOpDeregisterImage) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeregisterImage) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeregisterImage(response, &metadata)
- }
- output := &DeregisterImageOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeregisterImageOutput(&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 awsEc2query_deserializeOpErrorDeregisterImage(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeregisterInstanceEventNotificationAttributes struct {
-}
-
-func (*awsEc2query_deserializeOpDeregisterInstanceEventNotificationAttributes) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeregisterInstanceEventNotificationAttributes) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeregisterInstanceEventNotificationAttributes(response, &metadata)
- }
- output := &DeregisterInstanceEventNotificationAttributesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeregisterInstanceEventNotificationAttributesOutput(&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 awsEc2query_deserializeOpErrorDeregisterInstanceEventNotificationAttributes(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupMembers struct {
-}
-
-func (*awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupMembers) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupMembers) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeregisterTransitGatewayMulticastGroupMembers(response, &metadata)
- }
- output := &DeregisterTransitGatewayMulticastGroupMembersOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeregisterTransitGatewayMulticastGroupMembersOutput(&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 awsEc2query_deserializeOpErrorDeregisterTransitGatewayMulticastGroupMembers(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupSources struct {
-}
-
-func (*awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupSources) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDeregisterTransitGatewayMulticastGroupSources) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDeregisterTransitGatewayMulticastGroupSources(response, &metadata)
- }
- output := &DeregisterTransitGatewayMulticastGroupSourcesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDeregisterTransitGatewayMulticastGroupSourcesOutput(&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 awsEc2query_deserializeOpErrorDeregisterTransitGatewayMulticastGroupSources(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeAccountAttributes struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeAccountAttributes) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeAccountAttributes) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeAccountAttributes(response, &metadata)
- }
- output := &DescribeAccountAttributesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeAccountAttributesOutput(&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 awsEc2query_deserializeOpErrorDescribeAccountAttributes(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeAddresses struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeAddresses) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeAddresses) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeAddresses(response, &metadata)
- }
- output := &DescribeAddressesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeAddressesOutput(&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 awsEc2query_deserializeOpErrorDescribeAddresses(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeAddressesAttribute struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeAddressesAttribute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeAddressesAttribute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeAddressesAttribute(response, &metadata)
- }
- output := &DescribeAddressesAttributeOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeAddressesAttributeOutput(&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 awsEc2query_deserializeOpErrorDescribeAddressesAttribute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeAddressTransfers struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeAddressTransfers) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeAddressTransfers) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeAddressTransfers(response, &metadata)
- }
- output := &DescribeAddressTransfersOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeAddressTransfersOutput(&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 awsEc2query_deserializeOpErrorDescribeAddressTransfers(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeAggregateIdFormat struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeAggregateIdFormat) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeAggregateIdFormat) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeAggregateIdFormat(response, &metadata)
- }
- output := &DescribeAggregateIdFormatOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeAggregateIdFormatOutput(&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 awsEc2query_deserializeOpErrorDescribeAggregateIdFormat(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeAvailabilityZones struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeAvailabilityZones) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeAvailabilityZones) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeAvailabilityZones(response, &metadata)
- }
- output := &DescribeAvailabilityZonesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeAvailabilityZonesOutput(&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 awsEc2query_deserializeOpErrorDescribeAvailabilityZones(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeAwsNetworkPerformanceMetricSubscriptions struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeAwsNetworkPerformanceMetricSubscriptions) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeAwsNetworkPerformanceMetricSubscriptions) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeAwsNetworkPerformanceMetricSubscriptions(response, &metadata)
- }
- output := &DescribeAwsNetworkPerformanceMetricSubscriptionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeAwsNetworkPerformanceMetricSubscriptionsOutput(&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 awsEc2query_deserializeOpErrorDescribeAwsNetworkPerformanceMetricSubscriptions(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeBundleTasks struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeBundleTasks) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeBundleTasks) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeBundleTasks(response, &metadata)
- }
- output := &DescribeBundleTasksOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeBundleTasksOutput(&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 awsEc2query_deserializeOpErrorDescribeBundleTasks(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeByoipCidrs struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeByoipCidrs) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeByoipCidrs) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeByoipCidrs(response, &metadata)
- }
- output := &DescribeByoipCidrsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeByoipCidrsOutput(&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 awsEc2query_deserializeOpErrorDescribeByoipCidrs(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeCapacityBlockExtensionHistory struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeCapacityBlockExtensionHistory) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeCapacityBlockExtensionHistory) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityBlockExtensionHistory(response, &metadata)
- }
- output := &DescribeCapacityBlockExtensionHistoryOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeCapacityBlockExtensionHistoryOutput(&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 awsEc2query_deserializeOpErrorDescribeCapacityBlockExtensionHistory(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeCapacityBlockExtensionOfferings struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeCapacityBlockExtensionOfferings) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeCapacityBlockExtensionOfferings) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityBlockExtensionOfferings(response, &metadata)
- }
- output := &DescribeCapacityBlockExtensionOfferingsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeCapacityBlockExtensionOfferingsOutput(&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 awsEc2query_deserializeOpErrorDescribeCapacityBlockExtensionOfferings(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeCapacityBlockOfferings struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeCapacityBlockOfferings) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeCapacityBlockOfferings) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityBlockOfferings(response, &metadata)
- }
- output := &DescribeCapacityBlockOfferingsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeCapacityBlockOfferingsOutput(&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 awsEc2query_deserializeOpErrorDescribeCapacityBlockOfferings(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeCapacityBlocks struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeCapacityBlocks) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeCapacityBlocks) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityBlocks(response, &metadata)
- }
- output := &DescribeCapacityBlocksOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeCapacityBlocksOutput(&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 awsEc2query_deserializeOpErrorDescribeCapacityBlocks(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeCapacityBlockStatus struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeCapacityBlockStatus) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeCapacityBlockStatus) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityBlockStatus(response, &metadata)
- }
- output := &DescribeCapacityBlockStatusOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeCapacityBlockStatusOutput(&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 awsEc2query_deserializeOpErrorDescribeCapacityBlockStatus(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeCapacityReservationBillingRequests struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeCapacityReservationBillingRequests) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeCapacityReservationBillingRequests) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityReservationBillingRequests(response, &metadata)
- }
- output := &DescribeCapacityReservationBillingRequestsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeCapacityReservationBillingRequestsOutput(&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 awsEc2query_deserializeOpErrorDescribeCapacityReservationBillingRequests(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeCapacityReservationFleets struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeCapacityReservationFleets) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeCapacityReservationFleets) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityReservationFleets(response, &metadata)
- }
- output := &DescribeCapacityReservationFleetsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeCapacityReservationFleetsOutput(&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 awsEc2query_deserializeOpErrorDescribeCapacityReservationFleets(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeCapacityReservations struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeCapacityReservations) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeCapacityReservations) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityReservations(response, &metadata)
- }
- output := &DescribeCapacityReservationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeCapacityReservationsOutput(&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 awsEc2query_deserializeOpErrorDescribeCapacityReservations(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeCarrierGateways struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeCarrierGateways) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeCarrierGateways) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeCarrierGateways(response, &metadata)
- }
- output := &DescribeCarrierGatewaysOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeCarrierGatewaysOutput(&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 awsEc2query_deserializeOpErrorDescribeCarrierGateways(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeClassicLinkInstances struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeClassicLinkInstances) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeClassicLinkInstances) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeClassicLinkInstances(response, &metadata)
- }
- output := &DescribeClassicLinkInstancesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeClassicLinkInstancesOutput(&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 awsEc2query_deserializeOpErrorDescribeClassicLinkInstances(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeClientVpnAuthorizationRules(response, &metadata)
- }
- output := &DescribeClientVpnAuthorizationRulesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeClientVpnAuthorizationRulesOutput(&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 awsEc2query_deserializeOpErrorDescribeClientVpnAuthorizationRules(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeClientVpnConnections struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeClientVpnConnections) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeClientVpnConnections) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeClientVpnConnections(response, &metadata)
- }
- output := &DescribeClientVpnConnectionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeClientVpnConnectionsOutput(&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 awsEc2query_deserializeOpErrorDescribeClientVpnConnections(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeClientVpnEndpoints struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeClientVpnEndpoints) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeClientVpnEndpoints) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeClientVpnEndpoints(response, &metadata)
- }
- output := &DescribeClientVpnEndpointsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeClientVpnEndpointsOutput(&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 awsEc2query_deserializeOpErrorDescribeClientVpnEndpoints(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeClientVpnRoutes struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeClientVpnRoutes) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeClientVpnRoutes) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeClientVpnRoutes(response, &metadata)
- }
- output := &DescribeClientVpnRoutesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeClientVpnRoutesOutput(&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 awsEc2query_deserializeOpErrorDescribeClientVpnRoutes(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeClientVpnTargetNetworks struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeClientVpnTargetNetworks) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeClientVpnTargetNetworks) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeClientVpnTargetNetworks(response, &metadata)
- }
- output := &DescribeClientVpnTargetNetworksOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeClientVpnTargetNetworksOutput(&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 awsEc2query_deserializeOpErrorDescribeClientVpnTargetNetworks(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeCoipPools struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeCoipPools) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeCoipPools) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeCoipPools(response, &metadata)
- }
- output := &DescribeCoipPoolsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeCoipPoolsOutput(&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 awsEc2query_deserializeOpErrorDescribeCoipPools(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeConversionTasks struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeConversionTasks) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeConversionTasks) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeConversionTasks(response, &metadata)
- }
- output := &DescribeConversionTasksOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeConversionTasksOutput(&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 awsEc2query_deserializeOpErrorDescribeConversionTasks(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeCustomerGateways struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeCustomerGateways) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeCustomerGateways) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeCustomerGateways(response, &metadata)
- }
- output := &DescribeCustomerGatewaysOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeCustomerGatewaysOutput(&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 awsEc2query_deserializeOpErrorDescribeCustomerGateways(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeDeclarativePoliciesReports struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeDeclarativePoliciesReports) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeDeclarativePoliciesReports) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeDeclarativePoliciesReports(response, &metadata)
- }
- output := &DescribeDeclarativePoliciesReportsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeDeclarativePoliciesReportsOutput(&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 awsEc2query_deserializeOpErrorDescribeDeclarativePoliciesReports(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeDhcpOptions struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeDhcpOptions) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeDhcpOptions) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeDhcpOptions(response, &metadata)
- }
- output := &DescribeDhcpOptionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeDhcpOptionsOutput(&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 awsEc2query_deserializeOpErrorDescribeDhcpOptions(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeEgressOnlyInternetGateways struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeEgressOnlyInternetGateways) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeEgressOnlyInternetGateways) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeEgressOnlyInternetGateways(response, &metadata)
- }
- output := &DescribeEgressOnlyInternetGatewaysOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeEgressOnlyInternetGatewaysOutput(&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 awsEc2query_deserializeOpErrorDescribeEgressOnlyInternetGateways(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeElasticGpus struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeElasticGpus) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeElasticGpus) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeElasticGpus(response, &metadata)
- }
- output := &DescribeElasticGpusOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeElasticGpusOutput(&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 awsEc2query_deserializeOpErrorDescribeElasticGpus(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeExportImageTasks struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeExportImageTasks) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeExportImageTasks) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeExportImageTasks(response, &metadata)
- }
- output := &DescribeExportImageTasksOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeExportImageTasksOutput(&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 awsEc2query_deserializeOpErrorDescribeExportImageTasks(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeExportTasks struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeExportTasks) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeExportTasks) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeExportTasks(response, &metadata)
- }
- output := &DescribeExportTasksOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeExportTasksOutput(&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 awsEc2query_deserializeOpErrorDescribeExportTasks(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeFastLaunchImages struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeFastLaunchImages) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeFastLaunchImages) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeFastLaunchImages(response, &metadata)
- }
- output := &DescribeFastLaunchImagesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeFastLaunchImagesOutput(&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 awsEc2query_deserializeOpErrorDescribeFastLaunchImages(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeFastSnapshotRestores struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeFastSnapshotRestores) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeFastSnapshotRestores) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeFastSnapshotRestores(response, &metadata)
- }
- output := &DescribeFastSnapshotRestoresOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeFastSnapshotRestoresOutput(&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 awsEc2query_deserializeOpErrorDescribeFastSnapshotRestores(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeFleetHistory struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeFleetHistory) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeFleetHistory) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeFleetHistory(response, &metadata)
- }
- output := &DescribeFleetHistoryOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeFleetHistoryOutput(&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 awsEc2query_deserializeOpErrorDescribeFleetHistory(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeFleetInstances struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeFleetInstances) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeFleetInstances) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeFleetInstances(response, &metadata)
- }
- output := &DescribeFleetInstancesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeFleetInstancesOutput(&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 awsEc2query_deserializeOpErrorDescribeFleetInstances(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeFleets struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeFleets) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeFleets) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeFleets(response, &metadata)
- }
- output := &DescribeFleetsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeFleetsOutput(&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 awsEc2query_deserializeOpErrorDescribeFleets(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeFlowLogs struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeFlowLogs) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeFlowLogs) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeFlowLogs(response, &metadata)
- }
- output := &DescribeFlowLogsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeFlowLogsOutput(&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 awsEc2query_deserializeOpErrorDescribeFlowLogs(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeFpgaImageAttribute struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeFpgaImageAttribute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeFpgaImageAttribute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeFpgaImageAttribute(response, &metadata)
- }
- output := &DescribeFpgaImageAttributeOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeFpgaImageAttributeOutput(&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 awsEc2query_deserializeOpErrorDescribeFpgaImageAttribute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeFpgaImages struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeFpgaImages) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeFpgaImages) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeFpgaImages(response, &metadata)
- }
- output := &DescribeFpgaImagesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeFpgaImagesOutput(&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 awsEc2query_deserializeOpErrorDescribeFpgaImages(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeHostReservationOfferings struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeHostReservationOfferings) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeHostReservationOfferings) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeHostReservationOfferings(response, &metadata)
- }
- output := &DescribeHostReservationOfferingsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeHostReservationOfferingsOutput(&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 awsEc2query_deserializeOpErrorDescribeHostReservationOfferings(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeHostReservations struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeHostReservations) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeHostReservations) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeHostReservations(response, &metadata)
- }
- output := &DescribeHostReservationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeHostReservationsOutput(&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 awsEc2query_deserializeOpErrorDescribeHostReservations(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeHosts struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeHosts) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeHosts) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeHosts(response, &metadata)
- }
- output := &DescribeHostsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeHostsOutput(&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 awsEc2query_deserializeOpErrorDescribeHosts(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeIamInstanceProfileAssociations struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeIamInstanceProfileAssociations) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeIamInstanceProfileAssociations) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeIamInstanceProfileAssociations(response, &metadata)
- }
- output := &DescribeIamInstanceProfileAssociationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeIamInstanceProfileAssociationsOutput(&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 awsEc2query_deserializeOpErrorDescribeIamInstanceProfileAssociations(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeIdentityIdFormat struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeIdentityIdFormat) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeIdentityIdFormat) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeIdentityIdFormat(response, &metadata)
- }
- output := &DescribeIdentityIdFormatOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeIdentityIdFormatOutput(&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 awsEc2query_deserializeOpErrorDescribeIdentityIdFormat(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeIdFormat struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeIdFormat) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeIdFormat) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeIdFormat(response, &metadata)
- }
- output := &DescribeIdFormatOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeIdFormatOutput(&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 awsEc2query_deserializeOpErrorDescribeIdFormat(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeImageAttribute struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeImageAttribute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeImageAttribute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeImageAttribute(response, &metadata)
- }
- output := &DescribeImageAttributeOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeImageAttributeOutput(&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 awsEc2query_deserializeOpErrorDescribeImageAttribute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeImages struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeImages) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeImages) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeImages(response, &metadata)
- }
- output := &DescribeImagesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeImagesOutput(&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 awsEc2query_deserializeOpErrorDescribeImages(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeImportImageTasks struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeImportImageTasks) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeImportImageTasks) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeImportImageTasks(response, &metadata)
- }
- output := &DescribeImportImageTasksOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeImportImageTasksOutput(&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 awsEc2query_deserializeOpErrorDescribeImportImageTasks(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeImportSnapshotTasks struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeImportSnapshotTasks) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeImportSnapshotTasks) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeImportSnapshotTasks(response, &metadata)
- }
- output := &DescribeImportSnapshotTasksOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeImportSnapshotTasksOutput(&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 awsEc2query_deserializeOpErrorDescribeImportSnapshotTasks(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeInstanceAttribute struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeInstanceAttribute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeInstanceAttribute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceAttribute(response, &metadata)
- }
- output := &DescribeInstanceAttributeOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeInstanceAttributeOutput(&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 awsEc2query_deserializeOpErrorDescribeInstanceAttribute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeInstanceConnectEndpoints struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeInstanceConnectEndpoints) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeInstanceConnectEndpoints) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceConnectEndpoints(response, &metadata)
- }
- output := &DescribeInstanceConnectEndpointsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeInstanceConnectEndpointsOutput(&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 awsEc2query_deserializeOpErrorDescribeInstanceConnectEndpoints(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeInstanceCreditSpecifications struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeInstanceCreditSpecifications) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeInstanceCreditSpecifications) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceCreditSpecifications(response, &metadata)
- }
- output := &DescribeInstanceCreditSpecificationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeInstanceCreditSpecificationsOutput(&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 awsEc2query_deserializeOpErrorDescribeInstanceCreditSpecifications(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeInstanceEventNotificationAttributes struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeInstanceEventNotificationAttributes) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeInstanceEventNotificationAttributes) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceEventNotificationAttributes(response, &metadata)
- }
- output := &DescribeInstanceEventNotificationAttributesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeInstanceEventNotificationAttributesOutput(&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 awsEc2query_deserializeOpErrorDescribeInstanceEventNotificationAttributes(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeInstanceEventWindows struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeInstanceEventWindows) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeInstanceEventWindows) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceEventWindows(response, &metadata)
- }
- output := &DescribeInstanceEventWindowsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeInstanceEventWindowsOutput(&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 awsEc2query_deserializeOpErrorDescribeInstanceEventWindows(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeInstanceImageMetadata struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeInstanceImageMetadata) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeInstanceImageMetadata) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceImageMetadata(response, &metadata)
- }
- output := &DescribeInstanceImageMetadataOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeInstanceImageMetadataOutput(&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 awsEc2query_deserializeOpErrorDescribeInstanceImageMetadata(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeInstances struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeInstances) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeInstances) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeInstances(response, &metadata)
- }
- output := &DescribeInstancesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeInstancesOutput(&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 awsEc2query_deserializeOpErrorDescribeInstances(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeInstanceStatus struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeInstanceStatus) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeInstanceStatus) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceStatus(response, &metadata)
- }
- output := &DescribeInstanceStatusOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeInstanceStatusOutput(&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 awsEc2query_deserializeOpErrorDescribeInstanceStatus(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeInstanceTopology struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeInstanceTopology) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeInstanceTopology) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceTopology(response, &metadata)
- }
- output := &DescribeInstanceTopologyOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeInstanceTopologyOutput(&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 awsEc2query_deserializeOpErrorDescribeInstanceTopology(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeInstanceTypeOfferings struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeInstanceTypeOfferings) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeInstanceTypeOfferings) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceTypeOfferings(response, &metadata)
- }
- output := &DescribeInstanceTypeOfferingsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeInstanceTypeOfferingsOutput(&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 awsEc2query_deserializeOpErrorDescribeInstanceTypeOfferings(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeInstanceTypes struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeInstanceTypes) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeInstanceTypes) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeInstanceTypes(response, &metadata)
- }
- output := &DescribeInstanceTypesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeInstanceTypesOutput(&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 awsEc2query_deserializeOpErrorDescribeInstanceTypes(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeInternetGateways struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeInternetGateways) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeInternetGateways) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeInternetGateways(response, &metadata)
- }
- output := &DescribeInternetGatewaysOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeInternetGatewaysOutput(&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 awsEc2query_deserializeOpErrorDescribeInternetGateways(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeIpamByoasn struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeIpamByoasn) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeIpamByoasn) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeIpamByoasn(response, &metadata)
- }
- output := &DescribeIpamByoasnOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeIpamByoasnOutput(&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 awsEc2query_deserializeOpErrorDescribeIpamByoasn(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeIpamExternalResourceVerificationTokens struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeIpamExternalResourceVerificationTokens) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeIpamExternalResourceVerificationTokens) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeIpamExternalResourceVerificationTokens(response, &metadata)
- }
- output := &DescribeIpamExternalResourceVerificationTokensOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeIpamExternalResourceVerificationTokensOutput(&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 awsEc2query_deserializeOpErrorDescribeIpamExternalResourceVerificationTokens(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeIpamPools struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeIpamPools) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeIpamPools) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeIpamPools(response, &metadata)
- }
- output := &DescribeIpamPoolsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeIpamPoolsOutput(&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 awsEc2query_deserializeOpErrorDescribeIpamPools(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeIpamResourceDiscoveries struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeIpamResourceDiscoveries) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeIpamResourceDiscoveries) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeIpamResourceDiscoveries(response, &metadata)
- }
- output := &DescribeIpamResourceDiscoveriesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeIpamResourceDiscoveriesOutput(&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 awsEc2query_deserializeOpErrorDescribeIpamResourceDiscoveries(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeIpamResourceDiscoveryAssociations struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeIpamResourceDiscoveryAssociations) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeIpamResourceDiscoveryAssociations) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeIpamResourceDiscoveryAssociations(response, &metadata)
- }
- output := &DescribeIpamResourceDiscoveryAssociationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeIpamResourceDiscoveryAssociationsOutput(&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 awsEc2query_deserializeOpErrorDescribeIpamResourceDiscoveryAssociations(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeIpams struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeIpams) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeIpams) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeIpams(response, &metadata)
- }
- output := &DescribeIpamsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeIpamsOutput(&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 awsEc2query_deserializeOpErrorDescribeIpams(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeIpamScopes struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeIpamScopes) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeIpamScopes) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeIpamScopes(response, &metadata)
- }
- output := &DescribeIpamScopesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeIpamScopesOutput(&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 awsEc2query_deserializeOpErrorDescribeIpamScopes(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeIpv6Pools struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeIpv6Pools) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeIpv6Pools) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeIpv6Pools(response, &metadata)
- }
- output := &DescribeIpv6PoolsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeIpv6PoolsOutput(&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 awsEc2query_deserializeOpErrorDescribeIpv6Pools(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeKeyPairs struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeKeyPairs) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeKeyPairs) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeKeyPairs(response, &metadata)
- }
- output := &DescribeKeyPairsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeKeyPairsOutput(&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 awsEc2query_deserializeOpErrorDescribeKeyPairs(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeLaunchTemplates struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeLaunchTemplates) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeLaunchTemplates) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeLaunchTemplates(response, &metadata)
- }
- output := &DescribeLaunchTemplatesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeLaunchTemplatesOutput(&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 awsEc2query_deserializeOpErrorDescribeLaunchTemplates(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeLaunchTemplateVersions struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeLaunchTemplateVersions) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeLaunchTemplateVersions) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeLaunchTemplateVersions(response, &metadata)
- }
- output := &DescribeLaunchTemplateVersionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeLaunchTemplateVersionsOutput(&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 awsEc2query_deserializeOpErrorDescribeLaunchTemplateVersions(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeLocalGatewayRouteTables struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeLocalGatewayRouteTables) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeLocalGatewayRouteTables) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeLocalGatewayRouteTables(response, &metadata)
- }
- output := &DescribeLocalGatewayRouteTablesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeLocalGatewayRouteTablesOutput(&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 awsEc2query_deserializeOpErrorDescribeLocalGatewayRouteTables(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(response, &metadata)
- }
- output := &DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput(&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 awsEc2query_deserializeOpErrorDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVpcAssociations struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVpcAssociations) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeLocalGatewayRouteTableVpcAssociations) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeLocalGatewayRouteTableVpcAssociations(response, &metadata)
- }
- output := &DescribeLocalGatewayRouteTableVpcAssociationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeLocalGatewayRouteTableVpcAssociationsOutput(&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 awsEc2query_deserializeOpErrorDescribeLocalGatewayRouteTableVpcAssociations(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeLocalGateways struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeLocalGateways) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeLocalGateways) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeLocalGateways(response, &metadata)
- }
- output := &DescribeLocalGatewaysOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeLocalGatewaysOutput(&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 awsEc2query_deserializeOpErrorDescribeLocalGateways(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaceGroups struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaceGroups) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaceGroups) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeLocalGatewayVirtualInterfaceGroups(response, &metadata)
- }
- output := &DescribeLocalGatewayVirtualInterfaceGroupsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeLocalGatewayVirtualInterfaceGroupsOutput(&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 awsEc2query_deserializeOpErrorDescribeLocalGatewayVirtualInterfaceGroups(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaces struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaces) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeLocalGatewayVirtualInterfaces) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeLocalGatewayVirtualInterfaces(response, &metadata)
- }
- output := &DescribeLocalGatewayVirtualInterfacesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeLocalGatewayVirtualInterfacesOutput(&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 awsEc2query_deserializeOpErrorDescribeLocalGatewayVirtualInterfaces(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeLockedSnapshots struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeLockedSnapshots) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeLockedSnapshots) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeLockedSnapshots(response, &metadata)
- }
- output := &DescribeLockedSnapshotsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeLockedSnapshotsOutput(&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 awsEc2query_deserializeOpErrorDescribeLockedSnapshots(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeMacHosts struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeMacHosts) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeMacHosts) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeMacHosts(response, &metadata)
- }
- output := &DescribeMacHostsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeMacHostsOutput(&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 awsEc2query_deserializeOpErrorDescribeMacHosts(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeMacModificationTasks struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeMacModificationTasks) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeMacModificationTasks) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeMacModificationTasks(response, &metadata)
- }
- output := &DescribeMacModificationTasksOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeMacModificationTasksOutput(&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 awsEc2query_deserializeOpErrorDescribeMacModificationTasks(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeManagedPrefixLists struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeManagedPrefixLists) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeManagedPrefixLists) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeManagedPrefixLists(response, &metadata)
- }
- output := &DescribeManagedPrefixListsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeManagedPrefixListsOutput(&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 awsEc2query_deserializeOpErrorDescribeManagedPrefixLists(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeMovingAddresses struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeMovingAddresses) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeMovingAddresses) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeMovingAddresses(response, &metadata)
- }
- output := &DescribeMovingAddressesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeMovingAddressesOutput(&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 awsEc2query_deserializeOpErrorDescribeMovingAddresses(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeNatGateways struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeNatGateways) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeNatGateways) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeNatGateways(response, &metadata)
- }
- output := &DescribeNatGatewaysOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeNatGatewaysOutput(&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 awsEc2query_deserializeOpErrorDescribeNatGateways(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeNetworkAcls struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeNetworkAcls) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeNetworkAcls) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeNetworkAcls(response, &metadata)
- }
- output := &DescribeNetworkAclsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeNetworkAclsOutput(&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 awsEc2query_deserializeOpErrorDescribeNetworkAcls(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeNetworkInsightsAccessScopeAnalyses struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeNetworkInsightsAccessScopeAnalyses) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeNetworkInsightsAccessScopeAnalyses) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeNetworkInsightsAccessScopeAnalyses(response, &metadata)
- }
- output := &DescribeNetworkInsightsAccessScopeAnalysesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeNetworkInsightsAccessScopeAnalysesOutput(&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 awsEc2query_deserializeOpErrorDescribeNetworkInsightsAccessScopeAnalyses(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeNetworkInsightsAccessScopes struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeNetworkInsightsAccessScopes) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeNetworkInsightsAccessScopes) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeNetworkInsightsAccessScopes(response, &metadata)
- }
- output := &DescribeNetworkInsightsAccessScopesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeNetworkInsightsAccessScopesOutput(&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 awsEc2query_deserializeOpErrorDescribeNetworkInsightsAccessScopes(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeNetworkInsightsAnalyses struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeNetworkInsightsAnalyses) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeNetworkInsightsAnalyses) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeNetworkInsightsAnalyses(response, &metadata)
- }
- output := &DescribeNetworkInsightsAnalysesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeNetworkInsightsAnalysesOutput(&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 awsEc2query_deserializeOpErrorDescribeNetworkInsightsAnalyses(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeNetworkInsightsPaths struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeNetworkInsightsPaths) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeNetworkInsightsPaths) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeNetworkInsightsPaths(response, &metadata)
- }
- output := &DescribeNetworkInsightsPathsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeNetworkInsightsPathsOutput(&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 awsEc2query_deserializeOpErrorDescribeNetworkInsightsPaths(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeNetworkInterfaceAttribute struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeNetworkInterfaceAttribute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeNetworkInterfaceAttribute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeNetworkInterfaceAttribute(response, &metadata)
- }
- output := &DescribeNetworkInterfaceAttributeOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeNetworkInterfaceAttributeOutput(&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 awsEc2query_deserializeOpErrorDescribeNetworkInterfaceAttribute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeNetworkInterfacePermissions struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeNetworkInterfacePermissions) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeNetworkInterfacePermissions) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeNetworkInterfacePermissions(response, &metadata)
- }
- output := &DescribeNetworkInterfacePermissionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeNetworkInterfacePermissionsOutput(&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 awsEc2query_deserializeOpErrorDescribeNetworkInterfacePermissions(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeNetworkInterfaces struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeNetworkInterfaces) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeNetworkInterfaces) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeNetworkInterfaces(response, &metadata)
- }
- output := &DescribeNetworkInterfacesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeNetworkInterfacesOutput(&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 awsEc2query_deserializeOpErrorDescribeNetworkInterfaces(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeOutpostLags struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeOutpostLags) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeOutpostLags) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeOutpostLags(response, &metadata)
- }
- output := &DescribeOutpostLagsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeOutpostLagsOutput(&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 awsEc2query_deserializeOpErrorDescribeOutpostLags(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribePlacementGroups struct {
-}
-
-func (*awsEc2query_deserializeOpDescribePlacementGroups) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribePlacementGroups) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribePlacementGroups(response, &metadata)
- }
- output := &DescribePlacementGroupsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribePlacementGroupsOutput(&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 awsEc2query_deserializeOpErrorDescribePlacementGroups(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribePrefixLists struct {
-}
-
-func (*awsEc2query_deserializeOpDescribePrefixLists) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribePrefixLists) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribePrefixLists(response, &metadata)
- }
- output := &DescribePrefixListsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribePrefixListsOutput(&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 awsEc2query_deserializeOpErrorDescribePrefixLists(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribePrincipalIdFormat struct {
-}
-
-func (*awsEc2query_deserializeOpDescribePrincipalIdFormat) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribePrincipalIdFormat) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribePrincipalIdFormat(response, &metadata)
- }
- output := &DescribePrincipalIdFormatOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribePrincipalIdFormatOutput(&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 awsEc2query_deserializeOpErrorDescribePrincipalIdFormat(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribePublicIpv4Pools struct {
-}
-
-func (*awsEc2query_deserializeOpDescribePublicIpv4Pools) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribePublicIpv4Pools) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribePublicIpv4Pools(response, &metadata)
- }
- output := &DescribePublicIpv4PoolsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribePublicIpv4PoolsOutput(&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 awsEc2query_deserializeOpErrorDescribePublicIpv4Pools(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeRegions struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeRegions) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeRegions) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeRegions(response, &metadata)
- }
- output := &DescribeRegionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeRegionsOutput(&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 awsEc2query_deserializeOpErrorDescribeRegions(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeReplaceRootVolumeTasks struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeReplaceRootVolumeTasks) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeReplaceRootVolumeTasks) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeReplaceRootVolumeTasks(response, &metadata)
- }
- output := &DescribeReplaceRootVolumeTasksOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeReplaceRootVolumeTasksOutput(&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 awsEc2query_deserializeOpErrorDescribeReplaceRootVolumeTasks(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeReservedInstances struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeReservedInstances) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeReservedInstances) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeReservedInstances(response, &metadata)
- }
- output := &DescribeReservedInstancesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeReservedInstancesOutput(&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 awsEc2query_deserializeOpErrorDescribeReservedInstances(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeReservedInstancesListings struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeReservedInstancesListings) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeReservedInstancesListings) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeReservedInstancesListings(response, &metadata)
- }
- output := &DescribeReservedInstancesListingsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeReservedInstancesListingsOutput(&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 awsEc2query_deserializeOpErrorDescribeReservedInstancesListings(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeReservedInstancesModifications struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeReservedInstancesModifications) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeReservedInstancesModifications) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeReservedInstancesModifications(response, &metadata)
- }
- output := &DescribeReservedInstancesModificationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeReservedInstancesModificationsOutput(&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 awsEc2query_deserializeOpErrorDescribeReservedInstancesModifications(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeReservedInstancesOfferings struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeReservedInstancesOfferings) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeReservedInstancesOfferings) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeReservedInstancesOfferings(response, &metadata)
- }
- output := &DescribeReservedInstancesOfferingsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeReservedInstancesOfferingsOutput(&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 awsEc2query_deserializeOpErrorDescribeReservedInstancesOfferings(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeRouteServerEndpoints struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeRouteServerEndpoints) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeRouteServerEndpoints) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeRouteServerEndpoints(response, &metadata)
- }
- output := &DescribeRouteServerEndpointsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeRouteServerEndpointsOutput(&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 awsEc2query_deserializeOpErrorDescribeRouteServerEndpoints(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeRouteServerPeers struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeRouteServerPeers) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeRouteServerPeers) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeRouteServerPeers(response, &metadata)
- }
- output := &DescribeRouteServerPeersOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeRouteServerPeersOutput(&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 awsEc2query_deserializeOpErrorDescribeRouteServerPeers(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeRouteServers struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeRouteServers) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeRouteServers) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeRouteServers(response, &metadata)
- }
- output := &DescribeRouteServersOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeRouteServersOutput(&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 awsEc2query_deserializeOpErrorDescribeRouteServers(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeRouteTables struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeRouteTables) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeRouteTables) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeRouteTables(response, &metadata)
- }
- output := &DescribeRouteTablesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeRouteTablesOutput(&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 awsEc2query_deserializeOpErrorDescribeRouteTables(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeScheduledInstanceAvailability struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeScheduledInstanceAvailability) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeScheduledInstanceAvailability) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeScheduledInstanceAvailability(response, &metadata)
- }
- output := &DescribeScheduledInstanceAvailabilityOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeScheduledInstanceAvailabilityOutput(&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 awsEc2query_deserializeOpErrorDescribeScheduledInstanceAvailability(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeScheduledInstances struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeScheduledInstances) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeScheduledInstances) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeScheduledInstances(response, &metadata)
- }
- output := &DescribeScheduledInstancesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeScheduledInstancesOutput(&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 awsEc2query_deserializeOpErrorDescribeScheduledInstances(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeSecurityGroupReferences struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeSecurityGroupReferences) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeSecurityGroupReferences) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeSecurityGroupReferences(response, &metadata)
- }
- output := &DescribeSecurityGroupReferencesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeSecurityGroupReferencesOutput(&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 awsEc2query_deserializeOpErrorDescribeSecurityGroupReferences(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeSecurityGroupRules struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeSecurityGroupRules) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeSecurityGroupRules) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeSecurityGroupRules(response, &metadata)
- }
- output := &DescribeSecurityGroupRulesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeSecurityGroupRulesOutput(&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 awsEc2query_deserializeOpErrorDescribeSecurityGroupRules(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeSecurityGroups struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeSecurityGroups) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeSecurityGroups) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeSecurityGroups(response, &metadata)
- }
- output := &DescribeSecurityGroupsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeSecurityGroupsOutput(&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 awsEc2query_deserializeOpErrorDescribeSecurityGroups(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeSecurityGroupVpcAssociations struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeSecurityGroupVpcAssociations) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeSecurityGroupVpcAssociations) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeSecurityGroupVpcAssociations(response, &metadata)
- }
- output := &DescribeSecurityGroupVpcAssociationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeSecurityGroupVpcAssociationsOutput(&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 awsEc2query_deserializeOpErrorDescribeSecurityGroupVpcAssociations(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeServiceLinkVirtualInterfaces struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeServiceLinkVirtualInterfaces) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeServiceLinkVirtualInterfaces) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeServiceLinkVirtualInterfaces(response, &metadata)
- }
- output := &DescribeServiceLinkVirtualInterfacesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeServiceLinkVirtualInterfacesOutput(&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 awsEc2query_deserializeOpErrorDescribeServiceLinkVirtualInterfaces(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeSnapshotAttribute struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeSnapshotAttribute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeSnapshotAttribute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeSnapshotAttribute(response, &metadata)
- }
- output := &DescribeSnapshotAttributeOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeSnapshotAttributeOutput(&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 awsEc2query_deserializeOpErrorDescribeSnapshotAttribute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeSnapshots struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeSnapshots) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeSnapshots) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeSnapshots(response, &metadata)
- }
- output := &DescribeSnapshotsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeSnapshotsOutput(&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 awsEc2query_deserializeOpErrorDescribeSnapshots(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeSnapshotTierStatus struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeSnapshotTierStatus) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeSnapshotTierStatus) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeSnapshotTierStatus(response, &metadata)
- }
- output := &DescribeSnapshotTierStatusOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeSnapshotTierStatusOutput(&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 awsEc2query_deserializeOpErrorDescribeSnapshotTierStatus(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeSpotDatafeedSubscription struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeSpotDatafeedSubscription) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeSpotDatafeedSubscription) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeSpotDatafeedSubscription(response, &metadata)
- }
- output := &DescribeSpotDatafeedSubscriptionOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeSpotDatafeedSubscriptionOutput(&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 awsEc2query_deserializeOpErrorDescribeSpotDatafeedSubscription(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeSpotFleetInstances struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeSpotFleetInstances) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeSpotFleetInstances) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeSpotFleetInstances(response, &metadata)
- }
- output := &DescribeSpotFleetInstancesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeSpotFleetInstancesOutput(&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 awsEc2query_deserializeOpErrorDescribeSpotFleetInstances(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeSpotFleetRequestHistory struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeSpotFleetRequestHistory) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeSpotFleetRequestHistory) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeSpotFleetRequestHistory(response, &metadata)
- }
- output := &DescribeSpotFleetRequestHistoryOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeSpotFleetRequestHistoryOutput(&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 awsEc2query_deserializeOpErrorDescribeSpotFleetRequestHistory(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeSpotFleetRequests struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeSpotFleetRequests) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeSpotFleetRequests) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeSpotFleetRequests(response, &metadata)
- }
- output := &DescribeSpotFleetRequestsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeSpotFleetRequestsOutput(&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 awsEc2query_deserializeOpErrorDescribeSpotFleetRequests(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeSpotInstanceRequests struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeSpotInstanceRequests) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeSpotInstanceRequests) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeSpotInstanceRequests(response, &metadata)
- }
- output := &DescribeSpotInstanceRequestsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeSpotInstanceRequestsOutput(&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 awsEc2query_deserializeOpErrorDescribeSpotInstanceRequests(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeSpotPriceHistory struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeSpotPriceHistory) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeSpotPriceHistory) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeSpotPriceHistory(response, &metadata)
- }
- output := &DescribeSpotPriceHistoryOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeSpotPriceHistoryOutput(&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 awsEc2query_deserializeOpErrorDescribeSpotPriceHistory(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeStaleSecurityGroups struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeStaleSecurityGroups) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeStaleSecurityGroups) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeStaleSecurityGroups(response, &metadata)
- }
- output := &DescribeStaleSecurityGroupsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeStaleSecurityGroupsOutput(&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 awsEc2query_deserializeOpErrorDescribeStaleSecurityGroups(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeStoreImageTasks struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeStoreImageTasks) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeStoreImageTasks) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeStoreImageTasks(response, &metadata)
- }
- output := &DescribeStoreImageTasksOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeStoreImageTasksOutput(&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 awsEc2query_deserializeOpErrorDescribeStoreImageTasks(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeSubnets struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeSubnets) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeSubnets) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeSubnets(response, &metadata)
- }
- output := &DescribeSubnetsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeSubnetsOutput(&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 awsEc2query_deserializeOpErrorDescribeSubnets(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeTags struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeTags) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_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)
- err = awsEc2query_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 awsEc2query_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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeTrafficMirrorFilterRules struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeTrafficMirrorFilterRules) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeTrafficMirrorFilterRules) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeTrafficMirrorFilterRules(response, &metadata)
- }
- output := &DescribeTrafficMirrorFilterRulesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFilterRulesOutput(&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 awsEc2query_deserializeOpErrorDescribeTrafficMirrorFilterRules(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeTrafficMirrorFilters struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeTrafficMirrorFilters) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeTrafficMirrorFilters) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeTrafficMirrorFilters(response, &metadata)
- }
- output := &DescribeTrafficMirrorFiltersOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFiltersOutput(&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 awsEc2query_deserializeOpErrorDescribeTrafficMirrorFilters(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeTrafficMirrorSessions struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeTrafficMirrorSessions) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeTrafficMirrorSessions) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeTrafficMirrorSessions(response, &metadata)
- }
- output := &DescribeTrafficMirrorSessionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeTrafficMirrorSessionsOutput(&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 awsEc2query_deserializeOpErrorDescribeTrafficMirrorSessions(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeTrafficMirrorTargets struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeTrafficMirrorTargets) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeTrafficMirrorTargets) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeTrafficMirrorTargets(response, &metadata)
- }
- output := &DescribeTrafficMirrorTargetsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeTrafficMirrorTargetsOutput(&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 awsEc2query_deserializeOpErrorDescribeTrafficMirrorTargets(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeTransitGatewayAttachments struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeTransitGatewayAttachments) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeTransitGatewayAttachments) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGatewayAttachments(response, &metadata)
- }
- output := &DescribeTransitGatewayAttachmentsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeTransitGatewayAttachmentsOutput(&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 awsEc2query_deserializeOpErrorDescribeTransitGatewayAttachments(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeTransitGatewayConnectPeers struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeTransitGatewayConnectPeers) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeTransitGatewayConnectPeers) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGatewayConnectPeers(response, &metadata)
- }
- output := &DescribeTransitGatewayConnectPeersOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectPeersOutput(&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 awsEc2query_deserializeOpErrorDescribeTransitGatewayConnectPeers(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeTransitGatewayConnects struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeTransitGatewayConnects) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeTransitGatewayConnects) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGatewayConnects(response, &metadata)
- }
- output := &DescribeTransitGatewayConnectsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectsOutput(&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 awsEc2query_deserializeOpErrorDescribeTransitGatewayConnects(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeTransitGatewayMulticastDomains struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeTransitGatewayMulticastDomains) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeTransitGatewayMulticastDomains) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGatewayMulticastDomains(response, &metadata)
- }
- output := &DescribeTransitGatewayMulticastDomainsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeTransitGatewayMulticastDomainsOutput(&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 awsEc2query_deserializeOpErrorDescribeTransitGatewayMulticastDomains(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeTransitGatewayPeeringAttachments struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeTransitGatewayPeeringAttachments) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeTransitGatewayPeeringAttachments) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGatewayPeeringAttachments(response, &metadata)
- }
- output := &DescribeTransitGatewayPeeringAttachmentsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeTransitGatewayPeeringAttachmentsOutput(&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 awsEc2query_deserializeOpErrorDescribeTransitGatewayPeeringAttachments(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeTransitGatewayPolicyTables struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeTransitGatewayPolicyTables) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeTransitGatewayPolicyTables) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGatewayPolicyTables(response, &metadata)
- }
- output := &DescribeTransitGatewayPolicyTablesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeTransitGatewayPolicyTablesOutput(&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 awsEc2query_deserializeOpErrorDescribeTransitGatewayPolicyTables(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeTransitGatewayRouteTableAnnouncements struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeTransitGatewayRouteTableAnnouncements) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeTransitGatewayRouteTableAnnouncements) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGatewayRouteTableAnnouncements(response, &metadata)
- }
- output := &DescribeTransitGatewayRouteTableAnnouncementsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTableAnnouncementsOutput(&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 awsEc2query_deserializeOpErrorDescribeTransitGatewayRouteTableAnnouncements(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeTransitGatewayRouteTables struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeTransitGatewayRouteTables) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeTransitGatewayRouteTables) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGatewayRouteTables(response, &metadata)
- }
- output := &DescribeTransitGatewayRouteTablesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTablesOutput(&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 awsEc2query_deserializeOpErrorDescribeTransitGatewayRouteTables(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeTransitGateways struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeTransitGateways) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeTransitGateways) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGateways(response, &metadata)
- }
- output := &DescribeTransitGatewaysOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeTransitGatewaysOutput(&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 awsEc2query_deserializeOpErrorDescribeTransitGateways(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeTransitGatewayVpcAttachments struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeTransitGatewayVpcAttachments) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeTransitGatewayVpcAttachments) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeTransitGatewayVpcAttachments(response, &metadata)
- }
- output := &DescribeTransitGatewayVpcAttachmentsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeTransitGatewayVpcAttachmentsOutput(&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 awsEc2query_deserializeOpErrorDescribeTransitGatewayVpcAttachments(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeTrunkInterfaceAssociations struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeTrunkInterfaceAssociations) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeTrunkInterfaceAssociations) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeTrunkInterfaceAssociations(response, &metadata)
- }
- output := &DescribeTrunkInterfaceAssociationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeTrunkInterfaceAssociationsOutput(&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 awsEc2query_deserializeOpErrorDescribeTrunkInterfaceAssociations(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVerifiedAccessEndpoints struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVerifiedAccessEndpoints) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVerifiedAccessEndpoints) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVerifiedAccessEndpoints(response, &metadata)
- }
- output := &DescribeVerifiedAccessEndpointsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVerifiedAccessEndpointsOutput(&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 awsEc2query_deserializeOpErrorDescribeVerifiedAccessEndpoints(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVerifiedAccessGroups struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVerifiedAccessGroups) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVerifiedAccessGroups) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVerifiedAccessGroups(response, &metadata)
- }
- output := &DescribeVerifiedAccessGroupsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVerifiedAccessGroupsOutput(&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 awsEc2query_deserializeOpErrorDescribeVerifiedAccessGroups(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVerifiedAccessInstanceLoggingConfigurations struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVerifiedAccessInstanceLoggingConfigurations) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVerifiedAccessInstanceLoggingConfigurations) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVerifiedAccessInstanceLoggingConfigurations(response, &metadata)
- }
- output := &DescribeVerifiedAccessInstanceLoggingConfigurationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstanceLoggingConfigurationsOutput(&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 awsEc2query_deserializeOpErrorDescribeVerifiedAccessInstanceLoggingConfigurations(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVerifiedAccessInstances struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVerifiedAccessInstances) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVerifiedAccessInstances) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVerifiedAccessInstances(response, &metadata)
- }
- output := &DescribeVerifiedAccessInstancesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstancesOutput(&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 awsEc2query_deserializeOpErrorDescribeVerifiedAccessInstances(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVerifiedAccessTrustProviders struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVerifiedAccessTrustProviders) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVerifiedAccessTrustProviders) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVerifiedAccessTrustProviders(response, &metadata)
- }
- output := &DescribeVerifiedAccessTrustProvidersOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVerifiedAccessTrustProvidersOutput(&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 awsEc2query_deserializeOpErrorDescribeVerifiedAccessTrustProviders(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVolumeAttribute struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVolumeAttribute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVolumeAttribute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVolumeAttribute(response, &metadata)
- }
- output := &DescribeVolumeAttributeOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVolumeAttributeOutput(&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 awsEc2query_deserializeOpErrorDescribeVolumeAttribute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVolumes struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVolumes) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVolumes) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVolumes(response, &metadata)
- }
- output := &DescribeVolumesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVolumesOutput(&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 awsEc2query_deserializeOpErrorDescribeVolumes(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVolumesModifications struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVolumesModifications) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVolumesModifications) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVolumesModifications(response, &metadata)
- }
- output := &DescribeVolumesModificationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVolumesModificationsOutput(&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 awsEc2query_deserializeOpErrorDescribeVolumesModifications(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVolumeStatus struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVolumeStatus) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVolumeStatus) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVolumeStatus(response, &metadata)
- }
- output := &DescribeVolumeStatusOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVolumeStatusOutput(&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 awsEc2query_deserializeOpErrorDescribeVolumeStatus(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVpcAttribute struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVpcAttribute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVpcAttribute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcAttribute(response, &metadata)
- }
- output := &DescribeVpcAttributeOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVpcAttributeOutput(&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 awsEc2query_deserializeOpErrorDescribeVpcAttribute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVpcBlockPublicAccessExclusions struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVpcBlockPublicAccessExclusions) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVpcBlockPublicAccessExclusions) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcBlockPublicAccessExclusions(response, &metadata)
- }
- output := &DescribeVpcBlockPublicAccessExclusionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVpcBlockPublicAccessExclusionsOutput(&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 awsEc2query_deserializeOpErrorDescribeVpcBlockPublicAccessExclusions(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVpcBlockPublicAccessOptions struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVpcBlockPublicAccessOptions) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVpcBlockPublicAccessOptions) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcBlockPublicAccessOptions(response, &metadata)
- }
- output := &DescribeVpcBlockPublicAccessOptionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVpcBlockPublicAccessOptionsOutput(&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 awsEc2query_deserializeOpErrorDescribeVpcBlockPublicAccessOptions(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVpcClassicLink struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVpcClassicLink) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVpcClassicLink) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcClassicLink(response, &metadata)
- }
- output := &DescribeVpcClassicLinkOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVpcClassicLinkOutput(&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 awsEc2query_deserializeOpErrorDescribeVpcClassicLink(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcClassicLinkDnsSupport(response, &metadata)
- }
- output := &DescribeVpcClassicLinkDnsSupportOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVpcClassicLinkDnsSupportOutput(&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 awsEc2query_deserializeOpErrorDescribeVpcClassicLinkDnsSupport(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVpcEndpointAssociations struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVpcEndpointAssociations) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVpcEndpointAssociations) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointAssociations(response, &metadata)
- }
- output := &DescribeVpcEndpointAssociationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointAssociationsOutput(&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 awsEc2query_deserializeOpErrorDescribeVpcEndpointAssociations(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointConnectionNotifications(response, &metadata)
- }
- output := &DescribeVpcEndpointConnectionNotificationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointConnectionNotificationsOutput(&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 awsEc2query_deserializeOpErrorDescribeVpcEndpointConnectionNotifications(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVpcEndpointConnections struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVpcEndpointConnections) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnections) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointConnections(response, &metadata)
- }
- output := &DescribeVpcEndpointConnectionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointConnectionsOutput(&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 awsEc2query_deserializeOpErrorDescribeVpcEndpointConnections(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVpcEndpoints struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVpcEndpoints) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVpcEndpoints) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpoints(response, &metadata)
- }
- output := &DescribeVpcEndpointsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointsOutput(&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 awsEc2query_deserializeOpErrorDescribeVpcEndpoints(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointServiceConfigurations(response, &metadata)
- }
- output := &DescribeVpcEndpointServiceConfigurationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointServiceConfigurationsOutput(&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 awsEc2query_deserializeOpErrorDescribeVpcEndpointServiceConfigurations(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVpcEndpointServicePermissions struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVpcEndpointServicePermissions) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVpcEndpointServicePermissions) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointServicePermissions(response, &metadata)
- }
- output := &DescribeVpcEndpointServicePermissionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointServicePermissionsOutput(&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 awsEc2query_deserializeOpErrorDescribeVpcEndpointServicePermissions(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVpcEndpointServices struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVpcEndpointServices) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVpcEndpointServices) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointServices(response, &metadata)
- }
- output := &DescribeVpcEndpointServicesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointServicesOutput(&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 awsEc2query_deserializeOpErrorDescribeVpcEndpointServices(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVpcPeeringConnections struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVpcPeeringConnections) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVpcPeeringConnections) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcPeeringConnections(response, &metadata)
- }
- output := &DescribeVpcPeeringConnectionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVpcPeeringConnectionsOutput(&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 awsEc2query_deserializeOpErrorDescribeVpcPeeringConnections(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVpcs struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVpcs) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVpcs) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcs(response, &metadata)
- }
- output := &DescribeVpcsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVpcsOutput(&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 awsEc2query_deserializeOpErrorDescribeVpcs(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVpnConnections struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVpnConnections) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVpnConnections) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVpnConnections(response, &metadata)
- }
- output := &DescribeVpnConnectionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVpnConnectionsOutput(&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 awsEc2query_deserializeOpErrorDescribeVpnConnections(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDescribeVpnGateways struct {
-}
-
-func (*awsEc2query_deserializeOpDescribeVpnGateways) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDescribeVpnGateways) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDescribeVpnGateways(response, &metadata)
- }
- output := &DescribeVpnGatewaysOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDescribeVpnGatewaysOutput(&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 awsEc2query_deserializeOpErrorDescribeVpnGateways(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDetachClassicLinkVpc struct {
-}
-
-func (*awsEc2query_deserializeOpDetachClassicLinkVpc) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDetachClassicLinkVpc) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDetachClassicLinkVpc(response, &metadata)
- }
- output := &DetachClassicLinkVpcOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDetachClassicLinkVpcOutput(&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 awsEc2query_deserializeOpErrorDetachClassicLinkVpc(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDetachInternetGateway struct {
-}
-
-func (*awsEc2query_deserializeOpDetachInternetGateway) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDetachInternetGateway) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDetachInternetGateway(response, &metadata)
- }
- output := &DetachInternetGatewayOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorDetachInternetGateway(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDetachNetworkInterface struct {
-}
-
-func (*awsEc2query_deserializeOpDetachNetworkInterface) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDetachNetworkInterface) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDetachNetworkInterface(response, &metadata)
- }
- output := &DetachNetworkInterfaceOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorDetachNetworkInterface(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDetachVerifiedAccessTrustProvider struct {
-}
-
-func (*awsEc2query_deserializeOpDetachVerifiedAccessTrustProvider) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDetachVerifiedAccessTrustProvider) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDetachVerifiedAccessTrustProvider(response, &metadata)
- }
- output := &DetachVerifiedAccessTrustProviderOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDetachVerifiedAccessTrustProviderOutput(&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 awsEc2query_deserializeOpErrorDetachVerifiedAccessTrustProvider(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDetachVolume struct {
-}
-
-func (*awsEc2query_deserializeOpDetachVolume) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDetachVolume) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDetachVolume(response, &metadata)
- }
- output := &DetachVolumeOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDetachVolumeOutput(&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 awsEc2query_deserializeOpErrorDetachVolume(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDetachVpnGateway struct {
-}
-
-func (*awsEc2query_deserializeOpDetachVpnGateway) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDetachVpnGateway) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDetachVpnGateway(response, &metadata)
- }
- output := &DetachVpnGatewayOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorDetachVpnGateway(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisableAddressTransfer struct {
-}
-
-func (*awsEc2query_deserializeOpDisableAddressTransfer) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisableAddressTransfer) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisableAddressTransfer(response, &metadata)
- }
- output := &DisableAddressTransferOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisableAddressTransferOutput(&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 awsEc2query_deserializeOpErrorDisableAddressTransfer(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisableAllowedImagesSettings struct {
-}
-
-func (*awsEc2query_deserializeOpDisableAllowedImagesSettings) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisableAllowedImagesSettings) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisableAllowedImagesSettings(response, &metadata)
- }
- output := &DisableAllowedImagesSettingsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisableAllowedImagesSettingsOutput(&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 awsEc2query_deserializeOpErrorDisableAllowedImagesSettings(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisableAwsNetworkPerformanceMetricSubscription struct {
-}
-
-func (*awsEc2query_deserializeOpDisableAwsNetworkPerformanceMetricSubscription) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisableAwsNetworkPerformanceMetricSubscription) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisableAwsNetworkPerformanceMetricSubscription(response, &metadata)
- }
- output := &DisableAwsNetworkPerformanceMetricSubscriptionOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisableAwsNetworkPerformanceMetricSubscriptionOutput(&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 awsEc2query_deserializeOpErrorDisableAwsNetworkPerformanceMetricSubscription(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisableEbsEncryptionByDefault struct {
-}
-
-func (*awsEc2query_deserializeOpDisableEbsEncryptionByDefault) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisableEbsEncryptionByDefault) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisableEbsEncryptionByDefault(response, &metadata)
- }
- output := &DisableEbsEncryptionByDefaultOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisableEbsEncryptionByDefaultOutput(&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 awsEc2query_deserializeOpErrorDisableEbsEncryptionByDefault(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisableFastLaunch struct {
-}
-
-func (*awsEc2query_deserializeOpDisableFastLaunch) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisableFastLaunch) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisableFastLaunch(response, &metadata)
- }
- output := &DisableFastLaunchOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisableFastLaunchOutput(&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 awsEc2query_deserializeOpErrorDisableFastLaunch(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisableFastSnapshotRestores struct {
-}
-
-func (*awsEc2query_deserializeOpDisableFastSnapshotRestores) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisableFastSnapshotRestores) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisableFastSnapshotRestores(response, &metadata)
- }
- output := &DisableFastSnapshotRestoresOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisableFastSnapshotRestoresOutput(&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 awsEc2query_deserializeOpErrorDisableFastSnapshotRestores(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisableImage struct {
-}
-
-func (*awsEc2query_deserializeOpDisableImage) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisableImage) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisableImage(response, &metadata)
- }
- output := &DisableImageOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisableImageOutput(&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 awsEc2query_deserializeOpErrorDisableImage(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisableImageBlockPublicAccess struct {
-}
-
-func (*awsEc2query_deserializeOpDisableImageBlockPublicAccess) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisableImageBlockPublicAccess) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisableImageBlockPublicAccess(response, &metadata)
- }
- output := &DisableImageBlockPublicAccessOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisableImageBlockPublicAccessOutput(&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 awsEc2query_deserializeOpErrorDisableImageBlockPublicAccess(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisableImageDeprecation struct {
-}
-
-func (*awsEc2query_deserializeOpDisableImageDeprecation) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisableImageDeprecation) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisableImageDeprecation(response, &metadata)
- }
- output := &DisableImageDeprecationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisableImageDeprecationOutput(&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 awsEc2query_deserializeOpErrorDisableImageDeprecation(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisableImageDeregistrationProtection struct {
-}
-
-func (*awsEc2query_deserializeOpDisableImageDeregistrationProtection) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisableImageDeregistrationProtection) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisableImageDeregistrationProtection(response, &metadata)
- }
- output := &DisableImageDeregistrationProtectionOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisableImageDeregistrationProtectionOutput(&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 awsEc2query_deserializeOpErrorDisableImageDeregistrationProtection(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisableIpamOrganizationAdminAccount struct {
-}
-
-func (*awsEc2query_deserializeOpDisableIpamOrganizationAdminAccount) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisableIpamOrganizationAdminAccount) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisableIpamOrganizationAdminAccount(response, &metadata)
- }
- output := &DisableIpamOrganizationAdminAccountOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisableIpamOrganizationAdminAccountOutput(&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 awsEc2query_deserializeOpErrorDisableIpamOrganizationAdminAccount(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisableRouteServerPropagation struct {
-}
-
-func (*awsEc2query_deserializeOpDisableRouteServerPropagation) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisableRouteServerPropagation) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisableRouteServerPropagation(response, &metadata)
- }
- output := &DisableRouteServerPropagationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisableRouteServerPropagationOutput(&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 awsEc2query_deserializeOpErrorDisableRouteServerPropagation(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisableSerialConsoleAccess struct {
-}
-
-func (*awsEc2query_deserializeOpDisableSerialConsoleAccess) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisableSerialConsoleAccess) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisableSerialConsoleAccess(response, &metadata)
- }
- output := &DisableSerialConsoleAccessOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisableSerialConsoleAccessOutput(&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 awsEc2query_deserializeOpErrorDisableSerialConsoleAccess(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisableSnapshotBlockPublicAccess struct {
-}
-
-func (*awsEc2query_deserializeOpDisableSnapshotBlockPublicAccess) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisableSnapshotBlockPublicAccess) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisableSnapshotBlockPublicAccess(response, &metadata)
- }
- output := &DisableSnapshotBlockPublicAccessOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisableSnapshotBlockPublicAccessOutput(&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 awsEc2query_deserializeOpErrorDisableSnapshotBlockPublicAccess(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisableTransitGatewayRouteTablePropagation struct {
-}
-
-func (*awsEc2query_deserializeOpDisableTransitGatewayRouteTablePropagation) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisableTransitGatewayRouteTablePropagation) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisableTransitGatewayRouteTablePropagation(response, &metadata)
- }
- output := &DisableTransitGatewayRouteTablePropagationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisableTransitGatewayRouteTablePropagationOutput(&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 awsEc2query_deserializeOpErrorDisableTransitGatewayRouteTablePropagation(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisableVgwRoutePropagation struct {
-}
-
-func (*awsEc2query_deserializeOpDisableVgwRoutePropagation) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisableVgwRoutePropagation) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisableVgwRoutePropagation(response, &metadata)
- }
- output := &DisableVgwRoutePropagationOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorDisableVgwRoutePropagation(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisableVpcClassicLink struct {
-}
-
-func (*awsEc2query_deserializeOpDisableVpcClassicLink) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisableVpcClassicLink) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisableVpcClassicLink(response, &metadata)
- }
- output := &DisableVpcClassicLinkOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisableVpcClassicLinkOutput(&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 awsEc2query_deserializeOpErrorDisableVpcClassicLink(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisableVpcClassicLinkDnsSupport struct {
-}
-
-func (*awsEc2query_deserializeOpDisableVpcClassicLinkDnsSupport) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisableVpcClassicLinkDnsSupport) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisableVpcClassicLinkDnsSupport(response, &metadata)
- }
- output := &DisableVpcClassicLinkDnsSupportOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisableVpcClassicLinkDnsSupportOutput(&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 awsEc2query_deserializeOpErrorDisableVpcClassicLinkDnsSupport(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisassociateAddress struct {
-}
-
-func (*awsEc2query_deserializeOpDisassociateAddress) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisassociateAddress) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisassociateAddress(response, &metadata)
- }
- output := &DisassociateAddressOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorDisassociateAddress(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisassociateCapacityReservationBillingOwner struct {
-}
-
-func (*awsEc2query_deserializeOpDisassociateCapacityReservationBillingOwner) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisassociateCapacityReservationBillingOwner) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisassociateCapacityReservationBillingOwner(response, &metadata)
- }
- output := &DisassociateCapacityReservationBillingOwnerOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisassociateCapacityReservationBillingOwnerOutput(&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 awsEc2query_deserializeOpErrorDisassociateCapacityReservationBillingOwner(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisassociateClientVpnTargetNetwork struct {
-}
-
-func (*awsEc2query_deserializeOpDisassociateClientVpnTargetNetwork) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisassociateClientVpnTargetNetwork) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisassociateClientVpnTargetNetwork(response, &metadata)
- }
- output := &DisassociateClientVpnTargetNetworkOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisassociateClientVpnTargetNetworkOutput(&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 awsEc2query_deserializeOpErrorDisassociateClientVpnTargetNetwork(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisassociateEnclaveCertificateIamRole struct {
-}
-
-func (*awsEc2query_deserializeOpDisassociateEnclaveCertificateIamRole) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisassociateEnclaveCertificateIamRole) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisassociateEnclaveCertificateIamRole(response, &metadata)
- }
- output := &DisassociateEnclaveCertificateIamRoleOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisassociateEnclaveCertificateIamRoleOutput(&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 awsEc2query_deserializeOpErrorDisassociateEnclaveCertificateIamRole(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisassociateIamInstanceProfile struct {
-}
-
-func (*awsEc2query_deserializeOpDisassociateIamInstanceProfile) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisassociateIamInstanceProfile) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisassociateIamInstanceProfile(response, &metadata)
- }
- output := &DisassociateIamInstanceProfileOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisassociateIamInstanceProfileOutput(&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 awsEc2query_deserializeOpErrorDisassociateIamInstanceProfile(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisassociateInstanceEventWindow struct {
-}
-
-func (*awsEc2query_deserializeOpDisassociateInstanceEventWindow) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisassociateInstanceEventWindow) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisassociateInstanceEventWindow(response, &metadata)
- }
- output := &DisassociateInstanceEventWindowOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisassociateInstanceEventWindowOutput(&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 awsEc2query_deserializeOpErrorDisassociateInstanceEventWindow(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisassociateIpamByoasn struct {
-}
-
-func (*awsEc2query_deserializeOpDisassociateIpamByoasn) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisassociateIpamByoasn) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisassociateIpamByoasn(response, &metadata)
- }
- output := &DisassociateIpamByoasnOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisassociateIpamByoasnOutput(&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 awsEc2query_deserializeOpErrorDisassociateIpamByoasn(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisassociateIpamResourceDiscovery struct {
-}
-
-func (*awsEc2query_deserializeOpDisassociateIpamResourceDiscovery) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisassociateIpamResourceDiscovery) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisassociateIpamResourceDiscovery(response, &metadata)
- }
- output := &DisassociateIpamResourceDiscoveryOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisassociateIpamResourceDiscoveryOutput(&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 awsEc2query_deserializeOpErrorDisassociateIpamResourceDiscovery(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisassociateNatGatewayAddress struct {
-}
-
-func (*awsEc2query_deserializeOpDisassociateNatGatewayAddress) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisassociateNatGatewayAddress) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisassociateNatGatewayAddress(response, &metadata)
- }
- output := &DisassociateNatGatewayAddressOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisassociateNatGatewayAddressOutput(&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 awsEc2query_deserializeOpErrorDisassociateNatGatewayAddress(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisassociateRouteServer struct {
-}
-
-func (*awsEc2query_deserializeOpDisassociateRouteServer) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisassociateRouteServer) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisassociateRouteServer(response, &metadata)
- }
- output := &DisassociateRouteServerOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisassociateRouteServerOutput(&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 awsEc2query_deserializeOpErrorDisassociateRouteServer(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisassociateRouteTable struct {
-}
-
-func (*awsEc2query_deserializeOpDisassociateRouteTable) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisassociateRouteTable) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisassociateRouteTable(response, &metadata)
- }
- output := &DisassociateRouteTableOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorDisassociateRouteTable(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisassociateSecurityGroupVpc struct {
-}
-
-func (*awsEc2query_deserializeOpDisassociateSecurityGroupVpc) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisassociateSecurityGroupVpc) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisassociateSecurityGroupVpc(response, &metadata)
- }
- output := &DisassociateSecurityGroupVpcOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisassociateSecurityGroupVpcOutput(&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 awsEc2query_deserializeOpErrorDisassociateSecurityGroupVpc(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisassociateSubnetCidrBlock struct {
-}
-
-func (*awsEc2query_deserializeOpDisassociateSubnetCidrBlock) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisassociateSubnetCidrBlock) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisassociateSubnetCidrBlock(response, &metadata)
- }
- output := &DisassociateSubnetCidrBlockOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisassociateSubnetCidrBlockOutput(&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 awsEc2query_deserializeOpErrorDisassociateSubnetCidrBlock(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisassociateTransitGatewayMulticastDomain struct {
-}
-
-func (*awsEc2query_deserializeOpDisassociateTransitGatewayMulticastDomain) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisassociateTransitGatewayMulticastDomain) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisassociateTransitGatewayMulticastDomain(response, &metadata)
- }
- output := &DisassociateTransitGatewayMulticastDomainOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisassociateTransitGatewayMulticastDomainOutput(&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 awsEc2query_deserializeOpErrorDisassociateTransitGatewayMulticastDomain(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisassociateTransitGatewayPolicyTable struct {
-}
-
-func (*awsEc2query_deserializeOpDisassociateTransitGatewayPolicyTable) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisassociateTransitGatewayPolicyTable) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisassociateTransitGatewayPolicyTable(response, &metadata)
- }
- output := &DisassociateTransitGatewayPolicyTableOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisassociateTransitGatewayPolicyTableOutput(&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 awsEc2query_deserializeOpErrorDisassociateTransitGatewayPolicyTable(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisassociateTransitGatewayRouteTable struct {
-}
-
-func (*awsEc2query_deserializeOpDisassociateTransitGatewayRouteTable) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisassociateTransitGatewayRouteTable) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisassociateTransitGatewayRouteTable(response, &metadata)
- }
- output := &DisassociateTransitGatewayRouteTableOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisassociateTransitGatewayRouteTableOutput(&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 awsEc2query_deserializeOpErrorDisassociateTransitGatewayRouteTable(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisassociateTrunkInterface struct {
-}
-
-func (*awsEc2query_deserializeOpDisassociateTrunkInterface) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisassociateTrunkInterface) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisassociateTrunkInterface(response, &metadata)
- }
- output := &DisassociateTrunkInterfaceOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisassociateTrunkInterfaceOutput(&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 awsEc2query_deserializeOpErrorDisassociateTrunkInterface(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpDisassociateVpcCidrBlock struct {
-}
-
-func (*awsEc2query_deserializeOpDisassociateVpcCidrBlock) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpDisassociateVpcCidrBlock) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorDisassociateVpcCidrBlock(response, &metadata)
- }
- output := &DisassociateVpcCidrBlockOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentDisassociateVpcCidrBlockOutput(&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 awsEc2query_deserializeOpErrorDisassociateVpcCidrBlock(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpEnableAddressTransfer struct {
-}
-
-func (*awsEc2query_deserializeOpEnableAddressTransfer) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpEnableAddressTransfer) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorEnableAddressTransfer(response, &metadata)
- }
- output := &EnableAddressTransferOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentEnableAddressTransferOutput(&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 awsEc2query_deserializeOpErrorEnableAddressTransfer(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpEnableAllowedImagesSettings struct {
-}
-
-func (*awsEc2query_deserializeOpEnableAllowedImagesSettings) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpEnableAllowedImagesSettings) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorEnableAllowedImagesSettings(response, &metadata)
- }
- output := &EnableAllowedImagesSettingsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentEnableAllowedImagesSettingsOutput(&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 awsEc2query_deserializeOpErrorEnableAllowedImagesSettings(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpEnableAwsNetworkPerformanceMetricSubscription struct {
-}
-
-func (*awsEc2query_deserializeOpEnableAwsNetworkPerformanceMetricSubscription) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpEnableAwsNetworkPerformanceMetricSubscription) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorEnableAwsNetworkPerformanceMetricSubscription(response, &metadata)
- }
- output := &EnableAwsNetworkPerformanceMetricSubscriptionOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentEnableAwsNetworkPerformanceMetricSubscriptionOutput(&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 awsEc2query_deserializeOpErrorEnableAwsNetworkPerformanceMetricSubscription(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpEnableEbsEncryptionByDefault struct {
-}
-
-func (*awsEc2query_deserializeOpEnableEbsEncryptionByDefault) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpEnableEbsEncryptionByDefault) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorEnableEbsEncryptionByDefault(response, &metadata)
- }
- output := &EnableEbsEncryptionByDefaultOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentEnableEbsEncryptionByDefaultOutput(&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 awsEc2query_deserializeOpErrorEnableEbsEncryptionByDefault(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpEnableFastLaunch struct {
-}
-
-func (*awsEc2query_deserializeOpEnableFastLaunch) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpEnableFastLaunch) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorEnableFastLaunch(response, &metadata)
- }
- output := &EnableFastLaunchOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentEnableFastLaunchOutput(&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 awsEc2query_deserializeOpErrorEnableFastLaunch(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpEnableFastSnapshotRestores struct {
-}
-
-func (*awsEc2query_deserializeOpEnableFastSnapshotRestores) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpEnableFastSnapshotRestores) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorEnableFastSnapshotRestores(response, &metadata)
- }
- output := &EnableFastSnapshotRestoresOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentEnableFastSnapshotRestoresOutput(&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 awsEc2query_deserializeOpErrorEnableFastSnapshotRestores(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpEnableImage struct {
-}
-
-func (*awsEc2query_deserializeOpEnableImage) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpEnableImage) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorEnableImage(response, &metadata)
- }
- output := &EnableImageOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentEnableImageOutput(&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 awsEc2query_deserializeOpErrorEnableImage(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpEnableImageBlockPublicAccess struct {
-}
-
-func (*awsEc2query_deserializeOpEnableImageBlockPublicAccess) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpEnableImageBlockPublicAccess) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorEnableImageBlockPublicAccess(response, &metadata)
- }
- output := &EnableImageBlockPublicAccessOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentEnableImageBlockPublicAccessOutput(&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 awsEc2query_deserializeOpErrorEnableImageBlockPublicAccess(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpEnableImageDeprecation struct {
-}
-
-func (*awsEc2query_deserializeOpEnableImageDeprecation) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpEnableImageDeprecation) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorEnableImageDeprecation(response, &metadata)
- }
- output := &EnableImageDeprecationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentEnableImageDeprecationOutput(&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 awsEc2query_deserializeOpErrorEnableImageDeprecation(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpEnableImageDeregistrationProtection struct {
-}
-
-func (*awsEc2query_deserializeOpEnableImageDeregistrationProtection) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpEnableImageDeregistrationProtection) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorEnableImageDeregistrationProtection(response, &metadata)
- }
- output := &EnableImageDeregistrationProtectionOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentEnableImageDeregistrationProtectionOutput(&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 awsEc2query_deserializeOpErrorEnableImageDeregistrationProtection(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpEnableIpamOrganizationAdminAccount struct {
-}
-
-func (*awsEc2query_deserializeOpEnableIpamOrganizationAdminAccount) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpEnableIpamOrganizationAdminAccount) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorEnableIpamOrganizationAdminAccount(response, &metadata)
- }
- output := &EnableIpamOrganizationAdminAccountOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentEnableIpamOrganizationAdminAccountOutput(&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 awsEc2query_deserializeOpErrorEnableIpamOrganizationAdminAccount(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpEnableReachabilityAnalyzerOrganizationSharing struct {
-}
-
-func (*awsEc2query_deserializeOpEnableReachabilityAnalyzerOrganizationSharing) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpEnableReachabilityAnalyzerOrganizationSharing) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorEnableReachabilityAnalyzerOrganizationSharing(response, &metadata)
- }
- output := &EnableReachabilityAnalyzerOrganizationSharingOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentEnableReachabilityAnalyzerOrganizationSharingOutput(&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 awsEc2query_deserializeOpErrorEnableReachabilityAnalyzerOrganizationSharing(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpEnableRouteServerPropagation struct {
-}
-
-func (*awsEc2query_deserializeOpEnableRouteServerPropagation) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpEnableRouteServerPropagation) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorEnableRouteServerPropagation(response, &metadata)
- }
- output := &EnableRouteServerPropagationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentEnableRouteServerPropagationOutput(&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 awsEc2query_deserializeOpErrorEnableRouteServerPropagation(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpEnableSerialConsoleAccess struct {
-}
-
-func (*awsEc2query_deserializeOpEnableSerialConsoleAccess) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpEnableSerialConsoleAccess) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorEnableSerialConsoleAccess(response, &metadata)
- }
- output := &EnableSerialConsoleAccessOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentEnableSerialConsoleAccessOutput(&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 awsEc2query_deserializeOpErrorEnableSerialConsoleAccess(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpEnableSnapshotBlockPublicAccess struct {
-}
-
-func (*awsEc2query_deserializeOpEnableSnapshotBlockPublicAccess) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpEnableSnapshotBlockPublicAccess) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorEnableSnapshotBlockPublicAccess(response, &metadata)
- }
- output := &EnableSnapshotBlockPublicAccessOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentEnableSnapshotBlockPublicAccessOutput(&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 awsEc2query_deserializeOpErrorEnableSnapshotBlockPublicAccess(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpEnableTransitGatewayRouteTablePropagation struct {
-}
-
-func (*awsEc2query_deserializeOpEnableTransitGatewayRouteTablePropagation) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpEnableTransitGatewayRouteTablePropagation) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorEnableTransitGatewayRouteTablePropagation(response, &metadata)
- }
- output := &EnableTransitGatewayRouteTablePropagationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentEnableTransitGatewayRouteTablePropagationOutput(&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 awsEc2query_deserializeOpErrorEnableTransitGatewayRouteTablePropagation(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpEnableVgwRoutePropagation struct {
-}
-
-func (*awsEc2query_deserializeOpEnableVgwRoutePropagation) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpEnableVgwRoutePropagation) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorEnableVgwRoutePropagation(response, &metadata)
- }
- output := &EnableVgwRoutePropagationOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorEnableVgwRoutePropagation(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpEnableVolumeIO struct {
-}
-
-func (*awsEc2query_deserializeOpEnableVolumeIO) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpEnableVolumeIO) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorEnableVolumeIO(response, &metadata)
- }
- output := &EnableVolumeIOOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorEnableVolumeIO(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpEnableVpcClassicLink struct {
-}
-
-func (*awsEc2query_deserializeOpEnableVpcClassicLink) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpEnableVpcClassicLink) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorEnableVpcClassicLink(response, &metadata)
- }
- output := &EnableVpcClassicLinkOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentEnableVpcClassicLinkOutput(&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 awsEc2query_deserializeOpErrorEnableVpcClassicLink(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpEnableVpcClassicLinkDnsSupport struct {
-}
-
-func (*awsEc2query_deserializeOpEnableVpcClassicLinkDnsSupport) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpEnableVpcClassicLinkDnsSupport) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorEnableVpcClassicLinkDnsSupport(response, &metadata)
- }
- output := &EnableVpcClassicLinkDnsSupportOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentEnableVpcClassicLinkDnsSupportOutput(&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 awsEc2query_deserializeOpErrorEnableVpcClassicLinkDnsSupport(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpExportClientVpnClientCertificateRevocationList struct {
-}
-
-func (*awsEc2query_deserializeOpExportClientVpnClientCertificateRevocationList) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpExportClientVpnClientCertificateRevocationList) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorExportClientVpnClientCertificateRevocationList(response, &metadata)
- }
- output := &ExportClientVpnClientCertificateRevocationListOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentExportClientVpnClientCertificateRevocationListOutput(&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 awsEc2query_deserializeOpErrorExportClientVpnClientCertificateRevocationList(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpExportClientVpnClientConfiguration struct {
-}
-
-func (*awsEc2query_deserializeOpExportClientVpnClientConfiguration) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpExportClientVpnClientConfiguration) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorExportClientVpnClientConfiguration(response, &metadata)
- }
- output := &ExportClientVpnClientConfigurationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentExportClientVpnClientConfigurationOutput(&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 awsEc2query_deserializeOpErrorExportClientVpnClientConfiguration(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpExportImage struct {
-}
-
-func (*awsEc2query_deserializeOpExportImage) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpExportImage) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorExportImage(response, &metadata)
- }
- output := &ExportImageOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentExportImageOutput(&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 awsEc2query_deserializeOpErrorExportImage(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpExportTransitGatewayRoutes struct {
-}
-
-func (*awsEc2query_deserializeOpExportTransitGatewayRoutes) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpExportTransitGatewayRoutes) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorExportTransitGatewayRoutes(response, &metadata)
- }
- output := &ExportTransitGatewayRoutesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentExportTransitGatewayRoutesOutput(&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 awsEc2query_deserializeOpErrorExportTransitGatewayRoutes(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpExportVerifiedAccessInstanceClientConfiguration struct {
-}
-
-func (*awsEc2query_deserializeOpExportVerifiedAccessInstanceClientConfiguration) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpExportVerifiedAccessInstanceClientConfiguration) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorExportVerifiedAccessInstanceClientConfiguration(response, &metadata)
- }
- output := &ExportVerifiedAccessInstanceClientConfigurationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentExportVerifiedAccessInstanceClientConfigurationOutput(&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 awsEc2query_deserializeOpErrorExportVerifiedAccessInstanceClientConfiguration(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetActiveVpnTunnelStatus struct {
-}
-
-func (*awsEc2query_deserializeOpGetActiveVpnTunnelStatus) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetActiveVpnTunnelStatus) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetActiveVpnTunnelStatus(response, &metadata)
- }
- output := &GetActiveVpnTunnelStatusOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetActiveVpnTunnelStatusOutput(&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 awsEc2query_deserializeOpErrorGetActiveVpnTunnelStatus(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetAllowedImagesSettings struct {
-}
-
-func (*awsEc2query_deserializeOpGetAllowedImagesSettings) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetAllowedImagesSettings) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetAllowedImagesSettings(response, &metadata)
- }
- output := &GetAllowedImagesSettingsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetAllowedImagesSettingsOutput(&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 awsEc2query_deserializeOpErrorGetAllowedImagesSettings(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetAssociatedEnclaveCertificateIamRoles struct {
-}
-
-func (*awsEc2query_deserializeOpGetAssociatedEnclaveCertificateIamRoles) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetAssociatedEnclaveCertificateIamRoles) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetAssociatedEnclaveCertificateIamRoles(response, &metadata)
- }
- output := &GetAssociatedEnclaveCertificateIamRolesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetAssociatedEnclaveCertificateIamRolesOutput(&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 awsEc2query_deserializeOpErrorGetAssociatedEnclaveCertificateIamRoles(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetAssociatedIpv6PoolCidrs struct {
-}
-
-func (*awsEc2query_deserializeOpGetAssociatedIpv6PoolCidrs) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetAssociatedIpv6PoolCidrs) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetAssociatedIpv6PoolCidrs(response, &metadata)
- }
- output := &GetAssociatedIpv6PoolCidrsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetAssociatedIpv6PoolCidrsOutput(&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 awsEc2query_deserializeOpErrorGetAssociatedIpv6PoolCidrs(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetAwsNetworkPerformanceData struct {
-}
-
-func (*awsEc2query_deserializeOpGetAwsNetworkPerformanceData) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetAwsNetworkPerformanceData) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetAwsNetworkPerformanceData(response, &metadata)
- }
- output := &GetAwsNetworkPerformanceDataOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetAwsNetworkPerformanceDataOutput(&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 awsEc2query_deserializeOpErrorGetAwsNetworkPerformanceData(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetCapacityReservationUsage struct {
-}
-
-func (*awsEc2query_deserializeOpGetCapacityReservationUsage) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetCapacityReservationUsage) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetCapacityReservationUsage(response, &metadata)
- }
- output := &GetCapacityReservationUsageOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetCapacityReservationUsageOutput(&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 awsEc2query_deserializeOpErrorGetCapacityReservationUsage(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetCoipPoolUsage struct {
-}
-
-func (*awsEc2query_deserializeOpGetCoipPoolUsage) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetCoipPoolUsage) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetCoipPoolUsage(response, &metadata)
- }
- output := &GetCoipPoolUsageOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetCoipPoolUsageOutput(&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 awsEc2query_deserializeOpErrorGetCoipPoolUsage(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetConsoleOutput struct {
-}
-
-func (*awsEc2query_deserializeOpGetConsoleOutput) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetConsoleOutput) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetConsoleOutput(response, &metadata)
- }
- output := &GetConsoleOutputOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetConsoleOutputOutput(&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 awsEc2query_deserializeOpErrorGetConsoleOutput(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetConsoleScreenshot struct {
-}
-
-func (*awsEc2query_deserializeOpGetConsoleScreenshot) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetConsoleScreenshot) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetConsoleScreenshot(response, &metadata)
- }
- output := &GetConsoleScreenshotOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetConsoleScreenshotOutput(&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 awsEc2query_deserializeOpErrorGetConsoleScreenshot(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetDeclarativePoliciesReportSummary struct {
-}
-
-func (*awsEc2query_deserializeOpGetDeclarativePoliciesReportSummary) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetDeclarativePoliciesReportSummary) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetDeclarativePoliciesReportSummary(response, &metadata)
- }
- output := &GetDeclarativePoliciesReportSummaryOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetDeclarativePoliciesReportSummaryOutput(&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 awsEc2query_deserializeOpErrorGetDeclarativePoliciesReportSummary(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetDefaultCreditSpecification struct {
-}
-
-func (*awsEc2query_deserializeOpGetDefaultCreditSpecification) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetDefaultCreditSpecification) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetDefaultCreditSpecification(response, &metadata)
- }
- output := &GetDefaultCreditSpecificationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetDefaultCreditSpecificationOutput(&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 awsEc2query_deserializeOpErrorGetDefaultCreditSpecification(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetEbsDefaultKmsKeyId struct {
-}
-
-func (*awsEc2query_deserializeOpGetEbsDefaultKmsKeyId) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetEbsDefaultKmsKeyId) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetEbsDefaultKmsKeyId(response, &metadata)
- }
- output := &GetEbsDefaultKmsKeyIdOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetEbsDefaultKmsKeyIdOutput(&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 awsEc2query_deserializeOpErrorGetEbsDefaultKmsKeyId(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetEbsEncryptionByDefault struct {
-}
-
-func (*awsEc2query_deserializeOpGetEbsEncryptionByDefault) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetEbsEncryptionByDefault) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetEbsEncryptionByDefault(response, &metadata)
- }
- output := &GetEbsEncryptionByDefaultOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetEbsEncryptionByDefaultOutput(&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 awsEc2query_deserializeOpErrorGetEbsEncryptionByDefault(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetFlowLogsIntegrationTemplate struct {
-}
-
-func (*awsEc2query_deserializeOpGetFlowLogsIntegrationTemplate) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetFlowLogsIntegrationTemplate) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetFlowLogsIntegrationTemplate(response, &metadata)
- }
- output := &GetFlowLogsIntegrationTemplateOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetFlowLogsIntegrationTemplateOutput(&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 awsEc2query_deserializeOpErrorGetFlowLogsIntegrationTemplate(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetGroupsForCapacityReservation struct {
-}
-
-func (*awsEc2query_deserializeOpGetGroupsForCapacityReservation) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetGroupsForCapacityReservation) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetGroupsForCapacityReservation(response, &metadata)
- }
- output := &GetGroupsForCapacityReservationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetGroupsForCapacityReservationOutput(&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 awsEc2query_deserializeOpErrorGetGroupsForCapacityReservation(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetHostReservationPurchasePreview struct {
-}
-
-func (*awsEc2query_deserializeOpGetHostReservationPurchasePreview) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetHostReservationPurchasePreview) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetHostReservationPurchasePreview(response, &metadata)
- }
- output := &GetHostReservationPurchasePreviewOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetHostReservationPurchasePreviewOutput(&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 awsEc2query_deserializeOpErrorGetHostReservationPurchasePreview(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetImageBlockPublicAccessState struct {
-}
-
-func (*awsEc2query_deserializeOpGetImageBlockPublicAccessState) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetImageBlockPublicAccessState) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetImageBlockPublicAccessState(response, &metadata)
- }
- output := &GetImageBlockPublicAccessStateOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetImageBlockPublicAccessStateOutput(&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 awsEc2query_deserializeOpErrorGetImageBlockPublicAccessState(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetInstanceMetadataDefaults struct {
-}
-
-func (*awsEc2query_deserializeOpGetInstanceMetadataDefaults) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetInstanceMetadataDefaults) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetInstanceMetadataDefaults(response, &metadata)
- }
- output := &GetInstanceMetadataDefaultsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetInstanceMetadataDefaultsOutput(&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 awsEc2query_deserializeOpErrorGetInstanceMetadataDefaults(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetInstanceTpmEkPub struct {
-}
-
-func (*awsEc2query_deserializeOpGetInstanceTpmEkPub) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetInstanceTpmEkPub) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetInstanceTpmEkPub(response, &metadata)
- }
- output := &GetInstanceTpmEkPubOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetInstanceTpmEkPubOutput(&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 awsEc2query_deserializeOpErrorGetInstanceTpmEkPub(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetInstanceTypesFromInstanceRequirements struct {
-}
-
-func (*awsEc2query_deserializeOpGetInstanceTypesFromInstanceRequirements) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetInstanceTypesFromInstanceRequirements) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetInstanceTypesFromInstanceRequirements(response, &metadata)
- }
- output := &GetInstanceTypesFromInstanceRequirementsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetInstanceTypesFromInstanceRequirementsOutput(&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 awsEc2query_deserializeOpErrorGetInstanceTypesFromInstanceRequirements(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetInstanceUefiData struct {
-}
-
-func (*awsEc2query_deserializeOpGetInstanceUefiData) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetInstanceUefiData) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetInstanceUefiData(response, &metadata)
- }
- output := &GetInstanceUefiDataOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetInstanceUefiDataOutput(&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 awsEc2query_deserializeOpErrorGetInstanceUefiData(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetIpamAddressHistory struct {
-}
-
-func (*awsEc2query_deserializeOpGetIpamAddressHistory) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetIpamAddressHistory) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetIpamAddressHistory(response, &metadata)
- }
- output := &GetIpamAddressHistoryOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetIpamAddressHistoryOutput(&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 awsEc2query_deserializeOpErrorGetIpamAddressHistory(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetIpamDiscoveredAccounts struct {
-}
-
-func (*awsEc2query_deserializeOpGetIpamDiscoveredAccounts) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetIpamDiscoveredAccounts) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetIpamDiscoveredAccounts(response, &metadata)
- }
- output := &GetIpamDiscoveredAccountsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetIpamDiscoveredAccountsOutput(&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 awsEc2query_deserializeOpErrorGetIpamDiscoveredAccounts(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetIpamDiscoveredPublicAddresses struct {
-}
-
-func (*awsEc2query_deserializeOpGetIpamDiscoveredPublicAddresses) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetIpamDiscoveredPublicAddresses) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetIpamDiscoveredPublicAddresses(response, &metadata)
- }
- output := &GetIpamDiscoveredPublicAddressesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetIpamDiscoveredPublicAddressesOutput(&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 awsEc2query_deserializeOpErrorGetIpamDiscoveredPublicAddresses(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetIpamDiscoveredResourceCidrs struct {
-}
-
-func (*awsEc2query_deserializeOpGetIpamDiscoveredResourceCidrs) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetIpamDiscoveredResourceCidrs) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetIpamDiscoveredResourceCidrs(response, &metadata)
- }
- output := &GetIpamDiscoveredResourceCidrsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetIpamDiscoveredResourceCidrsOutput(&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 awsEc2query_deserializeOpErrorGetIpamDiscoveredResourceCidrs(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetIpamPoolAllocations struct {
-}
-
-func (*awsEc2query_deserializeOpGetIpamPoolAllocations) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetIpamPoolAllocations) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetIpamPoolAllocations(response, &metadata)
- }
- output := &GetIpamPoolAllocationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetIpamPoolAllocationsOutput(&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 awsEc2query_deserializeOpErrorGetIpamPoolAllocations(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetIpamPoolCidrs struct {
-}
-
-func (*awsEc2query_deserializeOpGetIpamPoolCidrs) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetIpamPoolCidrs) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetIpamPoolCidrs(response, &metadata)
- }
- output := &GetIpamPoolCidrsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetIpamPoolCidrsOutput(&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 awsEc2query_deserializeOpErrorGetIpamPoolCidrs(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetIpamResourceCidrs struct {
-}
-
-func (*awsEc2query_deserializeOpGetIpamResourceCidrs) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetIpamResourceCidrs) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetIpamResourceCidrs(response, &metadata)
- }
- output := &GetIpamResourceCidrsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetIpamResourceCidrsOutput(&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 awsEc2query_deserializeOpErrorGetIpamResourceCidrs(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetLaunchTemplateData struct {
-}
-
-func (*awsEc2query_deserializeOpGetLaunchTemplateData) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetLaunchTemplateData) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetLaunchTemplateData(response, &metadata)
- }
- output := &GetLaunchTemplateDataOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetLaunchTemplateDataOutput(&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 awsEc2query_deserializeOpErrorGetLaunchTemplateData(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetManagedPrefixListAssociations struct {
-}
-
-func (*awsEc2query_deserializeOpGetManagedPrefixListAssociations) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetManagedPrefixListAssociations) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetManagedPrefixListAssociations(response, &metadata)
- }
- output := &GetManagedPrefixListAssociationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetManagedPrefixListAssociationsOutput(&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 awsEc2query_deserializeOpErrorGetManagedPrefixListAssociations(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetManagedPrefixListEntries struct {
-}
-
-func (*awsEc2query_deserializeOpGetManagedPrefixListEntries) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetManagedPrefixListEntries) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetManagedPrefixListEntries(response, &metadata)
- }
- output := &GetManagedPrefixListEntriesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetManagedPrefixListEntriesOutput(&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 awsEc2query_deserializeOpErrorGetManagedPrefixListEntries(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetNetworkInsightsAccessScopeAnalysisFindings struct {
-}
-
-func (*awsEc2query_deserializeOpGetNetworkInsightsAccessScopeAnalysisFindings) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetNetworkInsightsAccessScopeAnalysisFindings) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetNetworkInsightsAccessScopeAnalysisFindings(response, &metadata)
- }
- output := &GetNetworkInsightsAccessScopeAnalysisFindingsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetNetworkInsightsAccessScopeAnalysisFindingsOutput(&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 awsEc2query_deserializeOpErrorGetNetworkInsightsAccessScopeAnalysisFindings(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetNetworkInsightsAccessScopeContent struct {
-}
-
-func (*awsEc2query_deserializeOpGetNetworkInsightsAccessScopeContent) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetNetworkInsightsAccessScopeContent) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetNetworkInsightsAccessScopeContent(response, &metadata)
- }
- output := &GetNetworkInsightsAccessScopeContentOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetNetworkInsightsAccessScopeContentOutput(&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 awsEc2query_deserializeOpErrorGetNetworkInsightsAccessScopeContent(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetPasswordData struct {
-}
-
-func (*awsEc2query_deserializeOpGetPasswordData) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetPasswordData) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetPasswordData(response, &metadata)
- }
- output := &GetPasswordDataOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetPasswordDataOutput(&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 awsEc2query_deserializeOpErrorGetPasswordData(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetReservedInstancesExchangeQuote struct {
-}
-
-func (*awsEc2query_deserializeOpGetReservedInstancesExchangeQuote) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetReservedInstancesExchangeQuote) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetReservedInstancesExchangeQuote(response, &metadata)
- }
- output := &GetReservedInstancesExchangeQuoteOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetReservedInstancesExchangeQuoteOutput(&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 awsEc2query_deserializeOpErrorGetReservedInstancesExchangeQuote(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetRouteServerAssociations struct {
-}
-
-func (*awsEc2query_deserializeOpGetRouteServerAssociations) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetRouteServerAssociations) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetRouteServerAssociations(response, &metadata)
- }
- output := &GetRouteServerAssociationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetRouteServerAssociationsOutput(&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 awsEc2query_deserializeOpErrorGetRouteServerAssociations(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetRouteServerPropagations struct {
-}
-
-func (*awsEc2query_deserializeOpGetRouteServerPropagations) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetRouteServerPropagations) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetRouteServerPropagations(response, &metadata)
- }
- output := &GetRouteServerPropagationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetRouteServerPropagationsOutput(&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 awsEc2query_deserializeOpErrorGetRouteServerPropagations(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetRouteServerRoutingDatabase struct {
-}
-
-func (*awsEc2query_deserializeOpGetRouteServerRoutingDatabase) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetRouteServerRoutingDatabase) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetRouteServerRoutingDatabase(response, &metadata)
- }
- output := &GetRouteServerRoutingDatabaseOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetRouteServerRoutingDatabaseOutput(&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 awsEc2query_deserializeOpErrorGetRouteServerRoutingDatabase(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetSecurityGroupsForVpc struct {
-}
-
-func (*awsEc2query_deserializeOpGetSecurityGroupsForVpc) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetSecurityGroupsForVpc) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetSecurityGroupsForVpc(response, &metadata)
- }
- output := &GetSecurityGroupsForVpcOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetSecurityGroupsForVpcOutput(&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 awsEc2query_deserializeOpErrorGetSecurityGroupsForVpc(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetSerialConsoleAccessStatus struct {
-}
-
-func (*awsEc2query_deserializeOpGetSerialConsoleAccessStatus) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetSerialConsoleAccessStatus) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetSerialConsoleAccessStatus(response, &metadata)
- }
- output := &GetSerialConsoleAccessStatusOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetSerialConsoleAccessStatusOutput(&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 awsEc2query_deserializeOpErrorGetSerialConsoleAccessStatus(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetSnapshotBlockPublicAccessState struct {
-}
-
-func (*awsEc2query_deserializeOpGetSnapshotBlockPublicAccessState) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetSnapshotBlockPublicAccessState) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetSnapshotBlockPublicAccessState(response, &metadata)
- }
- output := &GetSnapshotBlockPublicAccessStateOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetSnapshotBlockPublicAccessStateOutput(&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 awsEc2query_deserializeOpErrorGetSnapshotBlockPublicAccessState(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetSpotPlacementScores struct {
-}
-
-func (*awsEc2query_deserializeOpGetSpotPlacementScores) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetSpotPlacementScores) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetSpotPlacementScores(response, &metadata)
- }
- output := &GetSpotPlacementScoresOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetSpotPlacementScoresOutput(&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 awsEc2query_deserializeOpErrorGetSpotPlacementScores(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetSubnetCidrReservations struct {
-}
-
-func (*awsEc2query_deserializeOpGetSubnetCidrReservations) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetSubnetCidrReservations) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetSubnetCidrReservations(response, &metadata)
- }
- output := &GetSubnetCidrReservationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetSubnetCidrReservationsOutput(&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 awsEc2query_deserializeOpErrorGetSubnetCidrReservations(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetTransitGatewayAttachmentPropagations struct {
-}
-
-func (*awsEc2query_deserializeOpGetTransitGatewayAttachmentPropagations) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetTransitGatewayAttachmentPropagations) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayAttachmentPropagations(response, &metadata)
- }
- output := &GetTransitGatewayAttachmentPropagationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetTransitGatewayAttachmentPropagationsOutput(&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 awsEc2query_deserializeOpErrorGetTransitGatewayAttachmentPropagations(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetTransitGatewayMulticastDomainAssociations struct {
-}
-
-func (*awsEc2query_deserializeOpGetTransitGatewayMulticastDomainAssociations) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetTransitGatewayMulticastDomainAssociations) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayMulticastDomainAssociations(response, &metadata)
- }
- output := &GetTransitGatewayMulticastDomainAssociationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetTransitGatewayMulticastDomainAssociationsOutput(&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 awsEc2query_deserializeOpErrorGetTransitGatewayMulticastDomainAssociations(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetTransitGatewayPolicyTableAssociations struct {
-}
-
-func (*awsEc2query_deserializeOpGetTransitGatewayPolicyTableAssociations) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetTransitGatewayPolicyTableAssociations) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayPolicyTableAssociations(response, &metadata)
- }
- output := &GetTransitGatewayPolicyTableAssociationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetTransitGatewayPolicyTableAssociationsOutput(&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 awsEc2query_deserializeOpErrorGetTransitGatewayPolicyTableAssociations(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetTransitGatewayPolicyTableEntries struct {
-}
-
-func (*awsEc2query_deserializeOpGetTransitGatewayPolicyTableEntries) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetTransitGatewayPolicyTableEntries) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayPolicyTableEntries(response, &metadata)
- }
- output := &GetTransitGatewayPolicyTableEntriesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetTransitGatewayPolicyTableEntriesOutput(&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 awsEc2query_deserializeOpErrorGetTransitGatewayPolicyTableEntries(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetTransitGatewayPrefixListReferences struct {
-}
-
-func (*awsEc2query_deserializeOpGetTransitGatewayPrefixListReferences) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetTransitGatewayPrefixListReferences) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayPrefixListReferences(response, &metadata)
- }
- output := &GetTransitGatewayPrefixListReferencesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetTransitGatewayPrefixListReferencesOutput(&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 awsEc2query_deserializeOpErrorGetTransitGatewayPrefixListReferences(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetTransitGatewayRouteTableAssociations struct {
-}
-
-func (*awsEc2query_deserializeOpGetTransitGatewayRouteTableAssociations) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetTransitGatewayRouteTableAssociations) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayRouteTableAssociations(response, &metadata)
- }
- output := &GetTransitGatewayRouteTableAssociationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetTransitGatewayRouteTableAssociationsOutput(&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 awsEc2query_deserializeOpErrorGetTransitGatewayRouteTableAssociations(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetTransitGatewayRouteTablePropagations struct {
-}
-
-func (*awsEc2query_deserializeOpGetTransitGatewayRouteTablePropagations) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetTransitGatewayRouteTablePropagations) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayRouteTablePropagations(response, &metadata)
- }
- output := &GetTransitGatewayRouteTablePropagationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetTransitGatewayRouteTablePropagationsOutput(&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 awsEc2query_deserializeOpErrorGetTransitGatewayRouteTablePropagations(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetVerifiedAccessEndpointPolicy struct {
-}
-
-func (*awsEc2query_deserializeOpGetVerifiedAccessEndpointPolicy) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetVerifiedAccessEndpointPolicy) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetVerifiedAccessEndpointPolicy(response, &metadata)
- }
- output := &GetVerifiedAccessEndpointPolicyOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetVerifiedAccessEndpointPolicyOutput(&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 awsEc2query_deserializeOpErrorGetVerifiedAccessEndpointPolicy(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetVerifiedAccessEndpointTargets struct {
-}
-
-func (*awsEc2query_deserializeOpGetVerifiedAccessEndpointTargets) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetVerifiedAccessEndpointTargets) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetVerifiedAccessEndpointTargets(response, &metadata)
- }
- output := &GetVerifiedAccessEndpointTargetsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetVerifiedAccessEndpointTargetsOutput(&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 awsEc2query_deserializeOpErrorGetVerifiedAccessEndpointTargets(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetVerifiedAccessGroupPolicy struct {
-}
-
-func (*awsEc2query_deserializeOpGetVerifiedAccessGroupPolicy) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetVerifiedAccessGroupPolicy) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetVerifiedAccessGroupPolicy(response, &metadata)
- }
- output := &GetVerifiedAccessGroupPolicyOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetVerifiedAccessGroupPolicyOutput(&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 awsEc2query_deserializeOpErrorGetVerifiedAccessGroupPolicy(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetVpnConnectionDeviceSampleConfiguration struct {
-}
-
-func (*awsEc2query_deserializeOpGetVpnConnectionDeviceSampleConfiguration) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetVpnConnectionDeviceSampleConfiguration) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetVpnConnectionDeviceSampleConfiguration(response, &metadata)
- }
- output := &GetVpnConnectionDeviceSampleConfigurationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetVpnConnectionDeviceSampleConfigurationOutput(&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 awsEc2query_deserializeOpErrorGetVpnConnectionDeviceSampleConfiguration(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetVpnConnectionDeviceTypes struct {
-}
-
-func (*awsEc2query_deserializeOpGetVpnConnectionDeviceTypes) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetVpnConnectionDeviceTypes) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetVpnConnectionDeviceTypes(response, &metadata)
- }
- output := &GetVpnConnectionDeviceTypesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetVpnConnectionDeviceTypesOutput(&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 awsEc2query_deserializeOpErrorGetVpnConnectionDeviceTypes(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpGetVpnTunnelReplacementStatus struct {
-}
-
-func (*awsEc2query_deserializeOpGetVpnTunnelReplacementStatus) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpGetVpnTunnelReplacementStatus) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorGetVpnTunnelReplacementStatus(response, &metadata)
- }
- output := &GetVpnTunnelReplacementStatusOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentGetVpnTunnelReplacementStatusOutput(&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 awsEc2query_deserializeOpErrorGetVpnTunnelReplacementStatus(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpImportClientVpnClientCertificateRevocationList struct {
-}
-
-func (*awsEc2query_deserializeOpImportClientVpnClientCertificateRevocationList) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpImportClientVpnClientCertificateRevocationList) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorImportClientVpnClientCertificateRevocationList(response, &metadata)
- }
- output := &ImportClientVpnClientCertificateRevocationListOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentImportClientVpnClientCertificateRevocationListOutput(&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 awsEc2query_deserializeOpErrorImportClientVpnClientCertificateRevocationList(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpImportImage struct {
-}
-
-func (*awsEc2query_deserializeOpImportImage) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpImportImage) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorImportImage(response, &metadata)
- }
- output := &ImportImageOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentImportImageOutput(&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 awsEc2query_deserializeOpErrorImportImage(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpImportInstance struct {
-}
-
-func (*awsEc2query_deserializeOpImportInstance) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpImportInstance) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorImportInstance(response, &metadata)
- }
- output := &ImportInstanceOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentImportInstanceOutput(&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 awsEc2query_deserializeOpErrorImportInstance(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpImportKeyPair struct {
-}
-
-func (*awsEc2query_deserializeOpImportKeyPair) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpImportKeyPair) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorImportKeyPair(response, &metadata)
- }
- output := &ImportKeyPairOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentImportKeyPairOutput(&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 awsEc2query_deserializeOpErrorImportKeyPair(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpImportSnapshot struct {
-}
-
-func (*awsEc2query_deserializeOpImportSnapshot) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpImportSnapshot) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorImportSnapshot(response, &metadata)
- }
- output := &ImportSnapshotOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentImportSnapshotOutput(&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 awsEc2query_deserializeOpErrorImportSnapshot(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpImportVolume struct {
-}
-
-func (*awsEc2query_deserializeOpImportVolume) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpImportVolume) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorImportVolume(response, &metadata)
- }
- output := &ImportVolumeOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentImportVolumeOutput(&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 awsEc2query_deserializeOpErrorImportVolume(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpListImagesInRecycleBin struct {
-}
-
-func (*awsEc2query_deserializeOpListImagesInRecycleBin) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpListImagesInRecycleBin) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorListImagesInRecycleBin(response, &metadata)
- }
- output := &ListImagesInRecycleBinOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentListImagesInRecycleBinOutput(&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 awsEc2query_deserializeOpErrorListImagesInRecycleBin(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpListSnapshotsInRecycleBin struct {
-}
-
-func (*awsEc2query_deserializeOpListSnapshotsInRecycleBin) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpListSnapshotsInRecycleBin) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorListSnapshotsInRecycleBin(response, &metadata)
- }
- output := &ListSnapshotsInRecycleBinOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentListSnapshotsInRecycleBinOutput(&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 awsEc2query_deserializeOpErrorListSnapshotsInRecycleBin(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpLockSnapshot struct {
-}
-
-func (*awsEc2query_deserializeOpLockSnapshot) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpLockSnapshot) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorLockSnapshot(response, &metadata)
- }
- output := &LockSnapshotOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentLockSnapshotOutput(&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 awsEc2query_deserializeOpErrorLockSnapshot(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyAddressAttribute struct {
-}
-
-func (*awsEc2query_deserializeOpModifyAddressAttribute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyAddressAttribute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyAddressAttribute(response, &metadata)
- }
- output := &ModifyAddressAttributeOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyAddressAttributeOutput(&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 awsEc2query_deserializeOpErrorModifyAddressAttribute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyAvailabilityZoneGroup struct {
-}
-
-func (*awsEc2query_deserializeOpModifyAvailabilityZoneGroup) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyAvailabilityZoneGroup) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyAvailabilityZoneGroup(response, &metadata)
- }
- output := &ModifyAvailabilityZoneGroupOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyAvailabilityZoneGroupOutput(&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 awsEc2query_deserializeOpErrorModifyAvailabilityZoneGroup(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyCapacityReservation struct {
-}
-
-func (*awsEc2query_deserializeOpModifyCapacityReservation) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_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)
- err = awsEc2query_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 awsEc2query_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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyCapacityReservationFleet struct {
-}
-
-func (*awsEc2query_deserializeOpModifyCapacityReservationFleet) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyCapacityReservationFleet) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyCapacityReservationFleet(response, &metadata)
- }
- output := &ModifyCapacityReservationFleetOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyCapacityReservationFleetOutput(&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 awsEc2query_deserializeOpErrorModifyCapacityReservationFleet(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyClientVpnEndpoint struct {
-}
-
-func (*awsEc2query_deserializeOpModifyClientVpnEndpoint) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyClientVpnEndpoint) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyClientVpnEndpoint(response, &metadata)
- }
- output := &ModifyClientVpnEndpointOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyClientVpnEndpointOutput(&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 awsEc2query_deserializeOpErrorModifyClientVpnEndpoint(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyDefaultCreditSpecification struct {
-}
-
-func (*awsEc2query_deserializeOpModifyDefaultCreditSpecification) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyDefaultCreditSpecification) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyDefaultCreditSpecification(response, &metadata)
- }
- output := &ModifyDefaultCreditSpecificationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyDefaultCreditSpecificationOutput(&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 awsEc2query_deserializeOpErrorModifyDefaultCreditSpecification(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyEbsDefaultKmsKeyId struct {
-}
-
-func (*awsEc2query_deserializeOpModifyEbsDefaultKmsKeyId) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyEbsDefaultKmsKeyId) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyEbsDefaultKmsKeyId(response, &metadata)
- }
- output := &ModifyEbsDefaultKmsKeyIdOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyEbsDefaultKmsKeyIdOutput(&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 awsEc2query_deserializeOpErrorModifyEbsDefaultKmsKeyId(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyFleet struct {
-}
-
-func (*awsEc2query_deserializeOpModifyFleet) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyFleet) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyFleet(response, &metadata)
- }
- output := &ModifyFleetOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyFleetOutput(&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 awsEc2query_deserializeOpErrorModifyFleet(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyFpgaImageAttribute struct {
-}
-
-func (*awsEc2query_deserializeOpModifyFpgaImageAttribute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyFpgaImageAttribute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyFpgaImageAttribute(response, &metadata)
- }
- output := &ModifyFpgaImageAttributeOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyFpgaImageAttributeOutput(&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 awsEc2query_deserializeOpErrorModifyFpgaImageAttribute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyHosts struct {
-}
-
-func (*awsEc2query_deserializeOpModifyHosts) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyHosts) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyHosts(response, &metadata)
- }
- output := &ModifyHostsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyHostsOutput(&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 awsEc2query_deserializeOpErrorModifyHosts(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyIdentityIdFormat struct {
-}
-
-func (*awsEc2query_deserializeOpModifyIdentityIdFormat) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyIdentityIdFormat) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyIdentityIdFormat(response, &metadata)
- }
- output := &ModifyIdentityIdFormatOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorModifyIdentityIdFormat(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyIdFormat struct {
-}
-
-func (*awsEc2query_deserializeOpModifyIdFormat) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyIdFormat) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyIdFormat(response, &metadata)
- }
- output := &ModifyIdFormatOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorModifyIdFormat(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyImageAttribute struct {
-}
-
-func (*awsEc2query_deserializeOpModifyImageAttribute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyImageAttribute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyImageAttribute(response, &metadata)
- }
- output := &ModifyImageAttributeOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorModifyImageAttribute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyInstanceAttribute struct {
-}
-
-func (*awsEc2query_deserializeOpModifyInstanceAttribute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyInstanceAttribute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceAttribute(response, &metadata)
- }
- output := &ModifyInstanceAttributeOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorModifyInstanceAttribute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyInstanceCapacityReservationAttributes struct {
-}
-
-func (*awsEc2query_deserializeOpModifyInstanceCapacityReservationAttributes) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyInstanceCapacityReservationAttributes) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceCapacityReservationAttributes(response, &metadata)
- }
- output := &ModifyInstanceCapacityReservationAttributesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyInstanceCapacityReservationAttributesOutput(&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 awsEc2query_deserializeOpErrorModifyInstanceCapacityReservationAttributes(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyInstanceCpuOptions struct {
-}
-
-func (*awsEc2query_deserializeOpModifyInstanceCpuOptions) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyInstanceCpuOptions) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceCpuOptions(response, &metadata)
- }
- output := &ModifyInstanceCpuOptionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyInstanceCpuOptionsOutput(&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 awsEc2query_deserializeOpErrorModifyInstanceCpuOptions(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyInstanceCreditSpecification struct {
-}
-
-func (*awsEc2query_deserializeOpModifyInstanceCreditSpecification) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyInstanceCreditSpecification) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceCreditSpecification(response, &metadata)
- }
- output := &ModifyInstanceCreditSpecificationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyInstanceCreditSpecificationOutput(&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 awsEc2query_deserializeOpErrorModifyInstanceCreditSpecification(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyInstanceEventStartTime struct {
-}
-
-func (*awsEc2query_deserializeOpModifyInstanceEventStartTime) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyInstanceEventStartTime) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceEventStartTime(response, &metadata)
- }
- output := &ModifyInstanceEventStartTimeOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyInstanceEventStartTimeOutput(&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 awsEc2query_deserializeOpErrorModifyInstanceEventStartTime(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyInstanceEventWindow struct {
-}
-
-func (*awsEc2query_deserializeOpModifyInstanceEventWindow) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyInstanceEventWindow) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceEventWindow(response, &metadata)
- }
- output := &ModifyInstanceEventWindowOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyInstanceEventWindowOutput(&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 awsEc2query_deserializeOpErrorModifyInstanceEventWindow(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyInstanceMaintenanceOptions struct {
-}
-
-func (*awsEc2query_deserializeOpModifyInstanceMaintenanceOptions) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyInstanceMaintenanceOptions) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceMaintenanceOptions(response, &metadata)
- }
- output := &ModifyInstanceMaintenanceOptionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyInstanceMaintenanceOptionsOutput(&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 awsEc2query_deserializeOpErrorModifyInstanceMaintenanceOptions(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyInstanceMetadataDefaults struct {
-}
-
-func (*awsEc2query_deserializeOpModifyInstanceMetadataDefaults) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyInstanceMetadataDefaults) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceMetadataDefaults(response, &metadata)
- }
- output := &ModifyInstanceMetadataDefaultsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyInstanceMetadataDefaultsOutput(&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 awsEc2query_deserializeOpErrorModifyInstanceMetadataDefaults(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyInstanceMetadataOptions struct {
-}
-
-func (*awsEc2query_deserializeOpModifyInstanceMetadataOptions) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyInstanceMetadataOptions) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceMetadataOptions(response, &metadata)
- }
- output := &ModifyInstanceMetadataOptionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyInstanceMetadataOptionsOutput(&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 awsEc2query_deserializeOpErrorModifyInstanceMetadataOptions(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyInstanceNetworkPerformanceOptions struct {
-}
-
-func (*awsEc2query_deserializeOpModifyInstanceNetworkPerformanceOptions) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyInstanceNetworkPerformanceOptions) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceNetworkPerformanceOptions(response, &metadata)
- }
- output := &ModifyInstanceNetworkPerformanceOptionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyInstanceNetworkPerformanceOptionsOutput(&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 awsEc2query_deserializeOpErrorModifyInstanceNetworkPerformanceOptions(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyInstancePlacement struct {
-}
-
-func (*awsEc2query_deserializeOpModifyInstancePlacement) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyInstancePlacement) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyInstancePlacement(response, &metadata)
- }
- output := &ModifyInstancePlacementOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyInstancePlacementOutput(&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 awsEc2query_deserializeOpErrorModifyInstancePlacement(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyIpam struct {
-}
-
-func (*awsEc2query_deserializeOpModifyIpam) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyIpam) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyIpam(response, &metadata)
- }
- output := &ModifyIpamOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyIpamOutput(&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 awsEc2query_deserializeOpErrorModifyIpam(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyIpamPool struct {
-}
-
-func (*awsEc2query_deserializeOpModifyIpamPool) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyIpamPool) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyIpamPool(response, &metadata)
- }
- output := &ModifyIpamPoolOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyIpamPoolOutput(&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 awsEc2query_deserializeOpErrorModifyIpamPool(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyIpamResourceCidr struct {
-}
-
-func (*awsEc2query_deserializeOpModifyIpamResourceCidr) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyIpamResourceCidr) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyIpamResourceCidr(response, &metadata)
- }
- output := &ModifyIpamResourceCidrOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyIpamResourceCidrOutput(&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 awsEc2query_deserializeOpErrorModifyIpamResourceCidr(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyIpamResourceDiscovery struct {
-}
-
-func (*awsEc2query_deserializeOpModifyIpamResourceDiscovery) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyIpamResourceDiscovery) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyIpamResourceDiscovery(response, &metadata)
- }
- output := &ModifyIpamResourceDiscoveryOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyIpamResourceDiscoveryOutput(&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 awsEc2query_deserializeOpErrorModifyIpamResourceDiscovery(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyIpamScope struct {
-}
-
-func (*awsEc2query_deserializeOpModifyIpamScope) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyIpamScope) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyIpamScope(response, &metadata)
- }
- output := &ModifyIpamScopeOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyIpamScopeOutput(&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 awsEc2query_deserializeOpErrorModifyIpamScope(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyLaunchTemplate struct {
-}
-
-func (*awsEc2query_deserializeOpModifyLaunchTemplate) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyLaunchTemplate) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyLaunchTemplate(response, &metadata)
- }
- output := &ModifyLaunchTemplateOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyLaunchTemplateOutput(&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 awsEc2query_deserializeOpErrorModifyLaunchTemplate(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyLocalGatewayRoute struct {
-}
-
-func (*awsEc2query_deserializeOpModifyLocalGatewayRoute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyLocalGatewayRoute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyLocalGatewayRoute(response, &metadata)
- }
- output := &ModifyLocalGatewayRouteOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyLocalGatewayRouteOutput(&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 awsEc2query_deserializeOpErrorModifyLocalGatewayRoute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyManagedPrefixList struct {
-}
-
-func (*awsEc2query_deserializeOpModifyManagedPrefixList) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyManagedPrefixList) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyManagedPrefixList(response, &metadata)
- }
- output := &ModifyManagedPrefixListOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyManagedPrefixListOutput(&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 awsEc2query_deserializeOpErrorModifyManagedPrefixList(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyNetworkInterfaceAttribute struct {
-}
-
-func (*awsEc2query_deserializeOpModifyNetworkInterfaceAttribute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyNetworkInterfaceAttribute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyNetworkInterfaceAttribute(response, &metadata)
- }
- output := &ModifyNetworkInterfaceAttributeOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorModifyNetworkInterfaceAttribute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyPrivateDnsNameOptions struct {
-}
-
-func (*awsEc2query_deserializeOpModifyPrivateDnsNameOptions) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyPrivateDnsNameOptions) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyPrivateDnsNameOptions(response, &metadata)
- }
- output := &ModifyPrivateDnsNameOptionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyPrivateDnsNameOptionsOutput(&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 awsEc2query_deserializeOpErrorModifyPrivateDnsNameOptions(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyPublicIpDnsNameOptions struct {
-}
-
-func (*awsEc2query_deserializeOpModifyPublicIpDnsNameOptions) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyPublicIpDnsNameOptions) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyPublicIpDnsNameOptions(response, &metadata)
- }
- output := &ModifyPublicIpDnsNameOptionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyPublicIpDnsNameOptionsOutput(&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 awsEc2query_deserializeOpErrorModifyPublicIpDnsNameOptions(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyReservedInstances struct {
-}
-
-func (*awsEc2query_deserializeOpModifyReservedInstances) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyReservedInstances) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyReservedInstances(response, &metadata)
- }
- output := &ModifyReservedInstancesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyReservedInstancesOutput(&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 awsEc2query_deserializeOpErrorModifyReservedInstances(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyRouteServer struct {
-}
-
-func (*awsEc2query_deserializeOpModifyRouteServer) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyRouteServer) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyRouteServer(response, &metadata)
- }
- output := &ModifyRouteServerOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyRouteServerOutput(&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 awsEc2query_deserializeOpErrorModifyRouteServer(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifySecurityGroupRules struct {
-}
-
-func (*awsEc2query_deserializeOpModifySecurityGroupRules) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifySecurityGroupRules) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifySecurityGroupRules(response, &metadata)
- }
- output := &ModifySecurityGroupRulesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifySecurityGroupRulesOutput(&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 awsEc2query_deserializeOpErrorModifySecurityGroupRules(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifySnapshotAttribute struct {
-}
-
-func (*awsEc2query_deserializeOpModifySnapshotAttribute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifySnapshotAttribute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifySnapshotAttribute(response, &metadata)
- }
- output := &ModifySnapshotAttributeOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorModifySnapshotAttribute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifySnapshotTier struct {
-}
-
-func (*awsEc2query_deserializeOpModifySnapshotTier) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifySnapshotTier) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifySnapshotTier(response, &metadata)
- }
- output := &ModifySnapshotTierOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifySnapshotTierOutput(&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 awsEc2query_deserializeOpErrorModifySnapshotTier(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifySpotFleetRequest struct {
-}
-
-func (*awsEc2query_deserializeOpModifySpotFleetRequest) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifySpotFleetRequest) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifySpotFleetRequest(response, &metadata)
- }
- output := &ModifySpotFleetRequestOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifySpotFleetRequestOutput(&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 awsEc2query_deserializeOpErrorModifySpotFleetRequest(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifySubnetAttribute struct {
-}
-
-func (*awsEc2query_deserializeOpModifySubnetAttribute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifySubnetAttribute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifySubnetAttribute(response, &metadata)
- }
- output := &ModifySubnetAttributeOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorModifySubnetAttribute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices struct {
-}
-
-func (*awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterNetworkServices(response, &metadata)
- }
- output := &ModifyTrafficMirrorFilterNetworkServicesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorFilterNetworkServicesOutput(&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 awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterNetworkServices(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyTrafficMirrorFilterRule struct {
-}
-
-func (*awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterRule(response, &metadata)
- }
- output := &ModifyTrafficMirrorFilterRuleOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorFilterRuleOutput(&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 awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterRule(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyTrafficMirrorSession struct {
-}
-
-func (*awsEc2query_deserializeOpModifyTrafficMirrorSession) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyTrafficMirrorSession) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorSession(response, &metadata)
- }
- output := &ModifyTrafficMirrorSessionOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorSessionOutput(&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 awsEc2query_deserializeOpErrorModifyTrafficMirrorSession(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyTransitGateway struct {
-}
-
-func (*awsEc2query_deserializeOpModifyTransitGateway) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyTransitGateway) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGateway(response, &metadata)
- }
- output := &ModifyTransitGatewayOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyTransitGatewayOutput(&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 awsEc2query_deserializeOpErrorModifyTransitGateway(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference struct {
-}
-
-func (*awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGatewayPrefixListReference(response, &metadata)
- }
- output := &ModifyTransitGatewayPrefixListReferenceOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyTransitGatewayPrefixListReferenceOutput(&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 awsEc2query_deserializeOpErrorModifyTransitGatewayPrefixListReference(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment struct {
-}
-
-func (*awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGatewayVpcAttachment(response, &metadata)
- }
- output := &ModifyTransitGatewayVpcAttachmentOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyTransitGatewayVpcAttachmentOutput(&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 awsEc2query_deserializeOpErrorModifyTransitGatewayVpcAttachment(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyVerifiedAccessEndpoint struct {
-}
-
-func (*awsEc2query_deserializeOpModifyVerifiedAccessEndpoint) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyVerifiedAccessEndpoint) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyVerifiedAccessEndpoint(response, &metadata)
- }
- output := &ModifyVerifiedAccessEndpointOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyVerifiedAccessEndpointOutput(&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 awsEc2query_deserializeOpErrorModifyVerifiedAccessEndpoint(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyVerifiedAccessEndpointPolicy struct {
-}
-
-func (*awsEc2query_deserializeOpModifyVerifiedAccessEndpointPolicy) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyVerifiedAccessEndpointPolicy) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyVerifiedAccessEndpointPolicy(response, &metadata)
- }
- output := &ModifyVerifiedAccessEndpointPolicyOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyVerifiedAccessEndpointPolicyOutput(&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 awsEc2query_deserializeOpErrorModifyVerifiedAccessEndpointPolicy(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyVerifiedAccessGroup struct {
-}
-
-func (*awsEc2query_deserializeOpModifyVerifiedAccessGroup) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyVerifiedAccessGroup) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyVerifiedAccessGroup(response, &metadata)
- }
- output := &ModifyVerifiedAccessGroupOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyVerifiedAccessGroupOutput(&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 awsEc2query_deserializeOpErrorModifyVerifiedAccessGroup(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyVerifiedAccessGroupPolicy struct {
-}
-
-func (*awsEc2query_deserializeOpModifyVerifiedAccessGroupPolicy) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyVerifiedAccessGroupPolicy) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyVerifiedAccessGroupPolicy(response, &metadata)
- }
- output := &ModifyVerifiedAccessGroupPolicyOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyVerifiedAccessGroupPolicyOutput(&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 awsEc2query_deserializeOpErrorModifyVerifiedAccessGroupPolicy(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyVerifiedAccessInstance struct {
-}
-
-func (*awsEc2query_deserializeOpModifyVerifiedAccessInstance) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyVerifiedAccessInstance) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyVerifiedAccessInstance(response, &metadata)
- }
- output := &ModifyVerifiedAccessInstanceOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyVerifiedAccessInstanceOutput(&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 awsEc2query_deserializeOpErrorModifyVerifiedAccessInstance(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyVerifiedAccessInstanceLoggingConfiguration struct {
-}
-
-func (*awsEc2query_deserializeOpModifyVerifiedAccessInstanceLoggingConfiguration) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyVerifiedAccessInstanceLoggingConfiguration) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyVerifiedAccessInstanceLoggingConfiguration(response, &metadata)
- }
- output := &ModifyVerifiedAccessInstanceLoggingConfigurationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyVerifiedAccessInstanceLoggingConfigurationOutput(&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 awsEc2query_deserializeOpErrorModifyVerifiedAccessInstanceLoggingConfiguration(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyVerifiedAccessTrustProvider struct {
-}
-
-func (*awsEc2query_deserializeOpModifyVerifiedAccessTrustProvider) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyVerifiedAccessTrustProvider) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyVerifiedAccessTrustProvider(response, &metadata)
- }
- output := &ModifyVerifiedAccessTrustProviderOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyVerifiedAccessTrustProviderOutput(&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 awsEc2query_deserializeOpErrorModifyVerifiedAccessTrustProvider(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyVolume struct {
-}
-
-func (*awsEc2query_deserializeOpModifyVolume) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyVolume) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyVolume(response, &metadata)
- }
- output := &ModifyVolumeOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyVolumeOutput(&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 awsEc2query_deserializeOpErrorModifyVolume(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyVolumeAttribute struct {
-}
-
-func (*awsEc2query_deserializeOpModifyVolumeAttribute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyVolumeAttribute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyVolumeAttribute(response, &metadata)
- }
- output := &ModifyVolumeAttributeOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorModifyVolumeAttribute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyVpcAttribute struct {
-}
-
-func (*awsEc2query_deserializeOpModifyVpcAttribute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyVpcAttribute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyVpcAttribute(response, &metadata)
- }
- output := &ModifyVpcAttributeOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorModifyVpcAttribute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyVpcBlockPublicAccessExclusion struct {
-}
-
-func (*awsEc2query_deserializeOpModifyVpcBlockPublicAccessExclusion) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyVpcBlockPublicAccessExclusion) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyVpcBlockPublicAccessExclusion(response, &metadata)
- }
- output := &ModifyVpcBlockPublicAccessExclusionOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyVpcBlockPublicAccessExclusionOutput(&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 awsEc2query_deserializeOpErrorModifyVpcBlockPublicAccessExclusion(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyVpcBlockPublicAccessOptions struct {
-}
-
-func (*awsEc2query_deserializeOpModifyVpcBlockPublicAccessOptions) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyVpcBlockPublicAccessOptions) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyVpcBlockPublicAccessOptions(response, &metadata)
- }
- output := &ModifyVpcBlockPublicAccessOptionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyVpcBlockPublicAccessOptionsOutput(&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 awsEc2query_deserializeOpErrorModifyVpcBlockPublicAccessOptions(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyVpcEndpoint struct {
-}
-
-func (*awsEc2query_deserializeOpModifyVpcEndpoint) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyVpcEndpoint) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpoint(response, &metadata)
- }
- output := &ModifyVpcEndpointOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyVpcEndpointOutput(&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 awsEc2query_deserializeOpErrorModifyVpcEndpoint(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification struct {
-}
-
-func (*awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response, &metadata)
- }
- output := &ModifyVpcEndpointConnectionNotificationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyVpcEndpointConnectionNotificationOutput(&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 awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration struct {
-}
-
-func (*awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(response, &metadata)
- }
- output := &ModifyVpcEndpointServiceConfigurationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServiceConfigurationOutput(&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 awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility struct {
-}
-
-func (*awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServicePayerResponsibility(response, &metadata)
- }
- output := &ModifyVpcEndpointServicePayerResponsibilityOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServicePayerResponsibilityOutput(&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 awsEc2query_deserializeOpErrorModifyVpcEndpointServicePayerResponsibility(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyVpcEndpointServicePermissions struct {
-}
-
-func (*awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response, &metadata)
- }
- output := &ModifyVpcEndpointServicePermissionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServicePermissionsOutput(&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 awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions struct {
-}
-
-func (*awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response, &metadata)
- }
- output := &ModifyVpcPeeringConnectionOptionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyVpcPeeringConnectionOptionsOutput(&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 awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyVpcTenancy struct {
-}
-
-func (*awsEc2query_deserializeOpModifyVpcTenancy) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyVpcTenancy) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyVpcTenancy(response, &metadata)
- }
- output := &ModifyVpcTenancyOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyVpcTenancyOutput(&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 awsEc2query_deserializeOpErrorModifyVpcTenancy(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyVpnConnection struct {
-}
-
-func (*awsEc2query_deserializeOpModifyVpnConnection) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyVpnConnection) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyVpnConnection(response, &metadata)
- }
- output := &ModifyVpnConnectionOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyVpnConnectionOutput(&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 awsEc2query_deserializeOpErrorModifyVpnConnection(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyVpnConnectionOptions struct {
-}
-
-func (*awsEc2query_deserializeOpModifyVpnConnectionOptions) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyVpnConnectionOptions) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(response, &metadata)
- }
- output := &ModifyVpnConnectionOptionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyVpnConnectionOptionsOutput(&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 awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyVpnTunnelCertificate struct {
-}
-
-func (*awsEc2query_deserializeOpModifyVpnTunnelCertificate) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyVpnTunnelCertificate(response, &metadata)
- }
- output := &ModifyVpnTunnelCertificateOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyVpnTunnelCertificateOutput(&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 awsEc2query_deserializeOpErrorModifyVpnTunnelCertificate(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpModifyVpnTunnelOptions struct {
-}
-
-func (*awsEc2query_deserializeOpModifyVpnTunnelOptions) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpModifyVpnTunnelOptions) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(response, &metadata)
- }
- output := &ModifyVpnTunnelOptionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentModifyVpnTunnelOptionsOutput(&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 awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpMonitorInstances struct {
-}
-
-func (*awsEc2query_deserializeOpMonitorInstances) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpMonitorInstances) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorMonitorInstances(response, &metadata)
- }
- output := &MonitorInstancesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentMonitorInstancesOutput(&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 awsEc2query_deserializeOpErrorMonitorInstances(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpMoveAddressToVpc struct {
-}
-
-func (*awsEc2query_deserializeOpMoveAddressToVpc) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpMoveAddressToVpc) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorMoveAddressToVpc(response, &metadata)
- }
- output := &MoveAddressToVpcOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentMoveAddressToVpcOutput(&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 awsEc2query_deserializeOpErrorMoveAddressToVpc(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpMoveByoipCidrToIpam struct {
-}
-
-func (*awsEc2query_deserializeOpMoveByoipCidrToIpam) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpMoveByoipCidrToIpam) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorMoveByoipCidrToIpam(response, &metadata)
- }
- output := &MoveByoipCidrToIpamOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentMoveByoipCidrToIpamOutput(&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 awsEc2query_deserializeOpErrorMoveByoipCidrToIpam(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpMoveCapacityReservationInstances struct {
-}
-
-func (*awsEc2query_deserializeOpMoveCapacityReservationInstances) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpMoveCapacityReservationInstances) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorMoveCapacityReservationInstances(response, &metadata)
- }
- output := &MoveCapacityReservationInstancesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentMoveCapacityReservationInstancesOutput(&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 awsEc2query_deserializeOpErrorMoveCapacityReservationInstances(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpProvisionByoipCidr struct {
-}
-
-func (*awsEc2query_deserializeOpProvisionByoipCidr) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpProvisionByoipCidr) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorProvisionByoipCidr(response, &metadata)
- }
- output := &ProvisionByoipCidrOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentProvisionByoipCidrOutput(&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 awsEc2query_deserializeOpErrorProvisionByoipCidr(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpProvisionIpamByoasn struct {
-}
-
-func (*awsEc2query_deserializeOpProvisionIpamByoasn) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpProvisionIpamByoasn) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorProvisionIpamByoasn(response, &metadata)
- }
- output := &ProvisionIpamByoasnOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentProvisionIpamByoasnOutput(&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 awsEc2query_deserializeOpErrorProvisionIpamByoasn(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpProvisionIpamPoolCidr struct {
-}
-
-func (*awsEc2query_deserializeOpProvisionIpamPoolCidr) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpProvisionIpamPoolCidr) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorProvisionIpamPoolCidr(response, &metadata)
- }
- output := &ProvisionIpamPoolCidrOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentProvisionIpamPoolCidrOutput(&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 awsEc2query_deserializeOpErrorProvisionIpamPoolCidr(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpProvisionPublicIpv4PoolCidr struct {
-}
-
-func (*awsEc2query_deserializeOpProvisionPublicIpv4PoolCidr) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpProvisionPublicIpv4PoolCidr) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorProvisionPublicIpv4PoolCidr(response, &metadata)
- }
- output := &ProvisionPublicIpv4PoolCidrOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentProvisionPublicIpv4PoolCidrOutput(&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 awsEc2query_deserializeOpErrorProvisionPublicIpv4PoolCidr(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpPurchaseCapacityBlock struct {
-}
-
-func (*awsEc2query_deserializeOpPurchaseCapacityBlock) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpPurchaseCapacityBlock) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorPurchaseCapacityBlock(response, &metadata)
- }
- output := &PurchaseCapacityBlockOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentPurchaseCapacityBlockOutput(&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 awsEc2query_deserializeOpErrorPurchaseCapacityBlock(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpPurchaseCapacityBlockExtension struct {
-}
-
-func (*awsEc2query_deserializeOpPurchaseCapacityBlockExtension) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpPurchaseCapacityBlockExtension) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorPurchaseCapacityBlockExtension(response, &metadata)
- }
- output := &PurchaseCapacityBlockExtensionOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentPurchaseCapacityBlockExtensionOutput(&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 awsEc2query_deserializeOpErrorPurchaseCapacityBlockExtension(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpPurchaseHostReservation struct {
-}
-
-func (*awsEc2query_deserializeOpPurchaseHostReservation) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpPurchaseHostReservation) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorPurchaseHostReservation(response, &metadata)
- }
- output := &PurchaseHostReservationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentPurchaseHostReservationOutput(&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 awsEc2query_deserializeOpErrorPurchaseHostReservation(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpPurchaseReservedInstancesOffering struct {
-}
-
-func (*awsEc2query_deserializeOpPurchaseReservedInstancesOffering) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response, &metadata)
- }
- output := &PurchaseReservedInstancesOfferingOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentPurchaseReservedInstancesOfferingOutput(&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 awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpPurchaseScheduledInstances struct {
-}
-
-func (*awsEc2query_deserializeOpPurchaseScheduledInstances) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response, &metadata)
- }
- output := &PurchaseScheduledInstancesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentPurchaseScheduledInstancesOutput(&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 awsEc2query_deserializeOpErrorPurchaseScheduledInstances(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpRebootInstances struct {
-}
-
-func (*awsEc2query_deserializeOpRebootInstances) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpRebootInstances) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorRebootInstances(response, &metadata)
- }
- output := &RebootInstancesOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorRebootInstances(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpRegisterImage struct {
-}
-
-func (*awsEc2query_deserializeOpRegisterImage) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpRegisterImage) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorRegisterImage(response, &metadata)
- }
- output := &RegisterImageOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentRegisterImageOutput(&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 awsEc2query_deserializeOpErrorRegisterImage(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes struct {
-}
-
-func (*awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(response, &metadata)
- }
- output := &RegisterInstanceEventNotificationAttributesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentRegisterInstanceEventNotificationAttributesOutput(&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 awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers struct {
-}
-
-func (*awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(response, &metadata)
- }
- output := &RegisterTransitGatewayMulticastGroupMembersOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentRegisterTransitGatewayMulticastGroupMembersOutput(&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 awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources struct {
-}
-
-func (*awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(response, &metadata)
- }
- output := &RegisterTransitGatewayMulticastGroupSourcesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentRegisterTransitGatewayMulticastGroupSourcesOutput(&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 awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpRejectCapacityReservationBillingOwnership struct {
-}
-
-func (*awsEc2query_deserializeOpRejectCapacityReservationBillingOwnership) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpRejectCapacityReservationBillingOwnership) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorRejectCapacityReservationBillingOwnership(response, &metadata)
- }
- output := &RejectCapacityReservationBillingOwnershipOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentRejectCapacityReservationBillingOwnershipOutput(&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 awsEc2query_deserializeOpErrorRejectCapacityReservationBillingOwnership(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations struct {
-}
-
-func (*awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociations(response, &metadata)
- }
- output := &RejectTransitGatewayMulticastDomainAssociationsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentRejectTransitGatewayMulticastDomainAssociationsOutput(&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 awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociations(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment struct {
-}
-
-func (*awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(response, &metadata)
- }
- output := &RejectTransitGatewayPeeringAttachmentOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentRejectTransitGatewayPeeringAttachmentOutput(&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 awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment struct {
-}
-
-func (*awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(response, &metadata)
- }
- output := &RejectTransitGatewayVpcAttachmentOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentRejectTransitGatewayVpcAttachmentOutput(&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 awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpRejectVpcEndpointConnections struct {
-}
-
-func (*awsEc2query_deserializeOpRejectVpcEndpointConnections) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpRejectVpcEndpointConnections) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(response, &metadata)
- }
- output := &RejectVpcEndpointConnectionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentRejectVpcEndpointConnectionsOutput(&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 awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpRejectVpcPeeringConnection struct {
-}
-
-func (*awsEc2query_deserializeOpRejectVpcPeeringConnection) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(response, &metadata)
- }
- output := &RejectVpcPeeringConnectionOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentRejectVpcPeeringConnectionOutput(&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 awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpReleaseAddress struct {
-}
-
-func (*awsEc2query_deserializeOpReleaseAddress) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpReleaseAddress) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorReleaseAddress(response, &metadata)
- }
- output := &ReleaseAddressOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorReleaseAddress(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpReleaseHosts struct {
-}
-
-func (*awsEc2query_deserializeOpReleaseHosts) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpReleaseHosts) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorReleaseHosts(response, &metadata)
- }
- output := &ReleaseHostsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentReleaseHostsOutput(&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 awsEc2query_deserializeOpErrorReleaseHosts(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpReleaseIpamPoolAllocation struct {
-}
-
-func (*awsEc2query_deserializeOpReleaseIpamPoolAllocation) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpReleaseIpamPoolAllocation) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorReleaseIpamPoolAllocation(response, &metadata)
- }
- output := &ReleaseIpamPoolAllocationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentReleaseIpamPoolAllocationOutput(&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 awsEc2query_deserializeOpErrorReleaseIpamPoolAllocation(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation struct {
-}
-
-func (*awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(response, &metadata)
- }
- output := &ReplaceIamInstanceProfileAssociationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentReplaceIamInstanceProfileAssociationOutput(&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 awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpReplaceImageCriteriaInAllowedImagesSettings struct {
-}
-
-func (*awsEc2query_deserializeOpReplaceImageCriteriaInAllowedImagesSettings) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpReplaceImageCriteriaInAllowedImagesSettings) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorReplaceImageCriteriaInAllowedImagesSettings(response, &metadata)
- }
- output := &ReplaceImageCriteriaInAllowedImagesSettingsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentReplaceImageCriteriaInAllowedImagesSettingsOutput(&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 awsEc2query_deserializeOpErrorReplaceImageCriteriaInAllowedImagesSettings(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpReplaceNetworkAclAssociation struct {
-}
-
-func (*awsEc2query_deserializeOpReplaceNetworkAclAssociation) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpReplaceNetworkAclAssociation) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(response, &metadata)
- }
- output := &ReplaceNetworkAclAssociationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentReplaceNetworkAclAssociationOutput(&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 awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpReplaceNetworkAclEntry struct {
-}
-
-func (*awsEc2query_deserializeOpReplaceNetworkAclEntry) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpReplaceNetworkAclEntry) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorReplaceNetworkAclEntry(response, &metadata)
- }
- output := &ReplaceNetworkAclEntryOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorReplaceNetworkAclEntry(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpReplaceRoute struct {
-}
-
-func (*awsEc2query_deserializeOpReplaceRoute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpReplaceRoute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorReplaceRoute(response, &metadata)
- }
- output := &ReplaceRouteOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorReplaceRoute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpReplaceRouteTableAssociation struct {
-}
-
-func (*awsEc2query_deserializeOpReplaceRouteTableAssociation) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(response, &metadata)
- }
- output := &ReplaceRouteTableAssociationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentReplaceRouteTableAssociationOutput(&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 awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpReplaceTransitGatewayRoute struct {
-}
-
-func (*awsEc2query_deserializeOpReplaceTransitGatewayRoute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(response, &metadata)
- }
- output := &ReplaceTransitGatewayRouteOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentReplaceTransitGatewayRouteOutput(&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 awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpReplaceVpnTunnel struct {
-}
-
-func (*awsEc2query_deserializeOpReplaceVpnTunnel) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpReplaceVpnTunnel) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorReplaceVpnTunnel(response, &metadata)
- }
- output := &ReplaceVpnTunnelOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentReplaceVpnTunnelOutput(&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 awsEc2query_deserializeOpErrorReplaceVpnTunnel(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpReportInstanceStatus struct {
-}
-
-func (*awsEc2query_deserializeOpReportInstanceStatus) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpReportInstanceStatus) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorReportInstanceStatus(response, &metadata)
- }
- output := &ReportInstanceStatusOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorReportInstanceStatus(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpRequestSpotFleet struct {
-}
-
-func (*awsEc2query_deserializeOpRequestSpotFleet) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpRequestSpotFleet) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorRequestSpotFleet(response, &metadata)
- }
- output := &RequestSpotFleetOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentRequestSpotFleetOutput(&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 awsEc2query_deserializeOpErrorRequestSpotFleet(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpRequestSpotInstances struct {
-}
-
-func (*awsEc2query_deserializeOpRequestSpotInstances) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpRequestSpotInstances) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorRequestSpotInstances(response, &metadata)
- }
- output := &RequestSpotInstancesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentRequestSpotInstancesOutput(&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 awsEc2query_deserializeOpErrorRequestSpotInstances(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpResetAddressAttribute struct {
-}
-
-func (*awsEc2query_deserializeOpResetAddressAttribute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpResetAddressAttribute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorResetAddressAttribute(response, &metadata)
- }
- output := &ResetAddressAttributeOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentResetAddressAttributeOutput(&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 awsEc2query_deserializeOpErrorResetAddressAttribute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpResetEbsDefaultKmsKeyId struct {
-}
-
-func (*awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(response, &metadata)
- }
- output := &ResetEbsDefaultKmsKeyIdOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentResetEbsDefaultKmsKeyIdOutput(&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 awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpResetFpgaImageAttribute struct {
-}
-
-func (*awsEc2query_deserializeOpResetFpgaImageAttribute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpResetFpgaImageAttribute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorResetFpgaImageAttribute(response, &metadata)
- }
- output := &ResetFpgaImageAttributeOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentResetFpgaImageAttributeOutput(&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 awsEc2query_deserializeOpErrorResetFpgaImageAttribute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpResetImageAttribute struct {
-}
-
-func (*awsEc2query_deserializeOpResetImageAttribute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpResetImageAttribute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorResetImageAttribute(response, &metadata)
- }
- output := &ResetImageAttributeOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorResetImageAttribute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpResetInstanceAttribute struct {
-}
-
-func (*awsEc2query_deserializeOpResetInstanceAttribute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpResetInstanceAttribute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorResetInstanceAttribute(response, &metadata)
- }
- output := &ResetInstanceAttributeOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorResetInstanceAttribute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpResetNetworkInterfaceAttribute struct {
-}
-
-func (*awsEc2query_deserializeOpResetNetworkInterfaceAttribute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpResetNetworkInterfaceAttribute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorResetNetworkInterfaceAttribute(response, &metadata)
- }
- output := &ResetNetworkInterfaceAttributeOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorResetNetworkInterfaceAttribute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpResetSnapshotAttribute struct {
-}
-
-func (*awsEc2query_deserializeOpResetSnapshotAttribute) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpResetSnapshotAttribute) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorResetSnapshotAttribute(response, &metadata)
- }
- output := &ResetSnapshotAttributeOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorResetSnapshotAttribute(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpRestoreAddressToClassic struct {
-}
-
-func (*awsEc2query_deserializeOpRestoreAddressToClassic) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpRestoreAddressToClassic) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorRestoreAddressToClassic(response, &metadata)
- }
- output := &RestoreAddressToClassicOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentRestoreAddressToClassicOutput(&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 awsEc2query_deserializeOpErrorRestoreAddressToClassic(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpRestoreImageFromRecycleBin struct {
-}
-
-func (*awsEc2query_deserializeOpRestoreImageFromRecycleBin) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpRestoreImageFromRecycleBin) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorRestoreImageFromRecycleBin(response, &metadata)
- }
- output := &RestoreImageFromRecycleBinOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentRestoreImageFromRecycleBinOutput(&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 awsEc2query_deserializeOpErrorRestoreImageFromRecycleBin(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpRestoreManagedPrefixListVersion struct {
-}
-
-func (*awsEc2query_deserializeOpRestoreManagedPrefixListVersion) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpRestoreManagedPrefixListVersion) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(response, &metadata)
- }
- output := &RestoreManagedPrefixListVersionOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentRestoreManagedPrefixListVersionOutput(&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 awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpRestoreSnapshotFromRecycleBin struct {
-}
-
-func (*awsEc2query_deserializeOpRestoreSnapshotFromRecycleBin) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpRestoreSnapshotFromRecycleBin) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorRestoreSnapshotFromRecycleBin(response, &metadata)
- }
- output := &RestoreSnapshotFromRecycleBinOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentRestoreSnapshotFromRecycleBinOutput(&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 awsEc2query_deserializeOpErrorRestoreSnapshotFromRecycleBin(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpRestoreSnapshotTier struct {
-}
-
-func (*awsEc2query_deserializeOpRestoreSnapshotTier) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpRestoreSnapshotTier) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorRestoreSnapshotTier(response, &metadata)
- }
- output := &RestoreSnapshotTierOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentRestoreSnapshotTierOutput(&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 awsEc2query_deserializeOpErrorRestoreSnapshotTier(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpRevokeClientVpnIngress struct {
-}
-
-func (*awsEc2query_deserializeOpRevokeClientVpnIngress) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpRevokeClientVpnIngress) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorRevokeClientVpnIngress(response, &metadata)
- }
- output := &RevokeClientVpnIngressOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentRevokeClientVpnIngressOutput(&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 awsEc2query_deserializeOpErrorRevokeClientVpnIngress(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpRevokeSecurityGroupEgress struct {
-}
-
-func (*awsEc2query_deserializeOpRevokeSecurityGroupEgress) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpRevokeSecurityGroupEgress) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(response, &metadata)
- }
- output := &RevokeSecurityGroupEgressOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentRevokeSecurityGroupEgressOutput(&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 awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpRevokeSecurityGroupIngress struct {
-}
-
-func (*awsEc2query_deserializeOpRevokeSecurityGroupIngress) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(response, &metadata)
- }
- output := &RevokeSecurityGroupIngressOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentRevokeSecurityGroupIngressOutput(&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 awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpRunInstances struct {
-}
-
-func (*awsEc2query_deserializeOpRunInstances) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpRunInstances) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorRunInstances(response, &metadata)
- }
- output := &RunInstancesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentRunInstancesOutput(&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 awsEc2query_deserializeOpErrorRunInstances(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpRunScheduledInstances struct {
-}
-
-func (*awsEc2query_deserializeOpRunScheduledInstances) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpRunScheduledInstances) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorRunScheduledInstances(response, &metadata)
- }
- output := &RunScheduledInstancesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentRunScheduledInstancesOutput(&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 awsEc2query_deserializeOpErrorRunScheduledInstances(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpSearchLocalGatewayRoutes struct {
-}
-
-func (*awsEc2query_deserializeOpSearchLocalGatewayRoutes) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpSearchLocalGatewayRoutes) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorSearchLocalGatewayRoutes(response, &metadata)
- }
- output := &SearchLocalGatewayRoutesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentSearchLocalGatewayRoutesOutput(&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 awsEc2query_deserializeOpErrorSearchLocalGatewayRoutes(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups struct {
-}
-
-func (*awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorSearchTransitGatewayMulticastGroups(response, &metadata)
- }
- output := &SearchTransitGatewayMulticastGroupsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentSearchTransitGatewayMulticastGroupsOutput(&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 awsEc2query_deserializeOpErrorSearchTransitGatewayMulticastGroups(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpSearchTransitGatewayRoutes struct {
-}
-
-func (*awsEc2query_deserializeOpSearchTransitGatewayRoutes) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorSearchTransitGatewayRoutes(response, &metadata)
- }
- output := &SearchTransitGatewayRoutesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentSearchTransitGatewayRoutesOutput(&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 awsEc2query_deserializeOpErrorSearchTransitGatewayRoutes(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpSendDiagnosticInterrupt struct {
-}
-
-func (*awsEc2query_deserializeOpSendDiagnosticInterrupt) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpSendDiagnosticInterrupt) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorSendDiagnosticInterrupt(response, &metadata)
- }
- output := &SendDiagnosticInterruptOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorSendDiagnosticInterrupt(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpStartDeclarativePoliciesReport struct {
-}
-
-func (*awsEc2query_deserializeOpStartDeclarativePoliciesReport) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpStartDeclarativePoliciesReport) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorStartDeclarativePoliciesReport(response, &metadata)
- }
- output := &StartDeclarativePoliciesReportOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentStartDeclarativePoliciesReportOutput(&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 awsEc2query_deserializeOpErrorStartDeclarativePoliciesReport(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpStartInstances struct {
-}
-
-func (*awsEc2query_deserializeOpStartInstances) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpStartInstances) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorStartInstances(response, &metadata)
- }
- output := &StartInstancesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentStartInstancesOutput(&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 awsEc2query_deserializeOpErrorStartInstances(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpStartNetworkInsightsAccessScopeAnalysis struct {
-}
-
-func (*awsEc2query_deserializeOpStartNetworkInsightsAccessScopeAnalysis) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpStartNetworkInsightsAccessScopeAnalysis) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorStartNetworkInsightsAccessScopeAnalysis(response, &metadata)
- }
- output := &StartNetworkInsightsAccessScopeAnalysisOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentStartNetworkInsightsAccessScopeAnalysisOutput(&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 awsEc2query_deserializeOpErrorStartNetworkInsightsAccessScopeAnalysis(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpStartNetworkInsightsAnalysis struct {
-}
-
-func (*awsEc2query_deserializeOpStartNetworkInsightsAnalysis) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorStartNetworkInsightsAnalysis(response, &metadata)
- }
- output := &StartNetworkInsightsAnalysisOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentStartNetworkInsightsAnalysisOutput(&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 awsEc2query_deserializeOpErrorStartNetworkInsightsAnalysis(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification struct {
-}
-
-func (*awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorStartVpcEndpointServicePrivateDnsVerification(response, &metadata)
- }
- output := &StartVpcEndpointServicePrivateDnsVerificationOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentStartVpcEndpointServicePrivateDnsVerificationOutput(&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 awsEc2query_deserializeOpErrorStartVpcEndpointServicePrivateDnsVerification(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpStopInstances struct {
-}
-
-func (*awsEc2query_deserializeOpStopInstances) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpStopInstances) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorStopInstances(response, &metadata)
- }
- output := &StopInstancesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentStopInstancesOutput(&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 awsEc2query_deserializeOpErrorStopInstances(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpTerminateClientVpnConnections struct {
-}
-
-func (*awsEc2query_deserializeOpTerminateClientVpnConnections) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpTerminateClientVpnConnections) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorTerminateClientVpnConnections(response, &metadata)
- }
- output := &TerminateClientVpnConnectionsOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentTerminateClientVpnConnectionsOutput(&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 awsEc2query_deserializeOpErrorTerminateClientVpnConnections(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpTerminateInstances struct {
-}
-
-func (*awsEc2query_deserializeOpTerminateInstances) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpTerminateInstances) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorTerminateInstances(response, &metadata)
- }
- output := &TerminateInstancesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentTerminateInstancesOutput(&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 awsEc2query_deserializeOpErrorTerminateInstances(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpUnassignIpv6Addresses struct {
-}
-
-func (*awsEc2query_deserializeOpUnassignIpv6Addresses) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpUnassignIpv6Addresses) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorUnassignIpv6Addresses(response, &metadata)
- }
- output := &UnassignIpv6AddressesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentUnassignIpv6AddressesOutput(&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 awsEc2query_deserializeOpErrorUnassignIpv6Addresses(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpUnassignPrivateIpAddresses struct {
-}
-
-func (*awsEc2query_deserializeOpUnassignPrivateIpAddresses) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpUnassignPrivateIpAddresses) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorUnassignPrivateIpAddresses(response, &metadata)
- }
- output := &UnassignPrivateIpAddressesOutput{}
- out.Result = output
-
- if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to discard response body, %w", err),
- }
- }
-
- return out, metadata, err
-}
-
-func awsEc2query_deserializeOpErrorUnassignPrivateIpAddresses(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpUnassignPrivateNatGatewayAddress struct {
-}
-
-func (*awsEc2query_deserializeOpUnassignPrivateNatGatewayAddress) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpUnassignPrivateNatGatewayAddress) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorUnassignPrivateNatGatewayAddress(response, &metadata)
- }
- output := &UnassignPrivateNatGatewayAddressOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentUnassignPrivateNatGatewayAddressOutput(&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 awsEc2query_deserializeOpErrorUnassignPrivateNatGatewayAddress(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpUnlockSnapshot struct {
-}
-
-func (*awsEc2query_deserializeOpUnlockSnapshot) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpUnlockSnapshot) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorUnlockSnapshot(response, &metadata)
- }
- output := &UnlockSnapshotOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentUnlockSnapshotOutput(&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 awsEc2query_deserializeOpErrorUnlockSnapshot(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpUnmonitorInstances struct {
-}
-
-func (*awsEc2query_deserializeOpUnmonitorInstances) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpUnmonitorInstances) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorUnmonitorInstances(response, &metadata)
- }
- output := &UnmonitorInstancesOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentUnmonitorInstancesOutput(&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 awsEc2query_deserializeOpErrorUnmonitorInstances(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpUpdateSecurityGroupRuleDescriptionsEgress struct {
-}
-
-func (*awsEc2query_deserializeOpUpdateSecurityGroupRuleDescriptionsEgress) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpUpdateSecurityGroupRuleDescriptionsEgress) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorUpdateSecurityGroupRuleDescriptionsEgress(response, &metadata)
- }
- output := &UpdateSecurityGroupRuleDescriptionsEgressOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentUpdateSecurityGroupRuleDescriptionsEgressOutput(&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 awsEc2query_deserializeOpErrorUpdateSecurityGroupRuleDescriptionsEgress(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpUpdateSecurityGroupRuleDescriptionsIngress struct {
-}
-
-func (*awsEc2query_deserializeOpUpdateSecurityGroupRuleDescriptionsIngress) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpUpdateSecurityGroupRuleDescriptionsIngress) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorUpdateSecurityGroupRuleDescriptionsIngress(response, &metadata)
- }
- output := &UpdateSecurityGroupRuleDescriptionsIngressOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentUpdateSecurityGroupRuleDescriptionsIngressOutput(&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 awsEc2query_deserializeOpErrorUpdateSecurityGroupRuleDescriptionsIngress(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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 awsEc2query_deserializeOpWithdrawByoipCidr struct {
-}
-
-func (*awsEc2query_deserializeOpWithdrawByoipCidr) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsEc2query_deserializeOpWithdrawByoipCidr) 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)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsEc2query_deserializeOpErrorWithdrawByoipCidr(response, &metadata)
- }
- output := &WithdrawByoipCidrOutput{}
- 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)
- err = awsEc2query_deserializeOpDocumentWithdrawByoipCidrOutput(&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 awsEc2query_deserializeOpErrorWithdrawByoipCidr(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 := ec2query.GetErrorResponseComponents(errorBody)
- if err != nil {
- return err
- }
- awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
- 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
-
- }
-}
-
-func awsEc2query_deserializeDocumentAcceleratorCount(v **types.AcceleratorCount, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AcceleratorCount
- if *v == nil {
- sv = &types.AcceleratorCount{}
- } 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)
- i64, err := strconv.ParseInt(xtv, 10, 64)
- if err != nil {
- return err
- }
- sv.Max = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("min", 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.Min = 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 awsEc2query_deserializeDocumentAcceleratorManufacturerSet(v *[]types.AcceleratorManufacturer, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.AcceleratorManufacturer
- if *v == nil {
- sv = make([]types.AcceleratorManufacturer, 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("item", t.Name.Local):
- var col types.AcceleratorManufacturer
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- col = types.AcceleratorManufacturer(xtv)
- }
- sv = append(sv, col)
-
- default:
- err = decoder.Decoder.Skip()
- if err != nil {
- return err
- }
-
- }
- decoder = originalDecoder
- }
- *v = sv
- return nil
-}
-
-func awsEc2query_deserializeDocumentAcceleratorManufacturerSetUnwrapped(v *[]types.AcceleratorManufacturer, decoder smithyxml.NodeDecoder) error {
- var sv []types.AcceleratorManufacturer
- if *v == nil {
- sv = make([]types.AcceleratorManufacturer, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.AcceleratorManufacturer
- t := decoder.StartEl
- _ = t
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- mv = types.AcceleratorManufacturer(xtv)
- }
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentAcceleratorNameSet(v *[]types.AcceleratorName, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.AcceleratorName
- if *v == nil {
- sv = make([]types.AcceleratorName, 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("item", t.Name.Local):
- var col types.AcceleratorName
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- col = types.AcceleratorName(xtv)
- }
- sv = append(sv, col)
-
- default:
- err = decoder.Decoder.Skip()
- if err != nil {
- return err
- }
-
- }
- decoder = originalDecoder
- }
- *v = sv
- return nil
-}
-
-func awsEc2query_deserializeDocumentAcceleratorNameSetUnwrapped(v *[]types.AcceleratorName, decoder smithyxml.NodeDecoder) error {
- var sv []types.AcceleratorName
- if *v == nil {
- sv = make([]types.AcceleratorName, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.AcceleratorName
- t := decoder.StartEl
- _ = t
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- mv = types.AcceleratorName(xtv)
- }
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentAcceleratorTotalMemoryMiB(v **types.AcceleratorTotalMemoryMiB, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AcceleratorTotalMemoryMiB
- if *v == nil {
- sv = &types.AcceleratorTotalMemoryMiB{}
- } 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)
- i64, err := strconv.ParseInt(xtv, 10, 64)
- if err != nil {
- return err
- }
- sv.Max = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("min", 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.Min = 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 awsEc2query_deserializeDocumentAcceleratorTypeSet(v *[]types.AcceleratorType, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.AcceleratorType
- if *v == nil {
- sv = make([]types.AcceleratorType, 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("item", t.Name.Local):
- var col types.AcceleratorType
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- col = types.AcceleratorType(xtv)
- }
- sv = append(sv, col)
-
- default:
- err = decoder.Decoder.Skip()
- if err != nil {
- return err
- }
-
- }
- decoder = originalDecoder
- }
- *v = sv
- return nil
-}
-
-func awsEc2query_deserializeDocumentAcceleratorTypeSetUnwrapped(v *[]types.AcceleratorType, decoder smithyxml.NodeDecoder) error {
- var sv []types.AcceleratorType
- if *v == nil {
- sv = make([]types.AcceleratorType, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.AcceleratorType
- t := decoder.StartEl
- _ = t
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- mv = types.AcceleratorType(xtv)
- }
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentAccessScopeAnalysisFinding(v **types.AccessScopeAnalysisFinding, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AccessScopeAnalysisFinding
- if *v == nil {
- sv = &types.AccessScopeAnalysisFinding{}
- } 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("findingComponentSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPathComponentList(&sv.FindingComponents, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("findingId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.FindingId = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkInsightsAccessScopeAnalysisId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInsightsAccessScopeAnalysisId = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkInsightsAccessScopeId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInsightsAccessScopeId = 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 awsEc2query_deserializeDocumentAccessScopeAnalysisFindingList(v *[]types.AccessScopeAnalysisFinding, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.AccessScopeAnalysisFinding
- if *v == nil {
- sv = make([]types.AccessScopeAnalysisFinding, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.AccessScopeAnalysisFinding
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentAccessScopeAnalysisFinding(&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 awsEc2query_deserializeDocumentAccessScopeAnalysisFindingListUnwrapped(v *[]types.AccessScopeAnalysisFinding, decoder smithyxml.NodeDecoder) error {
- var sv []types.AccessScopeAnalysisFinding
- if *v == nil {
- sv = make([]types.AccessScopeAnalysisFinding, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.AccessScopeAnalysisFinding
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentAccessScopeAnalysisFinding(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentAccessScopePath(v **types.AccessScopePath, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AccessScopePath
- if *v == nil {
- sv = &types.AccessScopePath{}
- } 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("destination", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPathStatement(&sv.Destination, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("source", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPathStatement(&sv.Source, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("throughResourceSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentThroughResourcesStatementList(&sv.ThroughResources, 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 awsEc2query_deserializeDocumentAccessScopePathList(v *[]types.AccessScopePath, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.AccessScopePath
- if *v == nil {
- sv = make([]types.AccessScopePath, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.AccessScopePath
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentAccessScopePath(&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 awsEc2query_deserializeDocumentAccessScopePathListUnwrapped(v *[]types.AccessScopePath, decoder smithyxml.NodeDecoder) error {
- var sv []types.AccessScopePath
- if *v == nil {
- sv = make([]types.AccessScopePath, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.AccessScopePath
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentAccessScopePath(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentAccountAttribute(v **types.AccountAttribute, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AccountAttribute
- if *v == nil {
- sv = &types.AccountAttribute{}
- } 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("attributeName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AttributeName = ptr.String(xtv)
- }
-
- case strings.EqualFold("attributeValueSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAccountAttributeValueList(&sv.AttributeValues, 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 awsEc2query_deserializeDocumentAccountAttributeList(v *[]types.AccountAttribute, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.AccountAttribute
- if *v == nil {
- sv = make([]types.AccountAttribute, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.AccountAttribute
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentAccountAttribute(&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 awsEc2query_deserializeDocumentAccountAttributeListUnwrapped(v *[]types.AccountAttribute, decoder smithyxml.NodeDecoder) error {
- var sv []types.AccountAttribute
- if *v == nil {
- sv = make([]types.AccountAttribute, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.AccountAttribute
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentAccountAttribute(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentAccountAttributeValue(v **types.AccountAttributeValue, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AccountAttributeValue
- if *v == nil {
- sv = &types.AccountAttributeValue{}
- } 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("attributeValue", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AttributeValue = 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 awsEc2query_deserializeDocumentAccountAttributeValueList(v *[]types.AccountAttributeValue, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.AccountAttributeValue
- if *v == nil {
- sv = make([]types.AccountAttributeValue, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.AccountAttributeValue
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentAccountAttributeValue(&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 awsEc2query_deserializeDocumentAccountAttributeValueListUnwrapped(v *[]types.AccountAttributeValue, decoder smithyxml.NodeDecoder) error {
- var sv []types.AccountAttributeValue
- if *v == nil {
- sv = make([]types.AccountAttributeValue, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.AccountAttributeValue
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentAccountAttributeValue(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentActiveInstance(v **types.ActiveInstance, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ActiveInstance
- if *v == nil {
- sv = &types.ActiveInstance{}
- } 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("instanceHealth", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceHealth = types.InstanceHealthStatus(xtv)
- }
-
- case strings.EqualFold("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = ptr.String(xtv)
- }
-
- case strings.EqualFold("spotInstanceRequestId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SpotInstanceRequestId = 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 awsEc2query_deserializeDocumentActiveInstanceSet(v *[]types.ActiveInstance, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ActiveInstance
- if *v == nil {
- sv = make([]types.ActiveInstance, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ActiveInstance
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentActiveInstance(&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 awsEc2query_deserializeDocumentActiveInstanceSetUnwrapped(v *[]types.ActiveInstance, decoder smithyxml.NodeDecoder) error {
- var sv []types.ActiveInstance
- if *v == nil {
- sv = make([]types.ActiveInstance, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ActiveInstance
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentActiveInstance(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentActiveVpnTunnelStatus(v **types.ActiveVpnTunnelStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ActiveVpnTunnelStatus
- if *v == nil {
- sv = &types.ActiveVpnTunnelStatus{}
- } 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("ikeVersion", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IkeVersion = ptr.String(xtv)
- }
-
- case strings.EqualFold("phase1DHGroup", 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.Phase1DHGroup = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("phase1EncryptionAlgorithm", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Phase1EncryptionAlgorithm = ptr.String(xtv)
- }
-
- case strings.EqualFold("phase1IntegrityAlgorithm", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Phase1IntegrityAlgorithm = ptr.String(xtv)
- }
-
- case strings.EqualFold("phase2DHGroup", 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.Phase2DHGroup = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("phase2EncryptionAlgorithm", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Phase2EncryptionAlgorithm = ptr.String(xtv)
- }
-
- case strings.EqualFold("phase2IntegrityAlgorithm", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Phase2IntegrityAlgorithm = ptr.String(xtv)
- }
-
- case strings.EqualFold("provisioningStatus", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ProvisioningStatus = types.VpnTunnelProvisioningStatus(xtv)
- }
-
- case strings.EqualFold("provisioningStatusReason", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ProvisioningStatusReason = 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 awsEc2query_deserializeDocumentAddedPrincipal(v **types.AddedPrincipal, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AddedPrincipal
- if *v == nil {
- sv = &types.AddedPrincipal{}
- } 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("principal", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Principal = ptr.String(xtv)
- }
-
- case strings.EqualFold("principalType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrincipalType = types.PrincipalType(xtv)
- }
-
- case strings.EqualFold("serviceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServiceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("servicePermissionId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServicePermissionId = 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 awsEc2query_deserializeDocumentAddedPrincipalSet(v *[]types.AddedPrincipal, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.AddedPrincipal
- if *v == nil {
- sv = make([]types.AddedPrincipal, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.AddedPrincipal
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentAddedPrincipal(&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 awsEc2query_deserializeDocumentAddedPrincipalSetUnwrapped(v *[]types.AddedPrincipal, decoder smithyxml.NodeDecoder) error {
- var sv []types.AddedPrincipal
- if *v == nil {
- sv = make([]types.AddedPrincipal, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.AddedPrincipal
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentAddedPrincipal(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentAdditionalDetail(v **types.AdditionalDetail, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AdditionalDetail
- if *v == nil {
- sv = &types.AdditionalDetail{}
- } 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("additionalDetailType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AdditionalDetailType = ptr.String(xtv)
- }
-
- case strings.EqualFold("component", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.Component, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("loadBalancerSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponentList(&sv.LoadBalancers, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ruleGroupRuleOptionsPairSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentRuleGroupRuleOptionsPairList(&sv.RuleGroupRuleOptionsPairs, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ruleGroupTypePairSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentRuleGroupTypePairList(&sv.RuleGroupTypePairs, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ruleOptionSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentRuleOptionList(&sv.RuleOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("serviceName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServiceName = ptr.String(xtv)
- }
-
- case strings.EqualFold("vpcEndpointService", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.VpcEndpointService, 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 awsEc2query_deserializeDocumentAdditionalDetailList(v *[]types.AdditionalDetail, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.AdditionalDetail
- if *v == nil {
- sv = make([]types.AdditionalDetail, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.AdditionalDetail
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentAdditionalDetail(&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 awsEc2query_deserializeDocumentAdditionalDetailListUnwrapped(v *[]types.AdditionalDetail, decoder smithyxml.NodeDecoder) error {
- var sv []types.AdditionalDetail
- if *v == nil {
- sv = make([]types.AdditionalDetail, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.AdditionalDetail
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentAdditionalDetail(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentAddress(v **types.Address, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Address
- if *v == nil {
- sv = &types.Address{}
- } 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("associationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AssociationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("carrierIp", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CarrierIp = ptr.String(xtv)
- }
-
- case strings.EqualFold("customerOwnedIp", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CustomerOwnedIp = ptr.String(xtv)
- }
-
- 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("domain", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Domain = types.DomainType(xtv)
- }
-
- case strings.EqualFold("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkBorderGroup", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkBorderGroup = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkInterfaceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInterfaceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkInterfaceOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInterfaceOwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("privateIpAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrivateIpAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("publicIp", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PublicIp = ptr.String(xtv)
- }
-
- case strings.EqualFold("publicIpv4Pool", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PublicIpv4Pool = ptr.String(xtv)
- }
-
- case strings.EqualFold("serviceManaged", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServiceManaged = types.ServiceManaged(xtv)
- }
-
- 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("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentAddressAttribute(v **types.AddressAttribute, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AddressAttribute
- if *v == nil {
- sv = &types.AddressAttribute{}
- } 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("ptrRecord", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PtrRecord = ptr.String(xtv)
- }
-
- case strings.EqualFold("ptrRecordUpdate", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPtrUpdateStatus(&sv.PtrRecordUpdate, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("publicIp", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PublicIp = 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 awsEc2query_deserializeDocumentAddressList(v *[]types.Address, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Address
- if *v == nil {
- sv = make([]types.Address, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Address
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentAddress(&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 awsEc2query_deserializeDocumentAddressListUnwrapped(v *[]types.Address, decoder smithyxml.NodeDecoder) error {
- var sv []types.Address
- if *v == nil {
- sv = make([]types.Address, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Address
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentAddress(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentAddressSet(v *[]types.AddressAttribute, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.AddressAttribute
- if *v == nil {
- sv = make([]types.AddressAttribute, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.AddressAttribute
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentAddressAttribute(&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 awsEc2query_deserializeDocumentAddressSetUnwrapped(v *[]types.AddressAttribute, decoder smithyxml.NodeDecoder) error {
- var sv []types.AddressAttribute
- if *v == nil {
- sv = make([]types.AddressAttribute, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.AddressAttribute
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentAddressAttribute(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentAddressTransfer(v **types.AddressTransfer, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AddressTransfer
- if *v == nil {
- sv = &types.AddressTransfer{}
- } 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("addressTransferStatus", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AddressTransferStatus = types.AddressTransferStatus(xtv)
- }
-
- 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("publicIp", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PublicIp = ptr.String(xtv)
- }
-
- case strings.EqualFold("transferAccountId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransferAccountId = ptr.String(xtv)
- }
-
- case strings.EqualFold("transferOfferAcceptedTimestamp", 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.TransferOfferAcceptedTimestamp = ptr.Time(t)
- }
-
- case strings.EqualFold("transferOfferExpirationTimestamp", 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.TransferOfferExpirationTimestamp = ptr.Time(t)
- }
-
- 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 awsEc2query_deserializeDocumentAddressTransferList(v *[]types.AddressTransfer, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.AddressTransfer
- if *v == nil {
- sv = make([]types.AddressTransfer, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.AddressTransfer
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentAddressTransfer(&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 awsEc2query_deserializeDocumentAddressTransferListUnwrapped(v *[]types.AddressTransfer, decoder smithyxml.NodeDecoder) error {
- var sv []types.AddressTransfer
- if *v == nil {
- sv = make([]types.AddressTransfer, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.AddressTransfer
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentAddressTransfer(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentAllowedInstanceTypeSet(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("item", 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 awsEc2query_deserializeDocumentAllowedInstanceTypeSetUnwrapped(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 awsEc2query_deserializeDocumentAllowedPrincipal(v **types.AllowedPrincipal, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AllowedPrincipal
- if *v == nil {
- sv = &types.AllowedPrincipal{}
- } 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("principal", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Principal = ptr.String(xtv)
- }
-
- case strings.EqualFold("principalType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrincipalType = types.PrincipalType(xtv)
- }
-
- case strings.EqualFold("serviceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServiceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("servicePermissionId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServicePermissionId = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentAllowedPrincipalSet(v *[]types.AllowedPrincipal, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.AllowedPrincipal
- if *v == nil {
- sv = make([]types.AllowedPrincipal, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.AllowedPrincipal
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentAllowedPrincipal(&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 awsEc2query_deserializeDocumentAllowedPrincipalSetUnwrapped(v *[]types.AllowedPrincipal, decoder smithyxml.NodeDecoder) error {
- var sv []types.AllowedPrincipal
- if *v == nil {
- sv = make([]types.AllowedPrincipal, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.AllowedPrincipal
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentAllowedPrincipal(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentAlternatePathHint(v **types.AlternatePathHint, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AlternatePathHint
- if *v == nil {
- sv = &types.AlternatePathHint{}
- } 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("componentArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ComponentArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("componentId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ComponentId = 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 awsEc2query_deserializeDocumentAlternatePathHintList(v *[]types.AlternatePathHint, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.AlternatePathHint
- if *v == nil {
- sv = make([]types.AlternatePathHint, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.AlternatePathHint
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentAlternatePathHint(&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 awsEc2query_deserializeDocumentAlternatePathHintListUnwrapped(v *[]types.AlternatePathHint, decoder smithyxml.NodeDecoder) error {
- var sv []types.AlternatePathHint
- if *v == nil {
- sv = make([]types.AlternatePathHint, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.AlternatePathHint
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentAlternatePathHint(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentAnalysisAclRule(v **types.AnalysisAclRule, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AnalysisAclRule
- if *v == nil {
- sv = &types.AnalysisAclRule{}
- } 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("cidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Cidr = ptr.String(xtv)
- }
-
- case strings.EqualFold("egress", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Egress = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("portRange", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPortRange(&sv.PortRange, nodeDecoder); err != nil {
- return err
- }
-
- 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("ruleAction", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RuleAction = ptr.String(xtv)
- }
-
- case strings.EqualFold("ruleNumber", 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.RuleNumber = 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 awsEc2query_deserializeDocumentAnalysisComponent(v **types.AnalysisComponent, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AnalysisComponent
- if *v == nil {
- sv = &types.AnalysisComponent{}
- } 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("arn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Arn = 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("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 awsEc2query_deserializeDocumentAnalysisComponentList(v *[]types.AnalysisComponent, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.AnalysisComponent
- if *v == nil {
- sv = make([]types.AnalysisComponent, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.AnalysisComponent
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&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 awsEc2query_deserializeDocumentAnalysisComponentListUnwrapped(v *[]types.AnalysisComponent, decoder smithyxml.NodeDecoder) error {
- var sv []types.AnalysisComponent
- if *v == nil {
- sv = make([]types.AnalysisComponent, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.AnalysisComponent
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentAnalysisLoadBalancerListener(v **types.AnalysisLoadBalancerListener, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AnalysisLoadBalancerListener
- if *v == nil {
- sv = &types.AnalysisLoadBalancerListener{}
- } 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("instancePort", 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.InstancePort = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("loadBalancerPort", 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.LoadBalancerPort = 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 awsEc2query_deserializeDocumentAnalysisLoadBalancerTarget(v **types.AnalysisLoadBalancerTarget, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AnalysisLoadBalancerTarget
- if *v == nil {
- sv = &types.AnalysisLoadBalancerTarget{}
- } 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("address", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Address = ptr.String(xtv)
- }
-
- 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("availabilityZoneId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AvailabilityZoneId = ptr.String(xtv)
- }
-
- case strings.EqualFold("instance", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.Instance, 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))
- }
-
- 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 awsEc2query_deserializeDocumentAnalysisPacketHeader(v **types.AnalysisPacketHeader, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AnalysisPacketHeader
- if *v == nil {
- sv = &types.AnalysisPacketHeader{}
- } 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("destinationAddressSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpAddressList(&sv.DestinationAddresses, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("destinationPortRangeSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPortRangeList(&sv.DestinationPortRanges, nodeDecoder); err != nil {
- return err
- }
-
- 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("sourceAddressSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpAddressList(&sv.SourceAddresses, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("sourcePortRangeSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPortRangeList(&sv.SourcePortRanges, 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 awsEc2query_deserializeDocumentAnalysisRouteTableRoute(v **types.AnalysisRouteTableRoute, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AnalysisRouteTableRoute
- if *v == nil {
- sv = &types.AnalysisRouteTableRoute{}
- } 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("carrierGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CarrierGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("coreNetworkArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CoreNetworkArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("destinationCidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DestinationCidr = ptr.String(xtv)
- }
-
- case strings.EqualFold("destinationPrefixListId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DestinationPrefixListId = ptr.String(xtv)
- }
-
- case strings.EqualFold("egressOnlyInternetGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EgressOnlyInternetGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("gatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("localGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("natGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NatGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkInterfaceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInterfaceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("origin", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Origin = ptr.String(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 = ptr.String(xtv)
- }
-
- case strings.EqualFold("transitGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("vpcPeeringConnectionId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VpcPeeringConnectionId = 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 awsEc2query_deserializeDocumentAnalysisSecurityGroupRule(v **types.AnalysisSecurityGroupRule, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AnalysisSecurityGroupRule
- if *v == nil {
- sv = &types.AnalysisSecurityGroupRule{}
- } 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("cidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Cidr = ptr.String(xtv)
- }
-
- case strings.EqualFold("direction", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Direction = ptr.String(xtv)
- }
-
- case strings.EqualFold("portRange", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPortRange(&sv.PortRange, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("prefixListId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrefixListId = 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("securityGroupId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SecurityGroupId = 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 awsEc2query_deserializeDocumentArchitectureTypeList(v *[]types.ArchitectureType, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ArchitectureType
- if *v == nil {
- sv = make([]types.ArchitectureType, 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("item", t.Name.Local):
- var col types.ArchitectureType
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- col = types.ArchitectureType(xtv)
- }
- sv = append(sv, col)
-
- default:
- err = decoder.Decoder.Skip()
- if err != nil {
- return err
- }
-
- }
- decoder = originalDecoder
- }
- *v = sv
- return nil
-}
-
-func awsEc2query_deserializeDocumentArchitectureTypeListUnwrapped(v *[]types.ArchitectureType, decoder smithyxml.NodeDecoder) error {
- var sv []types.ArchitectureType
- if *v == nil {
- sv = make([]types.ArchitectureType, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ArchitectureType
- t := decoder.StartEl
- _ = t
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- mv = types.ArchitectureType(xtv)
- }
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentArnList(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("item", 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 awsEc2query_deserializeDocumentArnListUnwrapped(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 awsEc2query_deserializeDocumentAsnAssociation(v **types.AsnAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AsnAssociation
- if *v == nil {
- sv = &types.AsnAssociation{}
- } 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("asn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Asn = ptr.String(xtv)
- }
-
- case strings.EqualFold("cidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Cidr = ptr.String(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.AsnAssociationState(xtv)
- }
-
- case strings.EqualFold("statusMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StatusMessage = 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 awsEc2query_deserializeDocumentAsnAssociationSet(v *[]types.AsnAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.AsnAssociation
- if *v == nil {
- sv = make([]types.AsnAssociation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.AsnAssociation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentAsnAssociation(&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 awsEc2query_deserializeDocumentAsnAssociationSetUnwrapped(v *[]types.AsnAssociation, decoder smithyxml.NodeDecoder) error {
- var sv []types.AsnAssociation
- if *v == nil {
- sv = make([]types.AsnAssociation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.AsnAssociation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentAsnAssociation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentAsPath(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("item", 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 awsEc2query_deserializeDocumentAsPathUnwrapped(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 awsEc2query_deserializeDocumentAssignedPrivateIpAddress(v **types.AssignedPrivateIpAddress, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AssignedPrivateIpAddress
- if *v == nil {
- sv = &types.AssignedPrivateIpAddress{}
- } 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("privateIpAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrivateIpAddress = 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 awsEc2query_deserializeDocumentAssignedPrivateIpAddressList(v *[]types.AssignedPrivateIpAddress, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.AssignedPrivateIpAddress
- if *v == nil {
- sv = make([]types.AssignedPrivateIpAddress, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.AssignedPrivateIpAddress
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentAssignedPrivateIpAddress(&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 awsEc2query_deserializeDocumentAssignedPrivateIpAddressListUnwrapped(v *[]types.AssignedPrivateIpAddress, decoder smithyxml.NodeDecoder) error {
- var sv []types.AssignedPrivateIpAddress
- if *v == nil {
- sv = make([]types.AssignedPrivateIpAddress, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.AssignedPrivateIpAddress
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentAssignedPrivateIpAddress(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentAssociatedRole(v **types.AssociatedRole, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AssociatedRole
- if *v == nil {
- sv = &types.AssociatedRole{}
- } 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("associatedRoleArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AssociatedRoleArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("certificateS3BucketName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CertificateS3BucketName = ptr.String(xtv)
- }
-
- case strings.EqualFold("certificateS3ObjectKey", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CertificateS3ObjectKey = ptr.String(xtv)
- }
-
- case strings.EqualFold("encryptionKmsKeyId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EncryptionKmsKeyId = 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 awsEc2query_deserializeDocumentAssociatedRolesList(v *[]types.AssociatedRole, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.AssociatedRole
- if *v == nil {
- sv = make([]types.AssociatedRole, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.AssociatedRole
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentAssociatedRole(&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 awsEc2query_deserializeDocumentAssociatedRolesListUnwrapped(v *[]types.AssociatedRole, decoder smithyxml.NodeDecoder) error {
- var sv []types.AssociatedRole
- if *v == nil {
- sv = make([]types.AssociatedRole, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.AssociatedRole
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentAssociatedRole(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentAssociatedSubnetList(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("item", 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 awsEc2query_deserializeDocumentAssociatedSubnetListUnwrapped(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 awsEc2query_deserializeDocumentAssociatedTargetNetwork(v **types.AssociatedTargetNetwork, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AssociatedTargetNetwork
- if *v == nil {
- sv = &types.AssociatedTargetNetwork{}
- } 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("networkId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkId = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkType = types.AssociatedNetworkType(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 awsEc2query_deserializeDocumentAssociatedTargetNetworkSet(v *[]types.AssociatedTargetNetwork, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.AssociatedTargetNetwork
- if *v == nil {
- sv = make([]types.AssociatedTargetNetwork, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.AssociatedTargetNetwork
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentAssociatedTargetNetwork(&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 awsEc2query_deserializeDocumentAssociatedTargetNetworkSetUnwrapped(v *[]types.AssociatedTargetNetwork, decoder smithyxml.NodeDecoder) error {
- var sv []types.AssociatedTargetNetwork
- if *v == nil {
- sv = make([]types.AssociatedTargetNetwork, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.AssociatedTargetNetwork
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentAssociatedTargetNetwork(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentAssociationStatus(v **types.AssociationStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AssociationStatus
- if *v == nil {
- sv = &types.AssociationStatus{}
- } 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.AssociationStatusCode(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentAttachmentEnaSrdSpecification(v **types.AttachmentEnaSrdSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AttachmentEnaSrdSpecification
- if *v == nil {
- sv = &types.AttachmentEnaSrdSpecification{}
- } 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("enaSrdEnabled", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EnaSrdEnabled = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("enaSrdUdpSpecification", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAttachmentEnaSrdUdpSpecification(&sv.EnaSrdUdpSpecification, 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 awsEc2query_deserializeDocumentAttachmentEnaSrdUdpSpecification(v **types.AttachmentEnaSrdUdpSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AttachmentEnaSrdUdpSpecification
- if *v == nil {
- sv = &types.AttachmentEnaSrdUdpSpecification{}
- } 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("enaSrdUdpEnabled", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EnaSrdUdpEnabled = 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 awsEc2query_deserializeDocumentAttributeBooleanValue(v **types.AttributeBooleanValue, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AttributeBooleanValue
- if *v == nil {
- sv = &types.AttributeBooleanValue{}
- } 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("value", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Value = 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 awsEc2query_deserializeDocumentAttributeSummary(v **types.AttributeSummary, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AttributeSummary
- if *v == nil {
- sv = &types.AttributeSummary{}
- } 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("attributeName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AttributeName = ptr.String(xtv)
- }
-
- case strings.EqualFold("mostFrequentValue", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.MostFrequentValue = ptr.String(xtv)
- }
-
- case strings.EqualFold("numberOfMatchedAccounts", 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.NumberOfMatchedAccounts = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("numberOfUnmatchedAccounts", 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.NumberOfUnmatchedAccounts = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("regionalSummarySet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentRegionalSummaryList(&sv.RegionalSummaries, 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 awsEc2query_deserializeDocumentAttributeSummaryList(v *[]types.AttributeSummary, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.AttributeSummary
- if *v == nil {
- sv = make([]types.AttributeSummary, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.AttributeSummary
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentAttributeSummary(&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 awsEc2query_deserializeDocumentAttributeSummaryListUnwrapped(v *[]types.AttributeSummary, decoder smithyxml.NodeDecoder) error {
- var sv []types.AttributeSummary
- if *v == nil {
- sv = make([]types.AttributeSummary, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.AttributeSummary
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentAttributeSummary(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentAttributeValue(v **types.AttributeValue, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AttributeValue
- if *v == nil {
- sv = &types.AttributeValue{}
- } 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("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 awsEc2query_deserializeDocumentAuthorizationRule(v **types.AuthorizationRule, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AuthorizationRule
- if *v == nil {
- sv = &types.AuthorizationRule{}
- } 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("accessAll", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.AccessAll = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("clientVpnEndpointId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ClientVpnEndpointId = ptr.String(xtv)
- }
-
- 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("destinationCidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DestinationCidr = ptr.String(xtv)
- }
-
- case strings.EqualFold("groupId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupId = ptr.String(xtv)
- }
-
- case strings.EqualFold("status", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentClientVpnAuthorizationRuleStatus(&sv.Status, 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 awsEc2query_deserializeDocumentAuthorizationRuleSet(v *[]types.AuthorizationRule, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.AuthorizationRule
- if *v == nil {
- sv = make([]types.AuthorizationRule, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.AuthorizationRule
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentAuthorizationRule(&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 awsEc2query_deserializeDocumentAuthorizationRuleSetUnwrapped(v *[]types.AuthorizationRule, decoder smithyxml.NodeDecoder) error {
- var sv []types.AuthorizationRule
- if *v == nil {
- sv = make([]types.AuthorizationRule, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.AuthorizationRule
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentAuthorizationRule(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_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("groupLongName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupLongName = ptr.String(xtv)
- }
-
- case strings.EqualFold("groupName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupName = ptr.String(xtv)
- }
-
- case strings.EqualFold("messageSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAvailabilityZoneMessageList(&sv.Messages, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("networkBorderGroup", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkBorderGroup = ptr.String(xtv)
- }
-
- case strings.EqualFold("optInStatus", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OptInStatus = types.AvailabilityZoneOptInStatus(xtv)
- }
-
- case strings.EqualFold("parentZoneId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ParentZoneId = ptr.String(xtv)
- }
-
- case strings.EqualFold("parentZoneName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ParentZoneName = ptr.String(xtv)
- }
-
- case strings.EqualFold("regionName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RegionName = ptr.String(xtv)
- }
-
- case strings.EqualFold("zoneState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.State = types.AvailabilityZoneState(xtv)
- }
-
- case strings.EqualFold("zoneId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ZoneId = 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)
- }
-
- case strings.EqualFold("zoneType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ZoneType = 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 awsEc2query_deserializeDocumentAvailabilityZoneList(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("item", t.Name.Local):
- var col types.AvailabilityZone
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_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 awsEc2query_deserializeDocumentAvailabilityZoneListUnwrapped(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 := awsEc2query_deserializeDocumentAvailabilityZone(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentAvailabilityZoneMessage(v **types.AvailabilityZoneMessage, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AvailabilityZoneMessage
- if *v == nil {
- sv = &types.AvailabilityZoneMessage{}
- } 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 awsEc2query_deserializeDocumentAvailabilityZoneMessageList(v *[]types.AvailabilityZoneMessage, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.AvailabilityZoneMessage
- if *v == nil {
- sv = make([]types.AvailabilityZoneMessage, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.AvailabilityZoneMessage
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentAvailabilityZoneMessage(&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 awsEc2query_deserializeDocumentAvailabilityZoneMessageListUnwrapped(v *[]types.AvailabilityZoneMessage, decoder smithyxml.NodeDecoder) error {
- var sv []types.AvailabilityZoneMessage
- if *v == nil {
- sv = make([]types.AvailabilityZoneMessage, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.AvailabilityZoneMessage
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentAvailabilityZoneMessage(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentAvailableCapacity(v **types.AvailableCapacity, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.AvailableCapacity
- if *v == nil {
- sv = &types.AvailableCapacity{}
- } 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("availableInstanceCapacity", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAvailableInstanceCapacityList(&sv.AvailableInstanceCapacity, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("availableVCpus", 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.AvailableVCpus = 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 awsEc2query_deserializeDocumentAvailableInstanceCapacityList(v *[]types.InstanceCapacity, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InstanceCapacity
- if *v == nil {
- sv = make([]types.InstanceCapacity, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InstanceCapacity
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInstanceCapacity(&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 awsEc2query_deserializeDocumentAvailableInstanceCapacityListUnwrapped(v *[]types.InstanceCapacity, decoder smithyxml.NodeDecoder) error {
- var sv []types.InstanceCapacity
- if *v == nil {
- sv = make([]types.InstanceCapacity, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InstanceCapacity
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInstanceCapacity(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentBandwidthWeightingTypeList(v *[]types.BandwidthWeightingType, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.BandwidthWeightingType
- if *v == nil {
- sv = make([]types.BandwidthWeightingType, 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("item", t.Name.Local):
- var col types.BandwidthWeightingType
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- col = types.BandwidthWeightingType(xtv)
- }
- sv = append(sv, col)
-
- default:
- err = decoder.Decoder.Skip()
- if err != nil {
- return err
- }
-
- }
- decoder = originalDecoder
- }
- *v = sv
- return nil
-}
-
-func awsEc2query_deserializeDocumentBandwidthWeightingTypeListUnwrapped(v *[]types.BandwidthWeightingType, decoder smithyxml.NodeDecoder) error {
- var sv []types.BandwidthWeightingType
- if *v == nil {
- sv = make([]types.BandwidthWeightingType, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.BandwidthWeightingType
- t := decoder.StartEl
- _ = t
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- mv = types.BandwidthWeightingType(xtv)
- }
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentBaselineEbsBandwidthMbps(v **types.BaselineEbsBandwidthMbps, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.BaselineEbsBandwidthMbps
- if *v == nil {
- sv = &types.BaselineEbsBandwidthMbps{}
- } 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)
- i64, err := strconv.ParseInt(xtv, 10, 64)
- if err != nil {
- return err
- }
- sv.Max = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("min", 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.Min = 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 awsEc2query_deserializeDocumentBaselinePerformanceFactors(v **types.BaselinePerformanceFactors, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.BaselinePerformanceFactors
- if *v == nil {
- sv = &types.BaselinePerformanceFactors{}
- } 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("cpu", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentCpuPerformanceFactor(&sv.Cpu, 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 awsEc2query_deserializeDocumentBlockDeviceMapping(v **types.BlockDeviceMapping, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.BlockDeviceMapping
- if *v == nil {
- sv = &types.BlockDeviceMapping{}
- } 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("deviceName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DeviceName = ptr.String(xtv)
- }
-
- case strings.EqualFold("ebs", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentEbsBlockDevice(&sv.Ebs, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("noDevice", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NoDevice = ptr.String(xtv)
- }
-
- case strings.EqualFold("virtualName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VirtualName = 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 awsEc2query_deserializeDocumentBlockDeviceMappingList(v *[]types.BlockDeviceMapping, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.BlockDeviceMapping
- if *v == nil {
- sv = make([]types.BlockDeviceMapping, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.BlockDeviceMapping
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentBlockDeviceMapping(&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 awsEc2query_deserializeDocumentBlockDeviceMappingListUnwrapped(v *[]types.BlockDeviceMapping, decoder smithyxml.NodeDecoder) error {
- var sv []types.BlockDeviceMapping
- if *v == nil {
- sv = make([]types.BlockDeviceMapping, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.BlockDeviceMapping
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentBlockDeviceMapping(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentBlockDeviceMappingResponse(v **types.BlockDeviceMappingResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.BlockDeviceMappingResponse
- if *v == nil {
- sv = &types.BlockDeviceMappingResponse{}
- } 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("deviceName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DeviceName = ptr.String(xtv)
- }
-
- case strings.EqualFold("ebs", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentEbsBlockDeviceResponse(&sv.Ebs, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("noDevice", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NoDevice = ptr.String(xtv)
- }
-
- case strings.EqualFold("virtualName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VirtualName = 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 awsEc2query_deserializeDocumentBlockDeviceMappingResponseList(v *[]types.BlockDeviceMappingResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.BlockDeviceMappingResponse
- if *v == nil {
- sv = make([]types.BlockDeviceMappingResponse, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.BlockDeviceMappingResponse
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentBlockDeviceMappingResponse(&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 awsEc2query_deserializeDocumentBlockDeviceMappingResponseListUnwrapped(v *[]types.BlockDeviceMappingResponse, decoder smithyxml.NodeDecoder) error {
- var sv []types.BlockDeviceMappingResponse
- if *v == nil {
- sv = make([]types.BlockDeviceMappingResponse, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.BlockDeviceMappingResponse
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentBlockDeviceMappingResponse(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentBlockPublicAccessStates(v **types.BlockPublicAccessStates, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.BlockPublicAccessStates
- if *v == nil {
- sv = &types.BlockPublicAccessStates{}
- } 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("internetGatewayBlockMode", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InternetGatewayBlockMode = types.BlockPublicAccessMode(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 awsEc2query_deserializeDocumentBootModeTypeList(v *[]types.BootModeType, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.BootModeType
- if *v == nil {
- sv = make([]types.BootModeType, 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("item", t.Name.Local):
- var col types.BootModeType
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- col = types.BootModeType(xtv)
- }
- sv = append(sv, col)
-
- default:
- err = decoder.Decoder.Skip()
- if err != nil {
- return err
- }
-
- }
- decoder = originalDecoder
- }
- *v = sv
- return nil
-}
-
-func awsEc2query_deserializeDocumentBootModeTypeListUnwrapped(v *[]types.BootModeType, decoder smithyxml.NodeDecoder) error {
- var sv []types.BootModeType
- if *v == nil {
- sv = make([]types.BootModeType, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.BootModeType
- t := decoder.StartEl
- _ = t
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- mv = types.BootModeType(xtv)
- }
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentBundleTask(v **types.BundleTask, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.BundleTask
- if *v == nil {
- sv = &types.BundleTask{}
- } 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("bundleId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.BundleId = ptr.String(xtv)
- }
-
- case strings.EqualFold("error", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentBundleTaskError(&sv.BundleTaskError, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("progress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Progress = ptr.String(xtv)
- }
-
- case strings.EqualFold("startTime", 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.StartTime = ptr.Time(t)
- }
-
- 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.BundleTaskState(xtv)
- }
-
- case strings.EqualFold("storage", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentStorage(&sv.Storage, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("updateTime", 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.UpdateTime = ptr.Time(t)
- }
-
- 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 awsEc2query_deserializeDocumentBundleTaskError(v **types.BundleTaskError, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.BundleTaskError
- if *v == nil {
- sv = &types.BundleTaskError{}
- } 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 = ptr.String(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentBundleTaskList(v *[]types.BundleTask, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.BundleTask
- if *v == nil {
- sv = make([]types.BundleTask, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.BundleTask
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentBundleTask(&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 awsEc2query_deserializeDocumentBundleTaskListUnwrapped(v *[]types.BundleTask, decoder smithyxml.NodeDecoder) error {
- var sv []types.BundleTask
- if *v == nil {
- sv = make([]types.BundleTask, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.BundleTask
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentBundleTask(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentByoasn(v **types.Byoasn, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Byoasn
- if *v == nil {
- sv = &types.Byoasn{}
- } 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("asn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Asn = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamId = ptr.String(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.AsnState(xtv)
- }
-
- case strings.EqualFold("statusMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StatusMessage = 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 awsEc2query_deserializeDocumentByoasnSet(v *[]types.Byoasn, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Byoasn
- if *v == nil {
- sv = make([]types.Byoasn, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Byoasn
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentByoasn(&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 awsEc2query_deserializeDocumentByoasnSetUnwrapped(v *[]types.Byoasn, decoder smithyxml.NodeDecoder) error {
- var sv []types.Byoasn
- if *v == nil {
- sv = make([]types.Byoasn, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Byoasn
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentByoasn(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentByoipCidr(v **types.ByoipCidr, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ByoipCidr
- if *v == nil {
- sv = &types.ByoipCidr{}
- } 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("asnAssociationSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAsnAssociationSet(&sv.AsnAssociations, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("cidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Cidr = ptr.String(xtv)
- }
-
- 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("networkBorderGroup", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkBorderGroup = ptr.String(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.ByoipCidrState(xtv)
- }
-
- case strings.EqualFold("statusMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StatusMessage = 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 awsEc2query_deserializeDocumentByoipCidrSet(v *[]types.ByoipCidr, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ByoipCidr
- if *v == nil {
- sv = make([]types.ByoipCidr, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ByoipCidr
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentByoipCidr(&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 awsEc2query_deserializeDocumentByoipCidrSetUnwrapped(v *[]types.ByoipCidr, decoder smithyxml.NodeDecoder) error {
- var sv []types.ByoipCidr
- if *v == nil {
- sv = make([]types.ByoipCidr, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ByoipCidr
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentByoipCidr(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentCancelCapacityReservationFleetError(v **types.CancelCapacityReservationFleetError, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CancelCapacityReservationFleetError
- if *v == nil {
- sv = &types.CancelCapacityReservationFleetError{}
- } 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 = ptr.String(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentCancelledSpotInstanceRequest(v **types.CancelledSpotInstanceRequest, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CancelledSpotInstanceRequest
- if *v == nil {
- sv = &types.CancelledSpotInstanceRequest{}
- } 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("spotInstanceRequestId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SpotInstanceRequestId = ptr.String(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.CancelSpotInstanceRequestState(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 awsEc2query_deserializeDocumentCancelledSpotInstanceRequestList(v *[]types.CancelledSpotInstanceRequest, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.CancelledSpotInstanceRequest
- if *v == nil {
- sv = make([]types.CancelledSpotInstanceRequest, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.CancelledSpotInstanceRequest
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentCancelledSpotInstanceRequest(&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 awsEc2query_deserializeDocumentCancelledSpotInstanceRequestListUnwrapped(v *[]types.CancelledSpotInstanceRequest, decoder smithyxml.NodeDecoder) error {
- var sv []types.CancelledSpotInstanceRequest
- if *v == nil {
- sv = make([]types.CancelledSpotInstanceRequest, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.CancelledSpotInstanceRequest
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentCancelledSpotInstanceRequest(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentCancelSpotFleetRequestsError(v **types.CancelSpotFleetRequestsError, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CancelSpotFleetRequestsError
- if *v == nil {
- sv = &types.CancelSpotFleetRequestsError{}
- } 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.CancelBatchErrorCode(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorItem(v **types.CancelSpotFleetRequestsErrorItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CancelSpotFleetRequestsErrorItem
- if *v == nil {
- sv = &types.CancelSpotFleetRequestsErrorItem{}
- } 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("error", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentCancelSpotFleetRequestsError(&sv.Error, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("spotFleetRequestId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SpotFleetRequestId = 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 awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorSet(v *[]types.CancelSpotFleetRequestsErrorItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.CancelSpotFleetRequestsErrorItem
- if *v == nil {
- sv = make([]types.CancelSpotFleetRequestsErrorItem, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.CancelSpotFleetRequestsErrorItem
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorItem(&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 awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorSetUnwrapped(v *[]types.CancelSpotFleetRequestsErrorItem, decoder smithyxml.NodeDecoder) error {
- var sv []types.CancelSpotFleetRequestsErrorItem
- if *v == nil {
- sv = make([]types.CancelSpotFleetRequestsErrorItem, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.CancelSpotFleetRequestsErrorItem
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentCancelSpotFleetRequestsErrorItem(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessItem(v **types.CancelSpotFleetRequestsSuccessItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CancelSpotFleetRequestsSuccessItem
- if *v == nil {
- sv = &types.CancelSpotFleetRequestsSuccessItem{}
- } 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("currentSpotFleetRequestState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CurrentSpotFleetRequestState = types.BatchState(xtv)
- }
-
- case strings.EqualFold("previousSpotFleetRequestState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PreviousSpotFleetRequestState = types.BatchState(xtv)
- }
-
- case strings.EqualFold("spotFleetRequestId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SpotFleetRequestId = 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 awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessSet(v *[]types.CancelSpotFleetRequestsSuccessItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.CancelSpotFleetRequestsSuccessItem
- if *v == nil {
- sv = make([]types.CancelSpotFleetRequestsSuccessItem, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.CancelSpotFleetRequestsSuccessItem
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessItem(&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 awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessSetUnwrapped(v *[]types.CancelSpotFleetRequestsSuccessItem, decoder smithyxml.NodeDecoder) error {
- var sv []types.CancelSpotFleetRequestsSuccessItem
- if *v == nil {
- sv = make([]types.CancelSpotFleetRequestsSuccessItem, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.CancelSpotFleetRequestsSuccessItem
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentCancelSpotFleetRequestsSuccessItem(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentCapacityAllocation(v **types.CapacityAllocation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CapacityAllocation
- if *v == nil {
- sv = &types.CapacityAllocation{}
- } 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("allocationType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AllocationType = types.AllocationType(xtv)
- }
-
- case strings.EqualFold("count", 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.Count = 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 awsEc2query_deserializeDocumentCapacityAllocations(v *[]types.CapacityAllocation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.CapacityAllocation
- if *v == nil {
- sv = make([]types.CapacityAllocation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.CapacityAllocation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentCapacityAllocation(&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 awsEc2query_deserializeDocumentCapacityAllocationsUnwrapped(v *[]types.CapacityAllocation, decoder smithyxml.NodeDecoder) error {
- var sv []types.CapacityAllocation
- if *v == nil {
- sv = make([]types.CapacityAllocation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.CapacityAllocation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentCapacityAllocation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentCapacityBlock(v **types.CapacityBlock, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CapacityBlock
- if *v == nil {
- sv = &types.CapacityBlock{}
- } 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("availabilityZoneId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AvailabilityZoneId = ptr.String(xtv)
- }
-
- case strings.EqualFold("capacityBlockId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityBlockId = ptr.String(xtv)
- }
-
- case strings.EqualFold("capacityReservationIdSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentCapacityReservationIdSet(&sv.CapacityReservationIds, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("createDate", 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.CreateDate = ptr.Time(t)
- }
-
- case strings.EqualFold("endDate", 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.EndDate = ptr.Time(t)
- }
-
- case strings.EqualFold("startDate", 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.StartDate = ptr.Time(t)
- }
-
- 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.CapacityBlockResourceState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ultraserverType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UltraserverType = 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 awsEc2query_deserializeDocumentCapacityBlockExtension(v **types.CapacityBlockExtension, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CapacityBlockExtension
- if *v == nil {
- sv = &types.CapacityBlockExtension{}
- } 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("availabilityZoneId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AvailabilityZoneId = ptr.String(xtv)
- }
-
- case strings.EqualFold("capacityBlockExtensionDurationHours", 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.CapacityBlockExtensionDurationHours = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("capacityBlockExtensionEndDate", 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.CapacityBlockExtensionEndDate = ptr.Time(t)
- }
-
- case strings.EqualFold("capacityBlockExtensionOfferingId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityBlockExtensionOfferingId = ptr.String(xtv)
- }
-
- case strings.EqualFold("capacityBlockExtensionPurchaseDate", 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.CapacityBlockExtensionPurchaseDate = ptr.Time(t)
- }
-
- case strings.EqualFold("capacityBlockExtensionStartDate", 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.CapacityBlockExtensionStartDate = ptr.Time(t)
- }
-
- case strings.EqualFold("capacityBlockExtensionStatus", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityBlockExtensionStatus = types.CapacityBlockExtensionStatus(xtv)
- }
-
- case strings.EqualFold("capacityReservationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityReservationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("currencyCode", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CurrencyCode = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceCount", 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.InstanceCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = ptr.String(xtv)
- }
-
- case strings.EqualFold("upfrontFee", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UpfrontFee = 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 awsEc2query_deserializeDocumentCapacityBlockExtensionOffering(v **types.CapacityBlockExtensionOffering, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CapacityBlockExtensionOffering
- if *v == nil {
- sv = &types.CapacityBlockExtensionOffering{}
- } 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("availabilityZoneId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AvailabilityZoneId = ptr.String(xtv)
- }
-
- case strings.EqualFold("capacityBlockExtensionDurationHours", 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.CapacityBlockExtensionDurationHours = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("capacityBlockExtensionEndDate", 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.CapacityBlockExtensionEndDate = ptr.Time(t)
- }
-
- case strings.EqualFold("capacityBlockExtensionOfferingId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityBlockExtensionOfferingId = ptr.String(xtv)
- }
-
- case strings.EqualFold("capacityBlockExtensionStartDate", 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.CapacityBlockExtensionStartDate = ptr.Time(t)
- }
-
- case strings.EqualFold("currencyCode", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CurrencyCode = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceCount", 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.InstanceCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = ptr.String(xtv)
- }
-
- case strings.EqualFold("startDate", 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.StartDate = ptr.Time(t)
- }
-
- case strings.EqualFold("tenancy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Tenancy = types.CapacityReservationTenancy(xtv)
- }
-
- case strings.EqualFold("upfrontFee", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UpfrontFee = 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 awsEc2query_deserializeDocumentCapacityBlockExtensionOfferingSet(v *[]types.CapacityBlockExtensionOffering, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.CapacityBlockExtensionOffering
- if *v == nil {
- sv = make([]types.CapacityBlockExtensionOffering, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.CapacityBlockExtensionOffering
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentCapacityBlockExtensionOffering(&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 awsEc2query_deserializeDocumentCapacityBlockExtensionOfferingSetUnwrapped(v *[]types.CapacityBlockExtensionOffering, decoder smithyxml.NodeDecoder) error {
- var sv []types.CapacityBlockExtensionOffering
- if *v == nil {
- sv = make([]types.CapacityBlockExtensionOffering, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.CapacityBlockExtensionOffering
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentCapacityBlockExtensionOffering(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentCapacityBlockExtensionSet(v *[]types.CapacityBlockExtension, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.CapacityBlockExtension
- if *v == nil {
- sv = make([]types.CapacityBlockExtension, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.CapacityBlockExtension
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentCapacityBlockExtension(&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 awsEc2query_deserializeDocumentCapacityBlockExtensionSetUnwrapped(v *[]types.CapacityBlockExtension, decoder smithyxml.NodeDecoder) error {
- var sv []types.CapacityBlockExtension
- if *v == nil {
- sv = make([]types.CapacityBlockExtension, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.CapacityBlockExtension
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentCapacityBlockExtension(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentCapacityBlockOffering(v **types.CapacityBlockOffering, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CapacityBlockOffering
- if *v == nil {
- sv = &types.CapacityBlockOffering{}
- } 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("capacityBlockDurationHours", 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.CapacityBlockDurationHours = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("capacityBlockDurationMinutes", 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.CapacityBlockDurationMinutes = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("capacityBlockOfferingId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityBlockOfferingId = ptr.String(xtv)
- }
-
- case strings.EqualFold("currencyCode", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CurrencyCode = ptr.String(xtv)
- }
-
- case strings.EqualFold("endDate", 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.EndDate = ptr.Time(t)
- }
-
- case strings.EqualFold("instanceCount", 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.InstanceCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = ptr.String(xtv)
- }
-
- case strings.EqualFold("startDate", 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.StartDate = ptr.Time(t)
- }
-
- case strings.EqualFold("tenancy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Tenancy = types.CapacityReservationTenancy(xtv)
- }
-
- case strings.EqualFold("ultraserverCount", 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.UltraserverCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("ultraserverType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UltraserverType = ptr.String(xtv)
- }
-
- case strings.EqualFold("upfrontFee", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UpfrontFee = 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 awsEc2query_deserializeDocumentCapacityBlockOfferingSet(v *[]types.CapacityBlockOffering, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.CapacityBlockOffering
- if *v == nil {
- sv = make([]types.CapacityBlockOffering, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.CapacityBlockOffering
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentCapacityBlockOffering(&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 awsEc2query_deserializeDocumentCapacityBlockOfferingSetUnwrapped(v *[]types.CapacityBlockOffering, decoder smithyxml.NodeDecoder) error {
- var sv []types.CapacityBlockOffering
- if *v == nil {
- sv = make([]types.CapacityBlockOffering, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.CapacityBlockOffering
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentCapacityBlockOffering(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentCapacityBlockSet(v *[]types.CapacityBlock, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.CapacityBlock
- if *v == nil {
- sv = make([]types.CapacityBlock, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.CapacityBlock
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentCapacityBlock(&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 awsEc2query_deserializeDocumentCapacityBlockSetUnwrapped(v *[]types.CapacityBlock, decoder smithyxml.NodeDecoder) error {
- var sv []types.CapacityBlock
- if *v == nil {
- sv = make([]types.CapacityBlock, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.CapacityBlock
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentCapacityBlock(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentCapacityBlockStatus(v **types.CapacityBlockStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CapacityBlockStatus
- if *v == nil {
- sv = &types.CapacityBlockStatus{}
- } 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("capacityBlockId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityBlockId = ptr.String(xtv)
- }
-
- case strings.EqualFold("capacityReservationStatusSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentCapacityReservationStatusSet(&sv.CapacityReservationStatuses, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("interconnectStatus", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InterconnectStatus = types.CapacityBlockInterconnectStatus(xtv)
- }
-
- case strings.EqualFold("totalAvailableCapacity", 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.TotalAvailableCapacity = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("totalCapacity", 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.TotalCapacity = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("totalUnavailableCapacity", 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.TotalUnavailableCapacity = 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 awsEc2query_deserializeDocumentCapacityBlockStatusSet(v *[]types.CapacityBlockStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.CapacityBlockStatus
- if *v == nil {
- sv = make([]types.CapacityBlockStatus, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.CapacityBlockStatus
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentCapacityBlockStatus(&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 awsEc2query_deserializeDocumentCapacityBlockStatusSetUnwrapped(v *[]types.CapacityBlockStatus, decoder smithyxml.NodeDecoder) error {
- var sv []types.CapacityBlockStatus
- if *v == nil {
- sv = make([]types.CapacityBlockStatus, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.CapacityBlockStatus
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentCapacityBlockStatus(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReservation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CapacityReservation
- if *v == nil {
- sv = &types.CapacityReservation{}
- } 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("availabilityZoneId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AvailabilityZoneId = ptr.String(xtv)
- }
-
- case strings.EqualFold("availableInstanceCount", 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.AvailableInstanceCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("capacityAllocationSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentCapacityAllocations(&sv.CapacityAllocations, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("capacityBlockId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityBlockId = ptr.String(xtv)
- }
-
- case strings.EqualFold("capacityReservationArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityReservationArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("capacityReservationFleetId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityReservationFleetId = ptr.String(xtv)
- }
-
- case strings.EqualFold("capacityReservationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityReservationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("commitmentInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentCapacityReservationCommitmentInfo(&sv.CommitmentInfo, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("createDate", 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.CreateDate = ptr.Time(t)
- }
-
- case strings.EqualFold("deliveryPreference", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DeliveryPreference = types.CapacityReservationDeliveryPreference(xtv)
- }
-
- case strings.EqualFold("ebsOptimized", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EbsOptimized = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("endDate", 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.EndDate = ptr.Time(t)
- }
-
- case strings.EqualFold("endDateType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EndDateType = types.EndDateType(xtv)
- }
-
- case strings.EqualFold("ephemeralStorage", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EphemeralStorage = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("instanceMatchCriteria", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceMatchCriteria = types.InstanceMatchCriteria(xtv)
- }
-
- case strings.EqualFold("instancePlatform", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstancePlatform = types.CapacityReservationInstancePlatform(xtv)
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = ptr.String(xtv)
- }
-
- case strings.EqualFold("outpostArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OutpostArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("placementGroupArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PlacementGroupArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("reservationType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ReservationType = types.CapacityReservationType(xtv)
- }
-
- case strings.EqualFold("startDate", 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.StartDate = ptr.Time(t)
- }
-
- 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.CapacityReservationState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tenancy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Tenancy = types.CapacityReservationTenancy(xtv)
- }
-
- case strings.EqualFold("totalInstanceCount", 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.TotalInstanceCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("unusedReservationBillingOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UnusedReservationBillingOwnerId = 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 awsEc2query_deserializeDocumentCapacityReservationBillingRequest(v **types.CapacityReservationBillingRequest, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CapacityReservationBillingRequest
- if *v == nil {
- sv = &types.CapacityReservationBillingRequest{}
- } 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("capacityReservationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityReservationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("capacityReservationInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentCapacityReservationInfo(&sv.CapacityReservationInfo, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("lastUpdateTime", 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.LastUpdateTime = ptr.Time(t)
- }
-
- case strings.EqualFold("requestedBy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RequestedBy = ptr.String(xtv)
- }
-
- 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.CapacityReservationBillingRequestStatus(xtv)
- }
-
- case strings.EqualFold("statusMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StatusMessage = ptr.String(xtv)
- }
-
- case strings.EqualFold("unusedReservationBillingOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UnusedReservationBillingOwnerId = 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 awsEc2query_deserializeDocumentCapacityReservationBillingRequestSet(v *[]types.CapacityReservationBillingRequest, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.CapacityReservationBillingRequest
- if *v == nil {
- sv = make([]types.CapacityReservationBillingRequest, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.CapacityReservationBillingRequest
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentCapacityReservationBillingRequest(&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 awsEc2query_deserializeDocumentCapacityReservationBillingRequestSetUnwrapped(v *[]types.CapacityReservationBillingRequest, decoder smithyxml.NodeDecoder) error {
- var sv []types.CapacityReservationBillingRequest
- if *v == nil {
- sv = make([]types.CapacityReservationBillingRequest, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.CapacityReservationBillingRequest
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentCapacityReservationBillingRequest(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentCapacityReservationCommitmentInfo(v **types.CapacityReservationCommitmentInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CapacityReservationCommitmentInfo
- if *v == nil {
- sv = &types.CapacityReservationCommitmentInfo{}
- } 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("commitmentEndDate", 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.CommitmentEndDate = ptr.Time(t)
- }
-
- case strings.EqualFold("committedInstanceCount", 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.CommittedInstanceCount = 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 awsEc2query_deserializeDocumentCapacityReservationFleet(v **types.CapacityReservationFleet, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CapacityReservationFleet
- if *v == nil {
- sv = &types.CapacityReservationFleet{}
- } 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("allocationStrategy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AllocationStrategy = ptr.String(xtv)
- }
-
- case strings.EqualFold("capacityReservationFleetArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityReservationFleetArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("capacityReservationFleetId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityReservationFleetId = ptr.String(xtv)
- }
-
- case strings.EqualFold("createTime", 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.CreateTime = ptr.Time(t)
- }
-
- case strings.EqualFold("endDate", 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.EndDate = ptr.Time(t)
- }
-
- case strings.EqualFold("instanceMatchCriteria", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceMatchCriteria = types.FleetInstanceMatchCriteria(xtv)
- }
-
- case strings.EqualFold("instanceTypeSpecificationSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentFleetCapacityReservationSet(&sv.InstanceTypeSpecifications, nodeDecoder); err != nil {
- return err
- }
-
- 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.CapacityReservationFleetState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tenancy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Tenancy = types.FleetCapacityReservationTenancy(xtv)
- }
-
- case strings.EqualFold("totalFulfilledCapacity", 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.TotalFulfilledCapacity = ptr.Float64(f64)
- }
-
- case strings.EqualFold("totalTargetCapacity", 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.TotalTargetCapacity = 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 awsEc2query_deserializeDocumentCapacityReservationFleetCancellationState(v **types.CapacityReservationFleetCancellationState, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CapacityReservationFleetCancellationState
- if *v == nil {
- sv = &types.CapacityReservationFleetCancellationState{}
- } 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("capacityReservationFleetId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityReservationFleetId = ptr.String(xtv)
- }
-
- case strings.EqualFold("currentFleetState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CurrentFleetState = types.CapacityReservationFleetState(xtv)
- }
-
- case strings.EqualFold("previousFleetState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PreviousFleetState = types.CapacityReservationFleetState(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 awsEc2query_deserializeDocumentCapacityReservationFleetCancellationStateSet(v *[]types.CapacityReservationFleetCancellationState, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.CapacityReservationFleetCancellationState
- if *v == nil {
- sv = make([]types.CapacityReservationFleetCancellationState, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.CapacityReservationFleetCancellationState
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentCapacityReservationFleetCancellationState(&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 awsEc2query_deserializeDocumentCapacityReservationFleetCancellationStateSetUnwrapped(v *[]types.CapacityReservationFleetCancellationState, decoder smithyxml.NodeDecoder) error {
- var sv []types.CapacityReservationFleetCancellationState
- if *v == nil {
- sv = make([]types.CapacityReservationFleetCancellationState, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.CapacityReservationFleetCancellationState
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentCapacityReservationFleetCancellationState(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentCapacityReservationFleetSet(v *[]types.CapacityReservationFleet, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.CapacityReservationFleet
- if *v == nil {
- sv = make([]types.CapacityReservationFleet, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.CapacityReservationFleet
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentCapacityReservationFleet(&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 awsEc2query_deserializeDocumentCapacityReservationFleetSetUnwrapped(v *[]types.CapacityReservationFleet, decoder smithyxml.NodeDecoder) error {
- var sv []types.CapacityReservationFleet
- if *v == nil {
- sv = make([]types.CapacityReservationFleet, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.CapacityReservationFleet
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentCapacityReservationFleet(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentCapacityReservationGroup(v **types.CapacityReservationGroup, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CapacityReservationGroup
- if *v == nil {
- sv = &types.CapacityReservationGroup{}
- } 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("groupArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = 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 awsEc2query_deserializeDocumentCapacityReservationGroupSet(v *[]types.CapacityReservationGroup, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.CapacityReservationGroup
- if *v == nil {
- sv = make([]types.CapacityReservationGroup, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.CapacityReservationGroup
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentCapacityReservationGroup(&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 awsEc2query_deserializeDocumentCapacityReservationGroupSetUnwrapped(v *[]types.CapacityReservationGroup, decoder smithyxml.NodeDecoder) error {
- var sv []types.CapacityReservationGroup
- if *v == nil {
- sv = make([]types.CapacityReservationGroup, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.CapacityReservationGroup
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentCapacityReservationGroup(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentCapacityReservationIdSet(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("item", 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 awsEc2query_deserializeDocumentCapacityReservationIdSetUnwrapped(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 awsEc2query_deserializeDocumentCapacityReservationInfo(v **types.CapacityReservationInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CapacityReservationInfo
- if *v == nil {
- sv = &types.CapacityReservationInfo{}
- } 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("availabilityZoneId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AvailabilityZoneId = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = ptr.String(xtv)
- }
-
- case strings.EqualFold("tenancy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Tenancy = types.CapacityReservationTenancy(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 awsEc2query_deserializeDocumentCapacityReservationOptions(v **types.CapacityReservationOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CapacityReservationOptions
- if *v == nil {
- sv = &types.CapacityReservationOptions{}
- } 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("usageStrategy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UsageStrategy = types.FleetCapacityReservationUsageStrategy(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 awsEc2query_deserializeDocumentCapacityReservationSet(v *[]types.CapacityReservation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.CapacityReservation
- if *v == nil {
- sv = make([]types.CapacityReservation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.CapacityReservation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentCapacityReservation(&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 awsEc2query_deserializeDocumentCapacityReservationSetUnwrapped(v *[]types.CapacityReservation, decoder smithyxml.NodeDecoder) error {
- var sv []types.CapacityReservation
- if *v == nil {
- sv = make([]types.CapacityReservation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.CapacityReservation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentCapacityReservation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentCapacityReservationSpecificationResponse(v **types.CapacityReservationSpecificationResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CapacityReservationSpecificationResponse
- if *v == nil {
- sv = &types.CapacityReservationSpecificationResponse{}
- } 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("capacityReservationPreference", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityReservationPreference = types.CapacityReservationPreference(xtv)
- }
-
- case strings.EqualFold("capacityReservationTarget", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentCapacityReservationTargetResponse(&sv.CapacityReservationTarget, 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 awsEc2query_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("capacityReservationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityReservationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("totalAvailableCapacity", 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.TotalAvailableCapacity = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("totalCapacity", 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.TotalCapacity = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("totalUnavailableCapacity", 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.TotalUnavailableCapacity = 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 awsEc2query_deserializeDocumentCapacityReservationStatusSet(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 = make([]types.CapacityReservationStatus, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.CapacityReservationStatus
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentCapacityReservationStatus(&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 awsEc2query_deserializeDocumentCapacityReservationStatusSetUnwrapped(v *[]types.CapacityReservationStatus, decoder smithyxml.NodeDecoder) error {
- var sv []types.CapacityReservationStatus
- if *v == nil {
- sv = make([]types.CapacityReservationStatus, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.CapacityReservationStatus
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentCapacityReservationStatus(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentCapacityReservationTargetResponse(v **types.CapacityReservationTargetResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CapacityReservationTargetResponse
- if *v == nil {
- sv = &types.CapacityReservationTargetResponse{}
- } 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("capacityReservationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityReservationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("capacityReservationResourceGroupArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityReservationResourceGroupArn = 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 awsEc2query_deserializeDocumentCarrierGateway(v **types.CarrierGateway, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CarrierGateway
- if *v == nil {
- sv = &types.CarrierGateway{}
- } 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("carrierGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CarrierGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(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.CarrierGatewayState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- 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 awsEc2query_deserializeDocumentCarrierGatewaySet(v *[]types.CarrierGateway, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.CarrierGateway
- if *v == nil {
- sv = make([]types.CarrierGateway, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.CarrierGateway
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentCarrierGateway(&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 awsEc2query_deserializeDocumentCarrierGatewaySetUnwrapped(v *[]types.CarrierGateway, decoder smithyxml.NodeDecoder) error {
- var sv []types.CarrierGateway
- if *v == nil {
- sv = make([]types.CarrierGateway, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.CarrierGateway
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentCarrierGateway(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentCertificateAuthentication(v **types.CertificateAuthentication, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CertificateAuthentication
- if *v == nil {
- sv = &types.CertificateAuthentication{}
- } 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("clientRootCertificateChain", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ClientRootCertificateChain = 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 awsEc2query_deserializeDocumentCidrBlock(v **types.CidrBlock, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CidrBlock
- if *v == nil {
- sv = &types.CidrBlock{}
- } 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("cidrBlock", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CidrBlock = 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 awsEc2query_deserializeDocumentCidrBlockSet(v *[]types.CidrBlock, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.CidrBlock
- if *v == nil {
- sv = make([]types.CidrBlock, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.CidrBlock
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentCidrBlock(&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 awsEc2query_deserializeDocumentCidrBlockSetUnwrapped(v *[]types.CidrBlock, decoder smithyxml.NodeDecoder) error {
- var sv []types.CidrBlock
- if *v == nil {
- sv = make([]types.CidrBlock, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.CidrBlock
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentCidrBlock(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentClassicLinkDnsSupport(v **types.ClassicLinkDnsSupport, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ClassicLinkDnsSupport
- if *v == nil {
- sv = &types.ClassicLinkDnsSupport{}
- } 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("classicLinkDnsSupported", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.ClassicLinkDnsSupported = ptr.Bool(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 awsEc2query_deserializeDocumentClassicLinkDnsSupportList(v *[]types.ClassicLinkDnsSupport, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ClassicLinkDnsSupport
- if *v == nil {
- sv = make([]types.ClassicLinkDnsSupport, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ClassicLinkDnsSupport
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentClassicLinkDnsSupport(&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 awsEc2query_deserializeDocumentClassicLinkDnsSupportListUnwrapped(v *[]types.ClassicLinkDnsSupport, decoder smithyxml.NodeDecoder) error {
- var sv []types.ClassicLinkDnsSupport
- if *v == nil {
- sv = make([]types.ClassicLinkDnsSupport, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ClassicLinkDnsSupport
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentClassicLinkDnsSupport(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentClassicLinkInstance(v **types.ClassicLinkInstance, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ClassicLinkInstance
- if *v == nil {
- sv = &types.ClassicLinkInstance{}
- } 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("groupSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentGroupIdentifierList(&sv.Groups, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- 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 awsEc2query_deserializeDocumentClassicLinkInstanceList(v *[]types.ClassicLinkInstance, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ClassicLinkInstance
- if *v == nil {
- sv = make([]types.ClassicLinkInstance, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ClassicLinkInstance
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentClassicLinkInstance(&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 awsEc2query_deserializeDocumentClassicLinkInstanceListUnwrapped(v *[]types.ClassicLinkInstance, decoder smithyxml.NodeDecoder) error {
- var sv []types.ClassicLinkInstance
- if *v == nil {
- sv = make([]types.ClassicLinkInstance, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ClassicLinkInstance
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentClassicLinkInstance(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentClassicLoadBalancer(v **types.ClassicLoadBalancer, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ClassicLoadBalancer
- if *v == nil {
- sv = &types.ClassicLoadBalancer{}
- } 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)
- }
-
- 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 awsEc2query_deserializeDocumentClassicLoadBalancers(v *[]types.ClassicLoadBalancer, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ClassicLoadBalancer
- if *v == nil {
- sv = make([]types.ClassicLoadBalancer, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ClassicLoadBalancer
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentClassicLoadBalancer(&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 awsEc2query_deserializeDocumentClassicLoadBalancersUnwrapped(v *[]types.ClassicLoadBalancer, decoder smithyxml.NodeDecoder) error {
- var sv []types.ClassicLoadBalancer
- if *v == nil {
- sv = make([]types.ClassicLoadBalancer, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ClassicLoadBalancer
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentClassicLoadBalancer(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentClassicLoadBalancersConfig(v **types.ClassicLoadBalancersConfig, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ClassicLoadBalancersConfig
- if *v == nil {
- sv = &types.ClassicLoadBalancersConfig{}
- } 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("classicLoadBalancers", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentClassicLoadBalancers(&sv.ClassicLoadBalancers, 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 awsEc2query_deserializeDocumentClientCertificateRevocationListStatus(v **types.ClientCertificateRevocationListStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ClientCertificateRevocationListStatus
- if *v == nil {
- sv = &types.ClientCertificateRevocationListStatus{}
- } 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.ClientCertificateRevocationListStatusCode(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentClientConnectResponseOptions(v **types.ClientConnectResponseOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ClientConnectResponseOptions
- if *v == nil {
- sv = &types.ClientConnectResponseOptions{}
- } 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("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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Enabled = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("lambdaFunctionArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LambdaFunctionArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("status", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentClientVpnEndpointAttributeStatus(&sv.Status, 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 awsEc2query_deserializeDocumentClientLoginBannerResponseOptions(v **types.ClientLoginBannerResponseOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ClientLoginBannerResponseOptions
- if *v == nil {
- sv = &types.ClientLoginBannerResponseOptions{}
- } 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("bannerText", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.BannerText = ptr.String(xtv)
- }
-
- 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 Boolean 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 awsEc2query_deserializeDocumentClientRouteEnforcementResponseOptions(v **types.ClientRouteEnforcementResponseOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ClientRouteEnforcementResponseOptions
- if *v == nil {
- sv = &types.ClientRouteEnforcementResponseOptions{}
- } 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("enforced", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Enforced = 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 awsEc2query_deserializeDocumentClientVpnAuthentication(v **types.ClientVpnAuthentication, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ClientVpnAuthentication
- if *v == nil {
- sv = &types.ClientVpnAuthentication{}
- } 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("activeDirectory", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentDirectoryServiceAuthentication(&sv.ActiveDirectory, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("federatedAuthentication", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentFederatedAuthentication(&sv.FederatedAuthentication, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("mutualAuthentication", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentCertificateAuthentication(&sv.MutualAuthentication, 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.ClientVpnAuthenticationType(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 awsEc2query_deserializeDocumentClientVpnAuthenticationList(v *[]types.ClientVpnAuthentication, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ClientVpnAuthentication
- if *v == nil {
- sv = make([]types.ClientVpnAuthentication, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ClientVpnAuthentication
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentClientVpnAuthentication(&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 awsEc2query_deserializeDocumentClientVpnAuthenticationListUnwrapped(v *[]types.ClientVpnAuthentication, decoder smithyxml.NodeDecoder) error {
- var sv []types.ClientVpnAuthentication
- if *v == nil {
- sv = make([]types.ClientVpnAuthentication, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ClientVpnAuthentication
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentClientVpnAuthentication(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentClientVpnAuthorizationRuleStatus(v **types.ClientVpnAuthorizationRuleStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ClientVpnAuthorizationRuleStatus
- if *v == nil {
- sv = &types.ClientVpnAuthorizationRuleStatus{}
- } 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.ClientVpnAuthorizationRuleStatusCode(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentClientVpnConnection(v **types.ClientVpnConnection, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ClientVpnConnection
- if *v == nil {
- sv = &types.ClientVpnConnection{}
- } 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("clientIp", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ClientIp = ptr.String(xtv)
- }
-
- case strings.EqualFold("clientVpnEndpointId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ClientVpnEndpointId = ptr.String(xtv)
- }
-
- case strings.EqualFold("commonName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CommonName = ptr.String(xtv)
- }
-
- case strings.EqualFold("connectionEndTime", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ConnectionEndTime = ptr.String(xtv)
- }
-
- case strings.EqualFold("connectionEstablishedTime", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ConnectionEstablishedTime = ptr.String(xtv)
- }
-
- case strings.EqualFold("connectionId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ConnectionId = ptr.String(xtv)
- }
-
- case strings.EqualFold("egressBytes", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EgressBytes = ptr.String(xtv)
- }
-
- case strings.EqualFold("egressPackets", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EgressPackets = ptr.String(xtv)
- }
-
- case strings.EqualFold("ingressBytes", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IngressBytes = ptr.String(xtv)
- }
-
- case strings.EqualFold("ingressPackets", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IngressPackets = ptr.String(xtv)
- }
-
- case strings.EqualFold("postureComplianceStatusSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.PostureComplianceStatuses, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("status", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentClientVpnConnectionStatus(&sv.Status, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("timestamp", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Timestamp = ptr.String(xtv)
- }
-
- case strings.EqualFold("username", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Username = 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 awsEc2query_deserializeDocumentClientVpnConnectionSet(v *[]types.ClientVpnConnection, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ClientVpnConnection
- if *v == nil {
- sv = make([]types.ClientVpnConnection, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ClientVpnConnection
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentClientVpnConnection(&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 awsEc2query_deserializeDocumentClientVpnConnectionSetUnwrapped(v *[]types.ClientVpnConnection, decoder smithyxml.NodeDecoder) error {
- var sv []types.ClientVpnConnection
- if *v == nil {
- sv = make([]types.ClientVpnConnection, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ClientVpnConnection
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentClientVpnConnection(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentClientVpnConnectionStatus(v **types.ClientVpnConnectionStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ClientVpnConnectionStatus
- if *v == nil {
- sv = &types.ClientVpnConnectionStatus{}
- } 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.ClientVpnConnectionStatusCode(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoint, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ClientVpnEndpoint
- if *v == nil {
- sv = &types.ClientVpnEndpoint{}
- } 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("associatedTargetNetwork", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAssociatedTargetNetworkSet(&sv.AssociatedTargetNetworks, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("authenticationOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentClientVpnAuthenticationList(&sv.AuthenticationOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("clientCidrBlock", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ClientCidrBlock = ptr.String(xtv)
- }
-
- case strings.EqualFold("clientConnectOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentClientConnectResponseOptions(&sv.ClientConnectOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("clientLoginBannerOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentClientLoginBannerResponseOptions(&sv.ClientLoginBannerOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("clientRouteEnforcementOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentClientRouteEnforcementResponseOptions(&sv.ClientRouteEnforcementOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("clientVpnEndpointId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ClientVpnEndpointId = ptr.String(xtv)
- }
-
- case strings.EqualFold("connectionLogOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentConnectionLogResponseOptions(&sv.ConnectionLogOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("creationTime", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CreationTime = ptr.String(xtv)
- }
-
- case strings.EqualFold("deletionTime", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DeletionTime = ptr.String(xtv)
- }
-
- 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("disconnectOnSessionTimeout", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.DisconnectOnSessionTimeout = ptr.Bool(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("dnsServer", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.DnsServers, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("securityGroupIdSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentClientVpnSecurityGroupIdSet(&sv.SecurityGroupIds, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("selfServicePortalUrl", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SelfServicePortalUrl = ptr.String(xtv)
- }
-
- case strings.EqualFold("serverCertificateArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServerCertificateArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("sessionTimeoutHours", 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.SessionTimeoutHours = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("splitTunnel", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.SplitTunnel = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("status", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentClientVpnEndpointStatus(&sv.Status, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transportProtocol", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransportProtocol = types.TransportProtocol(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)
- }
-
- case strings.EqualFold("vpnPort", 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.VpnPort = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("vpnProtocol", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VpnProtocol = types.VpnProtocol(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 awsEc2query_deserializeDocumentClientVpnEndpointAttributeStatus(v **types.ClientVpnEndpointAttributeStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ClientVpnEndpointAttributeStatus
- if *v == nil {
- sv = &types.ClientVpnEndpointAttributeStatus{}
- } 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.ClientVpnEndpointAttributeStatusCode(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentClientVpnEndpointStatus(v **types.ClientVpnEndpointStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ClientVpnEndpointStatus
- if *v == nil {
- sv = &types.ClientVpnEndpointStatus{}
- } 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.ClientVpnEndpointStatusCode(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentClientVpnRoute(v **types.ClientVpnRoute, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ClientVpnRoute
- if *v == nil {
- sv = &types.ClientVpnRoute{}
- } 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("clientVpnEndpointId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ClientVpnEndpointId = ptr.String(xtv)
- }
-
- 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("destinationCidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DestinationCidr = ptr.String(xtv)
- }
-
- case strings.EqualFold("origin", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Origin = ptr.String(xtv)
- }
-
- case strings.EqualFold("status", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentClientVpnRouteStatus(&sv.Status, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("targetSubnet", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TargetSubnet = 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 = 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 awsEc2query_deserializeDocumentClientVpnRouteSet(v *[]types.ClientVpnRoute, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ClientVpnRoute
- if *v == nil {
- sv = make([]types.ClientVpnRoute, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ClientVpnRoute
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentClientVpnRoute(&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 awsEc2query_deserializeDocumentClientVpnRouteSetUnwrapped(v *[]types.ClientVpnRoute, decoder smithyxml.NodeDecoder) error {
- var sv []types.ClientVpnRoute
- if *v == nil {
- sv = make([]types.ClientVpnRoute, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ClientVpnRoute
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentClientVpnRoute(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentClientVpnRouteStatus(v **types.ClientVpnRouteStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ClientVpnRouteStatus
- if *v == nil {
- sv = &types.ClientVpnRouteStatus{}
- } 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.ClientVpnRouteStatusCode(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentClientVpnSecurityGroupIdSet(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("item", 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 awsEc2query_deserializeDocumentClientVpnSecurityGroupIdSetUnwrapped(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 awsEc2query_deserializeDocumentCloudWatchLogOptions(v **types.CloudWatchLogOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CloudWatchLogOptions
- if *v == nil {
- sv = &types.CloudWatchLogOptions{}
- } 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("logEnabled", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.LogEnabled = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("logGroupArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LogGroupArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("logOutputFormat", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LogOutputFormat = 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 awsEc2query_deserializeDocumentCoipAddressUsage(v **types.CoipAddressUsage, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CoipAddressUsage
- if *v == nil {
- sv = &types.CoipAddressUsage{}
- } 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("awsAccountId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AwsAccountId = ptr.String(xtv)
- }
-
- case strings.EqualFold("awsService", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AwsService = ptr.String(xtv)
- }
-
- case strings.EqualFold("coIp", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CoIp = 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 awsEc2query_deserializeDocumentCoipAddressUsageSet(v *[]types.CoipAddressUsage, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.CoipAddressUsage
- if *v == nil {
- sv = make([]types.CoipAddressUsage, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.CoipAddressUsage
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentCoipAddressUsage(&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 awsEc2query_deserializeDocumentCoipAddressUsageSetUnwrapped(v *[]types.CoipAddressUsage, decoder smithyxml.NodeDecoder) error {
- var sv []types.CoipAddressUsage
- if *v == nil {
- sv = make([]types.CoipAddressUsage, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.CoipAddressUsage
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentCoipAddressUsage(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentCoipCidr(v **types.CoipCidr, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CoipCidr
- if *v == nil {
- sv = &types.CoipCidr{}
- } 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("cidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Cidr = ptr.String(xtv)
- }
-
- case strings.EqualFold("coipPoolId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CoipPoolId = ptr.String(xtv)
- }
-
- case strings.EqualFold("localGatewayRouteTableId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayRouteTableId = 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 awsEc2query_deserializeDocumentCoipPool(v **types.CoipPool, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CoipPool
- if *v == nil {
- sv = &types.CoipPool{}
- } 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("localGatewayRouteTableId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayRouteTableId = ptr.String(xtv)
- }
-
- case strings.EqualFold("poolArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PoolArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("poolCidrSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.PoolCidrs, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("poolId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PoolId = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentCoipPoolSet(v *[]types.CoipPool, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.CoipPool
- if *v == nil {
- sv = make([]types.CoipPool, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.CoipPool
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentCoipPool(&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 awsEc2query_deserializeDocumentCoipPoolSetUnwrapped(v *[]types.CoipPool, decoder smithyxml.NodeDecoder) error {
- var sv []types.CoipPool
- if *v == nil {
- sv = make([]types.CoipPool, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.CoipPool
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentCoipPool(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentConnectionLogResponseOptions(v **types.ConnectionLogResponseOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ConnectionLogResponseOptions
- if *v == nil {
- sv = &types.ConnectionLogResponseOptions{}
- } 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("CloudwatchLogGroup", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CloudwatchLogGroup = ptr.String(xtv)
- }
-
- case strings.EqualFold("CloudwatchLogStream", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CloudwatchLogStream = ptr.String(xtv)
- }
-
- 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 Boolean 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 awsEc2query_deserializeDocumentConnectionNotification(v **types.ConnectionNotification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ConnectionNotification
- if *v == nil {
- sv = &types.ConnectionNotification{}
- } 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("connectionEvents", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.ConnectionEvents, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("connectionNotificationArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ConnectionNotificationArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("connectionNotificationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ConnectionNotificationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("connectionNotificationState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ConnectionNotificationState = types.ConnectionNotificationState(xtv)
- }
-
- case strings.EqualFold("connectionNotificationType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ConnectionNotificationType = types.ConnectionNotificationType(xtv)
- }
-
- case strings.EqualFold("serviceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServiceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("serviceRegion", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServiceRegion = ptr.String(xtv)
- }
-
- case strings.EqualFold("vpcEndpointId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VpcEndpointId = 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 awsEc2query_deserializeDocumentConnectionNotificationSet(v *[]types.ConnectionNotification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ConnectionNotification
- if *v == nil {
- sv = make([]types.ConnectionNotification, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ConnectionNotification
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentConnectionNotification(&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 awsEc2query_deserializeDocumentConnectionNotificationSetUnwrapped(v *[]types.ConnectionNotification, decoder smithyxml.NodeDecoder) error {
- var sv []types.ConnectionNotification
- if *v == nil {
- sv = make([]types.ConnectionNotification, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ConnectionNotification
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentConnectionNotification(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentConnectionTrackingConfiguration(v **types.ConnectionTrackingConfiguration, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ConnectionTrackingConfiguration
- if *v == nil {
- sv = &types.ConnectionTrackingConfiguration{}
- } 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("tcpEstablishedTimeout", 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.TcpEstablishedTimeout = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("udpStreamTimeout", 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.UdpStreamTimeout = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("udpTimeout", 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.UdpTimeout = 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 awsEc2query_deserializeDocumentConnectionTrackingSpecification(v **types.ConnectionTrackingSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ConnectionTrackingSpecification
- if *v == nil {
- sv = &types.ConnectionTrackingSpecification{}
- } 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("tcpEstablishedTimeout", 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.TcpEstablishedTimeout = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("udpStreamTimeout", 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.UdpStreamTimeout = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("udpTimeout", 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.UdpTimeout = 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 awsEc2query_deserializeDocumentConnectionTrackingSpecificationRequest(v **types.ConnectionTrackingSpecificationRequest, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ConnectionTrackingSpecificationRequest
- if *v == nil {
- sv = &types.ConnectionTrackingSpecificationRequest{}
- } 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("TcpEstablishedTimeout", 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.TcpEstablishedTimeout = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("UdpStreamTimeout", 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.UdpStreamTimeout = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("UdpTimeout", 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.UdpTimeout = 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 awsEc2query_deserializeDocumentConnectionTrackingSpecificationResponse(v **types.ConnectionTrackingSpecificationResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ConnectionTrackingSpecificationResponse
- if *v == nil {
- sv = &types.ConnectionTrackingSpecificationResponse{}
- } 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("tcpEstablishedTimeout", 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.TcpEstablishedTimeout = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("udpStreamTimeout", 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.UdpStreamTimeout = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("udpTimeout", 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.UdpTimeout = 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 awsEc2query_deserializeDocumentConversionTask(v **types.ConversionTask, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ConversionTask
- if *v == nil {
- sv = &types.ConversionTask{}
- } 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("conversionTaskId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ConversionTaskId = ptr.String(xtv)
- }
-
- case strings.EqualFold("expirationTime", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ExpirationTime = ptr.String(xtv)
- }
-
- case strings.EqualFold("importInstance", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentImportInstanceTaskDetails(&sv.ImportInstance, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("importVolume", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentImportVolumeTaskDetails(&sv.ImportVolume, nodeDecoder); err != nil {
- return err
- }
-
- 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.ConversionTaskState(xtv)
- }
-
- case strings.EqualFold("statusMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StatusMessage = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentCoreCountList(v *[]int32, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []int32
- if *v == nil {
- sv = make([]int32, 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("item", t.Name.Local):
- var col int32
- 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
- }
- col = int32(i64)
- }
- sv = append(sv, col)
-
- default:
- err = decoder.Decoder.Skip()
- if err != nil {
- return err
- }
-
- }
- decoder = originalDecoder
- }
- *v = sv
- return nil
-}
-
-func awsEc2query_deserializeDocumentCoreCountListUnwrapped(v *[]int32, decoder smithyxml.NodeDecoder) error {
- var sv []int32
- if *v == nil {
- sv = make([]int32, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv int32
- t := decoder.StartEl
- _ = t
- 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
- }
- mv = int32(i64)
- }
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentCpuManufacturerSet(v *[]types.CpuManufacturer, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.CpuManufacturer
- if *v == nil {
- sv = make([]types.CpuManufacturer, 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("item", t.Name.Local):
- var col types.CpuManufacturer
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- col = types.CpuManufacturer(xtv)
- }
- sv = append(sv, col)
-
- default:
- err = decoder.Decoder.Skip()
- if err != nil {
- return err
- }
-
- }
- decoder = originalDecoder
- }
- *v = sv
- return nil
-}
-
-func awsEc2query_deserializeDocumentCpuManufacturerSetUnwrapped(v *[]types.CpuManufacturer, decoder smithyxml.NodeDecoder) error {
- var sv []types.CpuManufacturer
- if *v == nil {
- sv = make([]types.CpuManufacturer, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.CpuManufacturer
- t := decoder.StartEl
- _ = t
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- mv = types.CpuManufacturer(xtv)
- }
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentCpuOptions(v **types.CpuOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CpuOptions
- if *v == nil {
- sv = &types.CpuOptions{}
- } 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("amdSevSnp", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AmdSevSnp = types.AmdSevSnpSpecification(xtv)
- }
-
- case strings.EqualFold("coreCount", 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.CoreCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("threadsPerCore", 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.ThreadsPerCore = 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 awsEc2query_deserializeDocumentCpuPerformanceFactor(v **types.CpuPerformanceFactor, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CpuPerformanceFactor
- if *v == nil {
- sv = &types.CpuPerformanceFactor{}
- } 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("referenceSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPerformanceFactorReferenceSet(&sv.References, 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 awsEc2query_deserializeDocumentCreateFleetError(v **types.CreateFleetError, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CreateFleetError
- if *v == nil {
- sv = &types.CreateFleetError{}
- } 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("errorCode", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ErrorCode = ptr.String(xtv)
- }
-
- case strings.EqualFold("errorMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ErrorMessage = ptr.String(xtv)
- }
-
- case strings.EqualFold("launchTemplateAndOverrides", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplateAndOverridesResponse(&sv.LaunchTemplateAndOverrides, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("lifecycle", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Lifecycle = types.InstanceLifecycle(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 awsEc2query_deserializeDocumentCreateFleetErrorsSet(v *[]types.CreateFleetError, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.CreateFleetError
- if *v == nil {
- sv = make([]types.CreateFleetError, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.CreateFleetError
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentCreateFleetError(&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 awsEc2query_deserializeDocumentCreateFleetErrorsSetUnwrapped(v *[]types.CreateFleetError, decoder smithyxml.NodeDecoder) error {
- var sv []types.CreateFleetError
- if *v == nil {
- sv = make([]types.CreateFleetError, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.CreateFleetError
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentCreateFleetError(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentCreateFleetInstance(v **types.CreateFleetInstance, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CreateFleetInstance
- if *v == nil {
- sv = &types.CreateFleetInstance{}
- } 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("instanceIds", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceIdsSet(&sv.InstanceIds, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = types.InstanceType(xtv)
- }
-
- case strings.EqualFold("launchTemplateAndOverrides", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplateAndOverridesResponse(&sv.LaunchTemplateAndOverrides, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("lifecycle", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Lifecycle = types.InstanceLifecycle(xtv)
- }
-
- case strings.EqualFold("platform", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Platform = types.PlatformValues(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 awsEc2query_deserializeDocumentCreateFleetInstancesSet(v *[]types.CreateFleetInstance, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.CreateFleetInstance
- if *v == nil {
- sv = make([]types.CreateFleetInstance, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.CreateFleetInstance
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentCreateFleetInstance(&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 awsEc2query_deserializeDocumentCreateFleetInstancesSetUnwrapped(v *[]types.CreateFleetInstance, decoder smithyxml.NodeDecoder) error {
- var sv []types.CreateFleetInstance
- if *v == nil {
- sv = make([]types.CreateFleetInstance, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.CreateFleetInstance
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentCreateFleetInstance(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentCreateVolumePermission(v **types.CreateVolumePermission, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CreateVolumePermission
- if *v == nil {
- sv = &types.CreateVolumePermission{}
- } 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("group", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Group = types.PermissionGroup(xtv)
- }
-
- case strings.EqualFold("userId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UserId = 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 awsEc2query_deserializeDocumentCreateVolumePermissionList(v *[]types.CreateVolumePermission, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.CreateVolumePermission
- if *v == nil {
- sv = make([]types.CreateVolumePermission, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.CreateVolumePermission
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentCreateVolumePermission(&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 awsEc2query_deserializeDocumentCreateVolumePermissionListUnwrapped(v *[]types.CreateVolumePermission, decoder smithyxml.NodeDecoder) error {
- var sv []types.CreateVolumePermission
- if *v == nil {
- sv = make([]types.CreateVolumePermission, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.CreateVolumePermission
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentCreateVolumePermission(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentCreditSpecification(v **types.CreditSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CreditSpecification
- if *v == nil {
- sv = &types.CreditSpecification{}
- } 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("cpuCredits", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CpuCredits = 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 awsEc2query_deserializeDocumentCustomerGateway(v **types.CustomerGateway, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.CustomerGateway
- if *v == nil {
- sv = &types.CustomerGateway{}
- } 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("bgpAsn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.BgpAsn = ptr.String(xtv)
- }
-
- case strings.EqualFold("bgpAsnExtended", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.BgpAsnExtended = ptr.String(xtv)
- }
-
- 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("customerGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CustomerGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("deviceName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DeviceName = 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("state", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.State = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, 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 = 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 awsEc2query_deserializeDocumentCustomerGatewayList(v *[]types.CustomerGateway, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.CustomerGateway
- if *v == nil {
- sv = make([]types.CustomerGateway, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.CustomerGateway
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentCustomerGateway(&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 awsEc2query_deserializeDocumentCustomerGatewayListUnwrapped(v *[]types.CustomerGateway, decoder smithyxml.NodeDecoder) error {
- var sv []types.CustomerGateway
- if *v == nil {
- sv = make([]types.CustomerGateway, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.CustomerGateway
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentCustomerGateway(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentDataResponse(v **types.DataResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DataResponse
- if *v == nil {
- sv = &types.DataResponse{}
- } 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("destination", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Destination = 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("metric", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Metric = types.MetricType(xtv)
- }
-
- case strings.EqualFold("metricPointSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentMetricPoints(&sv.MetricPoints, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("period", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Period = types.PeriodType(xtv)
- }
-
- case strings.EqualFold("source", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Source = ptr.String(xtv)
- }
-
- case strings.EqualFold("statistic", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Statistic = types.StatisticType(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 awsEc2query_deserializeDocumentDataResponses(v *[]types.DataResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.DataResponse
- if *v == nil {
- sv = make([]types.DataResponse, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.DataResponse
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentDataResponse(&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 awsEc2query_deserializeDocumentDataResponsesUnwrapped(v *[]types.DataResponse, decoder smithyxml.NodeDecoder) error {
- var sv []types.DataResponse
- if *v == nil {
- sv = make([]types.DataResponse, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.DataResponse
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentDataResponse(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentDeclarativePoliciesReport(v **types.DeclarativePoliciesReport, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DeclarativePoliciesReport
- if *v == nil {
- sv = &types.DeclarativePoliciesReport{}
- } 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("endTime", 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.EndTime = ptr.Time(t)
- }
-
- case strings.EqualFold("reportId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ReportId = ptr.String(xtv)
- }
-
- case strings.EqualFold("s3Bucket", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.S3Bucket = ptr.String(xtv)
- }
-
- case strings.EqualFold("s3Prefix", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.S3Prefix = ptr.String(xtv)
- }
-
- case strings.EqualFold("startTime", 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.StartTime = ptr.Time(t)
- }
-
- 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.ReportState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("targetId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TargetId = 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 awsEc2query_deserializeDocumentDeclarativePoliciesReportList(v *[]types.DeclarativePoliciesReport, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.DeclarativePoliciesReport
- if *v == nil {
- sv = make([]types.DeclarativePoliciesReport, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.DeclarativePoliciesReport
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentDeclarativePoliciesReport(&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 awsEc2query_deserializeDocumentDeclarativePoliciesReportListUnwrapped(v *[]types.DeclarativePoliciesReport, decoder smithyxml.NodeDecoder) error {
- var sv []types.DeclarativePoliciesReport
- if *v == nil {
- sv = make([]types.DeclarativePoliciesReport, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.DeclarativePoliciesReport
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentDeclarativePoliciesReport(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentDedicatedHostIdList(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("item", 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 awsEc2query_deserializeDocumentDedicatedHostIdListUnwrapped(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 awsEc2query_deserializeDocumentDeleteFleetError(v **types.DeleteFleetError, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DeleteFleetError
- if *v == nil {
- sv = &types.DeleteFleetError{}
- } 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.DeleteFleetErrorCode(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentDeleteFleetErrorItem(v **types.DeleteFleetErrorItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DeleteFleetErrorItem
- if *v == nil {
- sv = &types.DeleteFleetErrorItem{}
- } 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("error", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentDeleteFleetError(&sv.Error, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("fleetId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.FleetId = 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 awsEc2query_deserializeDocumentDeleteFleetErrorSet(v *[]types.DeleteFleetErrorItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.DeleteFleetErrorItem
- if *v == nil {
- sv = make([]types.DeleteFleetErrorItem, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.DeleteFleetErrorItem
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentDeleteFleetErrorItem(&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 awsEc2query_deserializeDocumentDeleteFleetErrorSetUnwrapped(v *[]types.DeleteFleetErrorItem, decoder smithyxml.NodeDecoder) error {
- var sv []types.DeleteFleetErrorItem
- if *v == nil {
- sv = make([]types.DeleteFleetErrorItem, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.DeleteFleetErrorItem
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentDeleteFleetErrorItem(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentDeleteFleetSuccessItem(v **types.DeleteFleetSuccessItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DeleteFleetSuccessItem
- if *v == nil {
- sv = &types.DeleteFleetSuccessItem{}
- } 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("currentFleetState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CurrentFleetState = types.FleetStateCode(xtv)
- }
-
- case strings.EqualFold("fleetId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.FleetId = ptr.String(xtv)
- }
-
- case strings.EqualFold("previousFleetState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PreviousFleetState = types.FleetStateCode(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 awsEc2query_deserializeDocumentDeleteFleetSuccessSet(v *[]types.DeleteFleetSuccessItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.DeleteFleetSuccessItem
- if *v == nil {
- sv = make([]types.DeleteFleetSuccessItem, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.DeleteFleetSuccessItem
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentDeleteFleetSuccessItem(&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 awsEc2query_deserializeDocumentDeleteFleetSuccessSetUnwrapped(v *[]types.DeleteFleetSuccessItem, decoder smithyxml.NodeDecoder) error {
- var sv []types.DeleteFleetSuccessItem
- if *v == nil {
- sv = make([]types.DeleteFleetSuccessItem, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.DeleteFleetSuccessItem
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentDeleteFleetSuccessItem(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorItem(v **types.DeleteLaunchTemplateVersionsResponseErrorItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DeleteLaunchTemplateVersionsResponseErrorItem
- if *v == nil {
- sv = &types.DeleteLaunchTemplateVersionsResponseErrorItem{}
- } 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("launchTemplateId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LaunchTemplateId = ptr.String(xtv)
- }
-
- case strings.EqualFold("launchTemplateName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LaunchTemplateName = ptr.String(xtv)
- }
-
- case strings.EqualFold("responseError", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentResponseError(&sv.ResponseError, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("versionNumber", 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.VersionNumber = ptr.Int64(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 awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorSet(v *[]types.DeleteLaunchTemplateVersionsResponseErrorItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.DeleteLaunchTemplateVersionsResponseErrorItem
- if *v == nil {
- sv = make([]types.DeleteLaunchTemplateVersionsResponseErrorItem, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.DeleteLaunchTemplateVersionsResponseErrorItem
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorItem(&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 awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorSetUnwrapped(v *[]types.DeleteLaunchTemplateVersionsResponseErrorItem, decoder smithyxml.NodeDecoder) error {
- var sv []types.DeleteLaunchTemplateVersionsResponseErrorItem
- if *v == nil {
- sv = make([]types.DeleteLaunchTemplateVersionsResponseErrorItem, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.DeleteLaunchTemplateVersionsResponseErrorItem
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorItem(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessItem(v **types.DeleteLaunchTemplateVersionsResponseSuccessItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DeleteLaunchTemplateVersionsResponseSuccessItem
- if *v == nil {
- sv = &types.DeleteLaunchTemplateVersionsResponseSuccessItem{}
- } 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("launchTemplateId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LaunchTemplateId = ptr.String(xtv)
- }
-
- case strings.EqualFold("launchTemplateName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LaunchTemplateName = ptr.String(xtv)
- }
-
- case strings.EqualFold("versionNumber", 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.VersionNumber = ptr.Int64(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 awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessSet(v *[]types.DeleteLaunchTemplateVersionsResponseSuccessItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.DeleteLaunchTemplateVersionsResponseSuccessItem
- if *v == nil {
- sv = make([]types.DeleteLaunchTemplateVersionsResponseSuccessItem, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.DeleteLaunchTemplateVersionsResponseSuccessItem
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessItem(&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 awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessSetUnwrapped(v *[]types.DeleteLaunchTemplateVersionsResponseSuccessItem, decoder smithyxml.NodeDecoder) error {
- var sv []types.DeleteLaunchTemplateVersionsResponseSuccessItem
- if *v == nil {
- sv = make([]types.DeleteLaunchTemplateVersionsResponseSuccessItem, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.DeleteLaunchTemplateVersionsResponseSuccessItem
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessItem(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentDeleteQueuedReservedInstancesError(v **types.DeleteQueuedReservedInstancesError, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DeleteQueuedReservedInstancesError
- if *v == nil {
- sv = &types.DeleteQueuedReservedInstancesError{}
- } 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.DeleteQueuedReservedInstancesErrorCode(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentDeleteSnapshotResultSet(v *[]types.DeleteSnapshotReturnCode, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.DeleteSnapshotReturnCode
- if *v == nil {
- sv = make([]types.DeleteSnapshotReturnCode, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.DeleteSnapshotReturnCode
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentDeleteSnapshotReturnCode(&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 awsEc2query_deserializeDocumentDeleteSnapshotResultSetUnwrapped(v *[]types.DeleteSnapshotReturnCode, decoder smithyxml.NodeDecoder) error {
- var sv []types.DeleteSnapshotReturnCode
- if *v == nil {
- sv = make([]types.DeleteSnapshotReturnCode, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.DeleteSnapshotReturnCode
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentDeleteSnapshotReturnCode(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentDeleteSnapshotReturnCode(v **types.DeleteSnapshotReturnCode, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DeleteSnapshotReturnCode
- if *v == nil {
- sv = &types.DeleteSnapshotReturnCode{}
- } 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("returnCode", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ReturnCode = types.SnapshotReturnCodes(xtv)
- }
-
- case strings.EqualFold("snapshotId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SnapshotId = 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 awsEc2query_deserializeDocumentDeprovisionedAddressSet(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("item", 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 awsEc2query_deserializeDocumentDeprovisionedAddressSetUnwrapped(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 awsEc2query_deserializeDocumentDescribeConversionTaskList(v *[]types.ConversionTask, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ConversionTask
- if *v == nil {
- sv = make([]types.ConversionTask, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ConversionTask
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentConversionTask(&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 awsEc2query_deserializeDocumentDescribeConversionTaskListUnwrapped(v *[]types.ConversionTask, decoder smithyxml.NodeDecoder) error {
- var sv []types.ConversionTask
- if *v == nil {
- sv = make([]types.ConversionTask, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ConversionTask
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentConversionTask(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentDescribeFastLaunchImagesSuccessItem(v **types.DescribeFastLaunchImagesSuccessItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DescribeFastLaunchImagesSuccessItem
- if *v == nil {
- sv = &types.DescribeFastLaunchImagesSuccessItem{}
- } 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("imageId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ImageId = ptr.String(xtv)
- }
-
- case strings.EqualFold("launchTemplate", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentFastLaunchLaunchTemplateSpecificationResponse(&sv.LaunchTemplate, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("maxParallelLaunches", 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.MaxParallelLaunches = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceType = types.FastLaunchResourceType(xtv)
- }
-
- case strings.EqualFold("snapshotConfiguration", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentFastLaunchSnapshotConfigurationResponse(&sv.SnapshotConfiguration, nodeDecoder); err != nil {
- return err
- }
-
- 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.FastLaunchStateCode(xtv)
- }
-
- case strings.EqualFold("stateTransitionReason", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StateTransitionReason = ptr.String(xtv)
- }
-
- case strings.EqualFold("stateTransitionTime", 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.StateTransitionTime = ptr.Time(t)
- }
-
- 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 awsEc2query_deserializeDocumentDescribeFastLaunchImagesSuccessSet(v *[]types.DescribeFastLaunchImagesSuccessItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.DescribeFastLaunchImagesSuccessItem
- if *v == nil {
- sv = make([]types.DescribeFastLaunchImagesSuccessItem, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.DescribeFastLaunchImagesSuccessItem
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentDescribeFastLaunchImagesSuccessItem(&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 awsEc2query_deserializeDocumentDescribeFastLaunchImagesSuccessSetUnwrapped(v *[]types.DescribeFastLaunchImagesSuccessItem, decoder smithyxml.NodeDecoder) error {
- var sv []types.DescribeFastLaunchImagesSuccessItem
- if *v == nil {
- sv = make([]types.DescribeFastLaunchImagesSuccessItem, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.DescribeFastLaunchImagesSuccessItem
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentDescribeFastLaunchImagesSuccessItem(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(v **types.DescribeFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DescribeFastSnapshotRestoreSuccessItem
- if *v == nil {
- sv = &types.DescribeFastSnapshotRestoreSuccessItem{}
- } 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("disabledTime", 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.DisabledTime = ptr.Time(t)
- }
-
- case strings.EqualFold("disablingTime", 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.DisablingTime = ptr.Time(t)
- }
-
- case strings.EqualFold("enabledTime", 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.EnabledTime = ptr.Time(t)
- }
-
- case strings.EqualFold("enablingTime", 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.EnablingTime = ptr.Time(t)
- }
-
- case strings.EqualFold("optimizingTime", 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.OptimizingTime = ptr.Time(t)
- }
-
- case strings.EqualFold("ownerAlias", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerAlias = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("snapshotId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SnapshotId = ptr.String(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.FastSnapshotRestoreStateCode(xtv)
- }
-
- case strings.EqualFold("stateTransitionReason", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StateTransitionReason = 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 awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessSet(v *[]types.DescribeFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.DescribeFastSnapshotRestoreSuccessItem
- if *v == nil {
- sv = make([]types.DescribeFastSnapshotRestoreSuccessItem, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.DescribeFastSnapshotRestoreSuccessItem
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(&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 awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessSetUnwrapped(v *[]types.DescribeFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error {
- var sv []types.DescribeFastSnapshotRestoreSuccessItem
- if *v == nil {
- sv = make([]types.DescribeFastSnapshotRestoreSuccessItem, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.DescribeFastSnapshotRestoreSuccessItem
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentDescribeFastSnapshotRestoreSuccessItem(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentDescribeFleetError(v **types.DescribeFleetError, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DescribeFleetError
- if *v == nil {
- sv = &types.DescribeFleetError{}
- } 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("errorCode", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ErrorCode = ptr.String(xtv)
- }
-
- case strings.EqualFold("errorMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ErrorMessage = ptr.String(xtv)
- }
-
- case strings.EqualFold("launchTemplateAndOverrides", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplateAndOverridesResponse(&sv.LaunchTemplateAndOverrides, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("lifecycle", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Lifecycle = types.InstanceLifecycle(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 awsEc2query_deserializeDocumentDescribeFleetsErrorSet(v *[]types.DescribeFleetError, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.DescribeFleetError
- if *v == nil {
- sv = make([]types.DescribeFleetError, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.DescribeFleetError
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentDescribeFleetError(&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 awsEc2query_deserializeDocumentDescribeFleetsErrorSetUnwrapped(v *[]types.DescribeFleetError, decoder smithyxml.NodeDecoder) error {
- var sv []types.DescribeFleetError
- if *v == nil {
- sv = make([]types.DescribeFleetError, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.DescribeFleetError
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentDescribeFleetError(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentDescribeFleetsInstances(v **types.DescribeFleetsInstances, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DescribeFleetsInstances
- if *v == nil {
- sv = &types.DescribeFleetsInstances{}
- } 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("instanceIds", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceIdsSet(&sv.InstanceIds, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = types.InstanceType(xtv)
- }
-
- case strings.EqualFold("launchTemplateAndOverrides", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplateAndOverridesResponse(&sv.LaunchTemplateAndOverrides, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("lifecycle", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Lifecycle = types.InstanceLifecycle(xtv)
- }
-
- case strings.EqualFold("platform", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Platform = types.PlatformValues(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 awsEc2query_deserializeDocumentDescribeFleetsInstancesSet(v *[]types.DescribeFleetsInstances, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.DescribeFleetsInstances
- if *v == nil {
- sv = make([]types.DescribeFleetsInstances, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.DescribeFleetsInstances
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentDescribeFleetsInstances(&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 awsEc2query_deserializeDocumentDescribeFleetsInstancesSetUnwrapped(v *[]types.DescribeFleetsInstances, decoder smithyxml.NodeDecoder) error {
- var sv []types.DescribeFleetsInstances
- if *v == nil {
- sv = make([]types.DescribeFleetsInstances, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.DescribeFleetsInstances
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentDescribeFleetsInstances(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentDestinationOptionsResponse(v **types.DestinationOptionsResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DestinationOptionsResponse
- if *v == nil {
- sv = &types.DestinationOptionsResponse{}
- } 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("fileFormat", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.FileFormat = types.DestinationFileFormat(xtv)
- }
-
- case strings.EqualFold("hiveCompatiblePartitions", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.HiveCompatiblePartitions = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("perHourPartition", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.PerHourPartition = 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 awsEc2query_deserializeDocumentDeviceOptions(v **types.DeviceOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DeviceOptions
- if *v == nil {
- sv = &types.DeviceOptions{}
- } 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("publicSigningKeyUrl", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PublicSigningKeyUrl = ptr.String(xtv)
- }
-
- case strings.EqualFold("tenantId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TenantId = 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 awsEc2query_deserializeDocumentDeviceTrustProviderTypeList(v *[]types.DeviceTrustProviderType, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.DeviceTrustProviderType
- if *v == nil {
- sv = make([]types.DeviceTrustProviderType, 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("item", t.Name.Local):
- var col types.DeviceTrustProviderType
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- col = types.DeviceTrustProviderType(xtv)
- }
- sv = append(sv, col)
-
- default:
- err = decoder.Decoder.Skip()
- if err != nil {
- return err
- }
-
- }
- decoder = originalDecoder
- }
- *v = sv
- return nil
-}
-
-func awsEc2query_deserializeDocumentDeviceTrustProviderTypeListUnwrapped(v *[]types.DeviceTrustProviderType, decoder smithyxml.NodeDecoder) error {
- var sv []types.DeviceTrustProviderType
- if *v == nil {
- sv = make([]types.DeviceTrustProviderType, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.DeviceTrustProviderType
- t := decoder.StartEl
- _ = t
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- mv = types.DeviceTrustProviderType(xtv)
- }
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentDhcpConfiguration(v **types.DhcpConfiguration, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DhcpConfiguration
- if *v == nil {
- sv = &types.DhcpConfiguration{}
- } 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("valueSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentDhcpConfigurationValueList(&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 awsEc2query_deserializeDocumentDhcpConfigurationList(v *[]types.DhcpConfiguration, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.DhcpConfiguration
- if *v == nil {
- sv = make([]types.DhcpConfiguration, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.DhcpConfiguration
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentDhcpConfiguration(&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 awsEc2query_deserializeDocumentDhcpConfigurationListUnwrapped(v *[]types.DhcpConfiguration, decoder smithyxml.NodeDecoder) error {
- var sv []types.DhcpConfiguration
- if *v == nil {
- sv = make([]types.DhcpConfiguration, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.DhcpConfiguration
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentDhcpConfiguration(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentDhcpConfigurationValueList(v *[]types.AttributeValue, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.AttributeValue
- if *v == nil {
- sv = make([]types.AttributeValue, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.AttributeValue
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentAttributeValue(&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 awsEc2query_deserializeDocumentDhcpConfigurationValueListUnwrapped(v *[]types.AttributeValue, decoder smithyxml.NodeDecoder) error {
- var sv []types.AttributeValue
- if *v == nil {
- sv = make([]types.AttributeValue, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.AttributeValue
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentAttributeValue(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentDhcpOptions(v **types.DhcpOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DhcpOptions
- if *v == nil {
- sv = &types.DhcpOptions{}
- } 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("dhcpConfigurationSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentDhcpConfigurationList(&sv.DhcpConfigurations, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("dhcpOptionsId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DhcpOptionsId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentDhcpOptionsList(v *[]types.DhcpOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.DhcpOptions
- if *v == nil {
- sv = make([]types.DhcpOptions, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.DhcpOptions
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentDhcpOptions(&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 awsEc2query_deserializeDocumentDhcpOptionsListUnwrapped(v *[]types.DhcpOptions, decoder smithyxml.NodeDecoder) error {
- var sv []types.DhcpOptions
- if *v == nil {
- sv = make([]types.DhcpOptions, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.DhcpOptions
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentDhcpOptions(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentDirectoryServiceAuthentication(v **types.DirectoryServiceAuthentication, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DirectoryServiceAuthentication
- if *v == nil {
- sv = &types.DirectoryServiceAuthentication{}
- } 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("directoryId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DirectoryId = 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 awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorItem(v **types.DisableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DisableFastSnapshotRestoreErrorItem
- if *v == nil {
- sv = &types.DisableFastSnapshotRestoreErrorItem{}
- } 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("fastSnapshotRestoreStateErrorSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorSet(&sv.FastSnapshotRestoreStateErrors, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("snapshotId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SnapshotId = 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 awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorSet(v *[]types.DisableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.DisableFastSnapshotRestoreErrorItem
- if *v == nil {
- sv = make([]types.DisableFastSnapshotRestoreErrorItem, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.DisableFastSnapshotRestoreErrorItem
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorItem(&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 awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorSetUnwrapped(v *[]types.DisableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error {
- var sv []types.DisableFastSnapshotRestoreErrorItem
- if *v == nil {
- sv = make([]types.DisableFastSnapshotRestoreErrorItem, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.DisableFastSnapshotRestoreErrorItem
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorItem(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateError(v **types.DisableFastSnapshotRestoreStateError, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DisableFastSnapshotRestoreStateError
- if *v == nil {
- sv = &types.DisableFastSnapshotRestoreStateError{}
- } 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 = ptr.String(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorItem(v **types.DisableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DisableFastSnapshotRestoreStateErrorItem
- if *v == nil {
- sv = &types.DisableFastSnapshotRestoreStateErrorItem{}
- } 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("error", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateError(&sv.Error, 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 awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorSet(v *[]types.DisableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.DisableFastSnapshotRestoreStateErrorItem
- if *v == nil {
- sv = make([]types.DisableFastSnapshotRestoreStateErrorItem, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.DisableFastSnapshotRestoreStateErrorItem
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorItem(&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 awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorSetUnwrapped(v *[]types.DisableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error {
- var sv []types.DisableFastSnapshotRestoreStateErrorItem
- if *v == nil {
- sv = make([]types.DisableFastSnapshotRestoreStateErrorItem, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.DisableFastSnapshotRestoreStateErrorItem
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreStateErrorItem(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(v **types.DisableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DisableFastSnapshotRestoreSuccessItem
- if *v == nil {
- sv = &types.DisableFastSnapshotRestoreSuccessItem{}
- } 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("disabledTime", 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.DisabledTime = ptr.Time(t)
- }
-
- case strings.EqualFold("disablingTime", 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.DisablingTime = ptr.Time(t)
- }
-
- case strings.EqualFold("enabledTime", 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.EnabledTime = ptr.Time(t)
- }
-
- case strings.EqualFold("enablingTime", 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.EnablingTime = ptr.Time(t)
- }
-
- case strings.EqualFold("optimizingTime", 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.OptimizingTime = ptr.Time(t)
- }
-
- case strings.EqualFold("ownerAlias", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerAlias = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("snapshotId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SnapshotId = ptr.String(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.FastSnapshotRestoreStateCode(xtv)
- }
-
- case strings.EqualFold("stateTransitionReason", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StateTransitionReason = 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 awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessSet(v *[]types.DisableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.DisableFastSnapshotRestoreSuccessItem
- if *v == nil {
- sv = make([]types.DisableFastSnapshotRestoreSuccessItem, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.DisableFastSnapshotRestoreSuccessItem
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(&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 awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessSetUnwrapped(v *[]types.DisableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error {
- var sv []types.DisableFastSnapshotRestoreSuccessItem
- if *v == nil {
- sv = make([]types.DisableFastSnapshotRestoreSuccessItem, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.DisableFastSnapshotRestoreSuccessItem
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessItem(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentDiskImageDescription(v **types.DiskImageDescription, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DiskImageDescription
- if *v == nil {
- sv = &types.DiskImageDescription{}
- } 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("checksum", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Checksum = ptr.String(xtv)
- }
-
- 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.DiskImageFormat(xtv)
- }
-
- case strings.EqualFold("importManifestUrl", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ImportManifestUrl = ptr.String(xtv)
- }
-
- case strings.EqualFold("size", 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.Size = ptr.Int64(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 awsEc2query_deserializeDocumentDiskImageVolumeDescription(v **types.DiskImageVolumeDescription, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DiskImageVolumeDescription
- if *v == nil {
- sv = &types.DiskImageVolumeDescription{}
- } 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("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("size", 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.Size = ptr.Int64(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 awsEc2query_deserializeDocumentDiskInfo(v **types.DiskInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DiskInfo
- if *v == nil {
- sv = &types.DiskInfo{}
- } 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("count", 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.Count = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("sizeInGB", 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.SizeInGB = ptr.Int64(i64)
- }
-
- 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.DiskType(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 awsEc2query_deserializeDocumentDiskInfoList(v *[]types.DiskInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.DiskInfo
- if *v == nil {
- sv = make([]types.DiskInfo, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.DiskInfo
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentDiskInfo(&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 awsEc2query_deserializeDocumentDiskInfoListUnwrapped(v *[]types.DiskInfo, decoder smithyxml.NodeDecoder) error {
- var sv []types.DiskInfo
- if *v == nil {
- sv = make([]types.DiskInfo, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.DiskInfo
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentDiskInfo(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentDnsEntry(v **types.DnsEntry, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DnsEntry
- if *v == nil {
- sv = &types.DnsEntry{}
- } 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("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("hostedZoneId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HostedZoneId = 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 awsEc2query_deserializeDocumentDnsEntrySet(v *[]types.DnsEntry, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.DnsEntry
- if *v == nil {
- sv = make([]types.DnsEntry, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.DnsEntry
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentDnsEntry(&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 awsEc2query_deserializeDocumentDnsEntrySetUnwrapped(v *[]types.DnsEntry, decoder smithyxml.NodeDecoder) error {
- var sv []types.DnsEntry
- if *v == nil {
- sv = make([]types.DnsEntry, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.DnsEntry
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentDnsEntry(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentDnsOptions(v **types.DnsOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.DnsOptions
- if *v == nil {
- sv = &types.DnsOptions{}
- } 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("dnsRecordIpType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DnsRecordIpType = types.DnsRecordIpType(xtv)
- }
-
- case strings.EqualFold("privateDnsOnlyForInboundResolverEndpoint", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.PrivateDnsOnlyForInboundResolverEndpoint = 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 awsEc2query_deserializeDocumentEbsBlockDevice(v **types.EbsBlockDevice, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.EbsBlockDevice
- if *v == nil {
- sv = &types.EbsBlockDevice{}
- } 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("AvailabilityZoneId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AvailabilityZoneId = ptr.String(xtv)
- }
-
- case strings.EqualFold("deleteOnTermination", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.DeleteOnTermination = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("encrypted", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Encrypted = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("iops", 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.Iops = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("kmsKeyId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.KmsKeyId = ptr.String(xtv)
- }
-
- case strings.EqualFold("outpostArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OutpostArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("snapshotId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SnapshotId = ptr.String(xtv)
- }
-
- case strings.EqualFold("throughput", 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.Throughput = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("VolumeInitializationRate", 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.VolumeInitializationRate = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("volumeSize", 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.VolumeSize = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("volumeType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VolumeType = types.VolumeType(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 awsEc2query_deserializeDocumentEbsBlockDeviceResponse(v **types.EbsBlockDeviceResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.EbsBlockDeviceResponse
- if *v == nil {
- sv = &types.EbsBlockDeviceResponse{}
- } 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("deleteOnTermination", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.DeleteOnTermination = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("encrypted", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Encrypted = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("iops", 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.Iops = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("kmsKeyId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.KmsKeyId = ptr.String(xtv)
- }
-
- case strings.EqualFold("snapshotId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SnapshotId = ptr.String(xtv)
- }
-
- case strings.EqualFold("throughput", 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.Throughput = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("volumeSize", 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.VolumeSize = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("volumeType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VolumeType = types.VolumeType(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 awsEc2query_deserializeDocumentEbsInfo(v **types.EbsInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.EbsInfo
- if *v == nil {
- sv = &types.EbsInfo{}
- } 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("ebsOptimizedInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentEbsOptimizedInfo(&sv.EbsOptimizedInfo, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ebsOptimizedSupport", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EbsOptimizedSupport = types.EbsOptimizedSupport(xtv)
- }
-
- case strings.EqualFold("encryptionSupport", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EncryptionSupport = types.EbsEncryptionSupport(xtv)
- }
-
- case strings.EqualFold("nvmeSupport", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NvmeSupport = types.EbsNvmeSupport(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 awsEc2query_deserializeDocumentEbsInstanceBlockDevice(v **types.EbsInstanceBlockDevice, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.EbsInstanceBlockDevice
- if *v == nil {
- sv = &types.EbsInstanceBlockDevice{}
- } 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("associatedResource", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AssociatedResource = ptr.String(xtv)
- }
-
- case strings.EqualFold("attachTime", 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.AttachTime = ptr.Time(t)
- }
-
- case strings.EqualFold("deleteOnTermination", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.DeleteOnTermination = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("operator", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil {
- return err
- }
-
- 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.AttachmentStatus(xtv)
- }
-
- case strings.EqualFold("volumeId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VolumeId = ptr.String(xtv)
- }
-
- case strings.EqualFold("volumeOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VolumeOwnerId = 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 awsEc2query_deserializeDocumentEbsOptimizedInfo(v **types.EbsOptimizedInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.EbsOptimizedInfo
- if *v == nil {
- sv = &types.EbsOptimizedInfo{}
- } 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("baselineBandwidthInMbps", 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.BaselineBandwidthInMbps = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("baselineIops", 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.BaselineIops = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("baselineThroughputInMBps", 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.BaselineThroughputInMBps = ptr.Float64(f64)
- }
-
- case strings.EqualFold("maximumBandwidthInMbps", 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.MaximumBandwidthInMbps = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("maximumIops", 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.MaximumIops = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("maximumThroughputInMBps", 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.MaximumThroughputInMBps = ptr.Float64(f64)
- }
-
- 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 awsEc2query_deserializeDocumentEbsStatusDetails(v **types.EbsStatusDetails, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.EbsStatusDetails
- if *v == nil {
- sv = &types.EbsStatusDetails{}
- } 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("impairedSince", 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.ImpairedSince = ptr.Time(t)
- }
-
- 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 = types.StatusName(xtv)
- }
-
- 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.StatusType(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 awsEc2query_deserializeDocumentEbsStatusDetailsList(v *[]types.EbsStatusDetails, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.EbsStatusDetails
- if *v == nil {
- sv = make([]types.EbsStatusDetails, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.EbsStatusDetails
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentEbsStatusDetails(&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 awsEc2query_deserializeDocumentEbsStatusDetailsListUnwrapped(v *[]types.EbsStatusDetails, decoder smithyxml.NodeDecoder) error {
- var sv []types.EbsStatusDetails
- if *v == nil {
- sv = make([]types.EbsStatusDetails, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.EbsStatusDetails
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentEbsStatusDetails(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentEbsStatusSummary(v **types.EbsStatusSummary, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.EbsStatusSummary
- if *v == nil {
- sv = &types.EbsStatusSummary{}
- } 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("details", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentEbsStatusDetailsList(&sv.Details, nodeDecoder); err != nil {
- return err
- }
-
- 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.SummaryStatus(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 awsEc2query_deserializeDocumentEc2InstanceConnectEndpoint(v **types.Ec2InstanceConnectEndpoint, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Ec2InstanceConnectEndpoint
- if *v == nil {
- sv = &types.Ec2InstanceConnectEndpoint{}
- } 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("createdAt", 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.CreatedAt = ptr.Time(t)
- }
-
- 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("fipsDnsName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.FipsDnsName = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceConnectEndpointArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceConnectEndpointArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceConnectEndpointId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceConnectEndpointId = 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("networkInterfaceIdSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentNetworkInterfaceIdSet(&sv.NetworkInterfaceIds, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("preserveClientIp", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.PreserveClientIp = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("securityGroupIdSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSecurityGroupIdSet(&sv.SecurityGroupIds, nodeDecoder); err != nil {
- return err
- }
-
- 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.Ec2InstanceConnectEndpointState(xtv)
- }
-
- case strings.EqualFold("stateMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StateMessage = ptr.String(xtv)
- }
-
- 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("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- 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 awsEc2query_deserializeDocumentEfaInfo(v **types.EfaInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.EfaInfo
- if *v == nil {
- sv = &types.EfaInfo{}
- } 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("maximumEfaInterfaces", 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.MaximumEfaInterfaces = 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 awsEc2query_deserializeDocumentEgressOnlyInternetGateway(v **types.EgressOnlyInternetGateway, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.EgressOnlyInternetGateway
- if *v == nil {
- sv = &types.EgressOnlyInternetGateway{}
- } 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("attachmentSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInternetGatewayAttachmentList(&sv.Attachments, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("egressOnlyInternetGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EgressOnlyInternetGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentEgressOnlyInternetGatewayList(v *[]types.EgressOnlyInternetGateway, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.EgressOnlyInternetGateway
- if *v == nil {
- sv = make([]types.EgressOnlyInternetGateway, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.EgressOnlyInternetGateway
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentEgressOnlyInternetGateway(&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 awsEc2query_deserializeDocumentEgressOnlyInternetGatewayListUnwrapped(v *[]types.EgressOnlyInternetGateway, decoder smithyxml.NodeDecoder) error {
- var sv []types.EgressOnlyInternetGateway
- if *v == nil {
- sv = make([]types.EgressOnlyInternetGateway, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.EgressOnlyInternetGateway
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentEgressOnlyInternetGateway(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentElasticGpuAssociation(v **types.ElasticGpuAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ElasticGpuAssociation
- if *v == nil {
- sv = &types.ElasticGpuAssociation{}
- } 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("elasticGpuAssociationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ElasticGpuAssociationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("elasticGpuAssociationState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ElasticGpuAssociationState = ptr.String(xtv)
- }
-
- case strings.EqualFold("elasticGpuAssociationTime", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ElasticGpuAssociationTime = ptr.String(xtv)
- }
-
- case strings.EqualFold("elasticGpuId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ElasticGpuId = 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 awsEc2query_deserializeDocumentElasticGpuAssociationList(v *[]types.ElasticGpuAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ElasticGpuAssociation
- if *v == nil {
- sv = make([]types.ElasticGpuAssociation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ElasticGpuAssociation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentElasticGpuAssociation(&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 awsEc2query_deserializeDocumentElasticGpuAssociationListUnwrapped(v *[]types.ElasticGpuAssociation, decoder smithyxml.NodeDecoder) error {
- var sv []types.ElasticGpuAssociation
- if *v == nil {
- sv = make([]types.ElasticGpuAssociation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ElasticGpuAssociation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentElasticGpuAssociation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentElasticGpuHealth(v **types.ElasticGpuHealth, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ElasticGpuHealth
- if *v == nil {
- sv = &types.ElasticGpuHealth{}
- } 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("status", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Status = types.ElasticGpuStatus(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 awsEc2query_deserializeDocumentElasticGpus(v **types.ElasticGpus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ElasticGpus
- if *v == nil {
- sv = &types.ElasticGpus{}
- } 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("elasticGpuHealth", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentElasticGpuHealth(&sv.ElasticGpuHealth, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("elasticGpuId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ElasticGpuId = ptr.String(xtv)
- }
-
- case strings.EqualFold("elasticGpuState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ElasticGpuState = types.ElasticGpuState(xtv)
- }
-
- case strings.EqualFold("elasticGpuType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ElasticGpuType = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentElasticGpuSet(v *[]types.ElasticGpus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ElasticGpus
- if *v == nil {
- sv = make([]types.ElasticGpus, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ElasticGpus
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentElasticGpus(&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 awsEc2query_deserializeDocumentElasticGpuSetUnwrapped(v *[]types.ElasticGpus, decoder smithyxml.NodeDecoder) error {
- var sv []types.ElasticGpus
- if *v == nil {
- sv = make([]types.ElasticGpus, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ElasticGpus
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentElasticGpus(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentElasticGpuSpecificationResponse(v **types.ElasticGpuSpecificationResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ElasticGpuSpecificationResponse
- if *v == nil {
- sv = &types.ElasticGpuSpecificationResponse{}
- } 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("type", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Type = 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 awsEc2query_deserializeDocumentElasticGpuSpecificationResponseList(v *[]types.ElasticGpuSpecificationResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ElasticGpuSpecificationResponse
- if *v == nil {
- sv = make([]types.ElasticGpuSpecificationResponse, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ElasticGpuSpecificationResponse
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentElasticGpuSpecificationResponse(&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 awsEc2query_deserializeDocumentElasticGpuSpecificationResponseListUnwrapped(v *[]types.ElasticGpuSpecificationResponse, decoder smithyxml.NodeDecoder) error {
- var sv []types.ElasticGpuSpecificationResponse
- if *v == nil {
- sv = make([]types.ElasticGpuSpecificationResponse, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ElasticGpuSpecificationResponse
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentElasticGpuSpecificationResponse(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociation(v **types.ElasticInferenceAcceleratorAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ElasticInferenceAcceleratorAssociation
- if *v == nil {
- sv = &types.ElasticInferenceAcceleratorAssociation{}
- } 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("elasticInferenceAcceleratorArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ElasticInferenceAcceleratorArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("elasticInferenceAcceleratorAssociationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ElasticInferenceAcceleratorAssociationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("elasticInferenceAcceleratorAssociationState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ElasticInferenceAcceleratorAssociationState = ptr.String(xtv)
- }
-
- case strings.EqualFold("elasticInferenceAcceleratorAssociationTime", 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.ElasticInferenceAcceleratorAssociationTime = ptr.Time(t)
- }
-
- 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 awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociationList(v *[]types.ElasticInferenceAcceleratorAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ElasticInferenceAcceleratorAssociation
- if *v == nil {
- sv = make([]types.ElasticInferenceAcceleratorAssociation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ElasticInferenceAcceleratorAssociation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociation(&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 awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociationListUnwrapped(v *[]types.ElasticInferenceAcceleratorAssociation, decoder smithyxml.NodeDecoder) error {
- var sv []types.ElasticInferenceAcceleratorAssociation
- if *v == nil {
- sv = make([]types.ElasticInferenceAcceleratorAssociation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ElasticInferenceAcceleratorAssociation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorItem(v **types.EnableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.EnableFastSnapshotRestoreErrorItem
- if *v == nil {
- sv = &types.EnableFastSnapshotRestoreErrorItem{}
- } 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("fastSnapshotRestoreStateErrorSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorSet(&sv.FastSnapshotRestoreStateErrors, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("snapshotId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SnapshotId = 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 awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorSet(v *[]types.EnableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.EnableFastSnapshotRestoreErrorItem
- if *v == nil {
- sv = make([]types.EnableFastSnapshotRestoreErrorItem, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.EnableFastSnapshotRestoreErrorItem
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorItem(&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 awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorSetUnwrapped(v *[]types.EnableFastSnapshotRestoreErrorItem, decoder smithyxml.NodeDecoder) error {
- var sv []types.EnableFastSnapshotRestoreErrorItem
- if *v == nil {
- sv = make([]types.EnableFastSnapshotRestoreErrorItem, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.EnableFastSnapshotRestoreErrorItem
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreErrorItem(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateError(v **types.EnableFastSnapshotRestoreStateError, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.EnableFastSnapshotRestoreStateError
- if *v == nil {
- sv = &types.EnableFastSnapshotRestoreStateError{}
- } 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 = ptr.String(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorItem(v **types.EnableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.EnableFastSnapshotRestoreStateErrorItem
- if *v == nil {
- sv = &types.EnableFastSnapshotRestoreStateErrorItem{}
- } 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("error", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateError(&sv.Error, 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 awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorSet(v *[]types.EnableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.EnableFastSnapshotRestoreStateErrorItem
- if *v == nil {
- sv = make([]types.EnableFastSnapshotRestoreStateErrorItem, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.EnableFastSnapshotRestoreStateErrorItem
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorItem(&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 awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorSetUnwrapped(v *[]types.EnableFastSnapshotRestoreStateErrorItem, decoder smithyxml.NodeDecoder) error {
- var sv []types.EnableFastSnapshotRestoreStateErrorItem
- if *v == nil {
- sv = make([]types.EnableFastSnapshotRestoreStateErrorItem, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.EnableFastSnapshotRestoreStateErrorItem
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreStateErrorItem(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(v **types.EnableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.EnableFastSnapshotRestoreSuccessItem
- if *v == nil {
- sv = &types.EnableFastSnapshotRestoreSuccessItem{}
- } 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("disabledTime", 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.DisabledTime = ptr.Time(t)
- }
-
- case strings.EqualFold("disablingTime", 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.DisablingTime = ptr.Time(t)
- }
-
- case strings.EqualFold("enabledTime", 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.EnabledTime = ptr.Time(t)
- }
-
- case strings.EqualFold("enablingTime", 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.EnablingTime = ptr.Time(t)
- }
-
- case strings.EqualFold("optimizingTime", 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.OptimizingTime = ptr.Time(t)
- }
-
- case strings.EqualFold("ownerAlias", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerAlias = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("snapshotId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SnapshotId = ptr.String(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.FastSnapshotRestoreStateCode(xtv)
- }
-
- case strings.EqualFold("stateTransitionReason", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StateTransitionReason = 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 awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessSet(v *[]types.EnableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.EnableFastSnapshotRestoreSuccessItem
- if *v == nil {
- sv = make([]types.EnableFastSnapshotRestoreSuccessItem, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.EnableFastSnapshotRestoreSuccessItem
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(&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 awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessSetUnwrapped(v *[]types.EnableFastSnapshotRestoreSuccessItem, decoder smithyxml.NodeDecoder) error {
- var sv []types.EnableFastSnapshotRestoreSuccessItem
- if *v == nil {
- sv = make([]types.EnableFastSnapshotRestoreSuccessItem, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.EnableFastSnapshotRestoreSuccessItem
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentEnableFastSnapshotRestoreSuccessItem(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentEnaSrdSpecificationRequest(v **types.EnaSrdSpecificationRequest, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.EnaSrdSpecificationRequest
- if *v == nil {
- sv = &types.EnaSrdSpecificationRequest{}
- } 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("EnaSrdEnabled", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EnaSrdEnabled = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("EnaSrdUdpSpecification", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentEnaSrdUdpSpecificationRequest(&sv.EnaSrdUdpSpecification, 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 awsEc2query_deserializeDocumentEnaSrdUdpSpecificationRequest(v **types.EnaSrdUdpSpecificationRequest, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.EnaSrdUdpSpecificationRequest
- if *v == nil {
- sv = &types.EnaSrdUdpSpecificationRequest{}
- } 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("EnaSrdUdpEnabled", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EnaSrdUdpEnabled = 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 awsEc2query_deserializeDocumentEnclaveOptions(v **types.EnclaveOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.EnclaveOptions
- if *v == nil {
- sv = &types.EnclaveOptions{}
- } 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("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 Boolean 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 awsEc2query_deserializeDocumentEndpointSet(v *[]types.ClientVpnEndpoint, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ClientVpnEndpoint
- if *v == nil {
- sv = make([]types.ClientVpnEndpoint, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ClientVpnEndpoint
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentClientVpnEndpoint(&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 awsEc2query_deserializeDocumentEndpointSetUnwrapped(v *[]types.ClientVpnEndpoint, decoder smithyxml.NodeDecoder) error {
- var sv []types.ClientVpnEndpoint
- if *v == nil {
- sv = make([]types.ClientVpnEndpoint, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ClientVpnEndpoint
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentClientVpnEndpoint(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentErrorSet(v *[]types.ValidationError, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ValidationError
- if *v == nil {
- sv = make([]types.ValidationError, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ValidationError
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentValidationError(&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 awsEc2query_deserializeDocumentErrorSetUnwrapped(v *[]types.ValidationError, decoder smithyxml.NodeDecoder) error {
- var sv []types.ValidationError
- if *v == nil {
- sv = make([]types.ValidationError, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ValidationError
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentValidationError(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentEventInformation(v **types.EventInformation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.EventInformation
- if *v == nil {
- sv = &types.EventInformation{}
- } 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("eventDescription", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EventDescription = ptr.String(xtv)
- }
-
- case strings.EqualFold("eventSubType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EventSubType = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = 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 awsEc2query_deserializeDocumentExcludedInstanceTypeSet(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("item", 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 awsEc2query_deserializeDocumentExcludedInstanceTypeSetUnwrapped(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 awsEc2query_deserializeDocumentExplanation(v **types.Explanation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Explanation
- if *v == nil {
- sv = &types.Explanation{}
- } 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("acl", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.Acl, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("aclRule", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisAclRule(&sv.AclRule, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("address", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Address = ptr.String(xtv)
- }
-
- case strings.EqualFold("addressSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpAddressList(&sv.Addresses, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("attachedTo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.AttachedTo, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("availabilityZoneIdSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.AvailabilityZoneIds, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("availabilityZoneSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.AvailabilityZones, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("cidrSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.Cidrs, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("classicLoadBalancerListener", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisLoadBalancerListener(&sv.ClassicLoadBalancerListener, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("component", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.Component, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("componentAccount", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ComponentAccount = ptr.String(xtv)
- }
-
- case strings.EqualFold("componentRegion", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ComponentRegion = ptr.String(xtv)
- }
-
- case strings.EqualFold("customerGateway", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.CustomerGateway, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("destination", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.Destination, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("destinationVpc", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.DestinationVpc, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("direction", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Direction = ptr.String(xtv)
- }
-
- case strings.EqualFold("elasticLoadBalancerListener", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.ElasticLoadBalancerListener, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("explanationCode", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ExplanationCode = ptr.String(xtv)
- }
-
- case strings.EqualFold("firewallStatefulRule", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentFirewallStatefulRule(&sv.FirewallStatefulRule, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("firewallStatelessRule", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentFirewallStatelessRule(&sv.FirewallStatelessRule, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ingressRouteTable", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.IngressRouteTable, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("internetGateway", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.InternetGateway, 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("loadBalancerListenerPort", 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.LoadBalancerListenerPort = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("loadBalancerTarget", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisLoadBalancerTarget(&sv.LoadBalancerTarget, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("loadBalancerTargetGroup", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.LoadBalancerTargetGroup, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("loadBalancerTargetGroupSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponentList(&sv.LoadBalancerTargetGroups, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("loadBalancerTargetPort", 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.LoadBalancerTargetPort = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("missingComponent", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.MissingComponent = ptr.String(xtv)
- }
-
- case strings.EqualFold("natGateway", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.NatGateway, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("networkInterface", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.NetworkInterface, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("packetField", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PacketField = 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("portRangeSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPortRangeList(&sv.PortRanges, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("prefixList", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.PrefixList, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("protocolSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentStringList(&sv.Protocols, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("routeTable", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.RouteTable, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("routeTableRoute", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisRouteTableRoute(&sv.RouteTableRoute, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("securityGroup", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.SecurityGroup, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("securityGroupRule", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisSecurityGroupRule(&sv.SecurityGroupRule, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("securityGroupSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponentList(&sv.SecurityGroups, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("sourceVpc", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.SourceVpc, nodeDecoder); err != nil {
- return err
- }
-
- 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 = ptr.String(xtv)
- }
-
- case strings.EqualFold("subnet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.Subnet, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("subnetRouteTable", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.SubnetRouteTable, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transitGateway", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.TransitGateway, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transitGatewayAttachment", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.TransitGatewayAttachment, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transitGatewayRouteTable", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.TransitGatewayRouteTable, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transitGatewayRouteTableRoute", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTransitGatewayRouteTableRoute(&sv.TransitGatewayRouteTableRoute, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("vpc", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.Vpc, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("vpcEndpoint", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.VpcEndpoint, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("vpcPeeringConnection", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.VpcPeeringConnection, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("vpnConnection", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.VpnConnection, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("vpnGateway", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.VpnGateway, 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 awsEc2query_deserializeDocumentExplanationList(v *[]types.Explanation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Explanation
- if *v == nil {
- sv = make([]types.Explanation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Explanation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentExplanation(&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 awsEc2query_deserializeDocumentExplanationListUnwrapped(v *[]types.Explanation, decoder smithyxml.NodeDecoder) error {
- var sv []types.Explanation
- if *v == nil {
- sv = make([]types.Explanation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Explanation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentExplanation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentExportImageTask(v **types.ExportImageTask, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ExportImageTask
- if *v == nil {
- sv = &types.ExportImageTask{}
- } 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("exportImageTaskId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ExportImageTaskId = ptr.String(xtv)
- }
-
- case strings.EqualFold("imageId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ImageId = ptr.String(xtv)
- }
-
- case strings.EqualFold("progress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Progress = ptr.String(xtv)
- }
-
- case strings.EqualFold("s3ExportLocation", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentExportTaskS3Location(&sv.S3ExportLocation, nodeDecoder); err != nil {
- return err
- }
-
- 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 = ptr.String(xtv)
- }
-
- case strings.EqualFold("statusMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StatusMessage = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentExportImageTaskList(v *[]types.ExportImageTask, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ExportImageTask
- if *v == nil {
- sv = make([]types.ExportImageTask, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ExportImageTask
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentExportImageTask(&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 awsEc2query_deserializeDocumentExportImageTaskListUnwrapped(v *[]types.ExportImageTask, decoder smithyxml.NodeDecoder) error {
- var sv []types.ExportImageTask
- if *v == nil {
- sv = make([]types.ExportImageTask, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ExportImageTask
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentExportImageTask(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentExportTask(v **types.ExportTask, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ExportTask
- if *v == nil {
- sv = &types.ExportTask{}
- } 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("exportTaskId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ExportTaskId = ptr.String(xtv)
- }
-
- case strings.EqualFold("exportToS3", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentExportToS3Task(&sv.ExportToS3Task, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instanceExport", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceExportDetails(&sv.InstanceExportDetails, nodeDecoder); err != nil {
- return err
- }
-
- 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.ExportTaskState(xtv)
- }
-
- case strings.EqualFold("statusMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StatusMessage = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentExportTaskList(v *[]types.ExportTask, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ExportTask
- if *v == nil {
- sv = make([]types.ExportTask, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ExportTask
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentExportTask(&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 awsEc2query_deserializeDocumentExportTaskListUnwrapped(v *[]types.ExportTask, decoder smithyxml.NodeDecoder) error {
- var sv []types.ExportTask
- if *v == nil {
- sv = make([]types.ExportTask, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ExportTask
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentExportTask(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentExportTaskS3Location(v **types.ExportTaskS3Location, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ExportTaskS3Location
- if *v == nil {
- sv = &types.ExportTaskS3Location{}
- } 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("s3Bucket", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.S3Bucket = ptr.String(xtv)
- }
-
- case strings.EqualFold("s3Prefix", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.S3Prefix = 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 awsEc2query_deserializeDocumentExportToS3Task(v **types.ExportToS3Task, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ExportToS3Task
- if *v == nil {
- sv = &types.ExportToS3Task{}
- } 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("containerFormat", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ContainerFormat = types.ContainerFormat(xtv)
- }
-
- case strings.EqualFold("diskImageFormat", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DiskImageFormat = types.DiskImageFormat(xtv)
- }
-
- case strings.EqualFold("s3Bucket", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.S3Bucket = ptr.String(xtv)
- }
-
- case strings.EqualFold("s3Key", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.S3Key = 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 awsEc2query_deserializeDocumentFailedCapacityReservationFleetCancellationResult(v **types.FailedCapacityReservationFleetCancellationResult, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.FailedCapacityReservationFleetCancellationResult
- if *v == nil {
- sv = &types.FailedCapacityReservationFleetCancellationResult{}
- } 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("cancelCapacityReservationFleetError", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentCancelCapacityReservationFleetError(&sv.CancelCapacityReservationFleetError, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("capacityReservationFleetId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityReservationFleetId = 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 awsEc2query_deserializeDocumentFailedCapacityReservationFleetCancellationResultSet(v *[]types.FailedCapacityReservationFleetCancellationResult, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.FailedCapacityReservationFleetCancellationResult
- if *v == nil {
- sv = make([]types.FailedCapacityReservationFleetCancellationResult, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.FailedCapacityReservationFleetCancellationResult
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentFailedCapacityReservationFleetCancellationResult(&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 awsEc2query_deserializeDocumentFailedCapacityReservationFleetCancellationResultSetUnwrapped(v *[]types.FailedCapacityReservationFleetCancellationResult, decoder smithyxml.NodeDecoder) error {
- var sv []types.FailedCapacityReservationFleetCancellationResult
- if *v == nil {
- sv = make([]types.FailedCapacityReservationFleetCancellationResult, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.FailedCapacityReservationFleetCancellationResult
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentFailedCapacityReservationFleetCancellationResult(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletion(v **types.FailedQueuedPurchaseDeletion, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.FailedQueuedPurchaseDeletion
- if *v == nil {
- sv = &types.FailedQueuedPurchaseDeletion{}
- } 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("error", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentDeleteQueuedReservedInstancesError(&sv.Error, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("reservedInstancesId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ReservedInstancesId = 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 awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletionSet(v *[]types.FailedQueuedPurchaseDeletion, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.FailedQueuedPurchaseDeletion
- if *v == nil {
- sv = make([]types.FailedQueuedPurchaseDeletion, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.FailedQueuedPurchaseDeletion
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletion(&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 awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletionSetUnwrapped(v *[]types.FailedQueuedPurchaseDeletion, decoder smithyxml.NodeDecoder) error {
- var sv []types.FailedQueuedPurchaseDeletion
- if *v == nil {
- sv = make([]types.FailedQueuedPurchaseDeletion, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.FailedQueuedPurchaseDeletion
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentFailedQueuedPurchaseDeletion(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentFastLaunchLaunchTemplateSpecificationResponse(v **types.FastLaunchLaunchTemplateSpecificationResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.FastLaunchLaunchTemplateSpecificationResponse
- if *v == nil {
- sv = &types.FastLaunchLaunchTemplateSpecificationResponse{}
- } 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("launchTemplateId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LaunchTemplateId = ptr.String(xtv)
- }
-
- case strings.EqualFold("launchTemplateName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LaunchTemplateName = ptr.String(xtv)
- }
-
- case strings.EqualFold("version", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Version = 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 awsEc2query_deserializeDocumentFastLaunchSnapshotConfigurationResponse(v **types.FastLaunchSnapshotConfigurationResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.FastLaunchSnapshotConfigurationResponse
- if *v == nil {
- sv = &types.FastLaunchSnapshotConfigurationResponse{}
- } 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("targetResourceCount", 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.TargetResourceCount = 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 awsEc2query_deserializeDocumentFederatedAuthentication(v **types.FederatedAuthentication, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.FederatedAuthentication
- if *v == nil {
- sv = &types.FederatedAuthentication{}
- } 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("samlProviderArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SamlProviderArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("selfServiceSamlProviderArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SelfServiceSamlProviderArn = 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 awsEc2query_deserializeDocumentFilterPortRange(v **types.FilterPortRange, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.FilterPortRange
- if *v == nil {
- sv = &types.FilterPortRange{}
- } 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("fromPort", 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.FromPort = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("toPort", 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.ToPort = 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 awsEc2query_deserializeDocumentFirewallStatefulRule(v **types.FirewallStatefulRule, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.FirewallStatefulRule
- if *v == nil {
- sv = &types.FirewallStatefulRule{}
- } 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("destinationPortSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPortRangeList(&sv.DestinationPorts, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("destinationSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.Destinations, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("direction", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Direction = 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("ruleAction", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RuleAction = ptr.String(xtv)
- }
-
- case strings.EqualFold("ruleGroupArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RuleGroupArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("sourcePortSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPortRangeList(&sv.SourcePorts, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("sourceSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.Sources, 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 awsEc2query_deserializeDocumentFirewallStatelessRule(v **types.FirewallStatelessRule, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.FirewallStatelessRule
- if *v == nil {
- sv = &types.FirewallStatelessRule{}
- } 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("destinationPortSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPortRangeList(&sv.DestinationPorts, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("destinationSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.Destinations, nodeDecoder); err != nil {
- return err
- }
-
- 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))
- }
-
- case strings.EqualFold("protocolSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentProtocolIntList(&sv.Protocols, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ruleAction", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RuleAction = ptr.String(xtv)
- }
-
- case strings.EqualFold("ruleGroupArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RuleGroupArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("sourcePortSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPortRangeList(&sv.SourcePorts, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("sourceSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.Sources, 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 awsEc2query_deserializeDocumentFleetCapacityReservation(v **types.FleetCapacityReservation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.FleetCapacityReservation
- if *v == nil {
- sv = &types.FleetCapacityReservation{}
- } 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("availabilityZoneId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AvailabilityZoneId = ptr.String(xtv)
- }
-
- case strings.EqualFold("capacityReservationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityReservationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("createDate", 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.CreateDate = ptr.Time(t)
- }
-
- case strings.EqualFold("ebsOptimized", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EbsOptimized = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("fulfilledCapacity", 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.FulfilledCapacity = ptr.Float64(f64)
- }
-
- case strings.EqualFold("instancePlatform", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstancePlatform = types.CapacityReservationInstancePlatform(xtv)
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = types.InstanceType(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))
- }
-
- case strings.EqualFold("totalInstanceCount", 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.TotalInstanceCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("weight", 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.Weight = ptr.Float64(f64)
- }
-
- 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 awsEc2query_deserializeDocumentFleetCapacityReservationSet(v *[]types.FleetCapacityReservation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.FleetCapacityReservation
- if *v == nil {
- sv = make([]types.FleetCapacityReservation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.FleetCapacityReservation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentFleetCapacityReservation(&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 awsEc2query_deserializeDocumentFleetCapacityReservationSetUnwrapped(v *[]types.FleetCapacityReservation, decoder smithyxml.NodeDecoder) error {
- var sv []types.FleetCapacityReservation
- if *v == nil {
- sv = make([]types.FleetCapacityReservation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.FleetCapacityReservation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentFleetCapacityReservation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.FleetData
- if *v == nil {
- sv = &types.FleetData{}
- } 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("activityStatus", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ActivityStatus = types.FleetActivityStatus(xtv)
- }
-
- case strings.EqualFold("clientToken", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ClientToken = ptr.String(xtv)
- }
-
- case strings.EqualFold("context", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Context = ptr.String(xtv)
- }
-
- case strings.EqualFold("createTime", 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.CreateTime = ptr.Time(t)
- }
-
- case strings.EqualFold("errorSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentDescribeFleetsErrorSet(&sv.Errors, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("excessCapacityTerminationPolicy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ExcessCapacityTerminationPolicy = types.FleetExcessCapacityTerminationPolicy(xtv)
- }
-
- case strings.EqualFold("fleetId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.FleetId = ptr.String(xtv)
- }
-
- case strings.EqualFold("fleetState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.FleetState = types.FleetStateCode(xtv)
- }
-
- case strings.EqualFold("fulfilledCapacity", 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.FulfilledCapacity = ptr.Float64(f64)
- }
-
- case strings.EqualFold("fulfilledOnDemandCapacity", 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.FulfilledOnDemandCapacity = ptr.Float64(f64)
- }
-
- case strings.EqualFold("fleetInstanceSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentDescribeFleetsInstancesSet(&sv.Instances, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("launchTemplateConfigs", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentFleetLaunchTemplateConfigList(&sv.LaunchTemplateConfigs, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("onDemandOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentOnDemandOptions(&sv.OnDemandOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("replaceUnhealthyInstances", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.ReplaceUnhealthyInstances = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("spotOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSpotOptions(&sv.SpotOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("targetCapacitySpecification", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTargetCapacitySpecification(&sv.TargetCapacitySpecification, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("terminateInstancesWithExpiration", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.TerminateInstancesWithExpiration = ptr.Bool(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.FleetType(xtv)
- }
-
- case strings.EqualFold("validFrom", 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.ValidFrom = ptr.Time(t)
- }
-
- case strings.EqualFold("validUntil", 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.ValidUntil = ptr.Time(t)
- }
-
- 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 awsEc2query_deserializeDocumentFleetLaunchTemplateConfig(v **types.FleetLaunchTemplateConfig, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.FleetLaunchTemplateConfig
- if *v == nil {
- sv = &types.FleetLaunchTemplateConfig{}
- } 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("launchTemplateSpecification", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentFleetLaunchTemplateSpecification(&sv.LaunchTemplateSpecification, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("overrides", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentFleetLaunchTemplateOverridesList(&sv.Overrides, 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 awsEc2query_deserializeDocumentFleetLaunchTemplateConfigList(v *[]types.FleetLaunchTemplateConfig, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.FleetLaunchTemplateConfig
- if *v == nil {
- sv = make([]types.FleetLaunchTemplateConfig, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.FleetLaunchTemplateConfig
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentFleetLaunchTemplateConfig(&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 awsEc2query_deserializeDocumentFleetLaunchTemplateConfigListUnwrapped(v *[]types.FleetLaunchTemplateConfig, decoder smithyxml.NodeDecoder) error {
- var sv []types.FleetLaunchTemplateConfig
- if *v == nil {
- sv = make([]types.FleetLaunchTemplateConfig, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.FleetLaunchTemplateConfig
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentFleetLaunchTemplateConfig(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(v **types.FleetLaunchTemplateOverrides, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.FleetLaunchTemplateOverrides
- if *v == nil {
- sv = &types.FleetLaunchTemplateOverrides{}
- } 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("blockDeviceMappingSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentBlockDeviceMappingResponseList(&sv.BlockDeviceMappings, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("imageId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ImageId = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceRequirements", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceRequirements(&sv.InstanceRequirements, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = types.InstanceType(xtv)
- }
-
- case strings.EqualFold("maxPrice", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.MaxPrice = ptr.String(xtv)
- }
-
- case strings.EqualFold("placement", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPlacementResponse(&sv.Placement, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("priority", 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.Priority = ptr.Float64(f64)
- }
-
- 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("weightedCapacity", 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.WeightedCapacity = ptr.Float64(f64)
- }
-
- 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 awsEc2query_deserializeDocumentFleetLaunchTemplateOverridesList(v *[]types.FleetLaunchTemplateOverrides, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.FleetLaunchTemplateOverrides
- if *v == nil {
- sv = make([]types.FleetLaunchTemplateOverrides, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.FleetLaunchTemplateOverrides
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(&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 awsEc2query_deserializeDocumentFleetLaunchTemplateOverridesListUnwrapped(v *[]types.FleetLaunchTemplateOverrides, decoder smithyxml.NodeDecoder) error {
- var sv []types.FleetLaunchTemplateOverrides
- if *v == nil {
- sv = make([]types.FleetLaunchTemplateOverrides, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.FleetLaunchTemplateOverrides
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentFleetLaunchTemplateSpecification(v **types.FleetLaunchTemplateSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.FleetLaunchTemplateSpecification
- if *v == nil {
- sv = &types.FleetLaunchTemplateSpecification{}
- } 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("launchTemplateId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LaunchTemplateId = ptr.String(xtv)
- }
-
- case strings.EqualFold("launchTemplateName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LaunchTemplateName = ptr.String(xtv)
- }
-
- case strings.EqualFold("version", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Version = 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 awsEc2query_deserializeDocumentFleetSet(v *[]types.FleetData, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.FleetData
- if *v == nil {
- sv = make([]types.FleetData, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.FleetData
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentFleetData(&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 awsEc2query_deserializeDocumentFleetSetUnwrapped(v *[]types.FleetData, decoder smithyxml.NodeDecoder) error {
- var sv []types.FleetData
- if *v == nil {
- sv = make([]types.FleetData, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.FleetData
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentFleetData(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentFleetSpotCapacityRebalance(v **types.FleetSpotCapacityRebalance, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.FleetSpotCapacityRebalance
- if *v == nil {
- sv = &types.FleetSpotCapacityRebalance{}
- } 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("replacementStrategy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ReplacementStrategy = types.FleetReplacementStrategy(xtv)
- }
-
- case strings.EqualFold("terminationDelay", 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.TerminationDelay = 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 awsEc2query_deserializeDocumentFleetSpotMaintenanceStrategies(v **types.FleetSpotMaintenanceStrategies, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.FleetSpotMaintenanceStrategies
- if *v == nil {
- sv = &types.FleetSpotMaintenanceStrategies{}
- } 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("capacityRebalance", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentFleetSpotCapacityRebalance(&sv.CapacityRebalance, 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 awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.FlowLog
- if *v == nil {
- sv = &types.FlowLog{}
- } 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("creationTime", 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.CreationTime = ptr.Time(t)
- }
-
- case strings.EqualFold("deliverCrossAccountRole", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DeliverCrossAccountRole = ptr.String(xtv)
- }
-
- case strings.EqualFold("deliverLogsErrorMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DeliverLogsErrorMessage = ptr.String(xtv)
- }
-
- case strings.EqualFold("deliverLogsPermissionArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DeliverLogsPermissionArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("deliverLogsStatus", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DeliverLogsStatus = ptr.String(xtv)
- }
-
- case strings.EqualFold("destinationOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentDestinationOptionsResponse(&sv.DestinationOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("flowLogId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.FlowLogId = ptr.String(xtv)
- }
-
- case strings.EqualFold("flowLogStatus", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.FlowLogStatus = ptr.String(xtv)
- }
-
- case strings.EqualFold("logDestination", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LogDestination = ptr.String(xtv)
- }
-
- case strings.EqualFold("logDestinationType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LogDestinationType = types.LogDestinationType(xtv)
- }
-
- case strings.EqualFold("logFormat", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LogFormat = ptr.String(xtv)
- }
-
- case strings.EqualFold("logGroupName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LogGroupName = ptr.String(xtv)
- }
-
- case strings.EqualFold("maxAggregationInterval", 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.MaxAggregationInterval = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("resourceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("trafficType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TrafficType = types.TrafficType(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 awsEc2query_deserializeDocumentFlowLogSet(v *[]types.FlowLog, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.FlowLog
- if *v == nil {
- sv = make([]types.FlowLog, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.FlowLog
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentFlowLog(&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 awsEc2query_deserializeDocumentFlowLogSetUnwrapped(v *[]types.FlowLog, decoder smithyxml.NodeDecoder) error {
- var sv []types.FlowLog
- if *v == nil {
- sv = make([]types.FlowLog, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.FlowLog
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentFlowLog(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentFpgaDeviceInfo(v **types.FpgaDeviceInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.FpgaDeviceInfo
- if *v == nil {
- sv = &types.FpgaDeviceInfo{}
- } 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("count", 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.Count = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("manufacturer", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Manufacturer = ptr.String(xtv)
- }
-
- case strings.EqualFold("memoryInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentFpgaDeviceMemoryInfo(&sv.MemoryInfo, 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)
- }
-
- 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 awsEc2query_deserializeDocumentFpgaDeviceInfoList(v *[]types.FpgaDeviceInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.FpgaDeviceInfo
- if *v == nil {
- sv = make([]types.FpgaDeviceInfo, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.FpgaDeviceInfo
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentFpgaDeviceInfo(&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 awsEc2query_deserializeDocumentFpgaDeviceInfoListUnwrapped(v *[]types.FpgaDeviceInfo, decoder smithyxml.NodeDecoder) error {
- var sv []types.FpgaDeviceInfo
- if *v == nil {
- sv = make([]types.FpgaDeviceInfo, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.FpgaDeviceInfo
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentFpgaDeviceInfo(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentFpgaDeviceMemoryInfo(v **types.FpgaDeviceMemoryInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.FpgaDeviceMemoryInfo
- if *v == nil {
- sv = &types.FpgaDeviceMemoryInfo{}
- } 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("sizeInMiB", 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.SizeInMiB = 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 awsEc2query_deserializeDocumentFpgaImage(v **types.FpgaImage, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.FpgaImage
- if *v == nil {
- sv = &types.FpgaImage{}
- } 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("createTime", 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.CreateTime = ptr.Time(t)
- }
-
- case strings.EqualFold("dataRetentionSupport", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.DataRetentionSupport = ptr.Bool(xtv)
- }
-
- 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("fpgaImageGlobalId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.FpgaImageGlobalId = ptr.String(xtv)
- }
-
- case strings.EqualFold("fpgaImageId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.FpgaImageId = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceTypes", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceTypesList(&sv.InstanceTypes, 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("ownerAlias", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerAlias = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("pciId", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPciId(&sv.PciId, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("productCodes", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentProductCodeList(&sv.ProductCodes, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("public", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Public = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("shellVersion", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ShellVersion = ptr.String(xtv)
- }
-
- case strings.EqualFold("state", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentFpgaImageState(&sv.State, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tags", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("updateTime", 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.UpdateTime = ptr.Time(t)
- }
-
- 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 awsEc2query_deserializeDocumentFpgaImageAttribute(v **types.FpgaImageAttribute, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.FpgaImageAttribute
- if *v == nil {
- sv = &types.FpgaImageAttribute{}
- } 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("fpgaImageId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.FpgaImageId = ptr.String(xtv)
- }
-
- case strings.EqualFold("loadPermissions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLoadPermissionList(&sv.LoadPermissions, 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("productCodes", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentProductCodeList(&sv.ProductCodes, 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 awsEc2query_deserializeDocumentFpgaImageList(v *[]types.FpgaImage, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.FpgaImage
- if *v == nil {
- sv = make([]types.FpgaImage, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.FpgaImage
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentFpgaImage(&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 awsEc2query_deserializeDocumentFpgaImageListUnwrapped(v *[]types.FpgaImage, decoder smithyxml.NodeDecoder) error {
- var sv []types.FpgaImage
- if *v == nil {
- sv = make([]types.FpgaImage, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.FpgaImage
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentFpgaImage(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentFpgaImageState(v **types.FpgaImageState, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.FpgaImageState
- if *v == nil {
- sv = &types.FpgaImageState{}
- } 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.FpgaImageStateCode(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentFpgaInfo(v **types.FpgaInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.FpgaInfo
- if *v == nil {
- sv = &types.FpgaInfo{}
- } 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("fpgas", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentFpgaDeviceInfoList(&sv.Fpgas, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("totalFpgaMemoryInMiB", 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.TotalFpgaMemoryInMiB = 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 awsEc2query_deserializeDocumentGpuDeviceInfo(v **types.GpuDeviceInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.GpuDeviceInfo
- if *v == nil {
- sv = &types.GpuDeviceInfo{}
- } 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("count", 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.Count = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("manufacturer", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Manufacturer = ptr.String(xtv)
- }
-
- case strings.EqualFold("memoryInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentGpuDeviceMemoryInfo(&sv.MemoryInfo, 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)
- }
-
- 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 awsEc2query_deserializeDocumentGpuDeviceInfoList(v *[]types.GpuDeviceInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.GpuDeviceInfo
- if *v == nil {
- sv = make([]types.GpuDeviceInfo, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.GpuDeviceInfo
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentGpuDeviceInfo(&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 awsEc2query_deserializeDocumentGpuDeviceInfoListUnwrapped(v *[]types.GpuDeviceInfo, decoder smithyxml.NodeDecoder) error {
- var sv []types.GpuDeviceInfo
- if *v == nil {
- sv = make([]types.GpuDeviceInfo, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.GpuDeviceInfo
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentGpuDeviceInfo(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentGpuDeviceMemoryInfo(v **types.GpuDeviceMemoryInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.GpuDeviceMemoryInfo
- if *v == nil {
- sv = &types.GpuDeviceMemoryInfo{}
- } 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("sizeInMiB", 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.SizeInMiB = 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 awsEc2query_deserializeDocumentGpuInfo(v **types.GpuInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.GpuInfo
- if *v == nil {
- sv = &types.GpuInfo{}
- } 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("gpus", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentGpuDeviceInfoList(&sv.Gpus, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("totalGpuMemoryInMiB", 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.TotalGpuMemoryInMiB = 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 awsEc2query_deserializeDocumentGroupIdentifier(v **types.GroupIdentifier, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.GroupIdentifier
- if *v == nil {
- sv = &types.GroupIdentifier{}
- } 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("groupId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupId = ptr.String(xtv)
- }
-
- case strings.EqualFold("groupName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupName = 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 awsEc2query_deserializeDocumentGroupIdentifierList(v *[]types.GroupIdentifier, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.GroupIdentifier
- if *v == nil {
- sv = make([]types.GroupIdentifier, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.GroupIdentifier
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentGroupIdentifier(&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 awsEc2query_deserializeDocumentGroupIdentifierListUnwrapped(v *[]types.GroupIdentifier, decoder smithyxml.NodeDecoder) error {
- var sv []types.GroupIdentifier
- if *v == nil {
- sv = make([]types.GroupIdentifier, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.GroupIdentifier
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentGroupIdentifier(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentGroupIdentifierSet(v *[]types.SecurityGroupIdentifier, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.SecurityGroupIdentifier
- if *v == nil {
- sv = make([]types.SecurityGroupIdentifier, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.SecurityGroupIdentifier
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSecurityGroupIdentifier(&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 awsEc2query_deserializeDocumentGroupIdentifierSetUnwrapped(v *[]types.SecurityGroupIdentifier, decoder smithyxml.NodeDecoder) error {
- var sv []types.SecurityGroupIdentifier
- if *v == nil {
- sv = make([]types.SecurityGroupIdentifier, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.SecurityGroupIdentifier
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSecurityGroupIdentifier(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentGroupIdStringList(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("groupId", 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 awsEc2query_deserializeDocumentGroupIdStringListUnwrapped(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 awsEc2query_deserializeDocumentHibernationOptions(v **types.HibernationOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.HibernationOptions
- if *v == nil {
- sv = &types.HibernationOptions{}
- } 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("configured", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Configured = 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 awsEc2query_deserializeDocumentHistoryRecord(v **types.HistoryRecord, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.HistoryRecord
- if *v == nil {
- sv = &types.HistoryRecord{}
- } 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("eventInformation", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentEventInformation(&sv.EventInformation, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("eventType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EventType = types.EventType(xtv)
- }
-
- case strings.EqualFold("timestamp", 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.Timestamp = ptr.Time(t)
- }
-
- 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 awsEc2query_deserializeDocumentHistoryRecordEntry(v **types.HistoryRecordEntry, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.HistoryRecordEntry
- if *v == nil {
- sv = &types.HistoryRecordEntry{}
- } 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("eventInformation", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentEventInformation(&sv.EventInformation, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("eventType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EventType = types.FleetEventType(xtv)
- }
-
- case strings.EqualFold("timestamp", 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.Timestamp = ptr.Time(t)
- }
-
- 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 awsEc2query_deserializeDocumentHistoryRecords(v *[]types.HistoryRecord, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.HistoryRecord
- if *v == nil {
- sv = make([]types.HistoryRecord, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.HistoryRecord
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentHistoryRecord(&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 awsEc2query_deserializeDocumentHistoryRecordsUnwrapped(v *[]types.HistoryRecord, decoder smithyxml.NodeDecoder) error {
- var sv []types.HistoryRecord
- if *v == nil {
- sv = make([]types.HistoryRecord, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.HistoryRecord
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentHistoryRecord(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentHistoryRecordSet(v *[]types.HistoryRecordEntry, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.HistoryRecordEntry
- if *v == nil {
- sv = make([]types.HistoryRecordEntry, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.HistoryRecordEntry
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentHistoryRecordEntry(&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 awsEc2query_deserializeDocumentHistoryRecordSetUnwrapped(v *[]types.HistoryRecordEntry, decoder smithyxml.NodeDecoder) error {
- var sv []types.HistoryRecordEntry
- if *v == nil {
- sv = make([]types.HistoryRecordEntry, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.HistoryRecordEntry
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentHistoryRecordEntry(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Host
- if *v == nil {
- sv = &types.Host{}
- } 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("allocationTime", 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.AllocationTime = ptr.Time(t)
- }
-
- case strings.EqualFold("allowsMultipleInstanceTypes", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AllowsMultipleInstanceTypes = types.AllowsMultipleInstanceTypes(xtv)
- }
-
- case strings.EqualFold("assetId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AssetId = ptr.String(xtv)
- }
-
- case strings.EqualFold("autoPlacement", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AutoPlacement = types.AutoPlacement(xtv)
- }
-
- 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("availabilityZoneId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AvailabilityZoneId = ptr.String(xtv)
- }
-
- case strings.EqualFold("availableCapacity", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAvailableCapacity(&sv.AvailableCapacity, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("clientToken", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ClientToken = ptr.String(xtv)
- }
-
- case strings.EqualFold("hostId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HostId = ptr.String(xtv)
- }
-
- case strings.EqualFold("hostMaintenance", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HostMaintenance = types.HostMaintenance(xtv)
- }
-
- case strings.EqualFold("hostProperties", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentHostProperties(&sv.HostProperties, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("hostRecovery", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HostRecovery = types.HostRecovery(xtv)
- }
-
- case strings.EqualFold("hostReservationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HostReservationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("instances", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentHostInstanceList(&sv.Instances, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("memberOfServiceLinkedResourceGroup", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.MemberOfServiceLinkedResourceGroup = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("outpostArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OutpostArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("releaseTime", 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.ReleaseTime = ptr.Time(t)
- }
-
- 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.AllocationState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentHostInstance(v **types.HostInstance, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.HostInstance
- if *v == nil {
- sv = &types.HostInstance{}
- } 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("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = 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 awsEc2query_deserializeDocumentHostInstanceList(v *[]types.HostInstance, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.HostInstance
- if *v == nil {
- sv = make([]types.HostInstance, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.HostInstance
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentHostInstance(&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 awsEc2query_deserializeDocumentHostInstanceListUnwrapped(v *[]types.HostInstance, decoder smithyxml.NodeDecoder) error {
- var sv []types.HostInstance
- if *v == nil {
- sv = make([]types.HostInstance, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.HostInstance
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentHostInstance(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentHostList(v *[]types.Host, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Host
- if *v == nil {
- sv = make([]types.Host, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Host
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentHost(&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 awsEc2query_deserializeDocumentHostListUnwrapped(v *[]types.Host, decoder smithyxml.NodeDecoder) error {
- var sv []types.Host
- if *v == nil {
- sv = make([]types.Host, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Host
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentHost(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentHostOffering(v **types.HostOffering, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.HostOffering
- if *v == nil {
- sv = &types.HostOffering{}
- } 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("currencyCode", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CurrencyCode = types.CurrencyCodeValues(xtv)
- }
-
- case strings.EqualFold("duration", 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.Duration = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("hourlyPrice", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HourlyPrice = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceFamily", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceFamily = ptr.String(xtv)
- }
-
- case strings.EqualFold("offeringId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OfferingId = ptr.String(xtv)
- }
-
- case strings.EqualFold("paymentOption", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PaymentOption = types.PaymentOption(xtv)
- }
-
- case strings.EqualFold("upfrontPrice", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UpfrontPrice = 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 awsEc2query_deserializeDocumentHostOfferingSet(v *[]types.HostOffering, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.HostOffering
- if *v == nil {
- sv = make([]types.HostOffering, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.HostOffering
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentHostOffering(&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 awsEc2query_deserializeDocumentHostOfferingSetUnwrapped(v *[]types.HostOffering, decoder smithyxml.NodeDecoder) error {
- var sv []types.HostOffering
- if *v == nil {
- sv = make([]types.HostOffering, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.HostOffering
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentHostOffering(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentHostProperties(v **types.HostProperties, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.HostProperties
- if *v == nil {
- sv = &types.HostProperties{}
- } 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("cores", 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.Cores = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("instanceFamily", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceFamily = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = ptr.String(xtv)
- }
-
- case strings.EqualFold("sockets", 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.Sockets = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("totalVCpus", 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.TotalVCpus = 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 awsEc2query_deserializeDocumentHostReservation(v **types.HostReservation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.HostReservation
- if *v == nil {
- sv = &types.HostReservation{}
- } 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("count", 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.Count = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("currencyCode", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CurrencyCode = types.CurrencyCodeValues(xtv)
- }
-
- case strings.EqualFold("duration", 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.Duration = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("end", 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.End = ptr.Time(t)
- }
-
- case strings.EqualFold("hostIdSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentResponseHostIdSet(&sv.HostIdSet, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("hostReservationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HostReservationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("hourlyPrice", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HourlyPrice = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceFamily", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceFamily = ptr.String(xtv)
- }
-
- case strings.EqualFold("offeringId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OfferingId = ptr.String(xtv)
- }
-
- case strings.EqualFold("paymentOption", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PaymentOption = types.PaymentOption(xtv)
- }
-
- case strings.EqualFold("start", 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.Start = ptr.Time(t)
- }
-
- 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.ReservationState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("upfrontPrice", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UpfrontPrice = 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 awsEc2query_deserializeDocumentHostReservationSet(v *[]types.HostReservation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.HostReservation
- if *v == nil {
- sv = make([]types.HostReservation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.HostReservation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentHostReservation(&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 awsEc2query_deserializeDocumentHostReservationSetUnwrapped(v *[]types.HostReservation, decoder smithyxml.NodeDecoder) error {
- var sv []types.HostReservation
- if *v == nil {
- sv = make([]types.HostReservation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.HostReservation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentHostReservation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIamInstanceProfile(v **types.IamInstanceProfile, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IamInstanceProfile
- if *v == nil {
- sv = &types.IamInstanceProfile{}
- } 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("arn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Arn = 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)
- }
-
- 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 awsEc2query_deserializeDocumentIamInstanceProfileAssociation(v **types.IamInstanceProfileAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IamInstanceProfileAssociation
- if *v == nil {
- sv = &types.IamInstanceProfileAssociation{}
- } 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("associationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AssociationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("iamInstanceProfile", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIamInstanceProfile(&sv.IamInstanceProfile, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(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.IamInstanceProfileAssociationState(xtv)
- }
-
- case strings.EqualFold("timestamp", 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.Timestamp = ptr.Time(t)
- }
-
- 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 awsEc2query_deserializeDocumentIamInstanceProfileAssociationSet(v *[]types.IamInstanceProfileAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.IamInstanceProfileAssociation
- if *v == nil {
- sv = make([]types.IamInstanceProfileAssociation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.IamInstanceProfileAssociation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIamInstanceProfileAssociation(&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 awsEc2query_deserializeDocumentIamInstanceProfileAssociationSetUnwrapped(v *[]types.IamInstanceProfileAssociation, decoder smithyxml.NodeDecoder) error {
- var sv []types.IamInstanceProfileAssociation
- if *v == nil {
- sv = make([]types.IamInstanceProfileAssociation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.IamInstanceProfileAssociation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIamInstanceProfileAssociation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIamInstanceProfileSpecification(v **types.IamInstanceProfileSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IamInstanceProfileSpecification
- if *v == nil {
- sv = &types.IamInstanceProfileSpecification{}
- } 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("arn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Arn = 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 awsEc2query_deserializeDocumentIcmpTypeCode(v **types.IcmpTypeCode, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IcmpTypeCode
- if *v == nil {
- sv = &types.IcmpTypeCode{}
- } 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)
- i64, err := strconv.ParseInt(xtv, 10, 64)
- if err != nil {
- return err
- }
- sv.Code = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("type", 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.Type = 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 awsEc2query_deserializeDocumentIdFormat(v **types.IdFormat, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IdFormat
- if *v == nil {
- sv = &types.IdFormat{}
- } 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("deadline", 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.Deadline = ptr.Time(t)
- }
-
- case strings.EqualFold("resource", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Resource = ptr.String(xtv)
- }
-
- case strings.EqualFold("useLongIds", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.UseLongIds = 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 awsEc2query_deserializeDocumentIdFormatList(v *[]types.IdFormat, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.IdFormat
- if *v == nil {
- sv = make([]types.IdFormat, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.IdFormat
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIdFormat(&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 awsEc2query_deserializeDocumentIdFormatListUnwrapped(v *[]types.IdFormat, decoder smithyxml.NodeDecoder) error {
- var sv []types.IdFormat
- if *v == nil {
- sv = make([]types.IdFormat, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.IdFormat
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIdFormat(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIKEVersionsList(v *[]types.IKEVersionsListValue, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.IKEVersionsListValue
- if *v == nil {
- sv = make([]types.IKEVersionsListValue, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.IKEVersionsListValue
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIKEVersionsListValue(&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 awsEc2query_deserializeDocumentIKEVersionsListUnwrapped(v *[]types.IKEVersionsListValue, decoder smithyxml.NodeDecoder) error {
- var sv []types.IKEVersionsListValue
- if *v == nil {
- sv = make([]types.IKEVersionsListValue, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.IKEVersionsListValue
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIKEVersionsListValue(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIKEVersionsListValue(v **types.IKEVersionsListValue, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IKEVersionsListValue
- if *v == nil {
- sv = &types.IKEVersionsListValue{}
- } 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("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 awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Image
- if *v == nil {
- sv = &types.Image{}
- } 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("architecture", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Architecture = types.ArchitectureValues(xtv)
- }
-
- case strings.EqualFold("blockDeviceMapping", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentBlockDeviceMappingList(&sv.BlockDeviceMappings, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("bootMode", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.BootMode = types.BootModeValues(xtv)
- }
-
- case strings.EqualFold("creationDate", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CreationDate = ptr.String(xtv)
- }
-
- case strings.EqualFold("deprecationTime", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DeprecationTime = ptr.String(xtv)
- }
-
- case strings.EqualFold("deregistrationProtection", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DeregistrationProtection = ptr.String(xtv)
- }
-
- 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("enaSupport", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EnaSupport = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("freeTierEligible", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.FreeTierEligible = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("hypervisor", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Hypervisor = types.HypervisorType(xtv)
- }
-
- case strings.EqualFold("imageAllowed", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.ImageAllowed = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("imageId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ImageId = ptr.String(xtv)
- }
-
- case strings.EqualFold("imageLocation", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ImageLocation = ptr.String(xtv)
- }
-
- case strings.EqualFold("imageOwnerAlias", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ImageOwnerAlias = ptr.String(xtv)
- }
-
- case strings.EqualFold("imageType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ImageType = types.ImageTypeValues(xtv)
- }
-
- case strings.EqualFold("imdsSupport", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ImdsSupport = types.ImdsSupportValues(xtv)
- }
-
- case strings.EqualFold("kernelId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.KernelId = ptr.String(xtv)
- }
-
- case strings.EqualFold("lastLaunchedTime", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LastLaunchedTime = 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)
- }
-
- case strings.EqualFold("imageOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("platform", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Platform = types.PlatformValues(xtv)
- }
-
- case strings.EqualFold("platformDetails", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PlatformDetails = ptr.String(xtv)
- }
-
- case strings.EqualFold("productCodes", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentProductCodeList(&sv.ProductCodes, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("isPublic", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Public = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("ramdiskId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RamdiskId = ptr.String(xtv)
- }
-
- case strings.EqualFold("rootDeviceName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RootDeviceName = ptr.String(xtv)
- }
-
- case strings.EqualFold("rootDeviceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RootDeviceType = types.DeviceType(xtv)
- }
-
- case strings.EqualFold("sourceImageId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SourceImageId = ptr.String(xtv)
- }
-
- case strings.EqualFold("sourceImageRegion", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SourceImageRegion = ptr.String(xtv)
- }
-
- case strings.EqualFold("sourceInstanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SourceInstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("sriovNetSupport", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SriovNetSupport = ptr.String(xtv)
- }
-
- case strings.EqualFold("imageState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.State = types.ImageState(xtv)
- }
-
- case strings.EqualFold("stateReason", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentStateReason(&sv.StateReason, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tpmSupport", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TpmSupport = types.TpmSupportValues(xtv)
- }
-
- case strings.EqualFold("usageOperation", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UsageOperation = ptr.String(xtv)
- }
-
- case strings.EqualFold("virtualizationType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VirtualizationType = types.VirtualizationType(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 awsEc2query_deserializeDocumentImageCriterion(v **types.ImageCriterion, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ImageCriterion
- if *v == nil {
- sv = &types.ImageCriterion{}
- } 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("imageProviderSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentImageProviderList(&sv.ImageProviders, 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 awsEc2query_deserializeDocumentImageCriterionList(v *[]types.ImageCriterion, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ImageCriterion
- if *v == nil {
- sv = make([]types.ImageCriterion, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ImageCriterion
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentImageCriterion(&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 awsEc2query_deserializeDocumentImageCriterionListUnwrapped(v *[]types.ImageCriterion, decoder smithyxml.NodeDecoder) error {
- var sv []types.ImageCriterion
- if *v == nil {
- sv = make([]types.ImageCriterion, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ImageCriterion
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentImageCriterion(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentImageList(v *[]types.Image, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Image
- if *v == nil {
- sv = make([]types.Image, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Image
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentImage(&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 awsEc2query_deserializeDocumentImageListUnwrapped(v *[]types.Image, decoder smithyxml.NodeDecoder) error {
- var sv []types.Image
- if *v == nil {
- sv = make([]types.Image, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Image
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentImage(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentImageMetadata(v **types.ImageMetadata, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ImageMetadata
- if *v == nil {
- sv = &types.ImageMetadata{}
- } 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("creationDate", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CreationDate = ptr.String(xtv)
- }
-
- case strings.EqualFold("deprecationTime", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DeprecationTime = ptr.String(xtv)
- }
-
- case strings.EqualFold("imageAllowed", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.ImageAllowed = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("imageId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ImageId = ptr.String(xtv)
- }
-
- case strings.EqualFold("imageOwnerAlias", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ImageOwnerAlias = ptr.String(xtv)
- }
-
- case strings.EqualFold("isPublic", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.IsPublic = ptr.Bool(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("imageOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("imageState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.State = types.ImageState(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 awsEc2query_deserializeDocumentImageProviderList(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("item", 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 awsEc2query_deserializeDocumentImageProviderListUnwrapped(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 awsEc2query_deserializeDocumentImageRecycleBinInfo(v **types.ImageRecycleBinInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ImageRecycleBinInfo
- if *v == nil {
- sv = &types.ImageRecycleBinInfo{}
- } 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("imageId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ImageId = 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)
- }
-
- case strings.EqualFold("recycleBinEnterTime", 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.RecycleBinEnterTime = ptr.Time(t)
- }
-
- case strings.EqualFold("recycleBinExitTime", 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.RecycleBinExitTime = ptr.Time(t)
- }
-
- 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 awsEc2query_deserializeDocumentImageRecycleBinInfoList(v *[]types.ImageRecycleBinInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ImageRecycleBinInfo
- if *v == nil {
- sv = make([]types.ImageRecycleBinInfo, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ImageRecycleBinInfo
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentImageRecycleBinInfo(&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 awsEc2query_deserializeDocumentImageRecycleBinInfoListUnwrapped(v *[]types.ImageRecycleBinInfo, decoder smithyxml.NodeDecoder) error {
- var sv []types.ImageRecycleBinInfo
- if *v == nil {
- sv = make([]types.ImageRecycleBinInfo, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ImageRecycleBinInfo
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentImageRecycleBinInfo(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentImportImageLicenseConfigurationResponse(v **types.ImportImageLicenseConfigurationResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ImportImageLicenseConfigurationResponse
- if *v == nil {
- sv = &types.ImportImageLicenseConfigurationResponse{}
- } 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("licenseConfigurationArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LicenseConfigurationArn = 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 awsEc2query_deserializeDocumentImportImageLicenseSpecificationListResponse(v *[]types.ImportImageLicenseConfigurationResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ImportImageLicenseConfigurationResponse
- if *v == nil {
- sv = make([]types.ImportImageLicenseConfigurationResponse, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ImportImageLicenseConfigurationResponse
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentImportImageLicenseConfigurationResponse(&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 awsEc2query_deserializeDocumentImportImageLicenseSpecificationListResponseUnwrapped(v *[]types.ImportImageLicenseConfigurationResponse, decoder smithyxml.NodeDecoder) error {
- var sv []types.ImportImageLicenseConfigurationResponse
- if *v == nil {
- sv = make([]types.ImportImageLicenseConfigurationResponse, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ImportImageLicenseConfigurationResponse
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentImportImageLicenseConfigurationResponse(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ImportImageTask
- if *v == nil {
- sv = &types.ImportImageTask{}
- } 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("architecture", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Architecture = ptr.String(xtv)
- }
-
- case strings.EqualFold("bootMode", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.BootMode = types.BootModeValues(xtv)
- }
-
- 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("encrypted", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Encrypted = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("hypervisor", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Hypervisor = ptr.String(xtv)
- }
-
- case strings.EqualFold("imageId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ImageId = ptr.String(xtv)
- }
-
- case strings.EqualFold("importTaskId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ImportTaskId = ptr.String(xtv)
- }
-
- case strings.EqualFold("kmsKeyId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.KmsKeyId = ptr.String(xtv)
- }
-
- case strings.EqualFold("licenseSpecifications", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentImportImageLicenseSpecificationListResponse(&sv.LicenseSpecifications, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("licenseType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LicenseType = ptr.String(xtv)
- }
-
- case strings.EqualFold("platform", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Platform = ptr.String(xtv)
- }
-
- case strings.EqualFold("progress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Progress = ptr.String(xtv)
- }
-
- case strings.EqualFold("snapshotDetailSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSnapshotDetailList(&sv.SnapshotDetails, nodeDecoder); err != nil {
- return err
- }
-
- 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 = ptr.String(xtv)
- }
-
- case strings.EqualFold("statusMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StatusMessage = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("usageOperation", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UsageOperation = 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 awsEc2query_deserializeDocumentImportImageTaskList(v *[]types.ImportImageTask, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ImportImageTask
- if *v == nil {
- sv = make([]types.ImportImageTask, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ImportImageTask
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentImportImageTask(&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 awsEc2query_deserializeDocumentImportImageTaskListUnwrapped(v *[]types.ImportImageTask, decoder smithyxml.NodeDecoder) error {
- var sv []types.ImportImageTask
- if *v == nil {
- sv = make([]types.ImportImageTask, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ImportImageTask
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentImportImageTask(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentImportInstanceTaskDetails(v **types.ImportInstanceTaskDetails, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ImportInstanceTaskDetails
- if *v == nil {
- sv = &types.ImportInstanceTaskDetails{}
- } 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("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("platform", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Platform = types.PlatformValues(xtv)
- }
-
- case strings.EqualFold("volumes", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentImportInstanceVolumeDetailSet(&sv.Volumes, 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 awsEc2query_deserializeDocumentImportInstanceVolumeDetailItem(v **types.ImportInstanceVolumeDetailItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ImportInstanceVolumeDetailItem
- if *v == nil {
- sv = &types.ImportInstanceVolumeDetailItem{}
- } 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("bytesConverted", 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.BytesConverted = ptr.Int64(i64)
- }
-
- 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("image", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentDiskImageDescription(&sv.Image, nodeDecoder); err != nil {
- return err
- }
-
- 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 = ptr.String(xtv)
- }
-
- case strings.EqualFold("statusMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StatusMessage = ptr.String(xtv)
- }
-
- case strings.EqualFold("volume", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentDiskImageVolumeDescription(&sv.Volume, 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 awsEc2query_deserializeDocumentImportInstanceVolumeDetailSet(v *[]types.ImportInstanceVolumeDetailItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ImportInstanceVolumeDetailItem
- if *v == nil {
- sv = make([]types.ImportInstanceVolumeDetailItem, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ImportInstanceVolumeDetailItem
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentImportInstanceVolumeDetailItem(&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 awsEc2query_deserializeDocumentImportInstanceVolumeDetailSetUnwrapped(v *[]types.ImportInstanceVolumeDetailItem, decoder smithyxml.NodeDecoder) error {
- var sv []types.ImportInstanceVolumeDetailItem
- if *v == nil {
- sv = make([]types.ImportInstanceVolumeDetailItem, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ImportInstanceVolumeDetailItem
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentImportInstanceVolumeDetailItem(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentImportSnapshotTask(v **types.ImportSnapshotTask, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ImportSnapshotTask
- if *v == nil {
- sv = &types.ImportSnapshotTask{}
- } 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("importTaskId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ImportTaskId = ptr.String(xtv)
- }
-
- case strings.EqualFold("snapshotTaskDetail", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSnapshotTaskDetail(&sv.SnapshotTaskDetail, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentImportSnapshotTaskList(v *[]types.ImportSnapshotTask, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ImportSnapshotTask
- if *v == nil {
- sv = make([]types.ImportSnapshotTask, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ImportSnapshotTask
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentImportSnapshotTask(&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 awsEc2query_deserializeDocumentImportSnapshotTaskListUnwrapped(v *[]types.ImportSnapshotTask, decoder smithyxml.NodeDecoder) error {
- var sv []types.ImportSnapshotTask
- if *v == nil {
- sv = make([]types.ImportSnapshotTask, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ImportSnapshotTask
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentImportSnapshotTask(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentImportVolumeTaskDetails(v **types.ImportVolumeTaskDetails, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ImportVolumeTaskDetails
- if *v == nil {
- sv = &types.ImportVolumeTaskDetails{}
- } 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("bytesConverted", 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.BytesConverted = ptr.Int64(i64)
- }
-
- 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("image", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentDiskImageDescription(&sv.Image, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("volume", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentDiskImageVolumeDescription(&sv.Volume, 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 awsEc2query_deserializeDocumentInferenceAcceleratorInfo(v **types.InferenceAcceleratorInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InferenceAcceleratorInfo
- if *v == nil {
- sv = &types.InferenceAcceleratorInfo{}
- } 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("accelerators", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInferenceDeviceInfoList(&sv.Accelerators, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("totalInferenceMemoryInMiB", 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.TotalInferenceMemoryInMiB = 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 awsEc2query_deserializeDocumentInferenceDeviceInfo(v **types.InferenceDeviceInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InferenceDeviceInfo
- if *v == nil {
- sv = &types.InferenceDeviceInfo{}
- } 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("count", 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.Count = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("manufacturer", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Manufacturer = ptr.String(xtv)
- }
-
- case strings.EqualFold("memoryInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInferenceDeviceMemoryInfo(&sv.MemoryInfo, 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)
- }
-
- 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 awsEc2query_deserializeDocumentInferenceDeviceInfoList(v *[]types.InferenceDeviceInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InferenceDeviceInfo
- if *v == nil {
- sv = make([]types.InferenceDeviceInfo, 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.InferenceDeviceInfo
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInferenceDeviceInfo(&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 awsEc2query_deserializeDocumentInferenceDeviceInfoListUnwrapped(v *[]types.InferenceDeviceInfo, decoder smithyxml.NodeDecoder) error {
- var sv []types.InferenceDeviceInfo
- if *v == nil {
- sv = make([]types.InferenceDeviceInfo, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InferenceDeviceInfo
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInferenceDeviceInfo(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInferenceDeviceMemoryInfo(v **types.InferenceDeviceMemoryInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InferenceDeviceMemoryInfo
- if *v == nil {
- sv = &types.InferenceDeviceMemoryInfo{}
- } 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("sizeInMiB", 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.SizeInMiB = 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 awsEc2query_deserializeDocumentInitializationStatusDetails(v **types.InitializationStatusDetails, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InitializationStatusDetails
- if *v == nil {
- sv = &types.InitializationStatusDetails{}
- } 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("estimatedTimeToCompleteInSeconds", 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.EstimatedTimeToCompleteInSeconds = ptr.Int64(i64)
- }
-
- case strings.EqualFold("initializationType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InitializationType = types.InitializationType(xtv)
- }
-
- case strings.EqualFold("progress", 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.Progress = ptr.Int64(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 awsEc2query_deserializeDocumentInsideCidrBlocksStringList(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("item", 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 awsEc2query_deserializeDocumentInsideCidrBlocksStringListUnwrapped(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 awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Instance
- if *v == nil {
- sv = &types.Instance{}
- } 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("amiLaunchIndex", 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.AmiLaunchIndex = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("architecture", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Architecture = types.ArchitectureValues(xtv)
- }
-
- case strings.EqualFold("blockDeviceMapping", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceBlockDeviceMappingList(&sv.BlockDeviceMappings, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("bootMode", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.BootMode = types.BootModeValues(xtv)
- }
-
- case strings.EqualFold("capacityBlockId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityBlockId = ptr.String(xtv)
- }
-
- case strings.EqualFold("capacityReservationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityReservationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("capacityReservationSpecification", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentCapacityReservationSpecificationResponse(&sv.CapacityReservationSpecification, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("clientToken", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ClientToken = ptr.String(xtv)
- }
-
- case strings.EqualFold("cpuOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentCpuOptions(&sv.CpuOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("currentInstanceBootMode", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CurrentInstanceBootMode = types.InstanceBootModeValues(xtv)
- }
-
- case strings.EqualFold("ebsOptimized", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EbsOptimized = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("elasticGpuAssociationSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentElasticGpuAssociationList(&sv.ElasticGpuAssociations, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("elasticInferenceAcceleratorAssociationSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentElasticInferenceAcceleratorAssociationList(&sv.ElasticInferenceAcceleratorAssociations, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("enaSupport", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EnaSupport = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("enclaveOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentEnclaveOptions(&sv.EnclaveOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("hibernationOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentHibernationOptions(&sv.HibernationOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("hypervisor", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Hypervisor = types.HypervisorType(xtv)
- }
-
- case strings.EqualFold("iamInstanceProfile", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIamInstanceProfile(&sv.IamInstanceProfile, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("imageId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ImageId = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceLifecycle", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceLifecycle = types.InstanceLifecycleType(xtv)
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = types.InstanceType(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("kernelId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.KernelId = ptr.String(xtv)
- }
-
- case strings.EqualFold("keyName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.KeyName = ptr.String(xtv)
- }
-
- case strings.EqualFold("launchTime", 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.LaunchTime = ptr.Time(t)
- }
-
- case strings.EqualFold("licenseSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLicenseList(&sv.Licenses, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("maintenanceOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceMaintenanceOptions(&sv.MaintenanceOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("metadataOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceMetadataOptionsResponse(&sv.MetadataOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("monitoring", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentMonitoring(&sv.Monitoring, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("networkInterfaceSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceNetworkInterfaceList(&sv.NetworkInterfaces, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("networkPerformanceOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceNetworkPerformanceOptions(&sv.NetworkPerformanceOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("operator", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("outpostArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OutpostArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("placement", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPlacement(&sv.Placement, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("platform", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Platform = types.PlatformValues(xtv)
- }
-
- case strings.EqualFold("platformDetails", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PlatformDetails = ptr.String(xtv)
- }
-
- case strings.EqualFold("privateDnsName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrivateDnsName = ptr.String(xtv)
- }
-
- case strings.EqualFold("privateDnsNameOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPrivateDnsNameOptionsResponse(&sv.PrivateDnsNameOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("privateIpAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrivateIpAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("productCodes", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentProductCodeList(&sv.ProductCodes, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("dnsName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PublicDnsName = 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.PublicIpAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("ramdiskId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RamdiskId = ptr.String(xtv)
- }
-
- case strings.EqualFold("rootDeviceName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RootDeviceName = ptr.String(xtv)
- }
-
- case strings.EqualFold("rootDeviceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RootDeviceType = types.DeviceType(xtv)
- }
-
- case strings.EqualFold("groupSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentGroupIdentifierList(&sv.SecurityGroups, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("sourceDestCheck", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.SourceDestCheck = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("spotInstanceRequestId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SpotInstanceRequestId = ptr.String(xtv)
- }
-
- case strings.EqualFold("sriovNetSupport", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SriovNetSupport = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceState", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceState(&sv.State, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("stateReason", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentStateReason(&sv.StateReason, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("reason", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StateTransitionReason = ptr.String(xtv)
- }
-
- 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("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tpmSupport", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TpmSupport = ptr.String(xtv)
- }
-
- case strings.EqualFold("usageOperation", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UsageOperation = ptr.String(xtv)
- }
-
- case strings.EqualFold("usageOperationUpdateTime", 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.UsageOperationUpdateTime = ptr.Time(t)
- }
-
- case strings.EqualFold("virtualizationType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VirtualizationType = types.VirtualizationType(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 awsEc2query_deserializeDocumentInstanceAttachmentEnaSrdSpecification(v **types.InstanceAttachmentEnaSrdSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceAttachmentEnaSrdSpecification
- if *v == nil {
- sv = &types.InstanceAttachmentEnaSrdSpecification{}
- } 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("enaSrdEnabled", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EnaSrdEnabled = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("enaSrdUdpSpecification", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceAttachmentEnaSrdUdpSpecification(&sv.EnaSrdUdpSpecification, 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 awsEc2query_deserializeDocumentInstanceAttachmentEnaSrdUdpSpecification(v **types.InstanceAttachmentEnaSrdUdpSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceAttachmentEnaSrdUdpSpecification
- if *v == nil {
- sv = &types.InstanceAttachmentEnaSrdUdpSpecification{}
- } 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("enaSrdUdpEnabled", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EnaSrdUdpEnabled = 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 awsEc2query_deserializeDocumentInstanceBlockDeviceMapping(v **types.InstanceBlockDeviceMapping, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceBlockDeviceMapping
- if *v == nil {
- sv = &types.InstanceBlockDeviceMapping{}
- } 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("deviceName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DeviceName = ptr.String(xtv)
- }
-
- case strings.EqualFold("ebs", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentEbsInstanceBlockDevice(&sv.Ebs, 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 awsEc2query_deserializeDocumentInstanceBlockDeviceMappingList(v *[]types.InstanceBlockDeviceMapping, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InstanceBlockDeviceMapping
- if *v == nil {
- sv = make([]types.InstanceBlockDeviceMapping, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InstanceBlockDeviceMapping
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInstanceBlockDeviceMapping(&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 awsEc2query_deserializeDocumentInstanceBlockDeviceMappingListUnwrapped(v *[]types.InstanceBlockDeviceMapping, decoder smithyxml.NodeDecoder) error {
- var sv []types.InstanceBlockDeviceMapping
- if *v == nil {
- sv = make([]types.InstanceBlockDeviceMapping, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InstanceBlockDeviceMapping
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInstanceBlockDeviceMapping(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInstanceCapacity(v **types.InstanceCapacity, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceCapacity
- if *v == nil {
- sv = &types.InstanceCapacity{}
- } 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("availableCapacity", 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.AvailableCapacity = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = ptr.String(xtv)
- }
-
- case strings.EqualFold("totalCapacity", 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.TotalCapacity = 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 awsEc2query_deserializeDocumentInstanceConnectEndpointSet(v *[]types.Ec2InstanceConnectEndpoint, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Ec2InstanceConnectEndpoint
- if *v == nil {
- sv = make([]types.Ec2InstanceConnectEndpoint, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Ec2InstanceConnectEndpoint
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentEc2InstanceConnectEndpoint(&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 awsEc2query_deserializeDocumentInstanceConnectEndpointSetUnwrapped(v *[]types.Ec2InstanceConnectEndpoint, decoder smithyxml.NodeDecoder) error {
- var sv []types.Ec2InstanceConnectEndpoint
- if *v == nil {
- sv = make([]types.Ec2InstanceConnectEndpoint, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Ec2InstanceConnectEndpoint
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentEc2InstanceConnectEndpoint(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInstanceCount(v **types.InstanceCount, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceCount
- if *v == nil {
- sv = &types.InstanceCount{}
- } 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("instanceCount", 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.InstanceCount = ptr.Int32(int32(i64))
- }
-
- 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.ListingState(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 awsEc2query_deserializeDocumentInstanceCountList(v *[]types.InstanceCount, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InstanceCount
- if *v == nil {
- sv = make([]types.InstanceCount, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InstanceCount
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInstanceCount(&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 awsEc2query_deserializeDocumentInstanceCountListUnwrapped(v *[]types.InstanceCount, decoder smithyxml.NodeDecoder) error {
- var sv []types.InstanceCount
- if *v == nil {
- sv = make([]types.InstanceCount, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InstanceCount
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInstanceCount(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInstanceCreditSpecification(v **types.InstanceCreditSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceCreditSpecification
- if *v == nil {
- sv = &types.InstanceCreditSpecification{}
- } 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("cpuCredits", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CpuCredits = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = 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 awsEc2query_deserializeDocumentInstanceCreditSpecificationList(v *[]types.InstanceCreditSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InstanceCreditSpecification
- if *v == nil {
- sv = make([]types.InstanceCreditSpecification, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InstanceCreditSpecification
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInstanceCreditSpecification(&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 awsEc2query_deserializeDocumentInstanceCreditSpecificationListUnwrapped(v *[]types.InstanceCreditSpecification, decoder smithyxml.NodeDecoder) error {
- var sv []types.InstanceCreditSpecification
- if *v == nil {
- sv = make([]types.InstanceCreditSpecification, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InstanceCreditSpecification
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInstanceCreditSpecification(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInstanceEventWindow(v **types.InstanceEventWindow, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceEventWindow
- if *v == nil {
- sv = &types.InstanceEventWindow{}
- } 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("associationTarget", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceEventWindowAssociationTarget(&sv.AssociationTarget, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("cronExpression", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CronExpression = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceEventWindowId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceEventWindowId = 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)
- }
-
- 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.InstanceEventWindowState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("timeRangeSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceEventWindowTimeRangeList(&sv.TimeRanges, 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 awsEc2query_deserializeDocumentInstanceEventWindowAssociationTarget(v **types.InstanceEventWindowAssociationTarget, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceEventWindowAssociationTarget
- if *v == nil {
- sv = &types.InstanceEventWindowAssociationTarget{}
- } 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("dedicatedHostIdSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentDedicatedHostIdList(&sv.DedicatedHostIds, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instanceIdSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceIdList(&sv.InstanceIds, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentInstanceEventWindowSet(v *[]types.InstanceEventWindow, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InstanceEventWindow
- if *v == nil {
- sv = make([]types.InstanceEventWindow, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InstanceEventWindow
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInstanceEventWindow(&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 awsEc2query_deserializeDocumentInstanceEventWindowSetUnwrapped(v *[]types.InstanceEventWindow, decoder smithyxml.NodeDecoder) error {
- var sv []types.InstanceEventWindow
- if *v == nil {
- sv = make([]types.InstanceEventWindow, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InstanceEventWindow
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInstanceEventWindow(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInstanceEventWindowStateChange(v **types.InstanceEventWindowStateChange, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceEventWindowStateChange
- if *v == nil {
- sv = &types.InstanceEventWindowStateChange{}
- } 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("instanceEventWindowId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceEventWindowId = ptr.String(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.InstanceEventWindowState(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 awsEc2query_deserializeDocumentInstanceEventWindowTimeRange(v **types.InstanceEventWindowTimeRange, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceEventWindowTimeRange
- if *v == nil {
- sv = &types.InstanceEventWindowTimeRange{}
- } 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("endHour", 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.EndHour = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("endWeekDay", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EndWeekDay = types.WeekDay(xtv)
- }
-
- case strings.EqualFold("startHour", 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.StartHour = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("startWeekDay", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StartWeekDay = types.WeekDay(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 awsEc2query_deserializeDocumentInstanceEventWindowTimeRangeList(v *[]types.InstanceEventWindowTimeRange, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InstanceEventWindowTimeRange
- if *v == nil {
- sv = make([]types.InstanceEventWindowTimeRange, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InstanceEventWindowTimeRange
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInstanceEventWindowTimeRange(&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 awsEc2query_deserializeDocumentInstanceEventWindowTimeRangeListUnwrapped(v *[]types.InstanceEventWindowTimeRange, decoder smithyxml.NodeDecoder) error {
- var sv []types.InstanceEventWindowTimeRange
- if *v == nil {
- sv = make([]types.InstanceEventWindowTimeRange, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InstanceEventWindowTimeRange
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInstanceEventWindowTimeRange(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInstanceExportDetails(v **types.InstanceExportDetails, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceExportDetails
- if *v == nil {
- sv = &types.InstanceExportDetails{}
- } 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("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("targetEnvironment", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TargetEnvironment = types.ExportEnvironment(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 awsEc2query_deserializeDocumentInstanceFamilyCreditSpecification(v **types.InstanceFamilyCreditSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceFamilyCreditSpecification
- if *v == nil {
- sv = &types.InstanceFamilyCreditSpecification{}
- } 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("cpuCredits", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CpuCredits = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceFamily", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceFamily = types.UnlimitedSupportedInstanceFamily(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 awsEc2query_deserializeDocumentInstanceGenerationSet(v *[]types.InstanceGeneration, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InstanceGeneration
- if *v == nil {
- sv = make([]types.InstanceGeneration, 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("item", t.Name.Local):
- var col types.InstanceGeneration
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- col = types.InstanceGeneration(xtv)
- }
- sv = append(sv, col)
-
- default:
- err = decoder.Decoder.Skip()
- if err != nil {
- return err
- }
-
- }
- decoder = originalDecoder
- }
- *v = sv
- return nil
-}
-
-func awsEc2query_deserializeDocumentInstanceGenerationSetUnwrapped(v *[]types.InstanceGeneration, decoder smithyxml.NodeDecoder) error {
- var sv []types.InstanceGeneration
- if *v == nil {
- sv = make([]types.InstanceGeneration, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InstanceGeneration
- t := decoder.StartEl
- _ = t
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- mv = types.InstanceGeneration(xtv)
- }
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInstanceIdList(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("item", 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 awsEc2query_deserializeDocumentInstanceIdListUnwrapped(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 awsEc2query_deserializeDocumentInstanceIdSet(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("item", 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 awsEc2query_deserializeDocumentInstanceIdSetUnwrapped(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 awsEc2query_deserializeDocumentInstanceIdsSet(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("item", 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 awsEc2query_deserializeDocumentInstanceIdsSetUnwrapped(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 awsEc2query_deserializeDocumentInstanceImageMetadata(v **types.InstanceImageMetadata, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceImageMetadata
- if *v == nil {
- sv = &types.InstanceImageMetadata{}
- } 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("imageMetadata", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentImageMetadata(&sv.ImageMetadata, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = types.InstanceType(xtv)
- }
-
- case strings.EqualFold("launchTime", 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.LaunchTime = ptr.Time(t)
- }
-
- case strings.EqualFold("operator", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instanceOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceState", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceState(&sv.State, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("zoneId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ZoneId = 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 awsEc2query_deserializeDocumentInstanceImageMetadataList(v *[]types.InstanceImageMetadata, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InstanceImageMetadata
- if *v == nil {
- sv = make([]types.InstanceImageMetadata, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InstanceImageMetadata
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInstanceImageMetadata(&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 awsEc2query_deserializeDocumentInstanceImageMetadataListUnwrapped(v *[]types.InstanceImageMetadata, decoder smithyxml.NodeDecoder) error {
- var sv []types.InstanceImageMetadata
- if *v == nil {
- sv = make([]types.InstanceImageMetadata, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InstanceImageMetadata
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInstanceImageMetadata(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInstanceIpv4Prefix(v **types.InstanceIpv4Prefix, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceIpv4Prefix
- if *v == nil {
- sv = &types.InstanceIpv4Prefix{}
- } 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("ipv4Prefix", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Ipv4Prefix = 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 awsEc2query_deserializeDocumentInstanceIpv4PrefixList(v *[]types.InstanceIpv4Prefix, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InstanceIpv4Prefix
- if *v == nil {
- sv = make([]types.InstanceIpv4Prefix, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InstanceIpv4Prefix
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInstanceIpv4Prefix(&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 awsEc2query_deserializeDocumentInstanceIpv4PrefixListUnwrapped(v *[]types.InstanceIpv4Prefix, decoder smithyxml.NodeDecoder) error {
- var sv []types.InstanceIpv4Prefix
- if *v == nil {
- sv = make([]types.InstanceIpv4Prefix, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InstanceIpv4Prefix
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInstanceIpv4Prefix(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInstanceIpv6Address(v **types.InstanceIpv6Address, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceIpv6Address
- if *v == nil {
- sv = &types.InstanceIpv6Address{}
- } 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("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("isPrimaryIpv6", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.IsPrimaryIpv6 = 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 awsEc2query_deserializeDocumentInstanceIpv6AddressList(v *[]types.InstanceIpv6Address, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InstanceIpv6Address
- if *v == nil {
- sv = make([]types.InstanceIpv6Address, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InstanceIpv6Address
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInstanceIpv6Address(&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 awsEc2query_deserializeDocumentInstanceIpv6AddressListUnwrapped(v *[]types.InstanceIpv6Address, decoder smithyxml.NodeDecoder) error {
- var sv []types.InstanceIpv6Address
- if *v == nil {
- sv = make([]types.InstanceIpv6Address, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InstanceIpv6Address
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInstanceIpv6Address(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInstanceIpv6Prefix(v **types.InstanceIpv6Prefix, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceIpv6Prefix
- if *v == nil {
- sv = &types.InstanceIpv6Prefix{}
- } 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("ipv6Prefix", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Ipv6Prefix = 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 awsEc2query_deserializeDocumentInstanceIpv6PrefixList(v *[]types.InstanceIpv6Prefix, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InstanceIpv6Prefix
- if *v == nil {
- sv = make([]types.InstanceIpv6Prefix, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InstanceIpv6Prefix
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInstanceIpv6Prefix(&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 awsEc2query_deserializeDocumentInstanceIpv6PrefixListUnwrapped(v *[]types.InstanceIpv6Prefix, decoder smithyxml.NodeDecoder) error {
- var sv []types.InstanceIpv6Prefix
- if *v == nil {
- sv = make([]types.InstanceIpv6Prefix, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InstanceIpv6Prefix
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInstanceIpv6Prefix(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInstanceList(v *[]types.Instance, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Instance
- if *v == nil {
- sv = make([]types.Instance, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Instance
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInstance(&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 awsEc2query_deserializeDocumentInstanceListUnwrapped(v *[]types.Instance, decoder smithyxml.NodeDecoder) error {
- var sv []types.Instance
- if *v == nil {
- sv = make([]types.Instance, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Instance
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInstance(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInstanceMaintenanceOptions(v **types.InstanceMaintenanceOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceMaintenanceOptions
- if *v == nil {
- sv = &types.InstanceMaintenanceOptions{}
- } 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("autoRecovery", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AutoRecovery = types.InstanceAutoRecoveryState(xtv)
- }
-
- case strings.EqualFold("rebootMigration", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RebootMigration = types.InstanceRebootMigrationState(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 awsEc2query_deserializeDocumentInstanceMetadataDefaultsResponse(v **types.InstanceMetadataDefaultsResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceMetadataDefaultsResponse
- if *v == nil {
- sv = &types.InstanceMetadataDefaultsResponse{}
- } 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("httpEndpoint", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HttpEndpoint = types.InstanceMetadataEndpointState(xtv)
- }
-
- case strings.EqualFold("httpPutResponseHopLimit", 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.HttpPutResponseHopLimit = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("httpTokens", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HttpTokens = types.HttpTokensState(xtv)
- }
-
- case strings.EqualFold("instanceMetadataTags", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceMetadataTags = types.InstanceMetadataTagsState(xtv)
- }
-
- case strings.EqualFold("managedBy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ManagedBy = types.ManagedBy(xtv)
- }
-
- case strings.EqualFold("managedExceptionMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ManagedExceptionMessage = 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 awsEc2query_deserializeDocumentInstanceMetadataOptionsResponse(v **types.InstanceMetadataOptionsResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceMetadataOptionsResponse
- if *v == nil {
- sv = &types.InstanceMetadataOptionsResponse{}
- } 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("httpEndpoint", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HttpEndpoint = types.InstanceMetadataEndpointState(xtv)
- }
-
- case strings.EqualFold("httpProtocolIpv6", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HttpProtocolIpv6 = types.InstanceMetadataProtocolState(xtv)
- }
-
- case strings.EqualFold("httpPutResponseHopLimit", 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.HttpPutResponseHopLimit = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("httpTokens", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HttpTokens = types.HttpTokensState(xtv)
- }
-
- case strings.EqualFold("instanceMetadataTags", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceMetadataTags = types.InstanceMetadataTagsState(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.InstanceMetadataOptionsState(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 awsEc2query_deserializeDocumentInstanceMonitoring(v **types.InstanceMonitoring, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceMonitoring
- if *v == nil {
- sv = &types.InstanceMonitoring{}
- } 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("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("monitoring", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentMonitoring(&sv.Monitoring, 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 awsEc2query_deserializeDocumentInstanceMonitoringList(v *[]types.InstanceMonitoring, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InstanceMonitoring
- if *v == nil {
- sv = make([]types.InstanceMonitoring, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InstanceMonitoring
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInstanceMonitoring(&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 awsEc2query_deserializeDocumentInstanceMonitoringListUnwrapped(v *[]types.InstanceMonitoring, decoder smithyxml.NodeDecoder) error {
- var sv []types.InstanceMonitoring
- if *v == nil {
- sv = make([]types.InstanceMonitoring, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InstanceMonitoring
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInstanceMonitoring(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInstanceNetworkInterface(v **types.InstanceNetworkInterface, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceNetworkInterface
- if *v == nil {
- sv = &types.InstanceNetworkInterface{}
- } 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("association", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceNetworkInterfaceAssociation(&sv.Association, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("attachment", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceNetworkInterfaceAttachment(&sv.Attachment, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("connectionTrackingConfiguration", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentConnectionTrackingSpecificationResponse(&sv.ConnectionTrackingConfiguration, nodeDecoder); err != nil {
- return err
- }
-
- 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("groupSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentGroupIdentifierList(&sv.Groups, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("interfaceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InterfaceType = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipv4PrefixSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceIpv4PrefixList(&sv.Ipv4Prefixes, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ipv6AddressesSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceIpv6AddressList(&sv.Ipv6Addresses, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ipv6PrefixSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceIpv6PrefixList(&sv.Ipv6Prefixes, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("macAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.MacAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkInterfaceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInterfaceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("operator", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("privateDnsName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrivateDnsName = ptr.String(xtv)
- }
-
- case strings.EqualFold("privateIpAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrivateIpAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("privateIpAddressesSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstancePrivateIpAddressList(&sv.PrivateIpAddresses, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("sourceDestCheck", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.SourceDestCheck = ptr.Bool(xtv)
- }
-
- 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.NetworkInterfaceStatus(xtv)
- }
-
- 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("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 awsEc2query_deserializeDocumentInstanceNetworkInterfaceAssociation(v **types.InstanceNetworkInterfaceAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceNetworkInterfaceAssociation
- if *v == nil {
- sv = &types.InstanceNetworkInterfaceAssociation{}
- } 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("carrierIp", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CarrierIp = ptr.String(xtv)
- }
-
- case strings.EqualFold("customerOwnedIp", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CustomerOwnedIp = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpOwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("publicDnsName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PublicDnsName = ptr.String(xtv)
- }
-
- case strings.EqualFold("publicIp", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PublicIp = 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 awsEc2query_deserializeDocumentInstanceNetworkInterfaceAttachment(v **types.InstanceNetworkInterfaceAttachment, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceNetworkInterfaceAttachment
- if *v == nil {
- sv = &types.InstanceNetworkInterfaceAttachment{}
- } 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("attachmentId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AttachmentId = ptr.String(xtv)
- }
-
- case strings.EqualFold("attachTime", 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.AttachTime = ptr.Time(t)
- }
-
- case strings.EqualFold("deleteOnTermination", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.DeleteOnTermination = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("deviceIndex", 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.DeviceIndex = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("enaQueueCount", 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.EnaQueueCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("enaSrdSpecification", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceAttachmentEnaSrdSpecification(&sv.EnaSrdSpecification, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("networkCardIndex", 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.NetworkCardIndex = 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.AttachmentStatus(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 awsEc2query_deserializeDocumentInstanceNetworkInterfaceList(v *[]types.InstanceNetworkInterface, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InstanceNetworkInterface
- if *v == nil {
- sv = make([]types.InstanceNetworkInterface, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InstanceNetworkInterface
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInstanceNetworkInterface(&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 awsEc2query_deserializeDocumentInstanceNetworkInterfaceListUnwrapped(v *[]types.InstanceNetworkInterface, decoder smithyxml.NodeDecoder) error {
- var sv []types.InstanceNetworkInterface
- if *v == nil {
- sv = make([]types.InstanceNetworkInterface, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InstanceNetworkInterface
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInstanceNetworkInterface(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **types.InstanceNetworkInterfaceSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceNetworkInterfaceSpecification
- if *v == nil {
- sv = &types.InstanceNetworkInterfaceSpecification{}
- } 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("AssociateCarrierIpAddress", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.AssociateCarrierIpAddress = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("associatePublicIpAddress", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.AssociatePublicIpAddress = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("ConnectionTrackingSpecification", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentConnectionTrackingSpecificationRequest(&sv.ConnectionTrackingSpecification, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("deleteOnTermination", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.DeleteOnTermination = ptr.Bool(xtv)
- }
-
- 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("deviceIndex", 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.DeviceIndex = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("EnaQueueCount", 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.EnaQueueCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("EnaSrdSpecification", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentEnaSrdSpecificationRequest(&sv.EnaSrdSpecification, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("SecurityGroupId", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSecurityGroupIdStringList(&sv.Groups, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("InterfaceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InterfaceType = ptr.String(xtv)
- }
-
- case strings.EqualFold("Ipv4PrefixCount", 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.Ipv4PrefixCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("Ipv4Prefix", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpv4PrefixList(&sv.Ipv4Prefixes, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ipv6AddressCount", 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.Ipv6AddressCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("ipv6AddressesSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceIpv6AddressList(&sv.Ipv6Addresses, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("Ipv6PrefixCount", 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.Ipv6PrefixCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("Ipv6Prefix", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpv6PrefixList(&sv.Ipv6Prefixes, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("NetworkCardIndex", 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.NetworkCardIndex = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("networkInterfaceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInterfaceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("PrimaryIpv6", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.PrimaryIpv6 = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("privateIpAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrivateIpAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("privateIpAddressesSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPrivateIpAddressSpecificationList(&sv.PrivateIpAddresses, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("secondaryPrivateIpAddressCount", 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.SecondaryPrivateIpAddressCount = ptr.Int32(int32(i64))
- }
-
- 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)
- }
-
- 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 awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecificationList(v *[]types.InstanceNetworkInterfaceSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InstanceNetworkInterfaceSpecification
- if *v == nil {
- sv = make([]types.InstanceNetworkInterfaceSpecification, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InstanceNetworkInterfaceSpecification
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(&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 awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecificationListUnwrapped(v *[]types.InstanceNetworkInterfaceSpecification, decoder smithyxml.NodeDecoder) error {
- var sv []types.InstanceNetworkInterfaceSpecification
- if *v == nil {
- sv = make([]types.InstanceNetworkInterfaceSpecification, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InstanceNetworkInterfaceSpecification
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInstanceNetworkPerformanceOptions(v **types.InstanceNetworkPerformanceOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceNetworkPerformanceOptions
- if *v == nil {
- sv = &types.InstanceNetworkPerformanceOptions{}
- } 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("bandwidthWeighting", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.BandwidthWeighting = types.InstanceBandwidthWeighting(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 awsEc2query_deserializeDocumentInstancePrivateIpAddress(v **types.InstancePrivateIpAddress, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstancePrivateIpAddress
- if *v == nil {
- sv = &types.InstancePrivateIpAddress{}
- } 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("association", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceNetworkInterfaceAssociation(&sv.Association, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("primary", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Primary = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("privateDnsName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrivateDnsName = ptr.String(xtv)
- }
-
- case strings.EqualFold("privateIpAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrivateIpAddress = 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 awsEc2query_deserializeDocumentInstancePrivateIpAddressList(v *[]types.InstancePrivateIpAddress, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InstancePrivateIpAddress
- if *v == nil {
- sv = make([]types.InstancePrivateIpAddress, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InstancePrivateIpAddress
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInstancePrivateIpAddress(&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 awsEc2query_deserializeDocumentInstancePrivateIpAddressListUnwrapped(v *[]types.InstancePrivateIpAddress, decoder smithyxml.NodeDecoder) error {
- var sv []types.InstancePrivateIpAddress
- if *v == nil {
- sv = make([]types.InstancePrivateIpAddress, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InstancePrivateIpAddress
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInstancePrivateIpAddress(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInstanceRequirements(v **types.InstanceRequirements, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceRequirements
- if *v == nil {
- sv = &types.InstanceRequirements{}
- } 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("acceleratorCount", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAcceleratorCount(&sv.AcceleratorCount, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("acceleratorManufacturerSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAcceleratorManufacturerSet(&sv.AcceleratorManufacturers, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("acceleratorNameSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAcceleratorNameSet(&sv.AcceleratorNames, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("acceleratorTotalMemoryMiB", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAcceleratorTotalMemoryMiB(&sv.AcceleratorTotalMemoryMiB, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("acceleratorTypeSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAcceleratorTypeSet(&sv.AcceleratorTypes, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("allowedInstanceTypeSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAllowedInstanceTypeSet(&sv.AllowedInstanceTypes, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("bareMetal", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.BareMetal = types.BareMetal(xtv)
- }
-
- case strings.EqualFold("baselineEbsBandwidthMbps", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentBaselineEbsBandwidthMbps(&sv.BaselineEbsBandwidthMbps, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("baselinePerformanceFactors", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentBaselinePerformanceFactors(&sv.BaselinePerformanceFactors, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("burstablePerformance", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.BurstablePerformance = types.BurstablePerformance(xtv)
- }
-
- case strings.EqualFold("cpuManufacturerSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentCpuManufacturerSet(&sv.CpuManufacturers, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("excludedInstanceTypeSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentExcludedInstanceTypeSet(&sv.ExcludedInstanceTypes, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instanceGenerationSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceGenerationSet(&sv.InstanceGenerations, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("localStorage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalStorage = types.LocalStorage(xtv)
- }
-
- case strings.EqualFold("localStorageTypeSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLocalStorageTypeSet(&sv.LocalStorageTypes, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("maxSpotPriceAsPercentageOfOptimalOnDemandPrice", 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.MaxSpotPriceAsPercentageOfOptimalOnDemandPrice = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("memoryGiBPerVCpu", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentMemoryGiBPerVCpu(&sv.MemoryGiBPerVCpu, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("memoryMiB", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentMemoryMiB(&sv.MemoryMiB, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("networkBandwidthGbps", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentNetworkBandwidthGbps(&sv.NetworkBandwidthGbps, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("networkInterfaceCount", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentNetworkInterfaceCount(&sv.NetworkInterfaceCount, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("onDemandMaxPricePercentageOverLowestPrice", 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.OnDemandMaxPricePercentageOverLowestPrice = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("requireHibernateSupport", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.RequireHibernateSupport = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("spotMaxPricePercentageOverLowestPrice", 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.SpotMaxPricePercentageOverLowestPrice = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("totalLocalStorageGB", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTotalLocalStorageGB(&sv.TotalLocalStorageGB, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("vCpuCount", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVCpuCountRange(&sv.VCpuCount, 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 awsEc2query_deserializeDocumentInstanceSet(v *[]types.InstanceTopology, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InstanceTopology
- if *v == nil {
- sv = make([]types.InstanceTopology, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InstanceTopology
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInstanceTopology(&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 awsEc2query_deserializeDocumentInstanceSetUnwrapped(v *[]types.InstanceTopology, decoder smithyxml.NodeDecoder) error {
- var sv []types.InstanceTopology
- if *v == nil {
- sv = make([]types.InstanceTopology, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InstanceTopology
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInstanceTopology(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInstanceState(v **types.InstanceState, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceState
- if *v == nil {
- sv = &types.InstanceState{}
- } 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)
- i64, err := strconv.ParseInt(xtv, 10, 64)
- if err != nil {
- return err
- }
- sv.Code = ptr.Int32(int32(i64))
- }
-
- 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 = types.InstanceStateName(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 awsEc2query_deserializeDocumentInstanceStateChange(v **types.InstanceStateChange, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceStateChange
- if *v == nil {
- sv = &types.InstanceStateChange{}
- } 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("currentState", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceState(&sv.CurrentState, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("previousState", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceState(&sv.PreviousState, 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 awsEc2query_deserializeDocumentInstanceStateChangeList(v *[]types.InstanceStateChange, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InstanceStateChange
- if *v == nil {
- sv = make([]types.InstanceStateChange, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InstanceStateChange
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInstanceStateChange(&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 awsEc2query_deserializeDocumentInstanceStateChangeListUnwrapped(v *[]types.InstanceStateChange, decoder smithyxml.NodeDecoder) error {
- var sv []types.InstanceStateChange
- if *v == nil {
- sv = make([]types.InstanceStateChange, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InstanceStateChange
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInstanceStateChange(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInstanceStatus(v **types.InstanceStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceStatus
- if *v == nil {
- sv = &types.InstanceStatus{}
- } 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("attachedEbsStatus", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentEbsStatusSummary(&sv.AttachedEbsStatus, nodeDecoder); err != nil {
- return err
- }
-
- 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("eventsSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceStatusEventList(&sv.Events, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceState", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceState(&sv.InstanceState, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instanceStatus", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceStatusSummary(&sv.InstanceStatus, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("operator", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("outpostArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OutpostArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("systemStatus", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceStatusSummary(&sv.SystemStatus, 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 awsEc2query_deserializeDocumentInstanceStatusDetails(v **types.InstanceStatusDetails, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceStatusDetails
- if *v == nil {
- sv = &types.InstanceStatusDetails{}
- } 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("impairedSince", 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.ImpairedSince = ptr.Time(t)
- }
-
- 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 = types.StatusName(xtv)
- }
-
- 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.StatusType(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 awsEc2query_deserializeDocumentInstanceStatusDetailsList(v *[]types.InstanceStatusDetails, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InstanceStatusDetails
- if *v == nil {
- sv = make([]types.InstanceStatusDetails, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InstanceStatusDetails
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInstanceStatusDetails(&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 awsEc2query_deserializeDocumentInstanceStatusDetailsListUnwrapped(v *[]types.InstanceStatusDetails, decoder smithyxml.NodeDecoder) error {
- var sv []types.InstanceStatusDetails
- if *v == nil {
- sv = make([]types.InstanceStatusDetails, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InstanceStatusDetails
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInstanceStatusDetails(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInstanceStatusEvent(v **types.InstanceStatusEvent, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceStatusEvent
- if *v == nil {
- sv = &types.InstanceStatusEvent{}
- } 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.EventCode(xtv)
- }
-
- 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("instanceEventId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceEventId = ptr.String(xtv)
- }
-
- case strings.EqualFold("notAfter", 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.NotAfter = ptr.Time(t)
- }
-
- case strings.EqualFold("notBefore", 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.NotBefore = ptr.Time(t)
- }
-
- case strings.EqualFold("notBeforeDeadline", 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.NotBeforeDeadline = ptr.Time(t)
- }
-
- 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 awsEc2query_deserializeDocumentInstanceStatusEventList(v *[]types.InstanceStatusEvent, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InstanceStatusEvent
- if *v == nil {
- sv = make([]types.InstanceStatusEvent, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InstanceStatusEvent
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInstanceStatusEvent(&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 awsEc2query_deserializeDocumentInstanceStatusEventListUnwrapped(v *[]types.InstanceStatusEvent, decoder smithyxml.NodeDecoder) error {
- var sv []types.InstanceStatusEvent
- if *v == nil {
- sv = make([]types.InstanceStatusEvent, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InstanceStatusEvent
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInstanceStatusEvent(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInstanceStatusList(v *[]types.InstanceStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InstanceStatus
- if *v == nil {
- sv = make([]types.InstanceStatus, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InstanceStatus
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInstanceStatus(&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 awsEc2query_deserializeDocumentInstanceStatusListUnwrapped(v *[]types.InstanceStatus, decoder smithyxml.NodeDecoder) error {
- var sv []types.InstanceStatus
- if *v == nil {
- sv = make([]types.InstanceStatus, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InstanceStatus
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInstanceStatus(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInstanceStatusSummary(v **types.InstanceStatusSummary, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceStatusSummary
- if *v == nil {
- sv = &types.InstanceStatusSummary{}
- } 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("details", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceStatusDetailsList(&sv.Details, nodeDecoder); err != nil {
- return err
- }
-
- 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.SummaryStatus(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 awsEc2query_deserializeDocumentInstanceStorageInfo(v **types.InstanceStorageInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceStorageInfo
- if *v == nil {
- sv = &types.InstanceStorageInfo{}
- } 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("disks", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentDiskInfoList(&sv.Disks, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("encryptionSupport", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EncryptionSupport = types.InstanceStorageEncryptionSupport(xtv)
- }
-
- case strings.EqualFold("nvmeSupport", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NvmeSupport = types.EphemeralNvmeSupport(xtv)
- }
-
- case strings.EqualFold("totalSizeInGB", 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.TotalSizeInGB = ptr.Int64(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 awsEc2query_deserializeDocumentInstanceTagKeySet(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("item", 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 awsEc2query_deserializeDocumentInstanceTagKeySetUnwrapped(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 awsEc2query_deserializeDocumentInstanceTagNotificationAttribute(v **types.InstanceTagNotificationAttribute, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceTagNotificationAttribute
- if *v == nil {
- sv = &types.InstanceTagNotificationAttribute{}
- } 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("includeAllTagsOfInstance", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.IncludeAllTagsOfInstance = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("instanceTagKeySet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceTagKeySet(&sv.InstanceTagKeys, 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 awsEc2query_deserializeDocumentInstanceTopology(v **types.InstanceTopology, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceTopology
- if *v == nil {
- sv = &types.InstanceTopology{}
- } 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("capacityBlockId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityBlockId = ptr.String(xtv)
- }
-
- case strings.EqualFold("groupName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupName = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkNodeSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentNetworkNodesList(&sv.NetworkNodes, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("zoneId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ZoneId = 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 awsEc2query_deserializeDocumentInstanceTypeInfo(v **types.InstanceTypeInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceTypeInfo
- if *v == nil {
- sv = &types.InstanceTypeInfo{}
- } 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("autoRecoverySupported", 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 AutoRecoveryFlag to be of type *bool, got %T instead", val)
- }
- sv.AutoRecoverySupported = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("bareMetal", 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 BareMetalFlag to be of type *bool, got %T instead", val)
- }
- sv.BareMetal = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("burstablePerformanceSupported", 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 BurstablePerformanceFlag to be of type *bool, got %T instead", val)
- }
- sv.BurstablePerformanceSupported = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("currentGeneration", 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 CurrentGenerationFlag to be of type *bool, got %T instead", val)
- }
- sv.CurrentGeneration = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("dedicatedHostsSupported", 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 DedicatedHostFlag to be of type *bool, got %T instead", val)
- }
- sv.DedicatedHostsSupported = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("ebsInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentEbsInfo(&sv.EbsInfo, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("fpgaInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentFpgaInfo(&sv.FpgaInfo, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("freeTierEligible", 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 FreeTierEligibleFlag to be of type *bool, got %T instead", val)
- }
- sv.FreeTierEligible = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("gpuInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentGpuInfo(&sv.GpuInfo, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("hibernationSupported", 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 HibernationFlag to be of type *bool, got %T instead", val)
- }
- sv.HibernationSupported = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("hypervisor", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Hypervisor = types.InstanceTypeHypervisor(xtv)
- }
-
- case strings.EqualFold("inferenceAcceleratorInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInferenceAcceleratorInfo(&sv.InferenceAcceleratorInfo, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instanceStorageInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceStorageInfo(&sv.InstanceStorageInfo, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instanceStorageSupported", 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 InstanceStorageFlag to be of type *bool, got %T instead", val)
- }
- sv.InstanceStorageSupported = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = types.InstanceType(xtv)
- }
-
- case strings.EqualFold("mediaAcceleratorInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentMediaAcceleratorInfo(&sv.MediaAcceleratorInfo, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("memoryInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentMemoryInfo(&sv.MemoryInfo, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("networkInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentNetworkInfo(&sv.NetworkInfo, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("neuronInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentNeuronInfo(&sv.NeuronInfo, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("nitroEnclavesSupport", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NitroEnclavesSupport = types.NitroEnclavesSupport(xtv)
- }
-
- case strings.EqualFold("nitroTpmInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentNitroTpmInfo(&sv.NitroTpmInfo, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("nitroTpmSupport", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NitroTpmSupport = types.NitroTpmSupport(xtv)
- }
-
- case strings.EqualFold("phcSupport", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PhcSupport = types.PhcSupport(xtv)
- }
-
- case strings.EqualFold("placementGroupInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPlacementGroupInfo(&sv.PlacementGroupInfo, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("processorInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentProcessorInfo(&sv.ProcessorInfo, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("rebootMigrationSupport", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RebootMigrationSupport = types.RebootMigrationSupport(xtv)
- }
-
- case strings.EqualFold("supportedBootModes", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentBootModeTypeList(&sv.SupportedBootModes, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("supportedRootDeviceTypes", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentRootDeviceTypeList(&sv.SupportedRootDeviceTypes, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("supportedUsageClasses", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentUsageClassTypeList(&sv.SupportedUsageClasses, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("supportedVirtualizationTypes", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVirtualizationTypeList(&sv.SupportedVirtualizationTypes, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("vCpuInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVCpuInfo(&sv.VCpuInfo, 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 awsEc2query_deserializeDocumentInstanceTypeInfoFromInstanceRequirements(v **types.InstanceTypeInfoFromInstanceRequirements, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceTypeInfoFromInstanceRequirements
- if *v == nil {
- sv = &types.InstanceTypeInfoFromInstanceRequirements{}
- } 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("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = 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 awsEc2query_deserializeDocumentInstanceTypeInfoFromInstanceRequirementsSet(v *[]types.InstanceTypeInfoFromInstanceRequirements, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InstanceTypeInfoFromInstanceRequirements
- if *v == nil {
- sv = make([]types.InstanceTypeInfoFromInstanceRequirements, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InstanceTypeInfoFromInstanceRequirements
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInstanceTypeInfoFromInstanceRequirements(&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 awsEc2query_deserializeDocumentInstanceTypeInfoFromInstanceRequirementsSetUnwrapped(v *[]types.InstanceTypeInfoFromInstanceRequirements, decoder smithyxml.NodeDecoder) error {
- var sv []types.InstanceTypeInfoFromInstanceRequirements
- if *v == nil {
- sv = make([]types.InstanceTypeInfoFromInstanceRequirements, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InstanceTypeInfoFromInstanceRequirements
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInstanceTypeInfoFromInstanceRequirements(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInstanceTypeInfoList(v *[]types.InstanceTypeInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InstanceTypeInfo
- if *v == nil {
- sv = make([]types.InstanceTypeInfo, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InstanceTypeInfo
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInstanceTypeInfo(&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 awsEc2query_deserializeDocumentInstanceTypeInfoListUnwrapped(v *[]types.InstanceTypeInfo, decoder smithyxml.NodeDecoder) error {
- var sv []types.InstanceTypeInfo
- if *v == nil {
- sv = make([]types.InstanceTypeInfo, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InstanceTypeInfo
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInstanceTypeInfo(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInstanceTypeOffering(v **types.InstanceTypeOffering, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceTypeOffering
- if *v == nil {
- sv = &types.InstanceTypeOffering{}
- } 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("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = types.InstanceType(xtv)
- }
-
- 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)
- }
-
- case strings.EqualFold("locationType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocationType = types.LocationType(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 awsEc2query_deserializeDocumentInstanceTypeOfferingsList(v *[]types.InstanceTypeOffering, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InstanceTypeOffering
- if *v == nil {
- sv = make([]types.InstanceTypeOffering, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InstanceTypeOffering
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInstanceTypeOffering(&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 awsEc2query_deserializeDocumentInstanceTypeOfferingsListUnwrapped(v *[]types.InstanceTypeOffering, decoder smithyxml.NodeDecoder) error {
- var sv []types.InstanceTypeOffering
- if *v == nil {
- sv = make([]types.InstanceTypeOffering, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InstanceTypeOffering
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInstanceTypeOffering(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInstanceTypesList(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("item", 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 awsEc2query_deserializeDocumentInstanceTypesListUnwrapped(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 awsEc2query_deserializeDocumentInstanceUsage(v **types.InstanceUsage, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InstanceUsage
- if *v == nil {
- sv = &types.InstanceUsage{}
- } 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("accountId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AccountId = ptr.String(xtv)
- }
-
- case strings.EqualFold("usedInstanceCount", 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.UsedInstanceCount = 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 awsEc2query_deserializeDocumentInstanceUsageSet(v *[]types.InstanceUsage, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InstanceUsage
- if *v == nil {
- sv = make([]types.InstanceUsage, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InstanceUsage
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInstanceUsage(&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 awsEc2query_deserializeDocumentInstanceUsageSetUnwrapped(v *[]types.InstanceUsage, decoder smithyxml.NodeDecoder) error {
- var sv []types.InstanceUsage
- if *v == nil {
- sv = make([]types.InstanceUsage, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InstanceUsage
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInstanceUsage(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInternetGateway(v **types.InternetGateway, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InternetGateway
- if *v == nil {
- sv = &types.InternetGateway{}
- } 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("attachmentSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInternetGatewayAttachmentList(&sv.Attachments, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("internetGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InternetGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentInternetGatewayAttachment(v **types.InternetGatewayAttachment, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.InternetGatewayAttachment
- if *v == nil {
- sv = &types.InternetGatewayAttachment{}
- } 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("state", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.State = types.AttachmentStatus(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 awsEc2query_deserializeDocumentInternetGatewayAttachmentList(v *[]types.InternetGatewayAttachment, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InternetGatewayAttachment
- if *v == nil {
- sv = make([]types.InternetGatewayAttachment, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InternetGatewayAttachment
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInternetGatewayAttachment(&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 awsEc2query_deserializeDocumentInternetGatewayAttachmentListUnwrapped(v *[]types.InternetGatewayAttachment, decoder smithyxml.NodeDecoder) error {
- var sv []types.InternetGatewayAttachment
- if *v == nil {
- sv = make([]types.InternetGatewayAttachment, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InternetGatewayAttachment
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInternetGatewayAttachment(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentInternetGatewayList(v *[]types.InternetGateway, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.InternetGateway
- if *v == nil {
- sv = make([]types.InternetGateway, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.InternetGateway
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentInternetGateway(&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 awsEc2query_deserializeDocumentInternetGatewayListUnwrapped(v *[]types.InternetGateway, decoder smithyxml.NodeDecoder) error {
- var sv []types.InternetGateway
- if *v == nil {
- sv = make([]types.InternetGateway, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.InternetGateway
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentInternetGateway(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpAddressList(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("item", 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 awsEc2query_deserializeDocumentIpAddressListUnwrapped(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 awsEc2query_deserializeDocumentIpam(v **types.Ipam, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Ipam
- if *v == nil {
- sv = &types.Ipam{}
- } 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("defaultResourceDiscoveryAssociationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DefaultResourceDiscoveryAssociationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("defaultResourceDiscoveryId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DefaultResourceDiscoveryId = ptr.String(xtv)
- }
-
- 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("enablePrivateGua", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EnablePrivateGua = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("ipamArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamRegion", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamRegion = ptr.String(xtv)
- }
-
- case strings.EqualFold("meteredAccount", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.MeteredAccount = types.IpamMeteredAccount(xtv)
- }
-
- case strings.EqualFold("operatingRegionSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpamOperatingRegionSet(&sv.OperatingRegions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("privateDefaultScopeId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrivateDefaultScopeId = ptr.String(xtv)
- }
-
- case strings.EqualFold("publicDefaultScopeId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PublicDefaultScopeId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceDiscoveryAssociationCount", 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.ResourceDiscoveryAssociationCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("scopeCount", 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.ScopeCount = ptr.Int32(int32(i64))
- }
-
- 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.IpamState(xtv)
- }
-
- case strings.EqualFold("stateMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StateMessage = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tier", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Tier = types.IpamTier(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 awsEc2query_deserializeDocumentIpamAddressHistoryRecord(v **types.IpamAddressHistoryRecord, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IpamAddressHistoryRecord
- if *v == nil {
- sv = &types.IpamAddressHistoryRecord{}
- } 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("resourceCidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceCidr = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceComplianceStatus", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceComplianceStatus = types.IpamComplianceStatus(xtv)
- }
-
- case strings.EqualFold("resourceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceName = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceOverlapStatus", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceOverlapStatus = types.IpamOverlapStatus(xtv)
- }
-
- case strings.EqualFold("resourceOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceOwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceRegion", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceRegion = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceType = types.IpamAddressHistoryResourceType(xtv)
- }
-
- case strings.EqualFold("sampledEndTime", 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.SampledEndTime = ptr.Time(t)
- }
-
- case strings.EqualFold("sampledStartTime", 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.SampledStartTime = ptr.Time(t)
- }
-
- 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 awsEc2query_deserializeDocumentIpamAddressHistoryRecordSet(v *[]types.IpamAddressHistoryRecord, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.IpamAddressHistoryRecord
- if *v == nil {
- sv = make([]types.IpamAddressHistoryRecord, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.IpamAddressHistoryRecord
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpamAddressHistoryRecord(&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 awsEc2query_deserializeDocumentIpamAddressHistoryRecordSetUnwrapped(v *[]types.IpamAddressHistoryRecord, decoder smithyxml.NodeDecoder) error {
- var sv []types.IpamAddressHistoryRecord
- if *v == nil {
- sv = make([]types.IpamAddressHistoryRecord, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.IpamAddressHistoryRecord
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpamAddressHistoryRecord(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpamDiscoveredAccount(v **types.IpamDiscoveredAccount, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IpamDiscoveredAccount
- if *v == nil {
- sv = &types.IpamDiscoveredAccount{}
- } 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("accountId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AccountId = ptr.String(xtv)
- }
-
- case strings.EqualFold("discoveryRegion", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DiscoveryRegion = ptr.String(xtv)
- }
-
- case strings.EqualFold("failureReason", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpamDiscoveryFailureReason(&sv.FailureReason, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("lastAttemptedDiscoveryTime", 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.LastAttemptedDiscoveryTime = ptr.Time(t)
- }
-
- case strings.EqualFold("lastSuccessfulDiscoveryTime", 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.LastSuccessfulDiscoveryTime = ptr.Time(t)
- }
-
- case strings.EqualFold("organizationalUnitId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OrganizationalUnitId = 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 awsEc2query_deserializeDocumentIpamDiscoveredAccountSet(v *[]types.IpamDiscoveredAccount, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.IpamDiscoveredAccount
- if *v == nil {
- sv = make([]types.IpamDiscoveredAccount, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.IpamDiscoveredAccount
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpamDiscoveredAccount(&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 awsEc2query_deserializeDocumentIpamDiscoveredAccountSetUnwrapped(v *[]types.IpamDiscoveredAccount, decoder smithyxml.NodeDecoder) error {
- var sv []types.IpamDiscoveredAccount
- if *v == nil {
- sv = make([]types.IpamDiscoveredAccount, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.IpamDiscoveredAccount
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpamDiscoveredAccount(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpamDiscoveredPublicAddress(v **types.IpamDiscoveredPublicAddress, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IpamDiscoveredPublicAddress
- if *v == nil {
- sv = &types.IpamDiscoveredPublicAddress{}
- } 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("address", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Address = ptr.String(xtv)
- }
-
- case strings.EqualFold("addressAllocationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AddressAllocationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("addressOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AddressOwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("addressRegion", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AddressRegion = ptr.String(xtv)
- }
-
- case strings.EqualFold("addressType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AddressType = types.IpamPublicAddressType(xtv)
- }
-
- case strings.EqualFold("associationStatus", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AssociationStatus = types.IpamPublicAddressAssociationStatus(xtv)
- }
-
- case strings.EqualFold("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamResourceDiscoveryId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamResourceDiscoveryId = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkBorderGroup", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkBorderGroup = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkInterfaceDescription", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInterfaceDescription = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkInterfaceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInterfaceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("publicIpv4PoolId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PublicIpv4PoolId = ptr.String(xtv)
- }
-
- case strings.EqualFold("sampleTime", 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.SampleTime = ptr.Time(t)
- }
-
- case strings.EqualFold("securityGroupSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpamPublicAddressSecurityGroupList(&sv.SecurityGroups, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("service", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Service = types.IpamPublicAddressAwsService(xtv)
- }
-
- case strings.EqualFold("serviceResource", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServiceResource = ptr.String(xtv)
- }
-
- 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("tags", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpamPublicAddressTags(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- 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 awsEc2query_deserializeDocumentIpamDiscoveredPublicAddressSet(v *[]types.IpamDiscoveredPublicAddress, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.IpamDiscoveredPublicAddress
- if *v == nil {
- sv = make([]types.IpamDiscoveredPublicAddress, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.IpamDiscoveredPublicAddress
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpamDiscoveredPublicAddress(&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 awsEc2query_deserializeDocumentIpamDiscoveredPublicAddressSetUnwrapped(v *[]types.IpamDiscoveredPublicAddress, decoder smithyxml.NodeDecoder) error {
- var sv []types.IpamDiscoveredPublicAddress
- if *v == nil {
- sv = make([]types.IpamDiscoveredPublicAddress, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.IpamDiscoveredPublicAddress
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpamDiscoveredPublicAddress(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpamDiscoveredResourceCidr(v **types.IpamDiscoveredResourceCidr, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IpamDiscoveredResourceCidr
- if *v == nil {
- sv = &types.IpamDiscoveredResourceCidr{}
- } 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("availabilityZoneId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AvailabilityZoneId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamResourceDiscoveryId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamResourceDiscoveryId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipSource", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpSource = types.IpamResourceCidrIpSource(xtv)
- }
-
- case strings.EqualFold("ipUsage", 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.IpUsage = ptr.Float64(f64)
- }
-
- case strings.EqualFold("networkInterfaceAttachmentStatus", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInterfaceAttachmentStatus = types.IpamNetworkInterfaceAttachmentStatus(xtv)
- }
-
- case strings.EqualFold("resourceCidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceCidr = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceOwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceRegion", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceRegion = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceTagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpamResourceTagList(&sv.ResourceTags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("resourceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceType = types.IpamResourceType(xtv)
- }
-
- case strings.EqualFold("sampleTime", 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.SampleTime = ptr.Time(t)
- }
-
- 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("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 awsEc2query_deserializeDocumentIpamDiscoveredResourceCidrSet(v *[]types.IpamDiscoveredResourceCidr, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.IpamDiscoveredResourceCidr
- if *v == nil {
- sv = make([]types.IpamDiscoveredResourceCidr, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.IpamDiscoveredResourceCidr
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpamDiscoveredResourceCidr(&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 awsEc2query_deserializeDocumentIpamDiscoveredResourceCidrSetUnwrapped(v *[]types.IpamDiscoveredResourceCidr, decoder smithyxml.NodeDecoder) error {
- var sv []types.IpamDiscoveredResourceCidr
- if *v == nil {
- sv = make([]types.IpamDiscoveredResourceCidr, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.IpamDiscoveredResourceCidr
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpamDiscoveredResourceCidr(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpamDiscoveryFailureReason(v **types.IpamDiscoveryFailureReason, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IpamDiscoveryFailureReason
- if *v == nil {
- sv = &types.IpamDiscoveryFailureReason{}
- } 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.IpamDiscoveryFailureCode(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentIpamExternalResourceVerificationToken(v **types.IpamExternalResourceVerificationToken, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IpamExternalResourceVerificationToken
- if *v == nil {
- sv = &types.IpamExternalResourceVerificationToken{}
- } 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("ipamArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamExternalResourceVerificationTokenArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamExternalResourceVerificationTokenArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamExternalResourceVerificationTokenId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamExternalResourceVerificationTokenId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamRegion", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamRegion = ptr.String(xtv)
- }
-
- case strings.EqualFold("notAfter", 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.NotAfter = ptr.Time(t)
- }
-
- 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.IpamExternalResourceVerificationTokenState(xtv)
- }
-
- 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.TokenState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tokenName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TokenName = ptr.String(xtv)
- }
-
- case strings.EqualFold("tokenValue", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TokenValue = 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 awsEc2query_deserializeDocumentIpamExternalResourceVerificationTokenSet(v *[]types.IpamExternalResourceVerificationToken, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.IpamExternalResourceVerificationToken
- if *v == nil {
- sv = make([]types.IpamExternalResourceVerificationToken, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.IpamExternalResourceVerificationToken
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpamExternalResourceVerificationToken(&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 awsEc2query_deserializeDocumentIpamExternalResourceVerificationTokenSetUnwrapped(v *[]types.IpamExternalResourceVerificationToken, decoder smithyxml.NodeDecoder) error {
- var sv []types.IpamExternalResourceVerificationToken
- if *v == nil {
- sv = make([]types.IpamExternalResourceVerificationToken, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.IpamExternalResourceVerificationToken
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpamExternalResourceVerificationToken(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpamOperatingRegion(v **types.IpamOperatingRegion, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IpamOperatingRegion
- if *v == nil {
- sv = &types.IpamOperatingRegion{}
- } 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("regionName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RegionName = 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 awsEc2query_deserializeDocumentIpamOperatingRegionSet(v *[]types.IpamOperatingRegion, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.IpamOperatingRegion
- if *v == nil {
- sv = make([]types.IpamOperatingRegion, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.IpamOperatingRegion
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpamOperatingRegion(&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 awsEc2query_deserializeDocumentIpamOperatingRegionSetUnwrapped(v *[]types.IpamOperatingRegion, decoder smithyxml.NodeDecoder) error {
- var sv []types.IpamOperatingRegion
- if *v == nil {
- sv = make([]types.IpamOperatingRegion, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.IpamOperatingRegion
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpamOperatingRegion(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpamOrganizationalUnitExclusion(v **types.IpamOrganizationalUnitExclusion, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IpamOrganizationalUnitExclusion
- if *v == nil {
- sv = &types.IpamOrganizationalUnitExclusion{}
- } 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("organizationsEntityPath", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OrganizationsEntityPath = 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 awsEc2query_deserializeDocumentIpamOrganizationalUnitExclusionSet(v *[]types.IpamOrganizationalUnitExclusion, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.IpamOrganizationalUnitExclusion
- if *v == nil {
- sv = make([]types.IpamOrganizationalUnitExclusion, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.IpamOrganizationalUnitExclusion
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpamOrganizationalUnitExclusion(&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 awsEc2query_deserializeDocumentIpamOrganizationalUnitExclusionSetUnwrapped(v *[]types.IpamOrganizationalUnitExclusion, decoder smithyxml.NodeDecoder) error {
- var sv []types.IpamOrganizationalUnitExclusion
- if *v == nil {
- sv = make([]types.IpamOrganizationalUnitExclusion, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.IpamOrganizationalUnitExclusion
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpamOrganizationalUnitExclusion(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpamPool(v **types.IpamPool, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IpamPool
- if *v == nil {
- sv = &types.IpamPool{}
- } 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("addressFamily", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AddressFamily = types.AddressFamily(xtv)
- }
-
- case strings.EqualFold("allocationDefaultNetmaskLength", 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.AllocationDefaultNetmaskLength = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("allocationMaxNetmaskLength", 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.AllocationMaxNetmaskLength = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("allocationMinNetmaskLength", 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.AllocationMinNetmaskLength = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("allocationResourceTagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpamResourceTagList(&sv.AllocationResourceTags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("autoImport", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.AutoImport = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("awsService", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AwsService = types.IpamPoolAwsService(xtv)
- }
-
- 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("ipamArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamPoolArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamPoolArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamPoolId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamPoolId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamRegion", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamRegion = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamScopeArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamScopeArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamScopeType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamScopeType = types.IpamScopeType(xtv)
- }
-
- case strings.EqualFold("locale", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Locale = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("poolDepth", 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.PoolDepth = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("publicIpSource", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PublicIpSource = types.IpamPoolPublicIpSource(xtv)
- }
-
- case strings.EqualFold("publiclyAdvertisable", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.PubliclyAdvertisable = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("sourceIpamPoolId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SourceIpamPoolId = ptr.String(xtv)
- }
-
- case strings.EqualFold("sourceResource", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpamPoolSourceResource(&sv.SourceResource, nodeDecoder); err != nil {
- return err
- }
-
- 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.IpamPoolState(xtv)
- }
-
- case strings.EqualFold("stateMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StateMessage = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentIpamPoolAllocation(v **types.IpamPoolAllocation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IpamPoolAllocation
- if *v == nil {
- sv = &types.IpamPoolAllocation{}
- } 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("cidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Cidr = ptr.String(xtv)
- }
-
- 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("ipamPoolAllocationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamPoolAllocationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceOwner", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceOwner = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceRegion", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceRegion = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceType = types.IpamPoolAllocationResourceType(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 awsEc2query_deserializeDocumentIpamPoolAllocationSet(v *[]types.IpamPoolAllocation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.IpamPoolAllocation
- if *v == nil {
- sv = make([]types.IpamPoolAllocation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.IpamPoolAllocation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpamPoolAllocation(&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 awsEc2query_deserializeDocumentIpamPoolAllocationSetUnwrapped(v *[]types.IpamPoolAllocation, decoder smithyxml.NodeDecoder) error {
- var sv []types.IpamPoolAllocation
- if *v == nil {
- sv = make([]types.IpamPoolAllocation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.IpamPoolAllocation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpamPoolAllocation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpamPoolCidr(v **types.IpamPoolCidr, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IpamPoolCidr
- if *v == nil {
- sv = &types.IpamPoolCidr{}
- } 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("cidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Cidr = ptr.String(xtv)
- }
-
- case strings.EqualFold("failureReason", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpamPoolCidrFailureReason(&sv.FailureReason, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ipamPoolCidrId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamPoolCidrId = ptr.String(xtv)
- }
-
- case strings.EqualFold("netmaskLength", 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.NetmaskLength = ptr.Int32(int32(i64))
- }
-
- 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.IpamPoolCidrState(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 awsEc2query_deserializeDocumentIpamPoolCidrFailureReason(v **types.IpamPoolCidrFailureReason, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IpamPoolCidrFailureReason
- if *v == nil {
- sv = &types.IpamPoolCidrFailureReason{}
- } 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.IpamPoolCidrFailureCode(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentIpamPoolCidrSet(v *[]types.IpamPoolCidr, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.IpamPoolCidr
- if *v == nil {
- sv = make([]types.IpamPoolCidr, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.IpamPoolCidr
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpamPoolCidr(&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 awsEc2query_deserializeDocumentIpamPoolCidrSetUnwrapped(v *[]types.IpamPoolCidr, decoder smithyxml.NodeDecoder) error {
- var sv []types.IpamPoolCidr
- if *v == nil {
- sv = make([]types.IpamPoolCidr, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.IpamPoolCidr
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpamPoolCidr(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpamPoolSet(v *[]types.IpamPool, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.IpamPool
- if *v == nil {
- sv = make([]types.IpamPool, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.IpamPool
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpamPool(&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 awsEc2query_deserializeDocumentIpamPoolSetUnwrapped(v *[]types.IpamPool, decoder smithyxml.NodeDecoder) error {
- var sv []types.IpamPool
- if *v == nil {
- sv = make([]types.IpamPool, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.IpamPool
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpamPool(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpamPoolSourceResource(v **types.IpamPoolSourceResource, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IpamPoolSourceResource
- if *v == nil {
- sv = &types.IpamPoolSourceResource{}
- } 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("resourceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceOwner", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceOwner = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceRegion", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceRegion = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceType = types.IpamPoolSourceResourceType(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 awsEc2query_deserializeDocumentIpamPublicAddressSecurityGroup(v **types.IpamPublicAddressSecurityGroup, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IpamPublicAddressSecurityGroup
- if *v == nil {
- sv = &types.IpamPublicAddressSecurityGroup{}
- } 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("groupId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupId = ptr.String(xtv)
- }
-
- case strings.EqualFold("groupName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupName = 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 awsEc2query_deserializeDocumentIpamPublicAddressSecurityGroupList(v *[]types.IpamPublicAddressSecurityGroup, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.IpamPublicAddressSecurityGroup
- if *v == nil {
- sv = make([]types.IpamPublicAddressSecurityGroup, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.IpamPublicAddressSecurityGroup
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpamPublicAddressSecurityGroup(&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 awsEc2query_deserializeDocumentIpamPublicAddressSecurityGroupListUnwrapped(v *[]types.IpamPublicAddressSecurityGroup, decoder smithyxml.NodeDecoder) error {
- var sv []types.IpamPublicAddressSecurityGroup
- if *v == nil {
- sv = make([]types.IpamPublicAddressSecurityGroup, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.IpamPublicAddressSecurityGroup
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpamPublicAddressSecurityGroup(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpamPublicAddressTag(v **types.IpamPublicAddressTag, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IpamPublicAddressTag
- if *v == nil {
- sv = &types.IpamPublicAddressTag{}
- } 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 awsEc2query_deserializeDocumentIpamPublicAddressTagList(v *[]types.IpamPublicAddressTag, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.IpamPublicAddressTag
- if *v == nil {
- sv = make([]types.IpamPublicAddressTag, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.IpamPublicAddressTag
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpamPublicAddressTag(&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 awsEc2query_deserializeDocumentIpamPublicAddressTagListUnwrapped(v *[]types.IpamPublicAddressTag, decoder smithyxml.NodeDecoder) error {
- var sv []types.IpamPublicAddressTag
- if *v == nil {
- sv = make([]types.IpamPublicAddressTag, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.IpamPublicAddressTag
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpamPublicAddressTag(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpamPublicAddressTags(v **types.IpamPublicAddressTags, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IpamPublicAddressTags
- if *v == nil {
- sv = &types.IpamPublicAddressTags{}
- } 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("eipTagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpamPublicAddressTagList(&sv.EipTags, 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 awsEc2query_deserializeDocumentIpamResourceCidr(v **types.IpamResourceCidr, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IpamResourceCidr
- if *v == nil {
- sv = &types.IpamResourceCidr{}
- } 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("availabilityZoneId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AvailabilityZoneId = ptr.String(xtv)
- }
-
- case strings.EqualFold("complianceStatus", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ComplianceStatus = types.IpamComplianceStatus(xtv)
- }
-
- case strings.EqualFold("ipamId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamPoolId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamPoolId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamScopeId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamScopeId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipUsage", 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.IpUsage = ptr.Float64(f64)
- }
-
- case strings.EqualFold("managementState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ManagementState = types.IpamManagementState(xtv)
- }
-
- case strings.EqualFold("overlapStatus", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OverlapStatus = types.IpamOverlapStatus(xtv)
- }
-
- case strings.EqualFold("resourceCidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceCidr = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceName = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceOwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceRegion", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceRegion = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceTagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpamResourceTagList(&sv.ResourceTags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("resourceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceType = types.IpamResourceType(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 awsEc2query_deserializeDocumentIpamResourceCidrSet(v *[]types.IpamResourceCidr, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.IpamResourceCidr
- if *v == nil {
- sv = make([]types.IpamResourceCidr, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.IpamResourceCidr
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpamResourceCidr(&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 awsEc2query_deserializeDocumentIpamResourceCidrSetUnwrapped(v *[]types.IpamResourceCidr, decoder smithyxml.NodeDecoder) error {
- var sv []types.IpamResourceCidr
- if *v == nil {
- sv = make([]types.IpamResourceCidr, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.IpamResourceCidr
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpamResourceCidr(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpamResourceDiscovery(v **types.IpamResourceDiscovery, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IpamResourceDiscovery
- if *v == nil {
- sv = &types.IpamResourceDiscovery{}
- } 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("ipamResourceDiscoveryArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamResourceDiscoveryArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamResourceDiscoveryId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamResourceDiscoveryId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamResourceDiscoveryRegion", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamResourceDiscoveryRegion = 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.IsDefault = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("operatingRegionSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpamOperatingRegionSet(&sv.OperatingRegions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("organizationalUnitExclusionSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpamOrganizationalUnitExclusionSet(&sv.OrganizationalUnitExclusions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(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.IpamResourceDiscoveryState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentIpamResourceDiscoveryAssociation(v **types.IpamResourceDiscoveryAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IpamResourceDiscoveryAssociation
- if *v == nil {
- sv = &types.IpamResourceDiscoveryAssociation{}
- } 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("ipamArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamRegion", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamRegion = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamResourceDiscoveryAssociationArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamResourceDiscoveryAssociationArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamResourceDiscoveryAssociationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamResourceDiscoveryAssociationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamResourceDiscoveryId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamResourceDiscoveryId = 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.IsDefault = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceDiscoveryStatus", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceDiscoveryStatus = types.IpamAssociatedResourceDiscoveryStatus(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.IpamResourceDiscoveryAssociationState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentIpamResourceDiscoveryAssociationSet(v *[]types.IpamResourceDiscoveryAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.IpamResourceDiscoveryAssociation
- if *v == nil {
- sv = make([]types.IpamResourceDiscoveryAssociation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.IpamResourceDiscoveryAssociation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpamResourceDiscoveryAssociation(&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 awsEc2query_deserializeDocumentIpamResourceDiscoveryAssociationSetUnwrapped(v *[]types.IpamResourceDiscoveryAssociation, decoder smithyxml.NodeDecoder) error {
- var sv []types.IpamResourceDiscoveryAssociation
- if *v == nil {
- sv = make([]types.IpamResourceDiscoveryAssociation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.IpamResourceDiscoveryAssociation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpamResourceDiscoveryAssociation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpamResourceDiscoverySet(v *[]types.IpamResourceDiscovery, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.IpamResourceDiscovery
- if *v == nil {
- sv = make([]types.IpamResourceDiscovery, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.IpamResourceDiscovery
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpamResourceDiscovery(&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 awsEc2query_deserializeDocumentIpamResourceDiscoverySetUnwrapped(v *[]types.IpamResourceDiscovery, decoder smithyxml.NodeDecoder) error {
- var sv []types.IpamResourceDiscovery
- if *v == nil {
- sv = make([]types.IpamResourceDiscovery, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.IpamResourceDiscovery
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpamResourceDiscovery(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpamResourceTag(v **types.IpamResourceTag, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IpamResourceTag
- if *v == nil {
- sv = &types.IpamResourceTag{}
- } 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 awsEc2query_deserializeDocumentIpamResourceTagList(v *[]types.IpamResourceTag, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.IpamResourceTag
- if *v == nil {
- sv = make([]types.IpamResourceTag, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.IpamResourceTag
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpamResourceTag(&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 awsEc2query_deserializeDocumentIpamResourceTagListUnwrapped(v *[]types.IpamResourceTag, decoder smithyxml.NodeDecoder) error {
- var sv []types.IpamResourceTag
- if *v == nil {
- sv = make([]types.IpamResourceTag, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.IpamResourceTag
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpamResourceTag(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpamScope(v **types.IpamScope, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IpamScope
- if *v == nil {
- sv = &types.IpamScope{}
- } 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("ipamArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamRegion", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamRegion = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamScopeArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamScopeArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamScopeId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamScopeId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipamScopeType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpamScopeType = types.IpamScopeType(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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.IsDefault = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("poolCount", 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.PoolCount = ptr.Int32(int32(i64))
- }
-
- 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.IpamScopeState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentIpamScopeSet(v *[]types.IpamScope, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.IpamScope
- if *v == nil {
- sv = make([]types.IpamScope, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.IpamScope
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpamScope(&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 awsEc2query_deserializeDocumentIpamScopeSetUnwrapped(v *[]types.IpamScope, decoder smithyxml.NodeDecoder) error {
- var sv []types.IpamScope
- if *v == nil {
- sv = make([]types.IpamScope, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.IpamScope
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpamScope(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpamSet(v *[]types.Ipam, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Ipam
- if *v == nil {
- sv = make([]types.Ipam, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Ipam
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpam(&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 awsEc2query_deserializeDocumentIpamSetUnwrapped(v *[]types.Ipam, decoder smithyxml.NodeDecoder) error {
- var sv []types.Ipam
- if *v == nil {
- sv = make([]types.Ipam, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Ipam
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpam(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpPermission(v **types.IpPermission, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IpPermission
- if *v == nil {
- sv = &types.IpPermission{}
- } 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("fromPort", 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.FromPort = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("ipProtocol", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpProtocol = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipRanges", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpRangeList(&sv.IpRanges, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ipv6Ranges", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpv6RangeList(&sv.Ipv6Ranges, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("prefixListIds", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPrefixListIdList(&sv.PrefixListIds, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("toPort", 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.ToPort = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("groups", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentUserIdGroupPairList(&sv.UserIdGroupPairs, 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 awsEc2query_deserializeDocumentIpPermissionList(v *[]types.IpPermission, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.IpPermission
- if *v == nil {
- sv = make([]types.IpPermission, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.IpPermission
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpPermission(&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 awsEc2query_deserializeDocumentIpPermissionListUnwrapped(v *[]types.IpPermission, decoder smithyxml.NodeDecoder) error {
- var sv []types.IpPermission
- if *v == nil {
- sv = make([]types.IpPermission, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.IpPermission
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpPermission(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpPrefixList(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("item", 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 awsEc2query_deserializeDocumentIpPrefixListUnwrapped(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 awsEc2query_deserializeDocumentIpRange(v **types.IpRange, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.IpRange
- if *v == nil {
- sv = &types.IpRange{}
- } 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("cidrIp", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CidrIp = ptr.String(xtv)
- }
-
- 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)
- }
-
- 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 awsEc2query_deserializeDocumentIpRangeList(v *[]types.IpRange, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.IpRange
- if *v == nil {
- sv = make([]types.IpRange, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.IpRange
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpRange(&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 awsEc2query_deserializeDocumentIpRangeListUnwrapped(v *[]types.IpRange, decoder smithyxml.NodeDecoder) error {
- var sv []types.IpRange
- if *v == nil {
- sv = make([]types.IpRange, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.IpRange
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpRange(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpRanges(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("item", 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 awsEc2query_deserializeDocumentIpRangesUnwrapped(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 awsEc2query_deserializeDocumentIpv4PrefixesList(v *[]types.Ipv4PrefixSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Ipv4PrefixSpecification
- if *v == nil {
- sv = make([]types.Ipv4PrefixSpecification, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Ipv4PrefixSpecification
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpv4PrefixSpecification(&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 awsEc2query_deserializeDocumentIpv4PrefixesListUnwrapped(v *[]types.Ipv4PrefixSpecification, decoder smithyxml.NodeDecoder) error {
- var sv []types.Ipv4PrefixSpecification
- if *v == nil {
- sv = make([]types.Ipv4PrefixSpecification, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Ipv4PrefixSpecification
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpv4PrefixSpecification(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpv4PrefixList(v *[]types.Ipv4PrefixSpecificationRequest, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Ipv4PrefixSpecificationRequest
- if *v == nil {
- sv = make([]types.Ipv4PrefixSpecificationRequest, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Ipv4PrefixSpecificationRequest
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpv4PrefixSpecificationRequest(&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 awsEc2query_deserializeDocumentIpv4PrefixListUnwrapped(v *[]types.Ipv4PrefixSpecificationRequest, decoder smithyxml.NodeDecoder) error {
- var sv []types.Ipv4PrefixSpecificationRequest
- if *v == nil {
- sv = make([]types.Ipv4PrefixSpecificationRequest, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Ipv4PrefixSpecificationRequest
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpv4PrefixSpecificationRequest(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpv4PrefixListResponse(v *[]types.Ipv4PrefixSpecificationResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Ipv4PrefixSpecificationResponse
- if *v == nil {
- sv = make([]types.Ipv4PrefixSpecificationResponse, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Ipv4PrefixSpecificationResponse
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpv4PrefixSpecificationResponse(&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 awsEc2query_deserializeDocumentIpv4PrefixListResponseUnwrapped(v *[]types.Ipv4PrefixSpecificationResponse, decoder smithyxml.NodeDecoder) error {
- var sv []types.Ipv4PrefixSpecificationResponse
- if *v == nil {
- sv = make([]types.Ipv4PrefixSpecificationResponse, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Ipv4PrefixSpecificationResponse
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpv4PrefixSpecificationResponse(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpv4PrefixSpecification(v **types.Ipv4PrefixSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Ipv4PrefixSpecification
- if *v == nil {
- sv = &types.Ipv4PrefixSpecification{}
- } 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("ipv4Prefix", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Ipv4Prefix = 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 awsEc2query_deserializeDocumentIpv4PrefixSpecificationRequest(v **types.Ipv4PrefixSpecificationRequest, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Ipv4PrefixSpecificationRequest
- if *v == nil {
- sv = &types.Ipv4PrefixSpecificationRequest{}
- } 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("Ipv4Prefix", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Ipv4Prefix = 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 awsEc2query_deserializeDocumentIpv4PrefixSpecificationResponse(v **types.Ipv4PrefixSpecificationResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Ipv4PrefixSpecificationResponse
- if *v == nil {
- sv = &types.Ipv4PrefixSpecificationResponse{}
- } 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("ipv4Prefix", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Ipv4Prefix = 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 awsEc2query_deserializeDocumentIpv6AddressList(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("item", 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 awsEc2query_deserializeDocumentIpv6AddressListUnwrapped(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 awsEc2query_deserializeDocumentIpv6CidrAssociation(v **types.Ipv6CidrAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Ipv6CidrAssociation
- if *v == nil {
- sv = &types.Ipv6CidrAssociation{}
- } 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("associatedResource", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AssociatedResource = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipv6Cidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Ipv6Cidr = 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 awsEc2query_deserializeDocumentIpv6CidrAssociationSet(v *[]types.Ipv6CidrAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Ipv6CidrAssociation
- if *v == nil {
- sv = make([]types.Ipv6CidrAssociation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Ipv6CidrAssociation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpv6CidrAssociation(&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 awsEc2query_deserializeDocumentIpv6CidrAssociationSetUnwrapped(v *[]types.Ipv6CidrAssociation, decoder smithyxml.NodeDecoder) error {
- var sv []types.Ipv6CidrAssociation
- if *v == nil {
- sv = make([]types.Ipv6CidrAssociation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Ipv6CidrAssociation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpv6CidrAssociation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpv6CidrBlock(v **types.Ipv6CidrBlock, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Ipv6CidrBlock
- if *v == nil {
- sv = &types.Ipv6CidrBlock{}
- } 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("ipv6CidrBlock", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Ipv6CidrBlock = 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 awsEc2query_deserializeDocumentIpv6CidrBlockSet(v *[]types.Ipv6CidrBlock, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Ipv6CidrBlock
- if *v == nil {
- sv = make([]types.Ipv6CidrBlock, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Ipv6CidrBlock
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpv6CidrBlock(&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 awsEc2query_deserializeDocumentIpv6CidrBlockSetUnwrapped(v *[]types.Ipv6CidrBlock, decoder smithyxml.NodeDecoder) error {
- var sv []types.Ipv6CidrBlock
- if *v == nil {
- sv = make([]types.Ipv6CidrBlock, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Ipv6CidrBlock
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpv6CidrBlock(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpv6Pool(v **types.Ipv6Pool, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Ipv6Pool
- if *v == nil {
- sv = &types.Ipv6Pool{}
- } 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("poolCidrBlockSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPoolCidrBlocksSet(&sv.PoolCidrBlocks, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("poolId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PoolId = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentIpv6PoolSet(v *[]types.Ipv6Pool, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Ipv6Pool
- if *v == nil {
- sv = make([]types.Ipv6Pool, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Ipv6Pool
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpv6Pool(&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 awsEc2query_deserializeDocumentIpv6PoolSetUnwrapped(v *[]types.Ipv6Pool, decoder smithyxml.NodeDecoder) error {
- var sv []types.Ipv6Pool
- if *v == nil {
- sv = make([]types.Ipv6Pool, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Ipv6Pool
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpv6Pool(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpv6PrefixesList(v *[]types.Ipv6PrefixSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Ipv6PrefixSpecification
- if *v == nil {
- sv = make([]types.Ipv6PrefixSpecification, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Ipv6PrefixSpecification
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpv6PrefixSpecification(&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 awsEc2query_deserializeDocumentIpv6PrefixesListUnwrapped(v *[]types.Ipv6PrefixSpecification, decoder smithyxml.NodeDecoder) error {
- var sv []types.Ipv6PrefixSpecification
- if *v == nil {
- sv = make([]types.Ipv6PrefixSpecification, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Ipv6PrefixSpecification
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpv6PrefixSpecification(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpv6PrefixList(v *[]types.Ipv6PrefixSpecificationRequest, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Ipv6PrefixSpecificationRequest
- if *v == nil {
- sv = make([]types.Ipv6PrefixSpecificationRequest, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Ipv6PrefixSpecificationRequest
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpv6PrefixSpecificationRequest(&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 awsEc2query_deserializeDocumentIpv6PrefixListUnwrapped(v *[]types.Ipv6PrefixSpecificationRequest, decoder smithyxml.NodeDecoder) error {
- var sv []types.Ipv6PrefixSpecificationRequest
- if *v == nil {
- sv = make([]types.Ipv6PrefixSpecificationRequest, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Ipv6PrefixSpecificationRequest
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpv6PrefixSpecificationRequest(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpv6PrefixListResponse(v *[]types.Ipv6PrefixSpecificationResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Ipv6PrefixSpecificationResponse
- if *v == nil {
- sv = make([]types.Ipv6PrefixSpecificationResponse, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Ipv6PrefixSpecificationResponse
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpv6PrefixSpecificationResponse(&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 awsEc2query_deserializeDocumentIpv6PrefixListResponseUnwrapped(v *[]types.Ipv6PrefixSpecificationResponse, decoder smithyxml.NodeDecoder) error {
- var sv []types.Ipv6PrefixSpecificationResponse
- if *v == nil {
- sv = make([]types.Ipv6PrefixSpecificationResponse, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Ipv6PrefixSpecificationResponse
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpv6PrefixSpecificationResponse(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentIpv6PrefixSpecification(v **types.Ipv6PrefixSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Ipv6PrefixSpecification
- if *v == nil {
- sv = &types.Ipv6PrefixSpecification{}
- } 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("ipv6Prefix", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Ipv6Prefix = 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 awsEc2query_deserializeDocumentIpv6PrefixSpecificationRequest(v **types.Ipv6PrefixSpecificationRequest, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Ipv6PrefixSpecificationRequest
- if *v == nil {
- sv = &types.Ipv6PrefixSpecificationRequest{}
- } 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("Ipv6Prefix", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Ipv6Prefix = 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 awsEc2query_deserializeDocumentIpv6PrefixSpecificationResponse(v **types.Ipv6PrefixSpecificationResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Ipv6PrefixSpecificationResponse
- if *v == nil {
- sv = &types.Ipv6PrefixSpecificationResponse{}
- } 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("ipv6Prefix", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Ipv6Prefix = 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 awsEc2query_deserializeDocumentIpv6Range(v **types.Ipv6Range, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Ipv6Range
- if *v == nil {
- sv = &types.Ipv6Range{}
- } 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("cidrIpv6", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CidrIpv6 = ptr.String(xtv)
- }
-
- 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)
- }
-
- 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 awsEc2query_deserializeDocumentIpv6RangeList(v *[]types.Ipv6Range, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Ipv6Range
- if *v == nil {
- sv = make([]types.Ipv6Range, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Ipv6Range
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentIpv6Range(&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 awsEc2query_deserializeDocumentIpv6RangeListUnwrapped(v *[]types.Ipv6Range, decoder smithyxml.NodeDecoder) error {
- var sv []types.Ipv6Range
- if *v == nil {
- sv = make([]types.Ipv6Range, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Ipv6Range
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentIpv6Range(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentKeyPairInfo(v **types.KeyPairInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.KeyPairInfo
- if *v == nil {
- sv = &types.KeyPairInfo{}
- } 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("createTime", 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.CreateTime = ptr.Time(t)
- }
-
- case strings.EqualFold("keyFingerprint", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.KeyFingerprint = ptr.String(xtv)
- }
-
- case strings.EqualFold("keyName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.KeyName = ptr.String(xtv)
- }
-
- case strings.EqualFold("keyPairId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.KeyPairId = ptr.String(xtv)
- }
-
- case strings.EqualFold("keyType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.KeyType = types.KeyType(xtv)
- }
-
- case strings.EqualFold("publicKey", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PublicKey = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentKeyPairList(v *[]types.KeyPairInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.KeyPairInfo
- if *v == nil {
- sv = make([]types.KeyPairInfo, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.KeyPairInfo
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentKeyPairInfo(&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 awsEc2query_deserializeDocumentKeyPairListUnwrapped(v *[]types.KeyPairInfo, decoder smithyxml.NodeDecoder) error {
- var sv []types.KeyPairInfo
- if *v == nil {
- sv = make([]types.KeyPairInfo, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.KeyPairInfo
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentKeyPairInfo(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentLastError(v **types.LastError, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LastError
- if *v == nil {
- sv = &types.LastError{}
- } 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 = ptr.String(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentLaunchPermission(v **types.LaunchPermission, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchPermission
- if *v == nil {
- sv = &types.LaunchPermission{}
- } 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("group", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Group = types.PermissionGroup(xtv)
- }
-
- case strings.EqualFold("organizationalUnitArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OrganizationalUnitArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("organizationArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OrganizationArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("userId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UserId = 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 awsEc2query_deserializeDocumentLaunchPermissionList(v *[]types.LaunchPermission, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.LaunchPermission
- if *v == nil {
- sv = make([]types.LaunchPermission, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.LaunchPermission
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentLaunchPermission(&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 awsEc2query_deserializeDocumentLaunchPermissionListUnwrapped(v *[]types.LaunchPermission, decoder smithyxml.NodeDecoder) error {
- var sv []types.LaunchPermission
- if *v == nil {
- sv = make([]types.LaunchPermission, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.LaunchPermission
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentLaunchPermission(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentLaunchSpecification(v **types.LaunchSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchSpecification
- if *v == nil {
- sv = &types.LaunchSpecification{}
- } 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("addressingType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AddressingType = ptr.String(xtv)
- }
-
- case strings.EqualFold("blockDeviceMapping", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentBlockDeviceMappingList(&sv.BlockDeviceMappings, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ebsOptimized", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EbsOptimized = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("iamInstanceProfile", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIamInstanceProfileSpecification(&sv.IamInstanceProfile, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("imageId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ImageId = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = types.InstanceType(xtv)
- }
-
- case strings.EqualFold("kernelId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.KernelId = ptr.String(xtv)
- }
-
- case strings.EqualFold("keyName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.KeyName = ptr.String(xtv)
- }
-
- case strings.EqualFold("monitoring", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentRunInstancesMonitoringEnabled(&sv.Monitoring, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("networkInterfaceSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecificationList(&sv.NetworkInterfaces, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("placement", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSpotPlacement(&sv.Placement, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ramdiskId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RamdiskId = ptr.String(xtv)
- }
-
- case strings.EqualFold("groupSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentGroupIdentifierList(&sv.SecurityGroups, 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("userData", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UserData = 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 awsEc2query_deserializeDocumentLaunchSpecsList(v *[]types.SpotFleetLaunchSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.SpotFleetLaunchSpecification
- if *v == nil {
- sv = make([]types.SpotFleetLaunchSpecification, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.SpotFleetLaunchSpecification
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSpotFleetLaunchSpecification(&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 awsEc2query_deserializeDocumentLaunchSpecsListUnwrapped(v *[]types.SpotFleetLaunchSpecification, decoder smithyxml.NodeDecoder) error {
- var sv []types.SpotFleetLaunchSpecification
- if *v == nil {
- sv = make([]types.SpotFleetLaunchSpecification, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.SpotFleetLaunchSpecification
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSpotFleetLaunchSpecification(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentLaunchTemplate(v **types.LaunchTemplate, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplate
- if *v == nil {
- sv = &types.LaunchTemplate{}
- } 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("createdBy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CreatedBy = ptr.String(xtv)
- }
-
- case strings.EqualFold("createTime", 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.CreateTime = ptr.Time(t)
- }
-
- case strings.EqualFold("defaultVersionNumber", 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.DefaultVersionNumber = ptr.Int64(i64)
- }
-
- case strings.EqualFold("latestVersionNumber", 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.LatestVersionNumber = ptr.Int64(i64)
- }
-
- case strings.EqualFold("launchTemplateId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LaunchTemplateId = ptr.String(xtv)
- }
-
- case strings.EqualFold("launchTemplateName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LaunchTemplateName = ptr.String(xtv)
- }
-
- case strings.EqualFold("operator", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentLaunchTemplateAndOverridesResponse(v **types.LaunchTemplateAndOverridesResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplateAndOverridesResponse
- if *v == nil {
- sv = &types.LaunchTemplateAndOverridesResponse{}
- } 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("launchTemplateSpecification", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentFleetLaunchTemplateSpecification(&sv.LaunchTemplateSpecification, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("overrides", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(&sv.Overrides, 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 awsEc2query_deserializeDocumentLaunchTemplateBlockDeviceMapping(v **types.LaunchTemplateBlockDeviceMapping, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplateBlockDeviceMapping
- if *v == nil {
- sv = &types.LaunchTemplateBlockDeviceMapping{}
- } 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("deviceName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DeviceName = ptr.String(xtv)
- }
-
- case strings.EqualFold("ebs", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplateEbsBlockDevice(&sv.Ebs, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("noDevice", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NoDevice = ptr.String(xtv)
- }
-
- case strings.EqualFold("virtualName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VirtualName = 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 awsEc2query_deserializeDocumentLaunchTemplateBlockDeviceMappingList(v *[]types.LaunchTemplateBlockDeviceMapping, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.LaunchTemplateBlockDeviceMapping
- if *v == nil {
- sv = make([]types.LaunchTemplateBlockDeviceMapping, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.LaunchTemplateBlockDeviceMapping
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentLaunchTemplateBlockDeviceMapping(&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 awsEc2query_deserializeDocumentLaunchTemplateBlockDeviceMappingListUnwrapped(v *[]types.LaunchTemplateBlockDeviceMapping, decoder smithyxml.NodeDecoder) error {
- var sv []types.LaunchTemplateBlockDeviceMapping
- if *v == nil {
- sv = make([]types.LaunchTemplateBlockDeviceMapping, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.LaunchTemplateBlockDeviceMapping
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentLaunchTemplateBlockDeviceMapping(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentLaunchTemplateCapacityReservationSpecificationResponse(v **types.LaunchTemplateCapacityReservationSpecificationResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplateCapacityReservationSpecificationResponse
- if *v == nil {
- sv = &types.LaunchTemplateCapacityReservationSpecificationResponse{}
- } 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("capacityReservationPreference", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CapacityReservationPreference = types.CapacityReservationPreference(xtv)
- }
-
- case strings.EqualFold("capacityReservationTarget", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentCapacityReservationTargetResponse(&sv.CapacityReservationTarget, 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 awsEc2query_deserializeDocumentLaunchTemplateConfig(v **types.LaunchTemplateConfig, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplateConfig
- if *v == nil {
- sv = &types.LaunchTemplateConfig{}
- } 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("launchTemplateSpecification", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentFleetLaunchTemplateSpecification(&sv.LaunchTemplateSpecification, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("overrides", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplateOverridesList(&sv.Overrides, 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 awsEc2query_deserializeDocumentLaunchTemplateConfigList(v *[]types.LaunchTemplateConfig, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.LaunchTemplateConfig
- if *v == nil {
- sv = make([]types.LaunchTemplateConfig, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.LaunchTemplateConfig
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentLaunchTemplateConfig(&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 awsEc2query_deserializeDocumentLaunchTemplateConfigListUnwrapped(v *[]types.LaunchTemplateConfig, decoder smithyxml.NodeDecoder) error {
- var sv []types.LaunchTemplateConfig
- if *v == nil {
- sv = make([]types.LaunchTemplateConfig, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.LaunchTemplateConfig
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentLaunchTemplateConfig(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentLaunchTemplateCpuOptions(v **types.LaunchTemplateCpuOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplateCpuOptions
- if *v == nil {
- sv = &types.LaunchTemplateCpuOptions{}
- } 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("amdSevSnp", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AmdSevSnp = types.AmdSevSnpSpecification(xtv)
- }
-
- case strings.EqualFold("coreCount", 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.CoreCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("threadsPerCore", 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.ThreadsPerCore = 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 awsEc2query_deserializeDocumentLaunchTemplateEbsBlockDevice(v **types.LaunchTemplateEbsBlockDevice, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplateEbsBlockDevice
- if *v == nil {
- sv = &types.LaunchTemplateEbsBlockDevice{}
- } 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("deleteOnTermination", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.DeleteOnTermination = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("encrypted", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Encrypted = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("iops", 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.Iops = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("kmsKeyId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.KmsKeyId = ptr.String(xtv)
- }
-
- case strings.EqualFold("snapshotId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SnapshotId = ptr.String(xtv)
- }
-
- case strings.EqualFold("throughput", 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.Throughput = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("volumeInitializationRate", 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.VolumeInitializationRate = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("volumeSize", 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.VolumeSize = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("volumeType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VolumeType = types.VolumeType(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 awsEc2query_deserializeDocumentLaunchTemplateElasticInferenceAcceleratorResponse(v **types.LaunchTemplateElasticInferenceAcceleratorResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplateElasticInferenceAcceleratorResponse
- if *v == nil {
- sv = &types.LaunchTemplateElasticInferenceAcceleratorResponse{}
- } 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("count", 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.Count = ptr.Int32(int32(i64))
- }
-
- 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 = 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 awsEc2query_deserializeDocumentLaunchTemplateElasticInferenceAcceleratorResponseList(v *[]types.LaunchTemplateElasticInferenceAcceleratorResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.LaunchTemplateElasticInferenceAcceleratorResponse
- if *v == nil {
- sv = make([]types.LaunchTemplateElasticInferenceAcceleratorResponse, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.LaunchTemplateElasticInferenceAcceleratorResponse
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentLaunchTemplateElasticInferenceAcceleratorResponse(&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 awsEc2query_deserializeDocumentLaunchTemplateElasticInferenceAcceleratorResponseListUnwrapped(v *[]types.LaunchTemplateElasticInferenceAcceleratorResponse, decoder smithyxml.NodeDecoder) error {
- var sv []types.LaunchTemplateElasticInferenceAcceleratorResponse
- if *v == nil {
- sv = make([]types.LaunchTemplateElasticInferenceAcceleratorResponse, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.LaunchTemplateElasticInferenceAcceleratorResponse
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentLaunchTemplateElasticInferenceAcceleratorResponse(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentLaunchTemplateEnaSrdSpecification(v **types.LaunchTemplateEnaSrdSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplateEnaSrdSpecification
- if *v == nil {
- sv = &types.LaunchTemplateEnaSrdSpecification{}
- } 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("enaSrdEnabled", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EnaSrdEnabled = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("enaSrdUdpSpecification", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplateEnaSrdUdpSpecification(&sv.EnaSrdUdpSpecification, 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 awsEc2query_deserializeDocumentLaunchTemplateEnaSrdUdpSpecification(v **types.LaunchTemplateEnaSrdUdpSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplateEnaSrdUdpSpecification
- if *v == nil {
- sv = &types.LaunchTemplateEnaSrdUdpSpecification{}
- } 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("enaSrdUdpEnabled", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EnaSrdUdpEnabled = 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 awsEc2query_deserializeDocumentLaunchTemplateEnclaveOptions(v **types.LaunchTemplateEnclaveOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplateEnclaveOptions
- if *v == nil {
- sv = &types.LaunchTemplateEnclaveOptions{}
- } 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("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 Boolean 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 awsEc2query_deserializeDocumentLaunchTemplateHibernationOptions(v **types.LaunchTemplateHibernationOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplateHibernationOptions
- if *v == nil {
- sv = &types.LaunchTemplateHibernationOptions{}
- } 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("configured", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Configured = 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 awsEc2query_deserializeDocumentLaunchTemplateIamInstanceProfileSpecification(v **types.LaunchTemplateIamInstanceProfileSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplateIamInstanceProfileSpecification
- if *v == nil {
- sv = &types.LaunchTemplateIamInstanceProfileSpecification{}
- } 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("arn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Arn = 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 awsEc2query_deserializeDocumentLaunchTemplateInstanceMaintenanceOptions(v **types.LaunchTemplateInstanceMaintenanceOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplateInstanceMaintenanceOptions
- if *v == nil {
- sv = &types.LaunchTemplateInstanceMaintenanceOptions{}
- } 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("autoRecovery", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AutoRecovery = types.LaunchTemplateAutoRecoveryState(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 awsEc2query_deserializeDocumentLaunchTemplateInstanceMarketOptions(v **types.LaunchTemplateInstanceMarketOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplateInstanceMarketOptions
- if *v == nil {
- sv = &types.LaunchTemplateInstanceMarketOptions{}
- } 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("marketType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.MarketType = types.MarketType(xtv)
- }
-
- case strings.EqualFold("spotOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplateSpotMarketOptions(&sv.SpotOptions, 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 awsEc2query_deserializeDocumentLaunchTemplateInstanceMetadataOptions(v **types.LaunchTemplateInstanceMetadataOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplateInstanceMetadataOptions
- if *v == nil {
- sv = &types.LaunchTemplateInstanceMetadataOptions{}
- } 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("httpEndpoint", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HttpEndpoint = types.LaunchTemplateInstanceMetadataEndpointState(xtv)
- }
-
- case strings.EqualFold("httpProtocolIpv6", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HttpProtocolIpv6 = types.LaunchTemplateInstanceMetadataProtocolIpv6(xtv)
- }
-
- case strings.EqualFold("httpPutResponseHopLimit", 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.HttpPutResponseHopLimit = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("httpTokens", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HttpTokens = types.LaunchTemplateHttpTokensState(xtv)
- }
-
- case strings.EqualFold("instanceMetadataTags", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceMetadataTags = types.LaunchTemplateInstanceMetadataTagsState(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.LaunchTemplateInstanceMetadataOptionsState(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 awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecification(v **types.LaunchTemplateInstanceNetworkInterfaceSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplateInstanceNetworkInterfaceSpecification
- if *v == nil {
- sv = &types.LaunchTemplateInstanceNetworkInterfaceSpecification{}
- } 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("associateCarrierIpAddress", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.AssociateCarrierIpAddress = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("associatePublicIpAddress", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.AssociatePublicIpAddress = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("connectionTrackingSpecification", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentConnectionTrackingSpecification(&sv.ConnectionTrackingSpecification, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("deleteOnTermination", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.DeleteOnTermination = ptr.Bool(xtv)
- }
-
- 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("deviceIndex", 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.DeviceIndex = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("enaQueueCount", 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.EnaQueueCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("enaSrdSpecification", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplateEnaSrdSpecification(&sv.EnaSrdSpecification, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("groupSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentGroupIdStringList(&sv.Groups, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("interfaceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InterfaceType = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipv4PrefixCount", 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.Ipv4PrefixCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("ipv4PrefixSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpv4PrefixListResponse(&sv.Ipv4Prefixes, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ipv6AddressCount", 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.Ipv6AddressCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("ipv6AddressesSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceIpv6AddressList(&sv.Ipv6Addresses, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ipv6PrefixCount", 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.Ipv6PrefixCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("ipv6PrefixSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpv6PrefixListResponse(&sv.Ipv6Prefixes, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("networkCardIndex", 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.NetworkCardIndex = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("networkInterfaceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInterfaceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("primaryIpv6", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.PrimaryIpv6 = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("privateIpAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrivateIpAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("privateIpAddressesSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPrivateIpAddressSpecificationList(&sv.PrivateIpAddresses, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("secondaryPrivateIpAddressCount", 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.SecondaryPrivateIpAddressCount = ptr.Int32(int32(i64))
- }
-
- 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)
- }
-
- 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 awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecificationList(v *[]types.LaunchTemplateInstanceNetworkInterfaceSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.LaunchTemplateInstanceNetworkInterfaceSpecification
- if *v == nil {
- sv = make([]types.LaunchTemplateInstanceNetworkInterfaceSpecification, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.LaunchTemplateInstanceNetworkInterfaceSpecification
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecification(&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 awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecificationListUnwrapped(v *[]types.LaunchTemplateInstanceNetworkInterfaceSpecification, decoder smithyxml.NodeDecoder) error {
- var sv []types.LaunchTemplateInstanceNetworkInterfaceSpecification
- if *v == nil {
- sv = make([]types.LaunchTemplateInstanceNetworkInterfaceSpecification, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.LaunchTemplateInstanceNetworkInterfaceSpecification
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecification(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentLaunchTemplateLicenseConfiguration(v **types.LaunchTemplateLicenseConfiguration, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplateLicenseConfiguration
- if *v == nil {
- sv = &types.LaunchTemplateLicenseConfiguration{}
- } 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("licenseConfigurationArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LicenseConfigurationArn = 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 awsEc2query_deserializeDocumentLaunchTemplateLicenseList(v *[]types.LaunchTemplateLicenseConfiguration, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.LaunchTemplateLicenseConfiguration
- if *v == nil {
- sv = make([]types.LaunchTemplateLicenseConfiguration, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.LaunchTemplateLicenseConfiguration
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentLaunchTemplateLicenseConfiguration(&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 awsEc2query_deserializeDocumentLaunchTemplateLicenseListUnwrapped(v *[]types.LaunchTemplateLicenseConfiguration, decoder smithyxml.NodeDecoder) error {
- var sv []types.LaunchTemplateLicenseConfiguration
- if *v == nil {
- sv = make([]types.LaunchTemplateLicenseConfiguration, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.LaunchTemplateLicenseConfiguration
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentLaunchTemplateLicenseConfiguration(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentLaunchTemplateNetworkPerformanceOptions(v **types.LaunchTemplateNetworkPerformanceOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplateNetworkPerformanceOptions
- if *v == nil {
- sv = &types.LaunchTemplateNetworkPerformanceOptions{}
- } 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("bandwidthWeighting", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.BandwidthWeighting = types.InstanceBandwidthWeighting(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 awsEc2query_deserializeDocumentLaunchTemplateOverrides(v **types.LaunchTemplateOverrides, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplateOverrides
- if *v == nil {
- sv = &types.LaunchTemplateOverrides{}
- } 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("instanceRequirements", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceRequirements(&sv.InstanceRequirements, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = types.InstanceType(xtv)
- }
-
- case strings.EqualFold("priority", 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.Priority = ptr.Float64(f64)
- }
-
- case strings.EqualFold("spotPrice", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SpotPrice = ptr.String(xtv)
- }
-
- 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("weightedCapacity", 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.WeightedCapacity = ptr.Float64(f64)
- }
-
- 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 awsEc2query_deserializeDocumentLaunchTemplateOverridesList(v *[]types.LaunchTemplateOverrides, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.LaunchTemplateOverrides
- if *v == nil {
- sv = make([]types.LaunchTemplateOverrides, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.LaunchTemplateOverrides
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentLaunchTemplateOverrides(&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 awsEc2query_deserializeDocumentLaunchTemplateOverridesListUnwrapped(v *[]types.LaunchTemplateOverrides, decoder smithyxml.NodeDecoder) error {
- var sv []types.LaunchTemplateOverrides
- if *v == nil {
- sv = make([]types.LaunchTemplateOverrides, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.LaunchTemplateOverrides
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentLaunchTemplateOverrides(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentLaunchTemplatePlacement(v **types.LaunchTemplatePlacement, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplatePlacement
- if *v == nil {
- sv = &types.LaunchTemplatePlacement{}
- } 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("affinity", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Affinity = ptr.String(xtv)
- }
-
- 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("groupId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupId = ptr.String(xtv)
- }
-
- case strings.EqualFold("groupName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupName = ptr.String(xtv)
- }
-
- case strings.EqualFold("hostId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HostId = ptr.String(xtv)
- }
-
- case strings.EqualFold("hostResourceGroupArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HostResourceGroupArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("partitionNumber", 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.PartitionNumber = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("spreadDomain", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SpreadDomain = ptr.String(xtv)
- }
-
- case strings.EqualFold("tenancy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Tenancy = types.Tenancy(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 awsEc2query_deserializeDocumentLaunchTemplatePrivateDnsNameOptions(v **types.LaunchTemplatePrivateDnsNameOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplatePrivateDnsNameOptions
- if *v == nil {
- sv = &types.LaunchTemplatePrivateDnsNameOptions{}
- } 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("enableResourceNameDnsAAAARecord", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EnableResourceNameDnsAAAARecord = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("enableResourceNameDnsARecord", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EnableResourceNameDnsARecord = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("hostnameType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HostnameType = types.HostnameType(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 awsEc2query_deserializeDocumentLaunchTemplateSet(v *[]types.LaunchTemplate, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.LaunchTemplate
- if *v == nil {
- sv = make([]types.LaunchTemplate, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.LaunchTemplate
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentLaunchTemplate(&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 awsEc2query_deserializeDocumentLaunchTemplateSetUnwrapped(v *[]types.LaunchTemplate, decoder smithyxml.NodeDecoder) error {
- var sv []types.LaunchTemplate
- if *v == nil {
- sv = make([]types.LaunchTemplate, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.LaunchTemplate
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentLaunchTemplate(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentLaunchTemplatesMonitoring(v **types.LaunchTemplatesMonitoring, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplatesMonitoring
- if *v == nil {
- sv = &types.LaunchTemplatesMonitoring{}
- } 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("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 Boolean 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 awsEc2query_deserializeDocumentLaunchTemplateSpotMarketOptions(v **types.LaunchTemplateSpotMarketOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplateSpotMarketOptions
- if *v == nil {
- sv = &types.LaunchTemplateSpotMarketOptions{}
- } 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("blockDurationMinutes", 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.BlockDurationMinutes = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("instanceInterruptionBehavior", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceInterruptionBehavior = types.InstanceInterruptionBehavior(xtv)
- }
-
- case strings.EqualFold("maxPrice", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.MaxPrice = ptr.String(xtv)
- }
-
- case strings.EqualFold("spotInstanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SpotInstanceType = types.SpotInstanceType(xtv)
- }
-
- case strings.EqualFold("validUntil", 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.ValidUntil = ptr.Time(t)
- }
-
- 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 awsEc2query_deserializeDocumentLaunchTemplateTagSpecification(v **types.LaunchTemplateTagSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplateTagSpecification
- if *v == nil {
- sv = &types.LaunchTemplateTagSpecification{}
- } 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("resourceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceType = types.ResourceType(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentLaunchTemplateTagSpecificationList(v *[]types.LaunchTemplateTagSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.LaunchTemplateTagSpecification
- if *v == nil {
- sv = make([]types.LaunchTemplateTagSpecification, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.LaunchTemplateTagSpecification
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentLaunchTemplateTagSpecification(&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 awsEc2query_deserializeDocumentLaunchTemplateTagSpecificationListUnwrapped(v *[]types.LaunchTemplateTagSpecification, decoder smithyxml.NodeDecoder) error {
- var sv []types.LaunchTemplateTagSpecification
- if *v == nil {
- sv = make([]types.LaunchTemplateTagSpecification, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.LaunchTemplateTagSpecification
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentLaunchTemplateTagSpecification(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentLaunchTemplateVersion(v **types.LaunchTemplateVersion, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LaunchTemplateVersion
- if *v == nil {
- sv = &types.LaunchTemplateVersion{}
- } 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("createdBy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CreatedBy = ptr.String(xtv)
- }
-
- case strings.EqualFold("createTime", 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.CreateTime = ptr.Time(t)
- }
-
- case strings.EqualFold("defaultVersion", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.DefaultVersion = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("launchTemplateData", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentResponseLaunchTemplateData(&sv.LaunchTemplateData, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("launchTemplateId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LaunchTemplateId = ptr.String(xtv)
- }
-
- case strings.EqualFold("launchTemplateName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LaunchTemplateName = ptr.String(xtv)
- }
-
- case strings.EqualFold("operator", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("versionDescription", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VersionDescription = ptr.String(xtv)
- }
-
- case strings.EqualFold("versionNumber", 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.VersionNumber = ptr.Int64(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 awsEc2query_deserializeDocumentLaunchTemplateVersionSet(v *[]types.LaunchTemplateVersion, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.LaunchTemplateVersion
- if *v == nil {
- sv = make([]types.LaunchTemplateVersion, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.LaunchTemplateVersion
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentLaunchTemplateVersion(&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 awsEc2query_deserializeDocumentLaunchTemplateVersionSetUnwrapped(v *[]types.LaunchTemplateVersion, decoder smithyxml.NodeDecoder) error {
- var sv []types.LaunchTemplateVersion
- if *v == nil {
- sv = make([]types.LaunchTemplateVersion, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.LaunchTemplateVersion
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentLaunchTemplateVersion(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentLicenseConfiguration(v **types.LicenseConfiguration, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LicenseConfiguration
- if *v == nil {
- sv = &types.LicenseConfiguration{}
- } 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("licenseConfigurationArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LicenseConfigurationArn = 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 awsEc2query_deserializeDocumentLicenseList(v *[]types.LicenseConfiguration, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.LicenseConfiguration
- if *v == nil {
- sv = make([]types.LicenseConfiguration, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.LicenseConfiguration
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentLicenseConfiguration(&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 awsEc2query_deserializeDocumentLicenseListUnwrapped(v *[]types.LicenseConfiguration, decoder smithyxml.NodeDecoder) error {
- var sv []types.LicenseConfiguration
- if *v == nil {
- sv = make([]types.LicenseConfiguration, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.LicenseConfiguration
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentLicenseConfiguration(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentLoadBalancersConfig(v **types.LoadBalancersConfig, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LoadBalancersConfig
- if *v == nil {
- sv = &types.LoadBalancersConfig{}
- } 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("classicLoadBalancersConfig", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentClassicLoadBalancersConfig(&sv.ClassicLoadBalancersConfig, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("targetGroupsConfig", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTargetGroupsConfig(&sv.TargetGroupsConfig, 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 awsEc2query_deserializeDocumentLoadPermission(v **types.LoadPermission, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LoadPermission
- if *v == nil {
- sv = &types.LoadPermission{}
- } 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("group", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Group = types.PermissionGroup(xtv)
- }
-
- case strings.EqualFold("userId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UserId = 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 awsEc2query_deserializeDocumentLoadPermissionList(v *[]types.LoadPermission, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.LoadPermission
- if *v == nil {
- sv = make([]types.LoadPermission, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.LoadPermission
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentLoadPermission(&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 awsEc2query_deserializeDocumentLoadPermissionListUnwrapped(v *[]types.LoadPermission, decoder smithyxml.NodeDecoder) error {
- var sv []types.LoadPermission
- if *v == nil {
- sv = make([]types.LoadPermission, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.LoadPermission
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentLoadPermission(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentLocalGateway(v **types.LocalGateway, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LocalGateway
- if *v == nil {
- sv = &types.LocalGateway{}
- } 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("localGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("outpostArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OutpostArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(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 = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentLocalGatewayRoute(v **types.LocalGatewayRoute, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LocalGatewayRoute
- if *v == nil {
- sv = &types.LocalGatewayRoute{}
- } 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("coipPoolId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CoipPoolId = ptr.String(xtv)
- }
-
- case strings.EqualFold("destinationCidrBlock", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DestinationCidrBlock = ptr.String(xtv)
- }
-
- case strings.EqualFold("destinationPrefixListId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DestinationPrefixListId = ptr.String(xtv)
- }
-
- case strings.EqualFold("localGatewayRouteTableArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayRouteTableArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("localGatewayRouteTableId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayRouteTableId = ptr.String(xtv)
- }
-
- case strings.EqualFold("localGatewayVirtualInterfaceGroupId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayVirtualInterfaceGroupId = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkInterfaceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInterfaceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(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.LocalGatewayRouteState(xtv)
- }
-
- 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("type", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Type = types.LocalGatewayRouteType(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 awsEc2query_deserializeDocumentLocalGatewayRouteList(v *[]types.LocalGatewayRoute, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.LocalGatewayRoute
- if *v == nil {
- sv = make([]types.LocalGatewayRoute, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.LocalGatewayRoute
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentLocalGatewayRoute(&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 awsEc2query_deserializeDocumentLocalGatewayRouteListUnwrapped(v *[]types.LocalGatewayRoute, decoder smithyxml.NodeDecoder) error {
- var sv []types.LocalGatewayRoute
- if *v == nil {
- sv = make([]types.LocalGatewayRoute, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.LocalGatewayRoute
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentLocalGatewayRoute(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentLocalGatewayRouteTable(v **types.LocalGatewayRouteTable, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LocalGatewayRouteTable
- if *v == nil {
- sv = &types.LocalGatewayRouteTable{}
- } 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("localGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("localGatewayRouteTableArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayRouteTableArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("localGatewayRouteTableId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayRouteTableId = ptr.String(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 = types.LocalGatewayRouteTableMode(xtv)
- }
-
- case strings.EqualFold("outpostArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OutpostArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(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 = ptr.String(xtv)
- }
-
- case strings.EqualFold("stateReason", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentStateReason(&sv.StateReason, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentLocalGatewayRouteTableSet(v *[]types.LocalGatewayRouteTable, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.LocalGatewayRouteTable
- if *v == nil {
- sv = make([]types.LocalGatewayRouteTable, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.LocalGatewayRouteTable
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentLocalGatewayRouteTable(&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 awsEc2query_deserializeDocumentLocalGatewayRouteTableSetUnwrapped(v *[]types.LocalGatewayRouteTable, decoder smithyxml.NodeDecoder) error {
- var sv []types.LocalGatewayRouteTable
- if *v == nil {
- sv = make([]types.LocalGatewayRouteTable, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.LocalGatewayRouteTable
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentLocalGatewayRouteTable(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupAssociation(v **types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation
- if *v == nil {
- sv = &types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation{}
- } 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("localGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("localGatewayRouteTableArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayRouteTableArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("localGatewayRouteTableId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayRouteTableId = ptr.String(xtv)
- }
-
- case strings.EqualFold("localGatewayRouteTableVirtualInterfaceGroupAssociationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayRouteTableVirtualInterfaceGroupAssociationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("localGatewayVirtualInterfaceGroupId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayVirtualInterfaceGroupId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(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 = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupAssociationSet(v *[]types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation
- if *v == nil {
- sv = make([]types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupAssociation(&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 awsEc2query_deserializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupAssociationSetUnwrapped(v *[]types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation, decoder smithyxml.NodeDecoder) error {
- var sv []types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation
- if *v == nil {
- sv = make([]types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.LocalGatewayRouteTableVirtualInterfaceGroupAssociation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupAssociation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentLocalGatewayRouteTableVpcAssociation(v **types.LocalGatewayRouteTableVpcAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LocalGatewayRouteTableVpcAssociation
- if *v == nil {
- sv = &types.LocalGatewayRouteTableVpcAssociation{}
- } 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("localGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("localGatewayRouteTableArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayRouteTableArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("localGatewayRouteTableId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayRouteTableId = ptr.String(xtv)
- }
-
- case strings.EqualFold("localGatewayRouteTableVpcAssociationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayRouteTableVpcAssociationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(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 = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- 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 awsEc2query_deserializeDocumentLocalGatewayRouteTableVpcAssociationSet(v *[]types.LocalGatewayRouteTableVpcAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.LocalGatewayRouteTableVpcAssociation
- if *v == nil {
- sv = make([]types.LocalGatewayRouteTableVpcAssociation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.LocalGatewayRouteTableVpcAssociation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentLocalGatewayRouteTableVpcAssociation(&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 awsEc2query_deserializeDocumentLocalGatewayRouteTableVpcAssociationSetUnwrapped(v *[]types.LocalGatewayRouteTableVpcAssociation, decoder smithyxml.NodeDecoder) error {
- var sv []types.LocalGatewayRouteTableVpcAssociation
- if *v == nil {
- sv = make([]types.LocalGatewayRouteTableVpcAssociation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.LocalGatewayRouteTableVpcAssociation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentLocalGatewayRouteTableVpcAssociation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentLocalGatewaySet(v *[]types.LocalGateway, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.LocalGateway
- if *v == nil {
- sv = make([]types.LocalGateway, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.LocalGateway
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentLocalGateway(&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 awsEc2query_deserializeDocumentLocalGatewaySetUnwrapped(v *[]types.LocalGateway, decoder smithyxml.NodeDecoder) error {
- var sv []types.LocalGateway
- if *v == nil {
- sv = make([]types.LocalGateway, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.LocalGateway
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentLocalGateway(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentLocalGatewayVirtualInterface(v **types.LocalGatewayVirtualInterface, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LocalGatewayVirtualInterface
- if *v == nil {
- sv = &types.LocalGatewayVirtualInterface{}
- } 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("configurationState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ConfigurationState = types.LocalGatewayVirtualInterfaceConfigurationState(xtv)
- }
-
- case strings.EqualFold("localAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("localBgpAsn", 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.LocalBgpAsn = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("localGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("localGatewayVirtualInterfaceArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayVirtualInterfaceArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("localGatewayVirtualInterfaceGroupId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayVirtualInterfaceGroupId = ptr.String(xtv)
- }
-
- case strings.EqualFold("localGatewayVirtualInterfaceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayVirtualInterfaceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("outpostLagId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OutpostLagId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("peerAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PeerAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("peerBgpAsn", 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.PeerBgpAsn = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("peerBgpAsnExtended", 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.PeerBgpAsnExtended = ptr.Int64(i64)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("vlan", 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.Vlan = 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 awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceGroup(v **types.LocalGatewayVirtualInterfaceGroup, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LocalGatewayVirtualInterfaceGroup
- if *v == nil {
- sv = &types.LocalGatewayVirtualInterfaceGroup{}
- } 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("configurationState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ConfigurationState = types.LocalGatewayVirtualInterfaceGroupConfigurationState(xtv)
- }
-
- case strings.EqualFold("localBgpAsn", 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.LocalBgpAsn = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("localBgpAsnExtended", 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.LocalBgpAsnExtended = ptr.Int64(i64)
- }
-
- case strings.EqualFold("localGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("localGatewayVirtualInterfaceGroupArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayVirtualInterfaceGroupArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("localGatewayVirtualInterfaceGroupId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayVirtualInterfaceGroupId = ptr.String(xtv)
- }
-
- case strings.EqualFold("localGatewayVirtualInterfaceIdSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceIdSet(&sv.LocalGatewayVirtualInterfaceIds, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceGroupSet(v *[]types.LocalGatewayVirtualInterfaceGroup, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.LocalGatewayVirtualInterfaceGroup
- if *v == nil {
- sv = make([]types.LocalGatewayVirtualInterfaceGroup, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.LocalGatewayVirtualInterfaceGroup
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceGroup(&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 awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceGroupSetUnwrapped(v *[]types.LocalGatewayVirtualInterfaceGroup, decoder smithyxml.NodeDecoder) error {
- var sv []types.LocalGatewayVirtualInterfaceGroup
- if *v == nil {
- sv = make([]types.LocalGatewayVirtualInterfaceGroup, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.LocalGatewayVirtualInterfaceGroup
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceGroup(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceIdSet(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("item", 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 awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceIdSetUnwrapped(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 awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceSet(v *[]types.LocalGatewayVirtualInterface, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.LocalGatewayVirtualInterface
- if *v == nil {
- sv = make([]types.LocalGatewayVirtualInterface, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.LocalGatewayVirtualInterface
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentLocalGatewayVirtualInterface(&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 awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceSetUnwrapped(v *[]types.LocalGatewayVirtualInterface, decoder smithyxml.NodeDecoder) error {
- var sv []types.LocalGatewayVirtualInterface
- if *v == nil {
- sv = make([]types.LocalGatewayVirtualInterface, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.LocalGatewayVirtualInterface
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentLocalGatewayVirtualInterface(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentLocalStorageTypeSet(v *[]types.LocalStorageType, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.LocalStorageType
- if *v == nil {
- sv = make([]types.LocalStorageType, 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("item", t.Name.Local):
- var col types.LocalStorageType
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- col = types.LocalStorageType(xtv)
- }
- sv = append(sv, col)
-
- default:
- err = decoder.Decoder.Skip()
- if err != nil {
- return err
- }
-
- }
- decoder = originalDecoder
- }
- *v = sv
- return nil
-}
-
-func awsEc2query_deserializeDocumentLocalStorageTypeSetUnwrapped(v *[]types.LocalStorageType, decoder smithyxml.NodeDecoder) error {
- var sv []types.LocalStorageType
- if *v == nil {
- sv = make([]types.LocalStorageType, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.LocalStorageType
- t := decoder.StartEl
- _ = t
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- mv = types.LocalStorageType(xtv)
- }
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentLockedSnapshotsInfo(v **types.LockedSnapshotsInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.LockedSnapshotsInfo
- if *v == nil {
- sv = &types.LockedSnapshotsInfo{}
- } 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("coolOffPeriod", 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.CoolOffPeriod = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("coolOffPeriodExpiresOn", 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.CoolOffPeriodExpiresOn = ptr.Time(t)
- }
-
- case strings.EqualFold("lockCreatedOn", 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.LockCreatedOn = ptr.Time(t)
- }
-
- case strings.EqualFold("lockDuration", 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.LockDuration = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("lockDurationStartTime", 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.LockDurationStartTime = ptr.Time(t)
- }
-
- case strings.EqualFold("lockExpiresOn", 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.LockExpiresOn = ptr.Time(t)
- }
-
- case strings.EqualFold("lockState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LockState = types.LockState(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("snapshotId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SnapshotId = 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 awsEc2query_deserializeDocumentLockedSnapshotsInfoList(v *[]types.LockedSnapshotsInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.LockedSnapshotsInfo
- if *v == nil {
- sv = make([]types.LockedSnapshotsInfo, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.LockedSnapshotsInfo
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentLockedSnapshotsInfo(&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 awsEc2query_deserializeDocumentLockedSnapshotsInfoListUnwrapped(v *[]types.LockedSnapshotsInfo, decoder smithyxml.NodeDecoder) error {
- var sv []types.LockedSnapshotsInfo
- if *v == nil {
- sv = make([]types.LockedSnapshotsInfo, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.LockedSnapshotsInfo
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentLockedSnapshotsInfo(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentMacHost(v **types.MacHost, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.MacHost
- if *v == nil {
- sv = &types.MacHost{}
- } 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("hostId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HostId = ptr.String(xtv)
- }
-
- case strings.EqualFold("macOSLatestSupportedVersionSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentMacOSVersionStringList(&sv.MacOSLatestSupportedVersions, 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 awsEc2query_deserializeDocumentMacHostList(v *[]types.MacHost, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.MacHost
- if *v == nil {
- sv = make([]types.MacHost, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.MacHost
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentMacHost(&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 awsEc2query_deserializeDocumentMacHostListUnwrapped(v *[]types.MacHost, decoder smithyxml.NodeDecoder) error {
- var sv []types.MacHost
- if *v == nil {
- sv = make([]types.MacHost, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.MacHost
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentMacHost(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentMacModificationTask(v **types.MacModificationTask, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.MacModificationTask
- if *v == nil {
- sv = &types.MacModificationTask{}
- } 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("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("macModificationTaskId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.MacModificationTaskId = ptr.String(xtv)
- }
-
- case strings.EqualFold("macSystemIntegrityProtectionConfig", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentMacSystemIntegrityProtectionConfiguration(&sv.MacSystemIntegrityProtectionConfig, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("startTime", 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.StartTime = ptr.Time(t)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("taskState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TaskState = types.MacModificationTaskState(xtv)
- }
-
- case strings.EqualFold("taskType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TaskType = types.MacModificationTaskType(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 awsEc2query_deserializeDocumentMacModificationTaskList(v *[]types.MacModificationTask, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.MacModificationTask
- if *v == nil {
- sv = make([]types.MacModificationTask, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.MacModificationTask
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentMacModificationTask(&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 awsEc2query_deserializeDocumentMacModificationTaskListUnwrapped(v *[]types.MacModificationTask, decoder smithyxml.NodeDecoder) error {
- var sv []types.MacModificationTask
- if *v == nil {
- sv = make([]types.MacModificationTask, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.MacModificationTask
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentMacModificationTask(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentMacOSVersionStringList(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("item", 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 awsEc2query_deserializeDocumentMacOSVersionStringListUnwrapped(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 awsEc2query_deserializeDocumentMacSystemIntegrityProtectionConfiguration(v **types.MacSystemIntegrityProtectionConfiguration, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.MacSystemIntegrityProtectionConfiguration
- if *v == nil {
- sv = &types.MacSystemIntegrityProtectionConfiguration{}
- } 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("appleInternal", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AppleInternal = types.MacSystemIntegrityProtectionSettingStatus(xtv)
- }
-
- case strings.EqualFold("baseSystem", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.BaseSystem = types.MacSystemIntegrityProtectionSettingStatus(xtv)
- }
-
- case strings.EqualFold("debuggingRestrictions", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DebuggingRestrictions = types.MacSystemIntegrityProtectionSettingStatus(xtv)
- }
-
- case strings.EqualFold("dTraceRestrictions", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DTraceRestrictions = types.MacSystemIntegrityProtectionSettingStatus(xtv)
- }
-
- case strings.EqualFold("filesystemProtections", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.FilesystemProtections = types.MacSystemIntegrityProtectionSettingStatus(xtv)
- }
-
- case strings.EqualFold("kextSigning", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.KextSigning = types.MacSystemIntegrityProtectionSettingStatus(xtv)
- }
-
- case strings.EqualFold("nvramProtections", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NvramProtections = types.MacSystemIntegrityProtectionSettingStatus(xtv)
- }
-
- 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.MacSystemIntegrityProtectionSettingStatus(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 awsEc2query_deserializeDocumentMaintenanceDetails(v **types.MaintenanceDetails, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.MaintenanceDetails
- if *v == nil {
- sv = &types.MaintenanceDetails{}
- } 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("lastMaintenanceApplied", 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.LastMaintenanceApplied = ptr.Time(t)
- }
-
- case strings.EqualFold("maintenanceAutoAppliedAfter", 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.MaintenanceAutoAppliedAfter = ptr.Time(t)
- }
-
- case strings.EqualFold("pendingMaintenance", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PendingMaintenance = 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 awsEc2query_deserializeDocumentManagedPrefixList(v **types.ManagedPrefixList, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ManagedPrefixList
- if *v == nil {
- sv = &types.ManagedPrefixList{}
- } 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("addressFamily", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AddressFamily = ptr.String(xtv)
- }
-
- case strings.EqualFold("maxEntries", 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.MaxEntries = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("prefixListArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrefixListArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("prefixListId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrefixListId = ptr.String(xtv)
- }
-
- case strings.EqualFold("prefixListName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrefixListName = ptr.String(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.PrefixListState(xtv)
- }
-
- case strings.EqualFold("stateMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StateMessage = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("version", 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.Version = ptr.Int64(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 awsEc2query_deserializeDocumentManagedPrefixListSet(v *[]types.ManagedPrefixList, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ManagedPrefixList
- if *v == nil {
- sv = make([]types.ManagedPrefixList, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ManagedPrefixList
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentManagedPrefixList(&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 awsEc2query_deserializeDocumentManagedPrefixListSetUnwrapped(v *[]types.ManagedPrefixList, decoder smithyxml.NodeDecoder) error {
- var sv []types.ManagedPrefixList
- if *v == nil {
- sv = make([]types.ManagedPrefixList, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ManagedPrefixList
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentManagedPrefixList(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentMediaAcceleratorInfo(v **types.MediaAcceleratorInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.MediaAcceleratorInfo
- if *v == nil {
- sv = &types.MediaAcceleratorInfo{}
- } 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("accelerators", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentMediaDeviceInfoList(&sv.Accelerators, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("totalMediaMemoryInMiB", 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.TotalMediaMemoryInMiB = 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 awsEc2query_deserializeDocumentMediaDeviceInfo(v **types.MediaDeviceInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.MediaDeviceInfo
- if *v == nil {
- sv = &types.MediaDeviceInfo{}
- } 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("count", 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.Count = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("manufacturer", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Manufacturer = ptr.String(xtv)
- }
-
- case strings.EqualFold("memoryInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentMediaDeviceMemoryInfo(&sv.MemoryInfo, 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)
- }
-
- 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 awsEc2query_deserializeDocumentMediaDeviceInfoList(v *[]types.MediaDeviceInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.MediaDeviceInfo
- if *v == nil {
- sv = make([]types.MediaDeviceInfo, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.MediaDeviceInfo
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentMediaDeviceInfo(&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 awsEc2query_deserializeDocumentMediaDeviceInfoListUnwrapped(v *[]types.MediaDeviceInfo, decoder smithyxml.NodeDecoder) error {
- var sv []types.MediaDeviceInfo
- if *v == nil {
- sv = make([]types.MediaDeviceInfo, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.MediaDeviceInfo
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentMediaDeviceInfo(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentMediaDeviceMemoryInfo(v **types.MediaDeviceMemoryInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.MediaDeviceMemoryInfo
- if *v == nil {
- sv = &types.MediaDeviceMemoryInfo{}
- } 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("sizeInMiB", 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.SizeInMiB = 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 awsEc2query_deserializeDocumentMemoryGiBPerVCpu(v **types.MemoryGiBPerVCpu, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.MemoryGiBPerVCpu
- if *v == nil {
- sv = &types.MemoryGiBPerVCpu{}
- } 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)
- f64, err := strconv.ParseFloat(xtv, 64)
- if err != nil {
- return err
- }
- sv.Max = ptr.Float64(f64)
- }
-
- case strings.EqualFold("min", 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.Min = ptr.Float64(f64)
- }
-
- 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 awsEc2query_deserializeDocumentMemoryInfo(v **types.MemoryInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.MemoryInfo
- if *v == nil {
- sv = &types.MemoryInfo{}
- } 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("sizeInMiB", 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.SizeInMiB = ptr.Int64(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 awsEc2query_deserializeDocumentMemoryMiB(v **types.MemoryMiB, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.MemoryMiB
- if *v == nil {
- sv = &types.MemoryMiB{}
- } 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)
- i64, err := strconv.ParseInt(xtv, 10, 64)
- if err != nil {
- return err
- }
- sv.Max = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("min", 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.Min = 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 awsEc2query_deserializeDocumentMetricPoint(v **types.MetricPoint, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.MetricPoint
- if *v == nil {
- sv = &types.MetricPoint{}
- } 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("endDate", 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.EndDate = ptr.Time(t)
- }
-
- case strings.EqualFold("startDate", 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.StartDate = ptr.Time(t)
- }
-
- 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 = 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)
- f64, err := strconv.ParseFloat(xtv, 64)
- if err != nil {
- return err
- }
- sv.Value = ptr.Float32(float32(f64))
- }
-
- 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 awsEc2query_deserializeDocumentMetricPoints(v *[]types.MetricPoint, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.MetricPoint
- if *v == nil {
- sv = make([]types.MetricPoint, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.MetricPoint
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentMetricPoint(&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 awsEc2query_deserializeDocumentMetricPointsUnwrapped(v *[]types.MetricPoint, decoder smithyxml.NodeDecoder) error {
- var sv []types.MetricPoint
- if *v == nil {
- sv = make([]types.MetricPoint, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.MetricPoint
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentMetricPoint(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentMonitoring(v **types.Monitoring, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Monitoring
- if *v == nil {
- sv = &types.Monitoring{}
- } 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("state", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.State = types.MonitoringState(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 awsEc2query_deserializeDocumentMovingAddressStatus(v **types.MovingAddressStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.MovingAddressStatus
- if *v == nil {
- sv = &types.MovingAddressStatus{}
- } 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("moveStatus", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.MoveStatus = types.MoveStatus(xtv)
- }
-
- case strings.EqualFold("publicIp", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PublicIp = 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 awsEc2query_deserializeDocumentMovingAddressStatusSet(v *[]types.MovingAddressStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.MovingAddressStatus
- if *v == nil {
- sv = make([]types.MovingAddressStatus, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.MovingAddressStatus
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentMovingAddressStatus(&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 awsEc2query_deserializeDocumentMovingAddressStatusSetUnwrapped(v *[]types.MovingAddressStatus, decoder smithyxml.NodeDecoder) error {
- var sv []types.MovingAddressStatus
- if *v == nil {
- sv = make([]types.MovingAddressStatus, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.MovingAddressStatus
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentMovingAddressStatus(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentNatGateway(v **types.NatGateway, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NatGateway
- if *v == nil {
- sv = &types.NatGateway{}
- } 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("connectivityType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ConnectivityType = types.ConnectivityType(xtv)
- }
-
- case strings.EqualFold("createTime", 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.CreateTime = ptr.Time(t)
- }
-
- case strings.EqualFold("deleteTime", 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.DeleteTime = ptr.Time(t)
- }
-
- case strings.EqualFold("failureCode", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.FailureCode = ptr.String(xtv)
- }
-
- case strings.EqualFold("failureMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.FailureMessage = ptr.String(xtv)
- }
-
- case strings.EqualFold("natGatewayAddressSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentNatGatewayAddressList(&sv.NatGatewayAddresses, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("natGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NatGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("provisionedBandwidth", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentProvisionedBandwidth(&sv.ProvisionedBandwidth, nodeDecoder); err != nil {
- return err
- }
-
- 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.NatGatewayState(xtv)
- }
-
- 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("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- 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 awsEc2query_deserializeDocumentNatGatewayAddress(v **types.NatGatewayAddress, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NatGatewayAddress
- if *v == nil {
- sv = &types.NatGatewayAddress{}
- } 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("associationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AssociationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("failureMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.FailureMessage = ptr.String(xtv)
- }
-
- case strings.EqualFold("isPrimary", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.IsPrimary = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("networkInterfaceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInterfaceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("privateIp", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrivateIp = ptr.String(xtv)
- }
-
- case strings.EqualFold("publicIp", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PublicIp = ptr.String(xtv)
- }
-
- 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.NatGatewayAddressStatus(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 awsEc2query_deserializeDocumentNatGatewayAddressList(v *[]types.NatGatewayAddress, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.NatGatewayAddress
- if *v == nil {
- sv = make([]types.NatGatewayAddress, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.NatGatewayAddress
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentNatGatewayAddress(&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 awsEc2query_deserializeDocumentNatGatewayAddressListUnwrapped(v *[]types.NatGatewayAddress, decoder smithyxml.NodeDecoder) error {
- var sv []types.NatGatewayAddress
- if *v == nil {
- sv = make([]types.NatGatewayAddress, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.NatGatewayAddress
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentNatGatewayAddress(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentNatGatewayList(v *[]types.NatGateway, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.NatGateway
- if *v == nil {
- sv = make([]types.NatGateway, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.NatGateway
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentNatGateway(&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 awsEc2query_deserializeDocumentNatGatewayListUnwrapped(v *[]types.NatGateway, decoder smithyxml.NodeDecoder) error {
- var sv []types.NatGateway
- if *v == nil {
- sv = make([]types.NatGateway, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.NatGateway
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentNatGateway(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentNativeApplicationOidcOptions(v **types.NativeApplicationOidcOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NativeApplicationOidcOptions
- if *v == nil {
- sv = &types.NativeApplicationOidcOptions{}
- } 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("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("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("publicSigningKeyEndpoint", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PublicSigningKeyEndpoint = ptr.String(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("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("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 awsEc2query_deserializeDocumentNetworkAcl(v **types.NetworkAcl, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NetworkAcl
- if *v == nil {
- sv = &types.NetworkAcl{}
- } 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("associationSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentNetworkAclAssociationList(&sv.Associations, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("entrySet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentNetworkAclEntryList(&sv.Entries, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("default", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.IsDefault = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("networkAclId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkAclId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- 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 awsEc2query_deserializeDocumentNetworkAclAssociation(v **types.NetworkAclAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NetworkAclAssociation
- if *v == nil {
- sv = &types.NetworkAclAssociation{}
- } 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("networkAclAssociationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkAclAssociationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkAclId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkAclId = ptr.String(xtv)
- }
-
- 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)
- }
-
- 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 awsEc2query_deserializeDocumentNetworkAclAssociationList(v *[]types.NetworkAclAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.NetworkAclAssociation
- if *v == nil {
- sv = make([]types.NetworkAclAssociation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.NetworkAclAssociation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentNetworkAclAssociation(&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 awsEc2query_deserializeDocumentNetworkAclAssociationListUnwrapped(v *[]types.NetworkAclAssociation, decoder smithyxml.NodeDecoder) error {
- var sv []types.NetworkAclAssociation
- if *v == nil {
- sv = make([]types.NetworkAclAssociation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.NetworkAclAssociation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentNetworkAclAssociation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentNetworkAclEntry(v **types.NetworkAclEntry, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NetworkAclEntry
- if *v == nil {
- sv = &types.NetworkAclEntry{}
- } 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("cidrBlock", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CidrBlock = ptr.String(xtv)
- }
-
- case strings.EqualFold("egress", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Egress = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("icmpTypeCode", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIcmpTypeCode(&sv.IcmpTypeCode, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ipv6CidrBlock", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Ipv6CidrBlock = ptr.String(xtv)
- }
-
- case strings.EqualFold("portRange", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPortRange(&sv.PortRange, nodeDecoder); err != nil {
- return err
- }
-
- 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("ruleAction", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RuleAction = types.RuleAction(xtv)
- }
-
- case strings.EqualFold("ruleNumber", 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.RuleNumber = 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 awsEc2query_deserializeDocumentNetworkAclEntryList(v *[]types.NetworkAclEntry, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.NetworkAclEntry
- if *v == nil {
- sv = make([]types.NetworkAclEntry, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.NetworkAclEntry
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentNetworkAclEntry(&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 awsEc2query_deserializeDocumentNetworkAclEntryListUnwrapped(v *[]types.NetworkAclEntry, decoder smithyxml.NodeDecoder) error {
- var sv []types.NetworkAclEntry
- if *v == nil {
- sv = make([]types.NetworkAclEntry, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.NetworkAclEntry
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentNetworkAclEntry(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentNetworkAclList(v *[]types.NetworkAcl, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.NetworkAcl
- if *v == nil {
- sv = make([]types.NetworkAcl, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.NetworkAcl
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentNetworkAcl(&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 awsEc2query_deserializeDocumentNetworkAclListUnwrapped(v *[]types.NetworkAcl, decoder smithyxml.NodeDecoder) error {
- var sv []types.NetworkAcl
- if *v == nil {
- sv = make([]types.NetworkAcl, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.NetworkAcl
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentNetworkAcl(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentNetworkBandwidthGbps(v **types.NetworkBandwidthGbps, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NetworkBandwidthGbps
- if *v == nil {
- sv = &types.NetworkBandwidthGbps{}
- } 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)
- f64, err := strconv.ParseFloat(xtv, 64)
- if err != nil {
- return err
- }
- sv.Max = ptr.Float64(f64)
- }
-
- case strings.EqualFold("min", 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.Min = ptr.Float64(f64)
- }
-
- 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 awsEc2query_deserializeDocumentNetworkCardInfo(v **types.NetworkCardInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NetworkCardInfo
- if *v == nil {
- sv = &types.NetworkCardInfo{}
- } 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("baselineBandwidthInGbps", 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.BaselineBandwidthInGbps = ptr.Float64(f64)
- }
-
- case strings.EqualFold("defaultEnaQueueCountPerInterface", 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.DefaultEnaQueueCountPerInterface = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("maximumEnaQueueCount", 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.MaximumEnaQueueCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("maximumEnaQueueCountPerInterface", 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.MaximumEnaQueueCountPerInterface = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("maximumNetworkInterfaces", 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.MaximumNetworkInterfaces = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("networkCardIndex", 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.NetworkCardIndex = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("networkPerformance", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkPerformance = ptr.String(xtv)
- }
-
- case strings.EqualFold("peakBandwidthInGbps", 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.PeakBandwidthInGbps = ptr.Float64(f64)
- }
-
- 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 awsEc2query_deserializeDocumentNetworkCardInfoList(v *[]types.NetworkCardInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.NetworkCardInfo
- if *v == nil {
- sv = make([]types.NetworkCardInfo, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.NetworkCardInfo
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentNetworkCardInfo(&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 awsEc2query_deserializeDocumentNetworkCardInfoListUnwrapped(v *[]types.NetworkCardInfo, decoder smithyxml.NodeDecoder) error {
- var sv []types.NetworkCardInfo
- if *v == nil {
- sv = make([]types.NetworkCardInfo, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.NetworkCardInfo
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentNetworkCardInfo(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentNetworkInfo(v **types.NetworkInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NetworkInfo
- if *v == nil {
- sv = &types.NetworkInfo{}
- } 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("bandwidthWeightings", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentBandwidthWeightingTypeList(&sv.BandwidthWeightings, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("defaultNetworkCardIndex", 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.DefaultNetworkCardIndex = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("efaInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentEfaInfo(&sv.EfaInfo, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("efaSupported", 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 EfaSupportedFlag to be of type *bool, got %T instead", val)
- }
- sv.EfaSupported = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("enaSrdSupported", 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 EnaSrdSupported to be of type *bool, got %T instead", val)
- }
- sv.EnaSrdSupported = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("enaSupport", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EnaSupport = types.EnaSupport(xtv)
- }
-
- case strings.EqualFold("encryptionInTransitSupported", 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 EncryptionInTransitSupported to be of type *bool, got %T instead", val)
- }
- sv.EncryptionInTransitSupported = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("flexibleEnaQueuesSupport", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.FlexibleEnaQueuesSupport = types.FlexibleEnaQueuesSupport(xtv)
- }
-
- case strings.EqualFold("ipv4AddressesPerInterface", 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.Ipv4AddressesPerInterface = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("ipv6AddressesPerInterface", 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.Ipv6AddressesPerInterface = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("ipv6Supported", 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 Ipv6Flag to be of type *bool, got %T instead", val)
- }
- sv.Ipv6Supported = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("maximumNetworkCards", 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.MaximumNetworkCards = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("maximumNetworkInterfaces", 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.MaximumNetworkInterfaces = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("networkCards", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentNetworkCardInfoList(&sv.NetworkCards, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("networkPerformance", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkPerformance = 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 awsEc2query_deserializeDocumentNetworkInsightsAccessScope(v **types.NetworkInsightsAccessScope, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NetworkInsightsAccessScope
- if *v == nil {
- sv = &types.NetworkInsightsAccessScope{}
- } 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("createdDate", 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.CreatedDate = ptr.Time(t)
- }
-
- case strings.EqualFold("networkInsightsAccessScopeArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInsightsAccessScopeArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkInsightsAccessScopeId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInsightsAccessScopeId = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("updatedDate", 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.UpdatedDate = ptr.Time(t)
- }
-
- 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 awsEc2query_deserializeDocumentNetworkInsightsAccessScopeAnalysis(v **types.NetworkInsightsAccessScopeAnalysis, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NetworkInsightsAccessScopeAnalysis
- if *v == nil {
- sv = &types.NetworkInsightsAccessScopeAnalysis{}
- } 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("analyzedEniCount", 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.AnalyzedEniCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("endDate", 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.EndDate = ptr.Time(t)
- }
-
- case strings.EqualFold("findingsFound", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.FindingsFound = types.FindingsFound(xtv)
- }
-
- case strings.EqualFold("networkInsightsAccessScopeAnalysisArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInsightsAccessScopeAnalysisArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkInsightsAccessScopeAnalysisId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInsightsAccessScopeAnalysisId = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkInsightsAccessScopeId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInsightsAccessScopeId = ptr.String(xtv)
- }
-
- case strings.EqualFold("startDate", 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.StartDate = ptr.Time(t)
- }
-
- 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.AnalysisStatus(xtv)
- }
-
- case strings.EqualFold("statusMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StatusMessage = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("warningMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.WarningMessage = 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 awsEc2query_deserializeDocumentNetworkInsightsAccessScopeAnalysisList(v *[]types.NetworkInsightsAccessScopeAnalysis, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.NetworkInsightsAccessScopeAnalysis
- if *v == nil {
- sv = make([]types.NetworkInsightsAccessScopeAnalysis, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.NetworkInsightsAccessScopeAnalysis
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentNetworkInsightsAccessScopeAnalysis(&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 awsEc2query_deserializeDocumentNetworkInsightsAccessScopeAnalysisListUnwrapped(v *[]types.NetworkInsightsAccessScopeAnalysis, decoder smithyxml.NodeDecoder) error {
- var sv []types.NetworkInsightsAccessScopeAnalysis
- if *v == nil {
- sv = make([]types.NetworkInsightsAccessScopeAnalysis, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.NetworkInsightsAccessScopeAnalysis
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentNetworkInsightsAccessScopeAnalysis(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentNetworkInsightsAccessScopeContent(v **types.NetworkInsightsAccessScopeContent, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NetworkInsightsAccessScopeContent
- if *v == nil {
- sv = &types.NetworkInsightsAccessScopeContent{}
- } 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("excludePathSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAccessScopePathList(&sv.ExcludePaths, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("matchPathSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAccessScopePathList(&sv.MatchPaths, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("networkInsightsAccessScopeId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInsightsAccessScopeId = 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 awsEc2query_deserializeDocumentNetworkInsightsAccessScopeList(v *[]types.NetworkInsightsAccessScope, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.NetworkInsightsAccessScope
- if *v == nil {
- sv = make([]types.NetworkInsightsAccessScope, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.NetworkInsightsAccessScope
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentNetworkInsightsAccessScope(&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 awsEc2query_deserializeDocumentNetworkInsightsAccessScopeListUnwrapped(v *[]types.NetworkInsightsAccessScope, decoder smithyxml.NodeDecoder) error {
- var sv []types.NetworkInsightsAccessScope
- if *v == nil {
- sv = make([]types.NetworkInsightsAccessScope, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.NetworkInsightsAccessScope
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentNetworkInsightsAccessScope(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentNetworkInsightsAnalysis(v **types.NetworkInsightsAnalysis, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NetworkInsightsAnalysis
- if *v == nil {
- sv = &types.NetworkInsightsAnalysis{}
- } 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("additionalAccountSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.AdditionalAccounts, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("alternatePathHintSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAlternatePathHintList(&sv.AlternatePathHints, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("explanationSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentExplanationList(&sv.Explanations, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("filterInArnSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentArnList(&sv.FilterInArns, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("filterOutArnSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentArnList(&sv.FilterOutArns, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("forwardPathComponentSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPathComponentList(&sv.ForwardPathComponents, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("networkInsightsAnalysisArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInsightsAnalysisArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkInsightsAnalysisId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInsightsAnalysisId = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkInsightsPathId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInsightsPathId = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkPathFound", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.NetworkPathFound = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("returnPathComponentSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPathComponentList(&sv.ReturnPathComponents, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("startDate", 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.StartDate = ptr.Time(t)
- }
-
- 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.AnalysisStatus(xtv)
- }
-
- case strings.EqualFold("statusMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StatusMessage = ptr.String(xtv)
- }
-
- case strings.EqualFold("suggestedAccountSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.SuggestedAccounts, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("warningMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.WarningMessage = 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 awsEc2query_deserializeDocumentNetworkInsightsAnalysisList(v *[]types.NetworkInsightsAnalysis, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.NetworkInsightsAnalysis
- if *v == nil {
- sv = make([]types.NetworkInsightsAnalysis, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.NetworkInsightsAnalysis
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentNetworkInsightsAnalysis(&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 awsEc2query_deserializeDocumentNetworkInsightsAnalysisListUnwrapped(v *[]types.NetworkInsightsAnalysis, decoder smithyxml.NodeDecoder) error {
- var sv []types.NetworkInsightsAnalysis
- if *v == nil {
- sv = make([]types.NetworkInsightsAnalysis, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.NetworkInsightsAnalysis
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentNetworkInsightsAnalysis(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentNetworkInsightsPath(v **types.NetworkInsightsPath, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NetworkInsightsPath
- if *v == nil {
- sv = &types.NetworkInsightsPath{}
- } 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("createdDate", 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.CreatedDate = ptr.Time(t)
- }
-
- case strings.EqualFold("destination", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Destination = ptr.String(xtv)
- }
-
- case strings.EqualFold("destinationArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DestinationArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("destinationIp", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DestinationIp = ptr.String(xtv)
- }
-
- case strings.EqualFold("destinationPort", 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.DestinationPort = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("filterAtDestination", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPathFilter(&sv.FilterAtDestination, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("filterAtSource", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPathFilter(&sv.FilterAtSource, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("networkInsightsPathArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInsightsPathArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkInsightsPathId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInsightsPathId = 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 = types.Protocol(xtv)
- }
-
- case strings.EqualFold("source", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Source = ptr.String(xtv)
- }
-
- case strings.EqualFold("sourceArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SourceArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("sourceIp", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SourceIp = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentNetworkInsightsPathList(v *[]types.NetworkInsightsPath, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.NetworkInsightsPath
- if *v == nil {
- sv = make([]types.NetworkInsightsPath, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.NetworkInsightsPath
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentNetworkInsightsPath(&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 awsEc2query_deserializeDocumentNetworkInsightsPathListUnwrapped(v *[]types.NetworkInsightsPath, decoder smithyxml.NodeDecoder) error {
- var sv []types.NetworkInsightsPath
- if *v == nil {
- sv = make([]types.NetworkInsightsPath, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.NetworkInsightsPath
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentNetworkInsightsPath(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentNetworkInterface(v **types.NetworkInterface, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NetworkInterface
- if *v == nil {
- sv = &types.NetworkInterface{}
- } 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("associatedSubnetSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAssociatedSubnetList(&sv.AssociatedSubnets, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("association", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentNetworkInterfaceAssociation(&sv.Association, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("attachment", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentNetworkInterfaceAttachment(&sv.Attachment, nodeDecoder); err != nil {
- return err
- }
-
- 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("connectionTrackingConfiguration", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentConnectionTrackingConfiguration(&sv.ConnectionTrackingConfiguration, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("denyAllIgwTraffic", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.DenyAllIgwTraffic = ptr.Bool(xtv)
- }
-
- 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("groupSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentGroupIdentifierList(&sv.Groups, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("interfaceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InterfaceType = types.NetworkInterfaceType(xtv)
- }
-
- case strings.EqualFold("ipv4PrefixSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpv4PrefixesList(&sv.Ipv4Prefixes, nodeDecoder); err != nil {
- return err
- }
-
- 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("ipv6AddressesSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentNetworkInterfaceIpv6AddressesList(&sv.Ipv6Addresses, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ipv6Native", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Ipv6Native = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("ipv6PrefixSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpv6PrefixesList(&sv.Ipv6Prefixes, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("macAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.MacAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkInterfaceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInterfaceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("operator", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("outpostArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OutpostArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("privateDnsName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrivateDnsName = ptr.String(xtv)
- }
-
- case strings.EqualFold("privateIpAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrivateIpAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("privateIpAddressesSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentNetworkInterfacePrivateIpAddressList(&sv.PrivateIpAddresses, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("publicDnsName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PublicDnsName = ptr.String(xtv)
- }
-
- case strings.EqualFold("publicIpDnsNameOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPublicIpDnsNameOptions(&sv.PublicIpDnsNameOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("requesterId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RequesterId = ptr.String(xtv)
- }
-
- case strings.EqualFold("requesterManaged", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.RequesterManaged = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("sourceDestCheck", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.SourceDestCheck = ptr.Bool(xtv)
- }
-
- 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.NetworkInterfaceStatus(xtv)
- }
-
- 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("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.TagSet, nodeDecoder); err != nil {
- return err
- }
-
- 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 awsEc2query_deserializeDocumentNetworkInterfaceAssociation(v **types.NetworkInterfaceAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NetworkInterfaceAssociation
- if *v == nil {
- sv = &types.NetworkInterfaceAssociation{}
- } 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("associationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AssociationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("carrierIp", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CarrierIp = ptr.String(xtv)
- }
-
- case strings.EqualFold("customerOwnedIp", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CustomerOwnedIp = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpOwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("publicDnsName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PublicDnsName = ptr.String(xtv)
- }
-
- case strings.EqualFold("publicIp", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PublicIp = 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 awsEc2query_deserializeDocumentNetworkInterfaceAttachment(v **types.NetworkInterfaceAttachment, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NetworkInterfaceAttachment
- if *v == nil {
- sv = &types.NetworkInterfaceAttachment{}
- } 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("attachmentId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AttachmentId = ptr.String(xtv)
- }
-
- case strings.EqualFold("attachTime", 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.AttachTime = ptr.Time(t)
- }
-
- case strings.EqualFold("deleteOnTermination", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.DeleteOnTermination = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("deviceIndex", 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.DeviceIndex = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("enaQueueCount", 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.EnaQueueCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("enaSrdSpecification", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAttachmentEnaSrdSpecification(&sv.EnaSrdSpecification, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceOwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkCardIndex", 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.NetworkCardIndex = 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.AttachmentStatus(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 awsEc2query_deserializeDocumentNetworkInterfaceCount(v **types.NetworkInterfaceCount, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NetworkInterfaceCount
- if *v == nil {
- sv = &types.NetworkInterfaceCount{}
- } 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)
- i64, err := strconv.ParseInt(xtv, 10, 64)
- if err != nil {
- return err
- }
- sv.Max = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("min", 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.Min = 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 awsEc2query_deserializeDocumentNetworkInterfaceIdSet(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("item", 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 awsEc2query_deserializeDocumentNetworkInterfaceIdSetUnwrapped(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 awsEc2query_deserializeDocumentNetworkInterfaceIpv6Address(v **types.NetworkInterfaceIpv6Address, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NetworkInterfaceIpv6Address
- if *v == nil {
- sv = &types.NetworkInterfaceIpv6Address{}
- } 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("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("isPrimaryIpv6", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.IsPrimaryIpv6 = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("publicIpv6DnsName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PublicIpv6DnsName = 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 awsEc2query_deserializeDocumentNetworkInterfaceIpv6AddressesList(v *[]types.NetworkInterfaceIpv6Address, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.NetworkInterfaceIpv6Address
- if *v == nil {
- sv = make([]types.NetworkInterfaceIpv6Address, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.NetworkInterfaceIpv6Address
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentNetworkInterfaceIpv6Address(&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 awsEc2query_deserializeDocumentNetworkInterfaceIpv6AddressesListUnwrapped(v *[]types.NetworkInterfaceIpv6Address, decoder smithyxml.NodeDecoder) error {
- var sv []types.NetworkInterfaceIpv6Address
- if *v == nil {
- sv = make([]types.NetworkInterfaceIpv6Address, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.NetworkInterfaceIpv6Address
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentNetworkInterfaceIpv6Address(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentNetworkInterfaceList(v *[]types.NetworkInterface, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.NetworkInterface
- if *v == nil {
- sv = make([]types.NetworkInterface, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.NetworkInterface
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentNetworkInterface(&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 awsEc2query_deserializeDocumentNetworkInterfaceListUnwrapped(v *[]types.NetworkInterface, decoder smithyxml.NodeDecoder) error {
- var sv []types.NetworkInterface
- if *v == nil {
- sv = make([]types.NetworkInterface, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.NetworkInterface
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentNetworkInterface(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentNetworkInterfacePermission(v **types.NetworkInterfacePermission, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NetworkInterfacePermission
- if *v == nil {
- sv = &types.NetworkInterfacePermission{}
- } 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("awsAccountId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AwsAccountId = ptr.String(xtv)
- }
-
- case strings.EqualFold("awsService", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AwsService = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkInterfaceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInterfaceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkInterfacePermissionId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInterfacePermissionId = ptr.String(xtv)
- }
-
- case strings.EqualFold("permission", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Permission = types.InterfacePermissionType(xtv)
- }
-
- case strings.EqualFold("permissionState", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentNetworkInterfacePermissionState(&sv.PermissionState, 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 awsEc2query_deserializeDocumentNetworkInterfacePermissionList(v *[]types.NetworkInterfacePermission, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.NetworkInterfacePermission
- if *v == nil {
- sv = make([]types.NetworkInterfacePermission, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.NetworkInterfacePermission
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentNetworkInterfacePermission(&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 awsEc2query_deserializeDocumentNetworkInterfacePermissionListUnwrapped(v *[]types.NetworkInterfacePermission, decoder smithyxml.NodeDecoder) error {
- var sv []types.NetworkInterfacePermission
- if *v == nil {
- sv = make([]types.NetworkInterfacePermission, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.NetworkInterfacePermission
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentNetworkInterfacePermission(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentNetworkInterfacePermissionState(v **types.NetworkInterfacePermissionState, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NetworkInterfacePermissionState
- if *v == nil {
- sv = &types.NetworkInterfacePermissionState{}
- } 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("state", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.State = types.NetworkInterfacePermissionStateCode(xtv)
- }
-
- case strings.EqualFold("statusMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StatusMessage = 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 awsEc2query_deserializeDocumentNetworkInterfacePrivateIpAddress(v **types.NetworkInterfacePrivateIpAddress, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NetworkInterfacePrivateIpAddress
- if *v == nil {
- sv = &types.NetworkInterfacePrivateIpAddress{}
- } 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("association", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentNetworkInterfaceAssociation(&sv.Association, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("primary", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Primary = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("privateDnsName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrivateDnsName = ptr.String(xtv)
- }
-
- case strings.EqualFold("privateIpAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrivateIpAddress = 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 awsEc2query_deserializeDocumentNetworkInterfacePrivateIpAddressList(v *[]types.NetworkInterfacePrivateIpAddress, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.NetworkInterfacePrivateIpAddress
- if *v == nil {
- sv = make([]types.NetworkInterfacePrivateIpAddress, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.NetworkInterfacePrivateIpAddress
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentNetworkInterfacePrivateIpAddress(&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 awsEc2query_deserializeDocumentNetworkInterfacePrivateIpAddressListUnwrapped(v *[]types.NetworkInterfacePrivateIpAddress, decoder smithyxml.NodeDecoder) error {
- var sv []types.NetworkInterfacePrivateIpAddress
- if *v == nil {
- sv = make([]types.NetworkInterfacePrivateIpAddress, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.NetworkInterfacePrivateIpAddress
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentNetworkInterfacePrivateIpAddress(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentNetworkNodesList(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("item", 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 awsEc2query_deserializeDocumentNetworkNodesListUnwrapped(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 awsEc2query_deserializeDocumentNeuronDeviceCoreInfo(v **types.NeuronDeviceCoreInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NeuronDeviceCoreInfo
- if *v == nil {
- sv = &types.NeuronDeviceCoreInfo{}
- } 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("count", 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.Count = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("version", 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.Version = 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 awsEc2query_deserializeDocumentNeuronDeviceInfo(v **types.NeuronDeviceInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NeuronDeviceInfo
- if *v == nil {
- sv = &types.NeuronDeviceInfo{}
- } 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("coreInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentNeuronDeviceCoreInfo(&sv.CoreInfo, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("count", 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.Count = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("memoryInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentNeuronDeviceMemoryInfo(&sv.MemoryInfo, 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)
- }
-
- 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 awsEc2query_deserializeDocumentNeuronDeviceInfoList(v *[]types.NeuronDeviceInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.NeuronDeviceInfo
- if *v == nil {
- sv = make([]types.NeuronDeviceInfo, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.NeuronDeviceInfo
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentNeuronDeviceInfo(&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 awsEc2query_deserializeDocumentNeuronDeviceInfoListUnwrapped(v *[]types.NeuronDeviceInfo, decoder smithyxml.NodeDecoder) error {
- var sv []types.NeuronDeviceInfo
- if *v == nil {
- sv = make([]types.NeuronDeviceInfo, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.NeuronDeviceInfo
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentNeuronDeviceInfo(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentNeuronDeviceMemoryInfo(v **types.NeuronDeviceMemoryInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NeuronDeviceMemoryInfo
- if *v == nil {
- sv = &types.NeuronDeviceMemoryInfo{}
- } 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("sizeInMiB", 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.SizeInMiB = 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 awsEc2query_deserializeDocumentNeuronInfo(v **types.NeuronInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NeuronInfo
- if *v == nil {
- sv = &types.NeuronInfo{}
- } 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("neuronDevices", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentNeuronDeviceInfoList(&sv.NeuronDevices, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("totalNeuronDeviceMemoryInMiB", 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.TotalNeuronDeviceMemoryInMiB = 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 awsEc2query_deserializeDocumentNitroTpmInfo(v **types.NitroTpmInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.NitroTpmInfo
- if *v == nil {
- sv = &types.NitroTpmInfo{}
- } 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("supportedVersions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentNitroTpmSupportedVersionsList(&sv.SupportedVersions, 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 awsEc2query_deserializeDocumentNitroTpmSupportedVersionsList(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("item", 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 awsEc2query_deserializeDocumentNitroTpmSupportedVersionsListUnwrapped(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 awsEc2query_deserializeDocumentOccurrenceDaySet(v *[]int32, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []int32
- if *v == nil {
- sv = make([]int32, 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("item", t.Name.Local):
- var col int32
- 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
- }
- col = int32(i64)
- }
- sv = append(sv, col)
-
- default:
- err = decoder.Decoder.Skip()
- if err != nil {
- return err
- }
-
- }
- decoder = originalDecoder
- }
- *v = sv
- return nil
-}
-
-func awsEc2query_deserializeDocumentOccurrenceDaySetUnwrapped(v *[]int32, decoder smithyxml.NodeDecoder) error {
- var sv []int32
- if *v == nil {
- sv = make([]int32, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv int32
- t := decoder.StartEl
- _ = t
- 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
- }
- mv = int32(i64)
- }
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentOidcOptions(v **types.OidcOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.OidcOptions
- if *v == nil {
- sv = &types.OidcOptions{}
- } 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("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("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("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("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 awsEc2query_deserializeDocumentOnDemandOptions(v **types.OnDemandOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.OnDemandOptions
- if *v == nil {
- sv = &types.OnDemandOptions{}
- } 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("allocationStrategy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AllocationStrategy = types.FleetOnDemandAllocationStrategy(xtv)
- }
-
- case strings.EqualFold("capacityReservationOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentCapacityReservationOptions(&sv.CapacityReservationOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("maxTotalPrice", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.MaxTotalPrice = ptr.String(xtv)
- }
-
- case strings.EqualFold("minTargetCapacity", 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.MinTargetCapacity = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("singleAvailabilityZone", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.SingleAvailabilityZone = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("singleInstanceType", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.SingleInstanceType = 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 awsEc2query_deserializeDocumentOperatorResponse(v **types.OperatorResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.OperatorResponse
- if *v == nil {
- sv = &types.OperatorResponse{}
- } 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("managed", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Managed = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("principal", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Principal = 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 awsEc2query_deserializeDocumentOutpostLag(v **types.OutpostLag, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.OutpostLag
- if *v == nil {
- sv = &types.OutpostLag{}
- } 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("localGatewayVirtualInterfaceIdSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLocalGatewayVirtualInterfaceIdSet(&sv.LocalGatewayVirtualInterfaceIds, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("outpostArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OutpostArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("outpostLagId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OutpostLagId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("serviceLinkVirtualInterfaceIdSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentServiceLinkVirtualInterfaceIdSet(&sv.ServiceLinkVirtualInterfaceIds, nodeDecoder); err != nil {
- return err
- }
-
- 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 = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentOutpostLagSet(v *[]types.OutpostLag, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.OutpostLag
- if *v == nil {
- sv = make([]types.OutpostLag, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.OutpostLag
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentOutpostLag(&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 awsEc2query_deserializeDocumentOutpostLagSetUnwrapped(v *[]types.OutpostLag, decoder smithyxml.NodeDecoder) error {
- var sv []types.OutpostLag
- if *v == nil {
- sv = make([]types.OutpostLag, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.OutpostLag
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentOutpostLag(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPacketHeaderStatement(v **types.PacketHeaderStatement, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PacketHeaderStatement
- if *v == nil {
- sv = &types.PacketHeaderStatement{}
- } 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("destinationAddressSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.DestinationAddresses, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("destinationPortSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.DestinationPorts, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("destinationPrefixListSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.DestinationPrefixLists, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("protocolSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentProtocolList(&sv.Protocols, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("sourceAddressSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.SourceAddresses, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("sourcePortSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.SourcePorts, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("sourcePrefixListSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.SourcePrefixLists, 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 awsEc2query_deserializeDocumentPathComponent(v **types.PathComponent, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PathComponent
- if *v == nil {
- sv = &types.PathComponent{}
- } 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("aclRule", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisAclRule(&sv.AclRule, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("additionalDetailSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAdditionalDetailList(&sv.AdditionalDetails, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("attachedTo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.AttachedTo, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("component", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.Component, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("destinationVpc", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.DestinationVpc, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("elasticLoadBalancerListener", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.ElasticLoadBalancerListener, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("explanationSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentExplanationList(&sv.Explanations, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("firewallStatefulRule", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentFirewallStatefulRule(&sv.FirewallStatefulRule, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("firewallStatelessRule", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentFirewallStatelessRule(&sv.FirewallStatelessRule, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("inboundHeader", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisPacketHeader(&sv.InboundHeader, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("outboundHeader", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisPacketHeader(&sv.OutboundHeader, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("routeTableRoute", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisRouteTableRoute(&sv.RouteTableRoute, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("securityGroupRule", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisSecurityGroupRule(&sv.SecurityGroupRule, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("sequenceNumber", 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.SequenceNumber = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("serviceName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServiceName = ptr.String(xtv)
- }
-
- case strings.EqualFold("sourceVpc", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.SourceVpc, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("subnet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.Subnet, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transitGateway", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.TransitGateway, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transitGatewayRouteTableRoute", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTransitGatewayRouteTableRoute(&sv.TransitGatewayRouteTableRoute, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("vpc", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAnalysisComponent(&sv.Vpc, 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 awsEc2query_deserializeDocumentPathComponentList(v *[]types.PathComponent, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.PathComponent
- if *v == nil {
- sv = make([]types.PathComponent, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.PathComponent
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentPathComponent(&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 awsEc2query_deserializeDocumentPathComponentListUnwrapped(v *[]types.PathComponent, decoder smithyxml.NodeDecoder) error {
- var sv []types.PathComponent
- if *v == nil {
- sv = make([]types.PathComponent, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.PathComponent
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentPathComponent(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPathFilter(v **types.PathFilter, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PathFilter
- if *v == nil {
- sv = &types.PathFilter{}
- } 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("destinationAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DestinationAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("destinationPortRange", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentFilterPortRange(&sv.DestinationPortRange, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("sourceAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SourceAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("sourcePortRange", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentFilterPortRange(&sv.SourcePortRange, 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 awsEc2query_deserializeDocumentPathStatement(v **types.PathStatement, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PathStatement
- if *v == nil {
- sv = &types.PathStatement{}
- } 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("packetHeaderStatement", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPacketHeaderStatement(&sv.PacketHeaderStatement, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("resourceStatement", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentResourceStatement(&sv.ResourceStatement, 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 awsEc2query_deserializeDocumentPciId(v **types.PciId, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PciId
- if *v == nil {
- sv = &types.PciId{}
- } 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("DeviceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DeviceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("SubsystemId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SubsystemId = ptr.String(xtv)
- }
-
- case strings.EqualFold("SubsystemVendorId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SubsystemVendorId = ptr.String(xtv)
- }
-
- case strings.EqualFold("VendorId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VendorId = 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 awsEc2query_deserializeDocumentPeeringAttachmentStatus(v **types.PeeringAttachmentStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PeeringAttachmentStatus
- if *v == nil {
- sv = &types.PeeringAttachmentStatus{}
- } 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 = ptr.String(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentPeeringConnectionOptions(v **types.PeeringConnectionOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PeeringConnectionOptions
- if *v == nil {
- sv = &types.PeeringConnectionOptions{}
- } 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("allowDnsResolutionFromRemoteVpc", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.AllowDnsResolutionFromRemoteVpc = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("allowEgressFromLocalClassicLinkToRemoteVpc", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.AllowEgressFromLocalClassicLinkToRemoteVpc = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("allowEgressFromLocalVpcToRemoteClassicLink", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.AllowEgressFromLocalVpcToRemoteClassicLink = 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 awsEc2query_deserializeDocumentPeeringTgwInfo(v **types.PeeringTgwInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PeeringTgwInfo
- if *v == nil {
- sv = &types.PeeringTgwInfo{}
- } 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("coreNetworkId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CoreNetworkId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("region", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Region = ptr.String(xtv)
- }
-
- case strings.EqualFold("transitGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayId = 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 awsEc2query_deserializeDocumentPerformanceFactorReference(v **types.PerformanceFactorReference, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PerformanceFactorReference
- if *v == nil {
- sv = &types.PerformanceFactorReference{}
- } 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("instanceFamily", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceFamily = 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 awsEc2query_deserializeDocumentPerformanceFactorReferenceSet(v *[]types.PerformanceFactorReference, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.PerformanceFactorReference
- if *v == nil {
- sv = make([]types.PerformanceFactorReference, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.PerformanceFactorReference
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentPerformanceFactorReference(&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 awsEc2query_deserializeDocumentPerformanceFactorReferenceSetUnwrapped(v *[]types.PerformanceFactorReference, decoder smithyxml.NodeDecoder) error {
- var sv []types.PerformanceFactorReference
- if *v == nil {
- sv = make([]types.PerformanceFactorReference, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.PerformanceFactorReference
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentPerformanceFactorReference(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPhase1DHGroupNumbersList(v *[]types.Phase1DHGroupNumbersListValue, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Phase1DHGroupNumbersListValue
- if *v == nil {
- sv = make([]types.Phase1DHGroupNumbersListValue, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Phase1DHGroupNumbersListValue
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentPhase1DHGroupNumbersListValue(&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 awsEc2query_deserializeDocumentPhase1DHGroupNumbersListUnwrapped(v *[]types.Phase1DHGroupNumbersListValue, decoder smithyxml.NodeDecoder) error {
- var sv []types.Phase1DHGroupNumbersListValue
- if *v == nil {
- sv = make([]types.Phase1DHGroupNumbersListValue, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Phase1DHGroupNumbersListValue
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentPhase1DHGroupNumbersListValue(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPhase1DHGroupNumbersListValue(v **types.Phase1DHGroupNumbersListValue, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Phase1DHGroupNumbersListValue
- if *v == nil {
- sv = &types.Phase1DHGroupNumbersListValue{}
- } 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("value", 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.Value = 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 awsEc2query_deserializeDocumentPhase1EncryptionAlgorithmsList(v *[]types.Phase1EncryptionAlgorithmsListValue, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Phase1EncryptionAlgorithmsListValue
- if *v == nil {
- sv = make([]types.Phase1EncryptionAlgorithmsListValue, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Phase1EncryptionAlgorithmsListValue
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentPhase1EncryptionAlgorithmsListValue(&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 awsEc2query_deserializeDocumentPhase1EncryptionAlgorithmsListUnwrapped(v *[]types.Phase1EncryptionAlgorithmsListValue, decoder smithyxml.NodeDecoder) error {
- var sv []types.Phase1EncryptionAlgorithmsListValue
- if *v == nil {
- sv = make([]types.Phase1EncryptionAlgorithmsListValue, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Phase1EncryptionAlgorithmsListValue
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentPhase1EncryptionAlgorithmsListValue(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPhase1EncryptionAlgorithmsListValue(v **types.Phase1EncryptionAlgorithmsListValue, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Phase1EncryptionAlgorithmsListValue
- if *v == nil {
- sv = &types.Phase1EncryptionAlgorithmsListValue{}
- } 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("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 awsEc2query_deserializeDocumentPhase1IntegrityAlgorithmsList(v *[]types.Phase1IntegrityAlgorithmsListValue, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Phase1IntegrityAlgorithmsListValue
- if *v == nil {
- sv = make([]types.Phase1IntegrityAlgorithmsListValue, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Phase1IntegrityAlgorithmsListValue
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentPhase1IntegrityAlgorithmsListValue(&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 awsEc2query_deserializeDocumentPhase1IntegrityAlgorithmsListUnwrapped(v *[]types.Phase1IntegrityAlgorithmsListValue, decoder smithyxml.NodeDecoder) error {
- var sv []types.Phase1IntegrityAlgorithmsListValue
- if *v == nil {
- sv = make([]types.Phase1IntegrityAlgorithmsListValue, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Phase1IntegrityAlgorithmsListValue
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentPhase1IntegrityAlgorithmsListValue(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPhase1IntegrityAlgorithmsListValue(v **types.Phase1IntegrityAlgorithmsListValue, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Phase1IntegrityAlgorithmsListValue
- if *v == nil {
- sv = &types.Phase1IntegrityAlgorithmsListValue{}
- } 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("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 awsEc2query_deserializeDocumentPhase2DHGroupNumbersList(v *[]types.Phase2DHGroupNumbersListValue, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Phase2DHGroupNumbersListValue
- if *v == nil {
- sv = make([]types.Phase2DHGroupNumbersListValue, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Phase2DHGroupNumbersListValue
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentPhase2DHGroupNumbersListValue(&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 awsEc2query_deserializeDocumentPhase2DHGroupNumbersListUnwrapped(v *[]types.Phase2DHGroupNumbersListValue, decoder smithyxml.NodeDecoder) error {
- var sv []types.Phase2DHGroupNumbersListValue
- if *v == nil {
- sv = make([]types.Phase2DHGroupNumbersListValue, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Phase2DHGroupNumbersListValue
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentPhase2DHGroupNumbersListValue(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPhase2DHGroupNumbersListValue(v **types.Phase2DHGroupNumbersListValue, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Phase2DHGroupNumbersListValue
- if *v == nil {
- sv = &types.Phase2DHGroupNumbersListValue{}
- } 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("value", 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.Value = 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 awsEc2query_deserializeDocumentPhase2EncryptionAlgorithmsList(v *[]types.Phase2EncryptionAlgorithmsListValue, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Phase2EncryptionAlgorithmsListValue
- if *v == nil {
- sv = make([]types.Phase2EncryptionAlgorithmsListValue, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Phase2EncryptionAlgorithmsListValue
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentPhase2EncryptionAlgorithmsListValue(&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 awsEc2query_deserializeDocumentPhase2EncryptionAlgorithmsListUnwrapped(v *[]types.Phase2EncryptionAlgorithmsListValue, decoder smithyxml.NodeDecoder) error {
- var sv []types.Phase2EncryptionAlgorithmsListValue
- if *v == nil {
- sv = make([]types.Phase2EncryptionAlgorithmsListValue, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Phase2EncryptionAlgorithmsListValue
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentPhase2EncryptionAlgorithmsListValue(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPhase2EncryptionAlgorithmsListValue(v **types.Phase2EncryptionAlgorithmsListValue, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Phase2EncryptionAlgorithmsListValue
- if *v == nil {
- sv = &types.Phase2EncryptionAlgorithmsListValue{}
- } 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("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 awsEc2query_deserializeDocumentPhase2IntegrityAlgorithmsList(v *[]types.Phase2IntegrityAlgorithmsListValue, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Phase2IntegrityAlgorithmsListValue
- if *v == nil {
- sv = make([]types.Phase2IntegrityAlgorithmsListValue, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Phase2IntegrityAlgorithmsListValue
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentPhase2IntegrityAlgorithmsListValue(&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 awsEc2query_deserializeDocumentPhase2IntegrityAlgorithmsListUnwrapped(v *[]types.Phase2IntegrityAlgorithmsListValue, decoder smithyxml.NodeDecoder) error {
- var sv []types.Phase2IntegrityAlgorithmsListValue
- if *v == nil {
- sv = make([]types.Phase2IntegrityAlgorithmsListValue, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Phase2IntegrityAlgorithmsListValue
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentPhase2IntegrityAlgorithmsListValue(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPhase2IntegrityAlgorithmsListValue(v **types.Phase2IntegrityAlgorithmsListValue, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Phase2IntegrityAlgorithmsListValue
- if *v == nil {
- sv = &types.Phase2IntegrityAlgorithmsListValue{}
- } 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("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 awsEc2query_deserializeDocumentPlacement(v **types.Placement, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Placement
- if *v == nil {
- sv = &types.Placement{}
- } 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("affinity", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Affinity = ptr.String(xtv)
- }
-
- 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("groupId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupId = ptr.String(xtv)
- }
-
- case strings.EqualFold("groupName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupName = ptr.String(xtv)
- }
-
- case strings.EqualFold("hostId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HostId = ptr.String(xtv)
- }
-
- case strings.EqualFold("hostResourceGroupArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HostResourceGroupArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("partitionNumber", 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.PartitionNumber = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("spreadDomain", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SpreadDomain = ptr.String(xtv)
- }
-
- case strings.EqualFold("tenancy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Tenancy = types.Tenancy(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 awsEc2query_deserializeDocumentPlacementGroup(v **types.PlacementGroup, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PlacementGroup
- if *v == nil {
- sv = &types.PlacementGroup{}
- } 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("groupArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("groupId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupId = ptr.String(xtv)
- }
-
- case strings.EqualFold("groupName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupName = ptr.String(xtv)
- }
-
- case strings.EqualFold("partitionCount", 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.PartitionCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("spreadLevel", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SpreadLevel = types.SpreadLevel(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.PlacementGroupState(xtv)
- }
-
- case strings.EqualFold("strategy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Strategy = types.PlacementStrategy(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentPlacementGroupInfo(v **types.PlacementGroupInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PlacementGroupInfo
- if *v == nil {
- sv = &types.PlacementGroupInfo{}
- } 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("supportedStrategies", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPlacementGroupStrategyList(&sv.SupportedStrategies, 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 awsEc2query_deserializeDocumentPlacementGroupList(v *[]types.PlacementGroup, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.PlacementGroup
- if *v == nil {
- sv = make([]types.PlacementGroup, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.PlacementGroup
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentPlacementGroup(&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 awsEc2query_deserializeDocumentPlacementGroupListUnwrapped(v *[]types.PlacementGroup, decoder smithyxml.NodeDecoder) error {
- var sv []types.PlacementGroup
- if *v == nil {
- sv = make([]types.PlacementGroup, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.PlacementGroup
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentPlacementGroup(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPlacementGroupStrategyList(v *[]types.PlacementGroupStrategy, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.PlacementGroupStrategy
- if *v == nil {
- sv = make([]types.PlacementGroupStrategy, 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("item", t.Name.Local):
- var col types.PlacementGroupStrategy
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- col = types.PlacementGroupStrategy(xtv)
- }
- sv = append(sv, col)
-
- default:
- err = decoder.Decoder.Skip()
- if err != nil {
- return err
- }
-
- }
- decoder = originalDecoder
- }
- *v = sv
- return nil
-}
-
-func awsEc2query_deserializeDocumentPlacementGroupStrategyListUnwrapped(v *[]types.PlacementGroupStrategy, decoder smithyxml.NodeDecoder) error {
- var sv []types.PlacementGroupStrategy
- if *v == nil {
- sv = make([]types.PlacementGroupStrategy, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.PlacementGroupStrategy
- t := decoder.StartEl
- _ = t
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- mv = types.PlacementGroupStrategy(xtv)
- }
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPlacementResponse(v **types.PlacementResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PlacementResponse
- if *v == nil {
- sv = &types.PlacementResponse{}
- } 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("groupName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupName = 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 awsEc2query_deserializeDocumentPoolCidrBlock(v **types.PoolCidrBlock, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PoolCidrBlock
- if *v == nil {
- sv = &types.PoolCidrBlock{}
- } 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("poolCidrBlock", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Cidr = 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 awsEc2query_deserializeDocumentPoolCidrBlocksSet(v *[]types.PoolCidrBlock, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.PoolCidrBlock
- if *v == nil {
- sv = make([]types.PoolCidrBlock, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.PoolCidrBlock
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentPoolCidrBlock(&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 awsEc2query_deserializeDocumentPoolCidrBlocksSetUnwrapped(v *[]types.PoolCidrBlock, decoder smithyxml.NodeDecoder) error {
- var sv []types.PoolCidrBlock
- if *v == nil {
- sv = make([]types.PoolCidrBlock, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.PoolCidrBlock
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentPoolCidrBlock(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPortRange(v **types.PortRange, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PortRange
- if *v == nil {
- sv = &types.PortRange{}
- } 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("from", 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.From = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("to", 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.To = 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 awsEc2query_deserializeDocumentPortRangeList(v *[]types.PortRange, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.PortRange
- if *v == nil {
- sv = make([]types.PortRange, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.PortRange
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentPortRange(&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 awsEc2query_deserializeDocumentPortRangeListUnwrapped(v *[]types.PortRange, decoder smithyxml.NodeDecoder) error {
- var sv []types.PortRange
- if *v == nil {
- sv = make([]types.PortRange, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.PortRange
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentPortRange(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPrefixList(v **types.PrefixList, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PrefixList
- if *v == nil {
- sv = &types.PrefixList{}
- } 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("cidrSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.Cidrs, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("prefixListId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrefixListId = ptr.String(xtv)
- }
-
- case strings.EqualFold("prefixListName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrefixListName = 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 awsEc2query_deserializeDocumentPrefixListAssociation(v **types.PrefixListAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PrefixListAssociation
- if *v == nil {
- sv = &types.PrefixListAssociation{}
- } 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("resourceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceOwner", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceOwner = 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 awsEc2query_deserializeDocumentPrefixListAssociationSet(v *[]types.PrefixListAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.PrefixListAssociation
- if *v == nil {
- sv = make([]types.PrefixListAssociation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.PrefixListAssociation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentPrefixListAssociation(&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 awsEc2query_deserializeDocumentPrefixListAssociationSetUnwrapped(v *[]types.PrefixListAssociation, decoder smithyxml.NodeDecoder) error {
- var sv []types.PrefixListAssociation
- if *v == nil {
- sv = make([]types.PrefixListAssociation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.PrefixListAssociation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentPrefixListAssociation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPrefixListEntry(v **types.PrefixListEntry, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PrefixListEntry
- if *v == nil {
- sv = &types.PrefixListEntry{}
- } 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("cidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Cidr = ptr.String(xtv)
- }
-
- 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)
- }
-
- 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 awsEc2query_deserializeDocumentPrefixListEntrySet(v *[]types.PrefixListEntry, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.PrefixListEntry
- if *v == nil {
- sv = make([]types.PrefixListEntry, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.PrefixListEntry
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentPrefixListEntry(&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 awsEc2query_deserializeDocumentPrefixListEntrySetUnwrapped(v *[]types.PrefixListEntry, decoder smithyxml.NodeDecoder) error {
- var sv []types.PrefixListEntry
- if *v == nil {
- sv = make([]types.PrefixListEntry, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.PrefixListEntry
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentPrefixListEntry(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPrefixListId(v **types.PrefixListId, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PrefixListId
- if *v == nil {
- sv = &types.PrefixListId{}
- } 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("prefixListId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrefixListId = 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 awsEc2query_deserializeDocumentPrefixListIdList(v *[]types.PrefixListId, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.PrefixListId
- if *v == nil {
- sv = make([]types.PrefixListId, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.PrefixListId
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentPrefixListId(&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 awsEc2query_deserializeDocumentPrefixListIdListUnwrapped(v *[]types.PrefixListId, decoder smithyxml.NodeDecoder) error {
- var sv []types.PrefixListId
- if *v == nil {
- sv = make([]types.PrefixListId, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.PrefixListId
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentPrefixListId(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPrefixListIdSet(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("item", 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 awsEc2query_deserializeDocumentPrefixListIdSetUnwrapped(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 awsEc2query_deserializeDocumentPrefixListSet(v *[]types.PrefixList, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.PrefixList
- if *v == nil {
- sv = make([]types.PrefixList, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.PrefixList
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentPrefixList(&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 awsEc2query_deserializeDocumentPrefixListSetUnwrapped(v *[]types.PrefixList, decoder smithyxml.NodeDecoder) error {
- var sv []types.PrefixList
- if *v == nil {
- sv = make([]types.PrefixList, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.PrefixList
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentPrefixList(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPriceSchedule(v **types.PriceSchedule, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PriceSchedule
- if *v == nil {
- sv = &types.PriceSchedule{}
- } 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("active", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Active = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("currencyCode", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CurrencyCode = types.CurrencyCodeValues(xtv)
- }
-
- case strings.EqualFold("price", 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.Price = ptr.Float64(f64)
- }
-
- case strings.EqualFold("term", 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.Term = ptr.Int64(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 awsEc2query_deserializeDocumentPriceScheduleList(v *[]types.PriceSchedule, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.PriceSchedule
- if *v == nil {
- sv = make([]types.PriceSchedule, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.PriceSchedule
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentPriceSchedule(&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 awsEc2query_deserializeDocumentPriceScheduleListUnwrapped(v *[]types.PriceSchedule, decoder smithyxml.NodeDecoder) error {
- var sv []types.PriceSchedule
- if *v == nil {
- sv = make([]types.PriceSchedule, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.PriceSchedule
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentPriceSchedule(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPricingDetail(v **types.PricingDetail, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PricingDetail
- if *v == nil {
- sv = &types.PricingDetail{}
- } 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("count", 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.Count = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("price", 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.Price = ptr.Float64(f64)
- }
-
- 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 awsEc2query_deserializeDocumentPricingDetailsList(v *[]types.PricingDetail, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.PricingDetail
- if *v == nil {
- sv = make([]types.PricingDetail, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.PricingDetail
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentPricingDetail(&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 awsEc2query_deserializeDocumentPricingDetailsListUnwrapped(v *[]types.PricingDetail, decoder smithyxml.NodeDecoder) error {
- var sv []types.PricingDetail
- if *v == nil {
- sv = make([]types.PricingDetail, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.PricingDetail
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentPricingDetail(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPrincipalIdFormat(v **types.PrincipalIdFormat, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PrincipalIdFormat
- if *v == nil {
- sv = &types.PrincipalIdFormat{}
- } 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("arn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Arn = ptr.String(xtv)
- }
-
- case strings.EqualFold("statusSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIdFormatList(&sv.Statuses, 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 awsEc2query_deserializeDocumentPrincipalIdFormatList(v *[]types.PrincipalIdFormat, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.PrincipalIdFormat
- if *v == nil {
- sv = make([]types.PrincipalIdFormat, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.PrincipalIdFormat
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentPrincipalIdFormat(&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 awsEc2query_deserializeDocumentPrincipalIdFormatListUnwrapped(v *[]types.PrincipalIdFormat, decoder smithyxml.NodeDecoder) error {
- var sv []types.PrincipalIdFormat
- if *v == nil {
- sv = make([]types.PrincipalIdFormat, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.PrincipalIdFormat
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentPrincipalIdFormat(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPrivateDnsDetails(v **types.PrivateDnsDetails, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PrivateDnsDetails
- if *v == nil {
- sv = &types.PrivateDnsDetails{}
- } 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("privateDnsName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrivateDnsName = 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 awsEc2query_deserializeDocumentPrivateDnsDetailsSet(v *[]types.PrivateDnsDetails, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.PrivateDnsDetails
- if *v == nil {
- sv = make([]types.PrivateDnsDetails, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.PrivateDnsDetails
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentPrivateDnsDetails(&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 awsEc2query_deserializeDocumentPrivateDnsDetailsSetUnwrapped(v *[]types.PrivateDnsDetails, decoder smithyxml.NodeDecoder) error {
- var sv []types.PrivateDnsDetails
- if *v == nil {
- sv = make([]types.PrivateDnsDetails, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.PrivateDnsDetails
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentPrivateDnsDetails(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPrivateDnsNameConfiguration(v **types.PrivateDnsNameConfiguration, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PrivateDnsNameConfiguration
- if *v == nil {
- sv = &types.PrivateDnsNameConfiguration{}
- } 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("state", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.State = types.DnsNameState(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 = 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 awsEc2query_deserializeDocumentPrivateDnsNameOptionsOnLaunch(v **types.PrivateDnsNameOptionsOnLaunch, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PrivateDnsNameOptionsOnLaunch
- if *v == nil {
- sv = &types.PrivateDnsNameOptionsOnLaunch{}
- } 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("enableResourceNameDnsAAAARecord", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EnableResourceNameDnsAAAARecord = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("enableResourceNameDnsARecord", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EnableResourceNameDnsARecord = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("hostnameType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HostnameType = types.HostnameType(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 awsEc2query_deserializeDocumentPrivateDnsNameOptionsResponse(v **types.PrivateDnsNameOptionsResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PrivateDnsNameOptionsResponse
- if *v == nil {
- sv = &types.PrivateDnsNameOptionsResponse{}
- } 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("enableResourceNameDnsAAAARecord", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EnableResourceNameDnsAAAARecord = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("enableResourceNameDnsARecord", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EnableResourceNameDnsARecord = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("hostnameType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HostnameType = types.HostnameType(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 awsEc2query_deserializeDocumentPrivateIpAddressSpecification(v **types.PrivateIpAddressSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PrivateIpAddressSpecification
- if *v == nil {
- sv = &types.PrivateIpAddressSpecification{}
- } 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("primary", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Primary = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("privateIpAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrivateIpAddress = 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 awsEc2query_deserializeDocumentPrivateIpAddressSpecificationList(v *[]types.PrivateIpAddressSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.PrivateIpAddressSpecification
- if *v == nil {
- sv = make([]types.PrivateIpAddressSpecification, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.PrivateIpAddressSpecification
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentPrivateIpAddressSpecification(&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 awsEc2query_deserializeDocumentPrivateIpAddressSpecificationListUnwrapped(v *[]types.PrivateIpAddressSpecification, decoder smithyxml.NodeDecoder) error {
- var sv []types.PrivateIpAddressSpecification
- if *v == nil {
- sv = make([]types.PrivateIpAddressSpecification, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.PrivateIpAddressSpecification
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentPrivateIpAddressSpecification(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentProcessorInfo(v **types.ProcessorInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ProcessorInfo
- if *v == nil {
- sv = &types.ProcessorInfo{}
- } 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("manufacturer", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Manufacturer = ptr.String(xtv)
- }
-
- case strings.EqualFold("supportedArchitectures", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentArchitectureTypeList(&sv.SupportedArchitectures, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("supportedFeatures", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSupportedAdditionalProcessorFeatureList(&sv.SupportedFeatures, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("sustainedClockSpeedInGhz", 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.SustainedClockSpeedInGhz = ptr.Float64(f64)
- }
-
- 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 awsEc2query_deserializeDocumentProductCode(v **types.ProductCode, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ProductCode
- if *v == nil {
- sv = &types.ProductCode{}
- } 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("productCode", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ProductCodeId = 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.ProductCodeType = types.ProductCodeValues(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 awsEc2query_deserializeDocumentProductCodeList(v *[]types.ProductCode, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ProductCode
- if *v == nil {
- sv = make([]types.ProductCode, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ProductCode
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentProductCode(&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 awsEc2query_deserializeDocumentProductCodeListUnwrapped(v *[]types.ProductCode, decoder smithyxml.NodeDecoder) error {
- var sv []types.ProductCode
- if *v == nil {
- sv = make([]types.ProductCode, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ProductCode
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentProductCode(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPropagatingVgw(v **types.PropagatingVgw, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PropagatingVgw
- if *v == nil {
- sv = &types.PropagatingVgw{}
- } 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("gatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GatewayId = 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 awsEc2query_deserializeDocumentPropagatingVgwList(v *[]types.PropagatingVgw, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.PropagatingVgw
- if *v == nil {
- sv = make([]types.PropagatingVgw, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.PropagatingVgw
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentPropagatingVgw(&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 awsEc2query_deserializeDocumentPropagatingVgwListUnwrapped(v *[]types.PropagatingVgw, decoder smithyxml.NodeDecoder) error {
- var sv []types.PropagatingVgw
- if *v == nil {
- sv = make([]types.PropagatingVgw, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.PropagatingVgw
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentPropagatingVgw(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentProtocolIntList(v *[]int32, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []int32
- if *v == nil {
- sv = make([]int32, 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("item", t.Name.Local):
- var col int32
- 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
- }
- col = int32(i64)
- }
- sv = append(sv, col)
-
- default:
- err = decoder.Decoder.Skip()
- if err != nil {
- return err
- }
-
- }
- decoder = originalDecoder
- }
- *v = sv
- return nil
-}
-
-func awsEc2query_deserializeDocumentProtocolIntListUnwrapped(v *[]int32, decoder smithyxml.NodeDecoder) error {
- var sv []int32
- if *v == nil {
- sv = make([]int32, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv int32
- t := decoder.StartEl
- _ = t
- 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
- }
- mv = int32(i64)
- }
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentProtocolList(v *[]types.Protocol, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Protocol
- if *v == nil {
- sv = make([]types.Protocol, 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("item", t.Name.Local):
- var col types.Protocol
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- col = types.Protocol(xtv)
- }
- sv = append(sv, col)
-
- default:
- err = decoder.Decoder.Skip()
- if err != nil {
- return err
- }
-
- }
- decoder = originalDecoder
- }
- *v = sv
- return nil
-}
-
-func awsEc2query_deserializeDocumentProtocolListUnwrapped(v *[]types.Protocol, decoder smithyxml.NodeDecoder) error {
- var sv []types.Protocol
- if *v == nil {
- sv = make([]types.Protocol, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Protocol
- t := decoder.StartEl
- _ = t
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- mv = types.Protocol(xtv)
- }
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentProvisionedBandwidth(v **types.ProvisionedBandwidth, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ProvisionedBandwidth
- if *v == nil {
- sv = &types.ProvisionedBandwidth{}
- } 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("provisioned", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Provisioned = ptr.String(xtv)
- }
-
- case strings.EqualFold("provisionTime", 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.ProvisionTime = ptr.Time(t)
- }
-
- case strings.EqualFold("requested", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Requested = ptr.String(xtv)
- }
-
- case strings.EqualFold("requestTime", 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.RequestTime = ptr.Time(t)
- }
-
- 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 = 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 awsEc2query_deserializeDocumentPtrUpdateStatus(v **types.PtrUpdateStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PtrUpdateStatus
- if *v == nil {
- sv = &types.PtrUpdateStatus{}
- } 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("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)
- }
-
- 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 = 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 awsEc2query_deserializeDocumentPublicIpDnsNameOptions(v **types.PublicIpDnsNameOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PublicIpDnsNameOptions
- if *v == nil {
- sv = &types.PublicIpDnsNameOptions{}
- } 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("dnsHostnameType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DnsHostnameType = ptr.String(xtv)
- }
-
- case strings.EqualFold("publicDualStackDnsName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PublicDualStackDnsName = ptr.String(xtv)
- }
-
- case strings.EqualFold("publicIpv4DnsName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PublicIpv4DnsName = ptr.String(xtv)
- }
-
- case strings.EqualFold("publicIpv6DnsName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PublicIpv6DnsName = 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 awsEc2query_deserializeDocumentPublicIpv4Pool(v **types.PublicIpv4Pool, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PublicIpv4Pool
- if *v == nil {
- sv = &types.PublicIpv4Pool{}
- } 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("networkBorderGroup", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkBorderGroup = ptr.String(xtv)
- }
-
- case strings.EqualFold("poolAddressRangeSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPublicIpv4PoolRangeSet(&sv.PoolAddressRanges, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("poolId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PoolId = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("totalAddressCount", 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.TotalAddressCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("totalAvailableAddressCount", 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.TotalAvailableAddressCount = 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 awsEc2query_deserializeDocumentPublicIpv4PoolRange(v **types.PublicIpv4PoolRange, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.PublicIpv4PoolRange
- if *v == nil {
- sv = &types.PublicIpv4PoolRange{}
- } 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("addressCount", 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.AddressCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("availableAddressCount", 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.AvailableAddressCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("firstAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.FirstAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("lastAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LastAddress = 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 awsEc2query_deserializeDocumentPublicIpv4PoolRangeSet(v *[]types.PublicIpv4PoolRange, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.PublicIpv4PoolRange
- if *v == nil {
- sv = make([]types.PublicIpv4PoolRange, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.PublicIpv4PoolRange
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentPublicIpv4PoolRange(&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 awsEc2query_deserializeDocumentPublicIpv4PoolRangeSetUnwrapped(v *[]types.PublicIpv4PoolRange, decoder smithyxml.NodeDecoder) error {
- var sv []types.PublicIpv4PoolRange
- if *v == nil {
- sv = make([]types.PublicIpv4PoolRange, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.PublicIpv4PoolRange
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentPublicIpv4PoolRange(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPublicIpv4PoolSet(v *[]types.PublicIpv4Pool, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.PublicIpv4Pool
- if *v == nil {
- sv = make([]types.PublicIpv4Pool, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.PublicIpv4Pool
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentPublicIpv4Pool(&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 awsEc2query_deserializeDocumentPublicIpv4PoolSetUnwrapped(v *[]types.PublicIpv4Pool, decoder smithyxml.NodeDecoder) error {
- var sv []types.PublicIpv4Pool
- if *v == nil {
- sv = make([]types.PublicIpv4Pool, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.PublicIpv4Pool
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentPublicIpv4Pool(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPurchase(v **types.Purchase, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Purchase
- if *v == nil {
- sv = &types.Purchase{}
- } 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("currencyCode", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CurrencyCode = types.CurrencyCodeValues(xtv)
- }
-
- case strings.EqualFold("duration", 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.Duration = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("hostIdSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentResponseHostIdSet(&sv.HostIdSet, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("hostReservationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HostReservationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("hourlyPrice", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HourlyPrice = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceFamily", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceFamily = ptr.String(xtv)
- }
-
- case strings.EqualFold("paymentOption", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PaymentOption = types.PaymentOption(xtv)
- }
-
- case strings.EqualFold("upfrontPrice", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UpfrontPrice = 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 awsEc2query_deserializeDocumentPurchasedScheduledInstanceSet(v *[]types.ScheduledInstance, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ScheduledInstance
- if *v == nil {
- sv = make([]types.ScheduledInstance, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ScheduledInstance
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentScheduledInstance(&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 awsEc2query_deserializeDocumentPurchasedScheduledInstanceSetUnwrapped(v *[]types.ScheduledInstance, decoder smithyxml.NodeDecoder) error {
- var sv []types.ScheduledInstance
- if *v == nil {
- sv = make([]types.ScheduledInstance, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ScheduledInstance
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentScheduledInstance(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentPurchaseSet(v *[]types.Purchase, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Purchase
- if *v == nil {
- sv = make([]types.Purchase, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Purchase
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentPurchase(&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 awsEc2query_deserializeDocumentPurchaseSetUnwrapped(v *[]types.Purchase, decoder smithyxml.NodeDecoder) error {
- var sv []types.Purchase
- if *v == nil {
- sv = make([]types.Purchase, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Purchase
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentPurchase(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentRecurringCharge(v **types.RecurringCharge, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.RecurringCharge
- if *v == nil {
- sv = &types.RecurringCharge{}
- } 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("amount", 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.Amount = ptr.Float64(f64)
- }
-
- case strings.EqualFold("frequency", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Frequency = types.RecurringChargeFrequency(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 awsEc2query_deserializeDocumentRecurringChargesList(v *[]types.RecurringCharge, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.RecurringCharge
- if *v == nil {
- sv = make([]types.RecurringCharge, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.RecurringCharge
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentRecurringCharge(&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 awsEc2query_deserializeDocumentRecurringChargesListUnwrapped(v *[]types.RecurringCharge, decoder smithyxml.NodeDecoder) error {
- var sv []types.RecurringCharge
- if *v == nil {
- sv = make([]types.RecurringCharge, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.RecurringCharge
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentRecurringCharge(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentReferencedSecurityGroup(v **types.ReferencedSecurityGroup, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ReferencedSecurityGroup
- if *v == nil {
- sv = &types.ReferencedSecurityGroup{}
- } 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("groupId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupId = ptr.String(xtv)
- }
-
- case strings.EqualFold("peeringStatus", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PeeringStatus = ptr.String(xtv)
- }
-
- case strings.EqualFold("userId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UserId = ptr.String(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)
- }
-
- case strings.EqualFold("vpcPeeringConnectionId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VpcPeeringConnectionId = 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 awsEc2query_deserializeDocumentRegion(v **types.Region, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Region
- if *v == nil {
- sv = &types.Region{}
- } 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("regionEndpoint", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Endpoint = ptr.String(xtv)
- }
-
- case strings.EqualFold("optInStatus", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OptInStatus = ptr.String(xtv)
- }
-
- case strings.EqualFold("regionName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RegionName = 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 awsEc2query_deserializeDocumentRegionalSummary(v **types.RegionalSummary, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.RegionalSummary
- if *v == nil {
- sv = &types.RegionalSummary{}
- } 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("numberOfMatchedAccounts", 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.NumberOfMatchedAccounts = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("numberOfUnmatchedAccounts", 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.NumberOfUnmatchedAccounts = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("regionName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RegionName = 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 awsEc2query_deserializeDocumentRegionalSummaryList(v *[]types.RegionalSummary, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.RegionalSummary
- if *v == nil {
- sv = make([]types.RegionalSummary, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.RegionalSummary
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentRegionalSummary(&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 awsEc2query_deserializeDocumentRegionalSummaryListUnwrapped(v *[]types.RegionalSummary, decoder smithyxml.NodeDecoder) error {
- var sv []types.RegionalSummary
- if *v == nil {
- sv = make([]types.RegionalSummary, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.RegionalSummary
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentRegionalSummary(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentRegionList(v *[]types.Region, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Region
- if *v == nil {
- sv = make([]types.Region, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Region
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentRegion(&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 awsEc2query_deserializeDocumentRegionListUnwrapped(v *[]types.Region, decoder smithyxml.NodeDecoder) error {
- var sv []types.Region
- if *v == nil {
- sv = make([]types.Region, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Region
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentRegion(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentReplaceRootVolumeTask(v **types.ReplaceRootVolumeTask, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ReplaceRootVolumeTask
- if *v == nil {
- sv = &types.ReplaceRootVolumeTask{}
- } 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("completeTime", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CompleteTime = ptr.String(xtv)
- }
-
- case strings.EqualFold("deleteReplacedRootVolume", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.DeleteReplacedRootVolume = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("imageId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ImageId = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("replaceRootVolumeTaskId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ReplaceRootVolumeTaskId = ptr.String(xtv)
- }
-
- case strings.EqualFold("snapshotId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SnapshotId = ptr.String(xtv)
- }
-
- case strings.EqualFold("startTime", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StartTime = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("taskState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TaskState = types.ReplaceRootVolumeTaskState(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 awsEc2query_deserializeDocumentReplaceRootVolumeTasks(v *[]types.ReplaceRootVolumeTask, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ReplaceRootVolumeTask
- if *v == nil {
- sv = make([]types.ReplaceRootVolumeTask, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ReplaceRootVolumeTask
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentReplaceRootVolumeTask(&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 awsEc2query_deserializeDocumentReplaceRootVolumeTasksUnwrapped(v *[]types.ReplaceRootVolumeTask, decoder smithyxml.NodeDecoder) error {
- var sv []types.ReplaceRootVolumeTask
- if *v == nil {
- sv = make([]types.ReplaceRootVolumeTask, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ReplaceRootVolumeTask
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentReplaceRootVolumeTask(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentReservation(v **types.Reservation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Reservation
- if *v == nil {
- sv = &types.Reservation{}
- } 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("groupSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentGroupIdentifierList(&sv.Groups, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instancesSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceList(&sv.Instances, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("requesterId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RequesterId = ptr.String(xtv)
- }
-
- case strings.EqualFold("reservationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ReservationId = 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 awsEc2query_deserializeDocumentReservationList(v *[]types.Reservation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Reservation
- if *v == nil {
- sv = make([]types.Reservation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Reservation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentReservation(&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 awsEc2query_deserializeDocumentReservationListUnwrapped(v *[]types.Reservation, decoder smithyxml.NodeDecoder) error {
- var sv []types.Reservation
- if *v == nil {
- sv = make([]types.Reservation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Reservation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentReservation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentReservationValue(v **types.ReservationValue, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ReservationValue
- if *v == nil {
- sv = &types.ReservationValue{}
- } 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("hourlyPrice", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HourlyPrice = ptr.String(xtv)
- }
-
- case strings.EqualFold("remainingTotalValue", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RemainingTotalValue = ptr.String(xtv)
- }
-
- case strings.EqualFold("remainingUpfrontValue", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RemainingUpfrontValue = 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 awsEc2query_deserializeDocumentReservedInstanceReservationValue(v **types.ReservedInstanceReservationValue, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ReservedInstanceReservationValue
- if *v == nil {
- sv = &types.ReservedInstanceReservationValue{}
- } 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("reservationValue", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentReservationValue(&sv.ReservationValue, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("reservedInstanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ReservedInstanceId = 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 awsEc2query_deserializeDocumentReservedInstanceReservationValueSet(v *[]types.ReservedInstanceReservationValue, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ReservedInstanceReservationValue
- if *v == nil {
- sv = make([]types.ReservedInstanceReservationValue, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ReservedInstanceReservationValue
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentReservedInstanceReservationValue(&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 awsEc2query_deserializeDocumentReservedInstanceReservationValueSetUnwrapped(v *[]types.ReservedInstanceReservationValue, decoder smithyxml.NodeDecoder) error {
- var sv []types.ReservedInstanceReservationValue
- if *v == nil {
- sv = make([]types.ReservedInstanceReservationValue, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ReservedInstanceReservationValue
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentReservedInstanceReservationValue(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentReservedInstances(v **types.ReservedInstances, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ReservedInstances
- if *v == nil {
- sv = &types.ReservedInstances{}
- } 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("availabilityZoneId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AvailabilityZoneId = ptr.String(xtv)
- }
-
- case strings.EqualFold("currencyCode", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CurrencyCode = types.CurrencyCodeValues(xtv)
- }
-
- case strings.EqualFold("duration", 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.Duration = ptr.Int64(i64)
- }
-
- case strings.EqualFold("end", 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.End = ptr.Time(t)
- }
-
- case strings.EqualFold("fixedPrice", 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.FixedPrice = ptr.Float32(float32(f64))
- }
-
- case strings.EqualFold("instanceCount", 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.InstanceCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("instanceTenancy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceTenancy = types.Tenancy(xtv)
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = types.InstanceType(xtv)
- }
-
- case strings.EqualFold("offeringClass", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OfferingClass = types.OfferingClassType(xtv)
- }
-
- case strings.EqualFold("offeringType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OfferingType = types.OfferingTypeValues(xtv)
- }
-
- case strings.EqualFold("productDescription", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ProductDescription = types.RIProductDescription(xtv)
- }
-
- case strings.EqualFold("recurringCharges", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentRecurringChargesList(&sv.RecurringCharges, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("reservedInstancesId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ReservedInstancesId = ptr.String(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 = types.Scope(xtv)
- }
-
- case strings.EqualFold("start", 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.Start = ptr.Time(t)
- }
-
- 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.ReservedInstanceState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("usagePrice", 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.UsagePrice = ptr.Float32(float32(f64))
- }
-
- 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 awsEc2query_deserializeDocumentReservedInstancesConfiguration(v **types.ReservedInstancesConfiguration, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ReservedInstancesConfiguration
- if *v == nil {
- sv = &types.ReservedInstancesConfiguration{}
- } 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("availabilityZoneId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AvailabilityZoneId = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceCount", 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.InstanceCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = types.InstanceType(xtv)
- }
-
- case strings.EqualFold("platform", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Platform = ptr.String(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 = types.Scope(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 awsEc2query_deserializeDocumentReservedInstancesId(v **types.ReservedInstancesId, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ReservedInstancesId
- if *v == nil {
- sv = &types.ReservedInstancesId{}
- } 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("reservedInstancesId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ReservedInstancesId = 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 awsEc2query_deserializeDocumentReservedInstancesList(v *[]types.ReservedInstances, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ReservedInstances
- if *v == nil {
- sv = make([]types.ReservedInstances, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ReservedInstances
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentReservedInstances(&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 awsEc2query_deserializeDocumentReservedInstancesListUnwrapped(v *[]types.ReservedInstances, decoder smithyxml.NodeDecoder) error {
- var sv []types.ReservedInstances
- if *v == nil {
- sv = make([]types.ReservedInstances, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ReservedInstances
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentReservedInstances(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentReservedInstancesListing(v **types.ReservedInstancesListing, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ReservedInstancesListing
- if *v == nil {
- sv = &types.ReservedInstancesListing{}
- } 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("clientToken", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ClientToken = ptr.String(xtv)
- }
-
- case strings.EqualFold("createDate", 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.CreateDate = ptr.Time(t)
- }
-
- case strings.EqualFold("instanceCounts", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceCountList(&sv.InstanceCounts, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("priceSchedules", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPriceScheduleList(&sv.PriceSchedules, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("reservedInstancesId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ReservedInstancesId = ptr.String(xtv)
- }
-
- case strings.EqualFold("reservedInstancesListingId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ReservedInstancesListingId = ptr.String(xtv)
- }
-
- 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.ListingStatus(xtv)
- }
-
- case strings.EqualFold("statusMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StatusMessage = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("updateDate", 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.UpdateDate = ptr.Time(t)
- }
-
- 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 awsEc2query_deserializeDocumentReservedInstancesListingList(v *[]types.ReservedInstancesListing, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ReservedInstancesListing
- if *v == nil {
- sv = make([]types.ReservedInstancesListing, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ReservedInstancesListing
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentReservedInstancesListing(&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 awsEc2query_deserializeDocumentReservedInstancesListingListUnwrapped(v *[]types.ReservedInstancesListing, decoder smithyxml.NodeDecoder) error {
- var sv []types.ReservedInstancesListing
- if *v == nil {
- sv = make([]types.ReservedInstancesListing, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ReservedInstancesListing
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentReservedInstancesListing(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentReservedInstancesModification(v **types.ReservedInstancesModification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ReservedInstancesModification
- if *v == nil {
- sv = &types.ReservedInstancesModification{}
- } 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("clientToken", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ClientToken = ptr.String(xtv)
- }
-
- case strings.EqualFold("createDate", 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.CreateDate = ptr.Time(t)
- }
-
- case strings.EqualFold("effectiveDate", 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.EffectiveDate = ptr.Time(t)
- }
-
- case strings.EqualFold("modificationResultSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentReservedInstancesModificationResultList(&sv.ModificationResults, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("reservedInstancesSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentReservedIntancesIds(&sv.ReservedInstancesIds, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("reservedInstancesModificationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ReservedInstancesModificationId = ptr.String(xtv)
- }
-
- 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 = ptr.String(xtv)
- }
-
- case strings.EqualFold("statusMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StatusMessage = ptr.String(xtv)
- }
-
- case strings.EqualFold("updateDate", 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.UpdateDate = ptr.Time(t)
- }
-
- 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 awsEc2query_deserializeDocumentReservedInstancesModificationList(v *[]types.ReservedInstancesModification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ReservedInstancesModification
- if *v == nil {
- sv = make([]types.ReservedInstancesModification, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ReservedInstancesModification
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentReservedInstancesModification(&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 awsEc2query_deserializeDocumentReservedInstancesModificationListUnwrapped(v *[]types.ReservedInstancesModification, decoder smithyxml.NodeDecoder) error {
- var sv []types.ReservedInstancesModification
- if *v == nil {
- sv = make([]types.ReservedInstancesModification, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ReservedInstancesModification
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentReservedInstancesModification(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentReservedInstancesModificationResult(v **types.ReservedInstancesModificationResult, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ReservedInstancesModificationResult
- if *v == nil {
- sv = &types.ReservedInstancesModificationResult{}
- } 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("reservedInstancesId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ReservedInstancesId = ptr.String(xtv)
- }
-
- case strings.EqualFold("targetConfiguration", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentReservedInstancesConfiguration(&sv.TargetConfiguration, 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 awsEc2query_deserializeDocumentReservedInstancesModificationResultList(v *[]types.ReservedInstancesModificationResult, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ReservedInstancesModificationResult
- if *v == nil {
- sv = make([]types.ReservedInstancesModificationResult, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ReservedInstancesModificationResult
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentReservedInstancesModificationResult(&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 awsEc2query_deserializeDocumentReservedInstancesModificationResultListUnwrapped(v *[]types.ReservedInstancesModificationResult, decoder smithyxml.NodeDecoder) error {
- var sv []types.ReservedInstancesModificationResult
- if *v == nil {
- sv = make([]types.ReservedInstancesModificationResult, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ReservedInstancesModificationResult
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentReservedInstancesModificationResult(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentReservedInstancesOffering(v **types.ReservedInstancesOffering, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ReservedInstancesOffering
- if *v == nil {
- sv = &types.ReservedInstancesOffering{}
- } 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("availabilityZoneId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AvailabilityZoneId = ptr.String(xtv)
- }
-
- case strings.EqualFold("currencyCode", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CurrencyCode = types.CurrencyCodeValues(xtv)
- }
-
- case strings.EqualFold("duration", 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.Duration = ptr.Int64(i64)
- }
-
- case strings.EqualFold("fixedPrice", 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.FixedPrice = ptr.Float32(float32(f64))
- }
-
- case strings.EqualFold("instanceTenancy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceTenancy = types.Tenancy(xtv)
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = types.InstanceType(xtv)
- }
-
- case strings.EqualFold("marketplace", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Marketplace = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("offeringClass", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OfferingClass = types.OfferingClassType(xtv)
- }
-
- case strings.EqualFold("offeringType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OfferingType = types.OfferingTypeValues(xtv)
- }
-
- case strings.EqualFold("pricingDetailsSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPricingDetailsList(&sv.PricingDetails, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("productDescription", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ProductDescription = types.RIProductDescription(xtv)
- }
-
- case strings.EqualFold("recurringCharges", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentRecurringChargesList(&sv.RecurringCharges, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("reservedInstancesOfferingId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ReservedInstancesOfferingId = ptr.String(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 = types.Scope(xtv)
- }
-
- case strings.EqualFold("usagePrice", 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.UsagePrice = ptr.Float32(float32(f64))
- }
-
- 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 awsEc2query_deserializeDocumentReservedInstancesOfferingList(v *[]types.ReservedInstancesOffering, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ReservedInstancesOffering
- if *v == nil {
- sv = make([]types.ReservedInstancesOffering, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ReservedInstancesOffering
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentReservedInstancesOffering(&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 awsEc2query_deserializeDocumentReservedInstancesOfferingListUnwrapped(v *[]types.ReservedInstancesOffering, decoder smithyxml.NodeDecoder) error {
- var sv []types.ReservedInstancesOffering
- if *v == nil {
- sv = make([]types.ReservedInstancesOffering, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ReservedInstancesOffering
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentReservedInstancesOffering(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentReservedIntancesIds(v *[]types.ReservedInstancesId, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ReservedInstancesId
- if *v == nil {
- sv = make([]types.ReservedInstancesId, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ReservedInstancesId
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentReservedInstancesId(&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 awsEc2query_deserializeDocumentReservedIntancesIdsUnwrapped(v *[]types.ReservedInstancesId, decoder smithyxml.NodeDecoder) error {
- var sv []types.ReservedInstancesId
- if *v == nil {
- sv = make([]types.ReservedInstancesId, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ReservedInstancesId
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentReservedInstancesId(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentResourceStatement(v **types.ResourceStatement, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ResourceStatement
- if *v == nil {
- sv = &types.ResourceStatement{}
- } 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("resourceSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.Resources, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("resourceTypeSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.ResourceTypes, 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 awsEc2query_deserializeDocumentResponseError(v **types.ResponseError, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ResponseError
- if *v == nil {
- sv = &types.ResponseError{}
- } 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.LaunchTemplateErrorCode(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentResponseHostIdList(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("item", 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 awsEc2query_deserializeDocumentResponseHostIdListUnwrapped(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 awsEc2query_deserializeDocumentResponseHostIdSet(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("item", 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 awsEc2query_deserializeDocumentResponseHostIdSetUnwrapped(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 awsEc2query_deserializeDocumentResponseLaunchTemplateData(v **types.ResponseLaunchTemplateData, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ResponseLaunchTemplateData
- if *v == nil {
- sv = &types.ResponseLaunchTemplateData{}
- } 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("blockDeviceMappingSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplateBlockDeviceMappingList(&sv.BlockDeviceMappings, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("capacityReservationSpecification", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplateCapacityReservationSpecificationResponse(&sv.CapacityReservationSpecification, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("cpuOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplateCpuOptions(&sv.CpuOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("creditSpecification", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentCreditSpecification(&sv.CreditSpecification, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("disableApiStop", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.DisableApiStop = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("disableApiTermination", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.DisableApiTermination = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("ebsOptimized", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EbsOptimized = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("elasticGpuSpecificationSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentElasticGpuSpecificationResponseList(&sv.ElasticGpuSpecifications, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("elasticInferenceAcceleratorSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplateElasticInferenceAcceleratorResponseList(&sv.ElasticInferenceAccelerators, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("enclaveOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplateEnclaveOptions(&sv.EnclaveOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("hibernationOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplateHibernationOptions(&sv.HibernationOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("iamInstanceProfile", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplateIamInstanceProfileSpecification(&sv.IamInstanceProfile, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("imageId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ImageId = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceInitiatedShutdownBehavior", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceInitiatedShutdownBehavior = types.ShutdownBehavior(xtv)
- }
-
- case strings.EqualFold("instanceMarketOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplateInstanceMarketOptions(&sv.InstanceMarketOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instanceRequirements", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceRequirements(&sv.InstanceRequirements, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = types.InstanceType(xtv)
- }
-
- case strings.EqualFold("kernelId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.KernelId = ptr.String(xtv)
- }
-
- case strings.EqualFold("keyName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.KeyName = ptr.String(xtv)
- }
-
- case strings.EqualFold("licenseSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplateLicenseList(&sv.LicenseSpecifications, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("maintenanceOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplateInstanceMaintenanceOptions(&sv.MaintenanceOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("metadataOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplateInstanceMetadataOptions(&sv.MetadataOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("monitoring", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplatesMonitoring(&sv.Monitoring, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("networkInterfaceSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecificationList(&sv.NetworkInterfaces, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("networkPerformanceOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplateNetworkPerformanceOptions(&sv.NetworkPerformanceOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("operator", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("placement", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplatePlacement(&sv.Placement, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("privateDnsNameOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplatePrivateDnsNameOptions(&sv.PrivateDnsNameOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ramDiskId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RamDiskId = ptr.String(xtv)
- }
-
- case strings.EqualFold("securityGroupIdSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.SecurityGroupIds, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("securityGroupSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.SecurityGroups, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tagSpecificationSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplateTagSpecificationList(&sv.TagSpecifications, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("userData", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UserData = 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 awsEc2query_deserializeDocumentRevokedSecurityGroupRule(v **types.RevokedSecurityGroupRule, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.RevokedSecurityGroupRule
- if *v == nil {
- sv = &types.RevokedSecurityGroupRule{}
- } 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("cidrIpv4", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CidrIpv4 = ptr.String(xtv)
- }
-
- case strings.EqualFold("cidrIpv6", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CidrIpv6 = ptr.String(xtv)
- }
-
- 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("fromPort", 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.FromPort = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("groupId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipProtocol", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpProtocol = ptr.String(xtv)
- }
-
- case strings.EqualFold("isEgress", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.IsEgress = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("prefixListId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrefixListId = ptr.String(xtv)
- }
-
- case strings.EqualFold("referencedGroupId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ReferencedGroupId = ptr.String(xtv)
- }
-
- case strings.EqualFold("securityGroupRuleId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SecurityGroupRuleId = ptr.String(xtv)
- }
-
- case strings.EqualFold("toPort", 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.ToPort = 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 awsEc2query_deserializeDocumentRevokedSecurityGroupRuleList(v *[]types.RevokedSecurityGroupRule, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.RevokedSecurityGroupRule
- if *v == nil {
- sv = make([]types.RevokedSecurityGroupRule, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.RevokedSecurityGroupRule
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentRevokedSecurityGroupRule(&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 awsEc2query_deserializeDocumentRevokedSecurityGroupRuleListUnwrapped(v *[]types.RevokedSecurityGroupRule, decoder smithyxml.NodeDecoder) error {
- var sv []types.RevokedSecurityGroupRule
- if *v == nil {
- sv = make([]types.RevokedSecurityGroupRule, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.RevokedSecurityGroupRule
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentRevokedSecurityGroupRule(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentRootDeviceTypeList(v *[]types.RootDeviceType, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.RootDeviceType
- if *v == nil {
- sv = make([]types.RootDeviceType, 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("item", t.Name.Local):
- var col types.RootDeviceType
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- col = types.RootDeviceType(xtv)
- }
- sv = append(sv, col)
-
- default:
- err = decoder.Decoder.Skip()
- if err != nil {
- return err
- }
-
- }
- decoder = originalDecoder
- }
- *v = sv
- return nil
-}
-
-func awsEc2query_deserializeDocumentRootDeviceTypeListUnwrapped(v *[]types.RootDeviceType, decoder smithyxml.NodeDecoder) error {
- var sv []types.RootDeviceType
- if *v == nil {
- sv = make([]types.RootDeviceType, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.RootDeviceType
- t := decoder.StartEl
- _ = t
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- mv = types.RootDeviceType(xtv)
- }
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentRoute(v **types.Route, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Route
- if *v == nil {
- sv = &types.Route{}
- } 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("carrierGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CarrierGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("coreNetworkArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CoreNetworkArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("destinationCidrBlock", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DestinationCidrBlock = ptr.String(xtv)
- }
-
- case strings.EqualFold("destinationIpv6CidrBlock", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DestinationIpv6CidrBlock = ptr.String(xtv)
- }
-
- case strings.EqualFold("destinationPrefixListId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DestinationPrefixListId = ptr.String(xtv)
- }
-
- case strings.EqualFold("egressOnlyInternetGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EgressOnlyInternetGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("gatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceOwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("localGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("natGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NatGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkInterfaceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInterfaceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("odbNetworkArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OdbNetworkArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("origin", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Origin = types.RouteOrigin(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.RouteState(xtv)
- }
-
- case strings.EqualFold("transitGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("vpcPeeringConnectionId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VpcPeeringConnectionId = 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 awsEc2query_deserializeDocumentRouteList(v *[]types.Route, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Route
- if *v == nil {
- sv = make([]types.Route, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Route
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentRoute(&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 awsEc2query_deserializeDocumentRouteListUnwrapped(v *[]types.Route, decoder smithyxml.NodeDecoder) error {
- var sv []types.Route
- if *v == nil {
- sv = make([]types.Route, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Route
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentRoute(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentRouteServer(v **types.RouteServer, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.RouteServer
- if *v == nil {
- sv = &types.RouteServer{}
- } 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("amazonSideAsn", 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.AmazonSideAsn = ptr.Int64(i64)
- }
-
- case strings.EqualFold("persistRoutesDuration", 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.PersistRoutesDuration = ptr.Int64(i64)
- }
-
- case strings.EqualFold("persistRoutesState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PersistRoutesState = types.RouteServerPersistRoutesState(xtv)
- }
-
- case strings.EqualFold("routeServerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RouteServerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("snsNotificationsEnabled", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.SnsNotificationsEnabled = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("snsTopicArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SnsTopicArn = ptr.String(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.RouteServerState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentRouteServerAssociation(v **types.RouteServerAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.RouteServerAssociation
- if *v == nil {
- sv = &types.RouteServerAssociation{}
- } 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("routeServerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RouteServerId = ptr.String(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.RouteServerAssociationState(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 awsEc2query_deserializeDocumentRouteServerAssociationsList(v *[]types.RouteServerAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.RouteServerAssociation
- if *v == nil {
- sv = make([]types.RouteServerAssociation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.RouteServerAssociation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentRouteServerAssociation(&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 awsEc2query_deserializeDocumentRouteServerAssociationsListUnwrapped(v *[]types.RouteServerAssociation, decoder smithyxml.NodeDecoder) error {
- var sv []types.RouteServerAssociation
- if *v == nil {
- sv = make([]types.RouteServerAssociation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.RouteServerAssociation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentRouteServerAssociation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentRouteServerBfdStatus(v **types.RouteServerBfdStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.RouteServerBfdStatus
- if *v == nil {
- sv = &types.RouteServerBfdStatus{}
- } 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("status", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Status = types.RouteServerBfdState(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 awsEc2query_deserializeDocumentRouteServerBgpOptions(v **types.RouteServerBgpOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.RouteServerBgpOptions
- if *v == nil {
- sv = &types.RouteServerBgpOptions{}
- } 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("peerAsn", 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.PeerAsn = ptr.Int64(i64)
- }
-
- case strings.EqualFold("peerLivenessDetection", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PeerLivenessDetection = types.RouteServerPeerLivenessMode(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 awsEc2query_deserializeDocumentRouteServerBgpStatus(v **types.RouteServerBgpStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.RouteServerBgpStatus
- if *v == nil {
- sv = &types.RouteServerBgpStatus{}
- } 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("status", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Status = types.RouteServerBgpState(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 awsEc2query_deserializeDocumentRouteServerEndpoint(v **types.RouteServerEndpoint, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.RouteServerEndpoint
- if *v == nil {
- sv = &types.RouteServerEndpoint{}
- } 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("eniAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EniAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("eniId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EniId = ptr.String(xtv)
- }
-
- case strings.EqualFold("failureReason", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.FailureReason = ptr.String(xtv)
- }
-
- case strings.EqualFold("routeServerEndpointId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RouteServerEndpointId = ptr.String(xtv)
- }
-
- case strings.EqualFold("routeServerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RouteServerId = ptr.String(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.RouteServerEndpointState(xtv)
- }
-
- 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("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- 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 awsEc2query_deserializeDocumentRouteServerEndpointsList(v *[]types.RouteServerEndpoint, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.RouteServerEndpoint
- if *v == nil {
- sv = make([]types.RouteServerEndpoint, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.RouteServerEndpoint
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentRouteServerEndpoint(&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 awsEc2query_deserializeDocumentRouteServerEndpointsListUnwrapped(v *[]types.RouteServerEndpoint, decoder smithyxml.NodeDecoder) error {
- var sv []types.RouteServerEndpoint
- if *v == nil {
- sv = make([]types.RouteServerEndpoint, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.RouteServerEndpoint
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentRouteServerEndpoint(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentRouteServerPeer(v **types.RouteServerPeer, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.RouteServerPeer
- if *v == nil {
- sv = &types.RouteServerPeer{}
- } 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("bfdStatus", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentRouteServerBfdStatus(&sv.BfdStatus, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("bgpOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentRouteServerBgpOptions(&sv.BgpOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("bgpStatus", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentRouteServerBgpStatus(&sv.BgpStatus, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("endpointEniAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EndpointEniAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("endpointEniId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EndpointEniId = ptr.String(xtv)
- }
-
- case strings.EqualFold("failureReason", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.FailureReason = ptr.String(xtv)
- }
-
- case strings.EqualFold("peerAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PeerAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("routeServerEndpointId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RouteServerEndpointId = ptr.String(xtv)
- }
-
- case strings.EqualFold("routeServerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RouteServerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("routeServerPeerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RouteServerPeerId = ptr.String(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.RouteServerPeerState(xtv)
- }
-
- 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("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- 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 awsEc2query_deserializeDocumentRouteServerPeersList(v *[]types.RouteServerPeer, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.RouteServerPeer
- if *v == nil {
- sv = make([]types.RouteServerPeer, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.RouteServerPeer
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentRouteServerPeer(&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 awsEc2query_deserializeDocumentRouteServerPeersListUnwrapped(v *[]types.RouteServerPeer, decoder smithyxml.NodeDecoder) error {
- var sv []types.RouteServerPeer
- if *v == nil {
- sv = make([]types.RouteServerPeer, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.RouteServerPeer
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentRouteServerPeer(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentRouteServerPropagation(v **types.RouteServerPropagation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.RouteServerPropagation
- if *v == nil {
- sv = &types.RouteServerPropagation{}
- } 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("routeServerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RouteServerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("routeTableId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RouteTableId = ptr.String(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.RouteServerPropagationState(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 awsEc2query_deserializeDocumentRouteServerPropagationsList(v *[]types.RouteServerPropagation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.RouteServerPropagation
- if *v == nil {
- sv = make([]types.RouteServerPropagation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.RouteServerPropagation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentRouteServerPropagation(&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 awsEc2query_deserializeDocumentRouteServerPropagationsListUnwrapped(v *[]types.RouteServerPropagation, decoder smithyxml.NodeDecoder) error {
- var sv []types.RouteServerPropagation
- if *v == nil {
- sv = make([]types.RouteServerPropagation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.RouteServerPropagation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentRouteServerPropagation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentRouteServerRoute(v **types.RouteServerRoute, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.RouteServerRoute
- if *v == nil {
- sv = &types.RouteServerRoute{}
- } 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("asPathSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAsPath(&sv.AsPaths, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("med", 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.Med = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("nextHopIp", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NextHopIp = ptr.String(xtv)
- }
-
- case strings.EqualFold("prefix", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Prefix = ptr.String(xtv)
- }
-
- case strings.EqualFold("routeInstallationDetailSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentRouteServerRouteInstallationDetails(&sv.RouteInstallationDetails, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("routeServerEndpointId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RouteServerEndpointId = ptr.String(xtv)
- }
-
- case strings.EqualFold("routeServerPeerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RouteServerPeerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("routeStatus", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RouteStatus = types.RouteServerRouteStatus(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 awsEc2query_deserializeDocumentRouteServerRouteInstallationDetail(v **types.RouteServerRouteInstallationDetail, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.RouteServerRouteInstallationDetail
- if *v == nil {
- sv = &types.RouteServerRouteInstallationDetail{}
- } 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("routeInstallationStatus", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RouteInstallationStatus = types.RouteServerRouteInstallationStatus(xtv)
- }
-
- case strings.EqualFold("routeInstallationStatusReason", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RouteInstallationStatusReason = ptr.String(xtv)
- }
-
- case strings.EqualFold("routeTableId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RouteTableId = 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 awsEc2query_deserializeDocumentRouteServerRouteInstallationDetails(v *[]types.RouteServerRouteInstallationDetail, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.RouteServerRouteInstallationDetail
- if *v == nil {
- sv = make([]types.RouteServerRouteInstallationDetail, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.RouteServerRouteInstallationDetail
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentRouteServerRouteInstallationDetail(&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 awsEc2query_deserializeDocumentRouteServerRouteInstallationDetailsUnwrapped(v *[]types.RouteServerRouteInstallationDetail, decoder smithyxml.NodeDecoder) error {
- var sv []types.RouteServerRouteInstallationDetail
- if *v == nil {
- sv = make([]types.RouteServerRouteInstallationDetail, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.RouteServerRouteInstallationDetail
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentRouteServerRouteInstallationDetail(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentRouteServerRouteList(v *[]types.RouteServerRoute, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.RouteServerRoute
- if *v == nil {
- sv = make([]types.RouteServerRoute, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.RouteServerRoute
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentRouteServerRoute(&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 awsEc2query_deserializeDocumentRouteServerRouteListUnwrapped(v *[]types.RouteServerRoute, decoder smithyxml.NodeDecoder) error {
- var sv []types.RouteServerRoute
- if *v == nil {
- sv = make([]types.RouteServerRoute, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.RouteServerRoute
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentRouteServerRoute(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentRouteServersList(v *[]types.RouteServer, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.RouteServer
- if *v == nil {
- sv = make([]types.RouteServer, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.RouteServer
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentRouteServer(&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 awsEc2query_deserializeDocumentRouteServersListUnwrapped(v *[]types.RouteServer, decoder smithyxml.NodeDecoder) error {
- var sv []types.RouteServer
- if *v == nil {
- sv = make([]types.RouteServer, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.RouteServer
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentRouteServer(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentRouteTable(v **types.RouteTable, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.RouteTable
- if *v == nil {
- sv = &types.RouteTable{}
- } 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("associationSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentRouteTableAssociationList(&sv.Associations, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("propagatingVgwSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPropagatingVgwList(&sv.PropagatingVgws, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("routeSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentRouteList(&sv.Routes, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("routeTableId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RouteTableId = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- 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 awsEc2query_deserializeDocumentRouteTableAssociation(v **types.RouteTableAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.RouteTableAssociation
- if *v == nil {
- sv = &types.RouteTableAssociation{}
- } 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("associationState", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentRouteTableAssociationState(&sv.AssociationState, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("gatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("main", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Main = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("routeTableAssociationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RouteTableAssociationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("routeTableId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RouteTableId = ptr.String(xtv)
- }
-
- 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)
- }
-
- 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 awsEc2query_deserializeDocumentRouteTableAssociationList(v *[]types.RouteTableAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.RouteTableAssociation
- if *v == nil {
- sv = make([]types.RouteTableAssociation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.RouteTableAssociation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentRouteTableAssociation(&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 awsEc2query_deserializeDocumentRouteTableAssociationListUnwrapped(v *[]types.RouteTableAssociation, decoder smithyxml.NodeDecoder) error {
- var sv []types.RouteTableAssociation
- if *v == nil {
- sv = make([]types.RouteTableAssociation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.RouteTableAssociation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentRouteTableAssociation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentRouteTableAssociationState(v **types.RouteTableAssociationState, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.RouteTableAssociationState
- if *v == nil {
- sv = &types.RouteTableAssociationState{}
- } 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("state", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.State = types.RouteTableAssociationStateCode(xtv)
- }
-
- case strings.EqualFold("statusMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StatusMessage = 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 awsEc2query_deserializeDocumentRouteTableList(v *[]types.RouteTable, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.RouteTable
- if *v == nil {
- sv = make([]types.RouteTable, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.RouteTable
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentRouteTable(&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 awsEc2query_deserializeDocumentRouteTableListUnwrapped(v *[]types.RouteTable, decoder smithyxml.NodeDecoder) error {
- var sv []types.RouteTable
- if *v == nil {
- sv = make([]types.RouteTable, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.RouteTable
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentRouteTable(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentRuleGroupRuleOptionsPair(v **types.RuleGroupRuleOptionsPair, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.RuleGroupRuleOptionsPair
- if *v == nil {
- sv = &types.RuleGroupRuleOptionsPair{}
- } 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("ruleGroupArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RuleGroupArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("ruleOptionSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentRuleOptionList(&sv.RuleOptions, 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 awsEc2query_deserializeDocumentRuleGroupRuleOptionsPairList(v *[]types.RuleGroupRuleOptionsPair, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.RuleGroupRuleOptionsPair
- if *v == nil {
- sv = make([]types.RuleGroupRuleOptionsPair, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.RuleGroupRuleOptionsPair
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentRuleGroupRuleOptionsPair(&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 awsEc2query_deserializeDocumentRuleGroupRuleOptionsPairListUnwrapped(v *[]types.RuleGroupRuleOptionsPair, decoder smithyxml.NodeDecoder) error {
- var sv []types.RuleGroupRuleOptionsPair
- if *v == nil {
- sv = make([]types.RuleGroupRuleOptionsPair, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.RuleGroupRuleOptionsPair
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentRuleGroupRuleOptionsPair(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentRuleGroupTypePair(v **types.RuleGroupTypePair, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.RuleGroupTypePair
- if *v == nil {
- sv = &types.RuleGroupTypePair{}
- } 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("ruleGroupArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RuleGroupArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("ruleGroupType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RuleGroupType = 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 awsEc2query_deserializeDocumentRuleGroupTypePairList(v *[]types.RuleGroupTypePair, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.RuleGroupTypePair
- if *v == nil {
- sv = make([]types.RuleGroupTypePair, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.RuleGroupTypePair
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentRuleGroupTypePair(&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 awsEc2query_deserializeDocumentRuleGroupTypePairListUnwrapped(v *[]types.RuleGroupTypePair, decoder smithyxml.NodeDecoder) error {
- var sv []types.RuleGroupTypePair
- if *v == nil {
- sv = make([]types.RuleGroupTypePair, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.RuleGroupTypePair
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentRuleGroupTypePair(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentRuleOption(v **types.RuleOption, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.RuleOption
- if *v == nil {
- sv = &types.RuleOption{}
- } 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("keyword", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Keyword = ptr.String(xtv)
- }
-
- case strings.EqualFold("settingSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentStringList(&sv.Settings, 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 awsEc2query_deserializeDocumentRuleOptionList(v *[]types.RuleOption, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.RuleOption
- if *v == nil {
- sv = make([]types.RuleOption, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.RuleOption
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentRuleOption(&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 awsEc2query_deserializeDocumentRuleOptionListUnwrapped(v *[]types.RuleOption, decoder smithyxml.NodeDecoder) error {
- var sv []types.RuleOption
- if *v == nil {
- sv = make([]types.RuleOption, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.RuleOption
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentRuleOption(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentRunInstancesMonitoringEnabled(v **types.RunInstancesMonitoringEnabled, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.RunInstancesMonitoringEnabled
- if *v == nil {
- sv = &types.RunInstancesMonitoringEnabled{}
- } 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("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 Boolean 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 awsEc2query_deserializeDocumentS3Storage(v **types.S3Storage, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.S3Storage
- if *v == nil {
- sv = &types.S3Storage{}
- } 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("AWSAccessKeyId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AWSAccessKeyId = ptr.String(xtv)
- }
-
- case strings.EqualFold("bucket", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Bucket = ptr.String(xtv)
- }
-
- case strings.EqualFold("prefix", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Prefix = ptr.String(xtv)
- }
-
- case strings.EqualFold("uploadPolicy", t.Name.Local):
- var data string
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- data = xtv
- }
- sv.UploadPolicy, err = base64.StdEncoding.DecodeString(data)
- if err != nil {
- return err
- }
-
- case strings.EqualFold("uploadPolicySignature", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UploadPolicySignature = 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 awsEc2query_deserializeDocumentScheduledInstance(v **types.ScheduledInstance, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ScheduledInstance
- if *v == nil {
- sv = &types.ScheduledInstance{}
- } 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("createDate", 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.CreateDate = ptr.Time(t)
- }
-
- case strings.EqualFold("hourlyPrice", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HourlyPrice = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceCount", 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.InstanceCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkPlatform", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkPlatform = ptr.String(xtv)
- }
-
- case strings.EqualFold("nextSlotStartTime", 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.NextSlotStartTime = ptr.Time(t)
- }
-
- case strings.EqualFold("platform", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Platform = ptr.String(xtv)
- }
-
- case strings.EqualFold("previousSlotEndTime", 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.PreviousSlotEndTime = ptr.Time(t)
- }
-
- case strings.EqualFold("recurrence", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentScheduledInstanceRecurrence(&sv.Recurrence, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("scheduledInstanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ScheduledInstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("slotDurationInHours", 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.SlotDurationInHours = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("termEndDate", 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.TermEndDate = ptr.Time(t)
- }
-
- case strings.EqualFold("termStartDate", 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.TermStartDate = ptr.Time(t)
- }
-
- case strings.EqualFold("totalScheduledInstanceHours", 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.TotalScheduledInstanceHours = 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 awsEc2query_deserializeDocumentScheduledInstanceAvailability(v **types.ScheduledInstanceAvailability, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ScheduledInstanceAvailability
- if *v == nil {
- sv = &types.ScheduledInstanceAvailability{}
- } 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("availableInstanceCount", 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.AvailableInstanceCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("firstSlotStartTime", 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.FirstSlotStartTime = ptr.Time(t)
- }
-
- case strings.EqualFold("hourlyPrice", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.HourlyPrice = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = ptr.String(xtv)
- }
-
- case strings.EqualFold("maxTermDurationInDays", 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.MaxTermDurationInDays = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("minTermDurationInDays", 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.MinTermDurationInDays = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("networkPlatform", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkPlatform = ptr.String(xtv)
- }
-
- case strings.EqualFold("platform", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Platform = ptr.String(xtv)
- }
-
- case strings.EqualFold("purchaseToken", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PurchaseToken = ptr.String(xtv)
- }
-
- case strings.EqualFold("recurrence", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentScheduledInstanceRecurrence(&sv.Recurrence, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("slotDurationInHours", 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.SlotDurationInHours = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("totalScheduledInstanceHours", 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.TotalScheduledInstanceHours = 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 awsEc2query_deserializeDocumentScheduledInstanceAvailabilitySet(v *[]types.ScheduledInstanceAvailability, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ScheduledInstanceAvailability
- if *v == nil {
- sv = make([]types.ScheduledInstanceAvailability, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ScheduledInstanceAvailability
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentScheduledInstanceAvailability(&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 awsEc2query_deserializeDocumentScheduledInstanceAvailabilitySetUnwrapped(v *[]types.ScheduledInstanceAvailability, decoder smithyxml.NodeDecoder) error {
- var sv []types.ScheduledInstanceAvailability
- if *v == nil {
- sv = make([]types.ScheduledInstanceAvailability, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ScheduledInstanceAvailability
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentScheduledInstanceAvailability(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentScheduledInstanceRecurrence(v **types.ScheduledInstanceRecurrence, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ScheduledInstanceRecurrence
- if *v == nil {
- sv = &types.ScheduledInstanceRecurrence{}
- } 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("frequency", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Frequency = ptr.String(xtv)
- }
-
- case strings.EqualFold("interval", 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.Interval = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("occurrenceDaySet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentOccurrenceDaySet(&sv.OccurrenceDaySet, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("occurrenceRelativeToEnd", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.OccurrenceRelativeToEnd = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("occurrenceUnit", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OccurrenceUnit = 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 awsEc2query_deserializeDocumentScheduledInstanceSet(v *[]types.ScheduledInstance, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ScheduledInstance
- if *v == nil {
- sv = make([]types.ScheduledInstance, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ScheduledInstance
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentScheduledInstance(&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 awsEc2query_deserializeDocumentScheduledInstanceSetUnwrapped(v *[]types.ScheduledInstance, decoder smithyxml.NodeDecoder) error {
- var sv []types.ScheduledInstance
- if *v == nil {
- sv = make([]types.ScheduledInstance, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ScheduledInstance
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentScheduledInstance(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSecurityGroup(v **types.SecurityGroup, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SecurityGroup
- if *v == nil {
- sv = &types.SecurityGroup{}
- } 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("groupDescription", 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("groupId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupId = ptr.String(xtv)
- }
-
- case strings.EqualFold("groupName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupName = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipPermissions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpPermissionList(&sv.IpPermissions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ipPermissionsEgress", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpPermissionList(&sv.IpPermissionsEgress, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("securityGroupArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SecurityGroupArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- 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 awsEc2query_deserializeDocumentSecurityGroupForVpc(v **types.SecurityGroupForVpc, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SecurityGroupForVpc
- if *v == nil {
- sv = &types.SecurityGroupForVpc{}
- } 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("groupId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupId = ptr.String(xtv)
- }
-
- case strings.EqualFold("groupName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupName = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("primaryVpcId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrimaryVpcId = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentSecurityGroupForVpcList(v *[]types.SecurityGroupForVpc, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.SecurityGroupForVpc
- if *v == nil {
- sv = make([]types.SecurityGroupForVpc, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.SecurityGroupForVpc
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSecurityGroupForVpc(&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 awsEc2query_deserializeDocumentSecurityGroupForVpcListUnwrapped(v *[]types.SecurityGroupForVpc, decoder smithyxml.NodeDecoder) error {
- var sv []types.SecurityGroupForVpc
- if *v == nil {
- sv = make([]types.SecurityGroupForVpc, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.SecurityGroupForVpc
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSecurityGroupForVpc(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSecurityGroupIdentifier(v **types.SecurityGroupIdentifier, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SecurityGroupIdentifier
- if *v == nil {
- sv = &types.SecurityGroupIdentifier{}
- } 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("groupId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupId = ptr.String(xtv)
- }
-
- case strings.EqualFold("groupName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupName = 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 awsEc2query_deserializeDocumentSecurityGroupIdList(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("item", 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 awsEc2query_deserializeDocumentSecurityGroupIdListUnwrapped(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 awsEc2query_deserializeDocumentSecurityGroupIdSet(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("item", 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 awsEc2query_deserializeDocumentSecurityGroupIdSetUnwrapped(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 awsEc2query_deserializeDocumentSecurityGroupIdStringList(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("SecurityGroupId", 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 awsEc2query_deserializeDocumentSecurityGroupIdStringListUnwrapped(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 awsEc2query_deserializeDocumentSecurityGroupList(v *[]types.SecurityGroup, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.SecurityGroup
- if *v == nil {
- sv = make([]types.SecurityGroup, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.SecurityGroup
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSecurityGroup(&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 awsEc2query_deserializeDocumentSecurityGroupListUnwrapped(v *[]types.SecurityGroup, decoder smithyxml.NodeDecoder) error {
- var sv []types.SecurityGroup
- if *v == nil {
- sv = make([]types.SecurityGroup, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.SecurityGroup
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSecurityGroup(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSecurityGroupReference(v **types.SecurityGroupReference, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SecurityGroupReference
- if *v == nil {
- sv = &types.SecurityGroupReference{}
- } 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("groupId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupId = ptr.String(xtv)
- }
-
- case strings.EqualFold("referencingVpcId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ReferencingVpcId = ptr.String(xtv)
- }
-
- case strings.EqualFold("transitGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("vpcPeeringConnectionId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VpcPeeringConnectionId = 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 awsEc2query_deserializeDocumentSecurityGroupReferences(v *[]types.SecurityGroupReference, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.SecurityGroupReference
- if *v == nil {
- sv = make([]types.SecurityGroupReference, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.SecurityGroupReference
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSecurityGroupReference(&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 awsEc2query_deserializeDocumentSecurityGroupReferencesUnwrapped(v *[]types.SecurityGroupReference, decoder smithyxml.NodeDecoder) error {
- var sv []types.SecurityGroupReference
- if *v == nil {
- sv = make([]types.SecurityGroupReference, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.SecurityGroupReference
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSecurityGroupReference(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSecurityGroupRule(v **types.SecurityGroupRule, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SecurityGroupRule
- if *v == nil {
- sv = &types.SecurityGroupRule{}
- } 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("cidrIpv4", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CidrIpv4 = ptr.String(xtv)
- }
-
- case strings.EqualFold("cidrIpv6", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CidrIpv6 = ptr.String(xtv)
- }
-
- 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("fromPort", 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.FromPort = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("groupId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupId = ptr.String(xtv)
- }
-
- case strings.EqualFold("groupOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupOwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipProtocol", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpProtocol = ptr.String(xtv)
- }
-
- case strings.EqualFold("isEgress", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.IsEgress = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("prefixListId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrefixListId = ptr.String(xtv)
- }
-
- case strings.EqualFold("referencedGroupInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentReferencedSecurityGroup(&sv.ReferencedGroupInfo, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("securityGroupRuleArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SecurityGroupRuleArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("securityGroupRuleId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SecurityGroupRuleId = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("toPort", 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.ToPort = 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 awsEc2query_deserializeDocumentSecurityGroupRuleList(v *[]types.SecurityGroupRule, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.SecurityGroupRule
- if *v == nil {
- sv = make([]types.SecurityGroupRule, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.SecurityGroupRule
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSecurityGroupRule(&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 awsEc2query_deserializeDocumentSecurityGroupRuleListUnwrapped(v *[]types.SecurityGroupRule, decoder smithyxml.NodeDecoder) error {
- var sv []types.SecurityGroupRule
- if *v == nil {
- sv = make([]types.SecurityGroupRule, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.SecurityGroupRule
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSecurityGroupRule(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSecurityGroupVpcAssociation(v **types.SecurityGroupVpcAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SecurityGroupVpcAssociation
- if *v == nil {
- sv = &types.SecurityGroupVpcAssociation{}
- } 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("groupId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupId = ptr.String(xtv)
- }
-
- case strings.EqualFold("groupOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupOwnerId = ptr.String(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.SecurityGroupVpcAssociationState(xtv)
- }
-
- case strings.EqualFold("stateReason", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StateReason = ptr.String(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)
- }
-
- case strings.EqualFold("vpcOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VpcOwnerId = 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 awsEc2query_deserializeDocumentSecurityGroupVpcAssociationList(v *[]types.SecurityGroupVpcAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.SecurityGroupVpcAssociation
- if *v == nil {
- sv = make([]types.SecurityGroupVpcAssociation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.SecurityGroupVpcAssociation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSecurityGroupVpcAssociation(&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 awsEc2query_deserializeDocumentSecurityGroupVpcAssociationListUnwrapped(v *[]types.SecurityGroupVpcAssociation, decoder smithyxml.NodeDecoder) error {
- var sv []types.SecurityGroupVpcAssociation
- if *v == nil {
- sv = make([]types.SecurityGroupVpcAssociation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.SecurityGroupVpcAssociation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSecurityGroupVpcAssociation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentServiceConfiguration(v **types.ServiceConfiguration, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ServiceConfiguration
- if *v == nil {
- sv = &types.ServiceConfiguration{}
- } 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("acceptanceRequired", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.AcceptanceRequired = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("availabilityZoneSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.AvailabilityZones, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("baseEndpointDnsNameSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.BaseEndpointDnsNames, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("gatewayLoadBalancerArnSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.GatewayLoadBalancerArns, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("managesVpcEndpoints", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.ManagesVpcEndpoints = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("networkLoadBalancerArnSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.NetworkLoadBalancerArns, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("payerResponsibility", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PayerResponsibility = types.PayerResponsibility(xtv)
- }
-
- case strings.EqualFold("privateDnsName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrivateDnsName = ptr.String(xtv)
- }
-
- case strings.EqualFold("privateDnsNameConfiguration", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPrivateDnsNameConfiguration(&sv.PrivateDnsNameConfiguration, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("remoteAccessEnabled", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.RemoteAccessEnabled = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("serviceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServiceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("serviceName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServiceName = ptr.String(xtv)
- }
-
- case strings.EqualFold("serviceState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServiceState = types.ServiceState(xtv)
- }
-
- case strings.EqualFold("serviceType", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentServiceTypeDetailSet(&sv.ServiceType, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("supportedIpAddressTypeSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSupportedIpAddressTypes(&sv.SupportedIpAddressTypes, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("supportedRegionSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSupportedRegionSet(&sv.SupportedRegions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentServiceConfigurationSet(v *[]types.ServiceConfiguration, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ServiceConfiguration
- if *v == nil {
- sv = make([]types.ServiceConfiguration, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ServiceConfiguration
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentServiceConfiguration(&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 awsEc2query_deserializeDocumentServiceConfigurationSetUnwrapped(v *[]types.ServiceConfiguration, decoder smithyxml.NodeDecoder) error {
- var sv []types.ServiceConfiguration
- if *v == nil {
- sv = make([]types.ServiceConfiguration, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ServiceConfiguration
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentServiceConfiguration(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentServiceDetail(v **types.ServiceDetail, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ServiceDetail
- if *v == nil {
- sv = &types.ServiceDetail{}
- } 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("acceptanceRequired", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.AcceptanceRequired = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("availabilityZoneSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.AvailabilityZones, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("baseEndpointDnsNameSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.BaseEndpointDnsNames, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("managesVpcEndpoints", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.ManagesVpcEndpoints = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("owner", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Owner = ptr.String(xtv)
- }
-
- case strings.EqualFold("payerResponsibility", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PayerResponsibility = types.PayerResponsibility(xtv)
- }
-
- case strings.EqualFold("privateDnsName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrivateDnsName = ptr.String(xtv)
- }
-
- case strings.EqualFold("privateDnsNameSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPrivateDnsDetailsSet(&sv.PrivateDnsNames, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("privateDnsNameVerificationState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrivateDnsNameVerificationState = types.DnsNameState(xtv)
- }
-
- case strings.EqualFold("serviceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServiceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("serviceName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServiceName = ptr.String(xtv)
- }
-
- case strings.EqualFold("serviceRegion", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServiceRegion = ptr.String(xtv)
- }
-
- case strings.EqualFold("serviceType", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentServiceTypeDetailSet(&sv.ServiceType, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("supportedIpAddressTypeSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSupportedIpAddressTypes(&sv.SupportedIpAddressTypes, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("vpcEndpointPolicySupported", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.VpcEndpointPolicySupported = 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 awsEc2query_deserializeDocumentServiceDetailSet(v *[]types.ServiceDetail, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ServiceDetail
- if *v == nil {
- sv = make([]types.ServiceDetail, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ServiceDetail
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentServiceDetail(&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 awsEc2query_deserializeDocumentServiceDetailSetUnwrapped(v *[]types.ServiceDetail, decoder smithyxml.NodeDecoder) error {
- var sv []types.ServiceDetail
- if *v == nil {
- sv = make([]types.ServiceDetail, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ServiceDetail
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentServiceDetail(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentServiceLinkVirtualInterface(v **types.ServiceLinkVirtualInterface, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ServiceLinkVirtualInterface
- if *v == nil {
- sv = &types.ServiceLinkVirtualInterface{}
- } 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("configurationState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ConfigurationState = types.ServiceLinkVirtualInterfaceConfigurationState(xtv)
- }
-
- case strings.EqualFold("localAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("outpostArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OutpostArn = ptr.String(xtv)
- }
-
- 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("outpostLagId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OutpostLagId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("peerAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PeerAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("peerBgpAsn", 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.PeerBgpAsn = ptr.Int64(i64)
- }
-
- case strings.EqualFold("serviceLinkVirtualInterfaceArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServiceLinkVirtualInterfaceArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("serviceLinkVirtualInterfaceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServiceLinkVirtualInterfaceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("vlan", 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.Vlan = 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 awsEc2query_deserializeDocumentServiceLinkVirtualInterfaceIdSet(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("item", 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 awsEc2query_deserializeDocumentServiceLinkVirtualInterfaceIdSetUnwrapped(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 awsEc2query_deserializeDocumentServiceLinkVirtualInterfaceSet(v *[]types.ServiceLinkVirtualInterface, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ServiceLinkVirtualInterface
- if *v == nil {
- sv = make([]types.ServiceLinkVirtualInterface, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ServiceLinkVirtualInterface
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentServiceLinkVirtualInterface(&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 awsEc2query_deserializeDocumentServiceLinkVirtualInterfaceSetUnwrapped(v *[]types.ServiceLinkVirtualInterface, decoder smithyxml.NodeDecoder) error {
- var sv []types.ServiceLinkVirtualInterface
- if *v == nil {
- sv = make([]types.ServiceLinkVirtualInterface, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ServiceLinkVirtualInterface
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentServiceLinkVirtualInterface(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentServiceTypeDetail(v **types.ServiceTypeDetail, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ServiceTypeDetail
- if *v == nil {
- sv = &types.ServiceTypeDetail{}
- } 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("serviceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServiceType = types.ServiceType(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 awsEc2query_deserializeDocumentServiceTypeDetailSet(v *[]types.ServiceTypeDetail, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ServiceTypeDetail
- if *v == nil {
- sv = make([]types.ServiceTypeDetail, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ServiceTypeDetail
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentServiceTypeDetail(&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 awsEc2query_deserializeDocumentServiceTypeDetailSetUnwrapped(v *[]types.ServiceTypeDetail, decoder smithyxml.NodeDecoder) error {
- var sv []types.ServiceTypeDetail
- if *v == nil {
- sv = make([]types.ServiceTypeDetail, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ServiceTypeDetail
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentServiceTypeDetail(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Snapshot
- if *v == nil {
- sv = &types.Snapshot{}
- } 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("completionDurationMinutes", 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.CompletionDurationMinutes = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("completionTime", 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.CompletionTime = ptr.Time(t)
- }
-
- case strings.EqualFold("dataEncryptionKeyId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DataEncryptionKeyId = ptr.String(xtv)
- }
-
- 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("encrypted", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Encrypted = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("fullSnapshotSizeInBytes", 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.FullSnapshotSizeInBytes = ptr.Int64(i64)
- }
-
- case strings.EqualFold("kmsKeyId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.KmsKeyId = ptr.String(xtv)
- }
-
- case strings.EqualFold("outpostArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OutpostArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerAlias", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerAlias = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("progress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Progress = ptr.String(xtv)
- }
-
- case strings.EqualFold("restoreExpiryTime", 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.RestoreExpiryTime = ptr.Time(t)
- }
-
- case strings.EqualFold("snapshotId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SnapshotId = ptr.String(xtv)
- }
-
- case strings.EqualFold("sseType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SseType = types.SSEType(xtv)
- }
-
- case strings.EqualFold("startTime", 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.StartTime = ptr.Time(t)
- }
-
- case strings.EqualFold("status", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.State = types.SnapshotState(xtv)
- }
-
- case strings.EqualFold("statusMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StateMessage = ptr.String(xtv)
- }
-
- case strings.EqualFold("storageTier", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StorageTier = types.StorageTier(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transferType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransferType = types.TransferType(xtv)
- }
-
- case strings.EqualFold("volumeId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VolumeId = ptr.String(xtv)
- }
-
- case strings.EqualFold("volumeSize", 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.VolumeSize = 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 awsEc2query_deserializeDocumentSnapshotDetail(v **types.SnapshotDetail, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SnapshotDetail
- if *v == nil {
- sv = &types.SnapshotDetail{}
- } 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("deviceName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DeviceName = ptr.String(xtv)
- }
-
- case strings.EqualFold("diskImageSize", 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.DiskImageSize = ptr.Float64(f64)
- }
-
- 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 = ptr.String(xtv)
- }
-
- case strings.EqualFold("progress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Progress = ptr.String(xtv)
- }
-
- case strings.EqualFold("snapshotId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SnapshotId = ptr.String(xtv)
- }
-
- 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 = ptr.String(xtv)
- }
-
- case strings.EqualFold("statusMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StatusMessage = ptr.String(xtv)
- }
-
- case strings.EqualFold("url", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Url = ptr.String(xtv)
- }
-
- case strings.EqualFold("userBucket", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentUserBucketDetails(&sv.UserBucket, 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 awsEc2query_deserializeDocumentSnapshotDetailList(v *[]types.SnapshotDetail, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.SnapshotDetail
- if *v == nil {
- sv = make([]types.SnapshotDetail, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.SnapshotDetail
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSnapshotDetail(&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 awsEc2query_deserializeDocumentSnapshotDetailListUnwrapped(v *[]types.SnapshotDetail, decoder smithyxml.NodeDecoder) error {
- var sv []types.SnapshotDetail
- if *v == nil {
- sv = make([]types.SnapshotDetail, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.SnapshotDetail
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSnapshotDetail(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSnapshotInfo(v **types.SnapshotInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SnapshotInfo
- if *v == nil {
- sv = &types.SnapshotInfo{}
- } 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("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("encrypted", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Encrypted = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("outpostArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OutpostArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("progress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Progress = ptr.String(xtv)
- }
-
- case strings.EqualFold("snapshotId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SnapshotId = ptr.String(xtv)
- }
-
- case strings.EqualFold("sseType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SseType = types.SSEType(xtv)
- }
-
- case strings.EqualFold("startTime", 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.StartTime = ptr.Time(t)
- }
-
- 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.SnapshotState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("volumeId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VolumeId = ptr.String(xtv)
- }
-
- case strings.EqualFold("volumeSize", 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.VolumeSize = 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 awsEc2query_deserializeDocumentSnapshotList(v *[]types.Snapshot, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Snapshot
- if *v == nil {
- sv = make([]types.Snapshot, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Snapshot
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSnapshot(&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 awsEc2query_deserializeDocumentSnapshotListUnwrapped(v *[]types.Snapshot, decoder smithyxml.NodeDecoder) error {
- var sv []types.Snapshot
- if *v == nil {
- sv = make([]types.Snapshot, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Snapshot
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSnapshot(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSnapshotRecycleBinInfo(v **types.SnapshotRecycleBinInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SnapshotRecycleBinInfo
- if *v == nil {
- sv = &types.SnapshotRecycleBinInfo{}
- } 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("recycleBinEnterTime", 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.RecycleBinEnterTime = ptr.Time(t)
- }
-
- case strings.EqualFold("recycleBinExitTime", 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.RecycleBinExitTime = ptr.Time(t)
- }
-
- case strings.EqualFold("snapshotId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SnapshotId = ptr.String(xtv)
- }
-
- case strings.EqualFold("volumeId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VolumeId = 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 awsEc2query_deserializeDocumentSnapshotRecycleBinInfoList(v *[]types.SnapshotRecycleBinInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.SnapshotRecycleBinInfo
- if *v == nil {
- sv = make([]types.SnapshotRecycleBinInfo, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.SnapshotRecycleBinInfo
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSnapshotRecycleBinInfo(&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 awsEc2query_deserializeDocumentSnapshotRecycleBinInfoListUnwrapped(v *[]types.SnapshotRecycleBinInfo, decoder smithyxml.NodeDecoder) error {
- var sv []types.SnapshotRecycleBinInfo
- if *v == nil {
- sv = make([]types.SnapshotRecycleBinInfo, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.SnapshotRecycleBinInfo
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSnapshotRecycleBinInfo(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSnapshotSet(v *[]types.SnapshotInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.SnapshotInfo
- if *v == nil {
- sv = make([]types.SnapshotInfo, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.SnapshotInfo
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSnapshotInfo(&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 awsEc2query_deserializeDocumentSnapshotSetUnwrapped(v *[]types.SnapshotInfo, decoder smithyxml.NodeDecoder) error {
- var sv []types.SnapshotInfo
- if *v == nil {
- sv = make([]types.SnapshotInfo, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.SnapshotInfo
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSnapshotInfo(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSnapshotTaskDetail(v **types.SnapshotTaskDetail, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SnapshotTaskDetail
- if *v == nil {
- sv = &types.SnapshotTaskDetail{}
- } 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("diskImageSize", 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.DiskImageSize = ptr.Float64(f64)
- }
-
- case strings.EqualFold("encrypted", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Encrypted = ptr.Bool(xtv)
- }
-
- 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 = ptr.String(xtv)
- }
-
- case strings.EqualFold("kmsKeyId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.KmsKeyId = ptr.String(xtv)
- }
-
- case strings.EqualFold("progress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Progress = ptr.String(xtv)
- }
-
- case strings.EqualFold("snapshotId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SnapshotId = ptr.String(xtv)
- }
-
- 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 = ptr.String(xtv)
- }
-
- case strings.EqualFold("statusMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StatusMessage = ptr.String(xtv)
- }
-
- case strings.EqualFold("url", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Url = ptr.String(xtv)
- }
-
- case strings.EqualFold("userBucket", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentUserBucketDetails(&sv.UserBucket, 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 awsEc2query_deserializeDocumentSnapshotTierStatus(v **types.SnapshotTierStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SnapshotTierStatus
- if *v == nil {
- sv = &types.SnapshotTierStatus{}
- } 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("archivalCompleteTime", 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.ArchivalCompleteTime = ptr.Time(t)
- }
-
- case strings.EqualFold("lastTieringOperationStatus", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LastTieringOperationStatus = types.TieringOperationStatus(xtv)
- }
-
- case strings.EqualFold("lastTieringOperationStatusDetail", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LastTieringOperationStatusDetail = ptr.String(xtv)
- }
-
- case strings.EqualFold("lastTieringProgress", 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.LastTieringProgress = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("lastTieringStartTime", 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.LastTieringStartTime = ptr.Time(t)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("restoreExpiryTime", 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.RestoreExpiryTime = ptr.Time(t)
- }
-
- case strings.EqualFold("snapshotId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SnapshotId = ptr.String(xtv)
- }
-
- 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.SnapshotState(xtv)
- }
-
- case strings.EqualFold("storageTier", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StorageTier = types.StorageTier(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("volumeId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VolumeId = 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 awsEc2query_deserializeDocumentSnapshotTierStatusSet(v *[]types.SnapshotTierStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.SnapshotTierStatus
- if *v == nil {
- sv = make([]types.SnapshotTierStatus, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.SnapshotTierStatus
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSnapshotTierStatus(&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 awsEc2query_deserializeDocumentSnapshotTierStatusSetUnwrapped(v *[]types.SnapshotTierStatus, decoder smithyxml.NodeDecoder) error {
- var sv []types.SnapshotTierStatus
- if *v == nil {
- sv = make([]types.SnapshotTierStatus, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.SnapshotTierStatus
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSnapshotTierStatus(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSpotCapacityRebalance(v **types.SpotCapacityRebalance, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SpotCapacityRebalance
- if *v == nil {
- sv = &types.SpotCapacityRebalance{}
- } 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("replacementStrategy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ReplacementStrategy = types.ReplacementStrategy(xtv)
- }
-
- case strings.EqualFold("terminationDelay", 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.TerminationDelay = 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 awsEc2query_deserializeDocumentSpotDatafeedSubscription(v **types.SpotDatafeedSubscription, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SpotDatafeedSubscription
- if *v == nil {
- sv = &types.SpotDatafeedSubscription{}
- } 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("bucket", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Bucket = ptr.String(xtv)
- }
-
- case strings.EqualFold("fault", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSpotInstanceStateFault(&sv.Fault, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("prefix", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Prefix = ptr.String(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.DatafeedSubscriptionState(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 awsEc2query_deserializeDocumentSpotFleetLaunchSpecification(v **types.SpotFleetLaunchSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SpotFleetLaunchSpecification
- if *v == nil {
- sv = &types.SpotFleetLaunchSpecification{}
- } 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("addressingType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AddressingType = ptr.String(xtv)
- }
-
- case strings.EqualFold("blockDeviceMapping", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentBlockDeviceMappingList(&sv.BlockDeviceMappings, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ebsOptimized", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EbsOptimized = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("iamInstanceProfile", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIamInstanceProfileSpecification(&sv.IamInstanceProfile, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("imageId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ImageId = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceRequirements", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceRequirements(&sv.InstanceRequirements, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = types.InstanceType(xtv)
- }
-
- case strings.EqualFold("kernelId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.KernelId = ptr.String(xtv)
- }
-
- case strings.EqualFold("keyName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.KeyName = ptr.String(xtv)
- }
-
- case strings.EqualFold("monitoring", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSpotFleetMonitoring(&sv.Monitoring, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("networkInterfaceSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecificationList(&sv.NetworkInterfaces, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("placement", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSpotPlacement(&sv.Placement, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ramdiskId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RamdiskId = ptr.String(xtv)
- }
-
- case strings.EqualFold("groupSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentGroupIdentifierList(&sv.SecurityGroups, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("spotPrice", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SpotPrice = ptr.String(xtv)
- }
-
- 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("tagSpecificationSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSpotFleetTagSpecificationList(&sv.TagSpecifications, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("userData", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UserData = ptr.String(xtv)
- }
-
- case strings.EqualFold("weightedCapacity", 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.WeightedCapacity = ptr.Float64(f64)
- }
-
- 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 awsEc2query_deserializeDocumentSpotFleetMonitoring(v **types.SpotFleetMonitoring, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SpotFleetMonitoring
- if *v == nil {
- sv = &types.SpotFleetMonitoring{}
- } 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("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 Boolean 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 awsEc2query_deserializeDocumentSpotFleetRequestConfig(v **types.SpotFleetRequestConfig, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SpotFleetRequestConfig
- if *v == nil {
- sv = &types.SpotFleetRequestConfig{}
- } 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("activityStatus", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ActivityStatus = types.ActivityStatus(xtv)
- }
-
- case strings.EqualFold("createTime", 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.CreateTime = ptr.Time(t)
- }
-
- case strings.EqualFold("spotFleetRequestConfig", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSpotFleetRequestConfigData(&sv.SpotFleetRequestConfig, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("spotFleetRequestId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SpotFleetRequestId = ptr.String(xtv)
- }
-
- case strings.EqualFold("spotFleetRequestState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SpotFleetRequestState = types.BatchState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentSpotFleetRequestConfigData(v **types.SpotFleetRequestConfigData, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SpotFleetRequestConfigData
- if *v == nil {
- sv = &types.SpotFleetRequestConfigData{}
- } 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("allocationStrategy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AllocationStrategy = types.AllocationStrategy(xtv)
- }
-
- case strings.EqualFold("clientToken", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ClientToken = ptr.String(xtv)
- }
-
- case strings.EqualFold("context", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Context = ptr.String(xtv)
- }
-
- case strings.EqualFold("excessCapacityTerminationPolicy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ExcessCapacityTerminationPolicy = types.ExcessCapacityTerminationPolicy(xtv)
- }
-
- case strings.EqualFold("fulfilledCapacity", 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.FulfilledCapacity = ptr.Float64(f64)
- }
-
- case strings.EqualFold("iamFleetRole", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IamFleetRole = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceInterruptionBehavior", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceInterruptionBehavior = types.InstanceInterruptionBehavior(xtv)
- }
-
- case strings.EqualFold("instancePoolsToUseCount", 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.InstancePoolsToUseCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("launchSpecifications", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchSpecsList(&sv.LaunchSpecifications, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("launchTemplateConfigs", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchTemplateConfigList(&sv.LaunchTemplateConfigs, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("loadBalancersConfig", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLoadBalancersConfig(&sv.LoadBalancersConfig, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("onDemandAllocationStrategy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OnDemandAllocationStrategy = types.OnDemandAllocationStrategy(xtv)
- }
-
- case strings.EqualFold("onDemandFulfilledCapacity", 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.OnDemandFulfilledCapacity = ptr.Float64(f64)
- }
-
- case strings.EqualFold("onDemandMaxTotalPrice", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OnDemandMaxTotalPrice = ptr.String(xtv)
- }
-
- case strings.EqualFold("onDemandTargetCapacity", 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.OnDemandTargetCapacity = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("replaceUnhealthyInstances", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.ReplaceUnhealthyInstances = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("spotMaintenanceStrategies", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSpotMaintenanceStrategies(&sv.SpotMaintenanceStrategies, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("spotMaxTotalPrice", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SpotMaxTotalPrice = ptr.String(xtv)
- }
-
- case strings.EqualFold("spotPrice", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SpotPrice = ptr.String(xtv)
- }
-
- case strings.EqualFold("TagSpecification", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagSpecificationList(&sv.TagSpecifications, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("targetCapacity", 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.TargetCapacity = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("targetCapacityUnitType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TargetCapacityUnitType = types.TargetCapacityUnitType(xtv)
- }
-
- case strings.EqualFold("terminateInstancesWithExpiration", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.TerminateInstancesWithExpiration = ptr.Bool(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.FleetType(xtv)
- }
-
- case strings.EqualFold("validFrom", 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.ValidFrom = ptr.Time(t)
- }
-
- case strings.EqualFold("validUntil", 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.ValidUntil = ptr.Time(t)
- }
-
- 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 awsEc2query_deserializeDocumentSpotFleetRequestConfigSet(v *[]types.SpotFleetRequestConfig, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.SpotFleetRequestConfig
- if *v == nil {
- sv = make([]types.SpotFleetRequestConfig, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.SpotFleetRequestConfig
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSpotFleetRequestConfig(&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 awsEc2query_deserializeDocumentSpotFleetRequestConfigSetUnwrapped(v *[]types.SpotFleetRequestConfig, decoder smithyxml.NodeDecoder) error {
- var sv []types.SpotFleetRequestConfig
- if *v == nil {
- sv = make([]types.SpotFleetRequestConfig, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.SpotFleetRequestConfig
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSpotFleetRequestConfig(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSpotFleetTagSpecification(v **types.SpotFleetTagSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SpotFleetTagSpecification
- if *v == nil {
- sv = &types.SpotFleetTagSpecification{}
- } 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("resourceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceType = types.ResourceType(xtv)
- }
-
- case strings.EqualFold("tag", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentSpotFleetTagSpecificationList(v *[]types.SpotFleetTagSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.SpotFleetTagSpecification
- if *v == nil {
- sv = make([]types.SpotFleetTagSpecification, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.SpotFleetTagSpecification
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSpotFleetTagSpecification(&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 awsEc2query_deserializeDocumentSpotFleetTagSpecificationListUnwrapped(v *[]types.SpotFleetTagSpecification, decoder smithyxml.NodeDecoder) error {
- var sv []types.SpotFleetTagSpecification
- if *v == nil {
- sv = make([]types.SpotFleetTagSpecification, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.SpotFleetTagSpecification
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSpotFleetTagSpecification(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSpotInstanceRequest(v **types.SpotInstanceRequest, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SpotInstanceRequest
- if *v == nil {
- sv = &types.SpotInstanceRequest{}
- } 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("actualBlockHourlyPrice", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ActualBlockHourlyPrice = ptr.String(xtv)
- }
-
- case strings.EqualFold("availabilityZoneGroup", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AvailabilityZoneGroup = ptr.String(xtv)
- }
-
- case strings.EqualFold("blockDurationMinutes", 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.BlockDurationMinutes = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("createTime", 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.CreateTime = ptr.Time(t)
- }
-
- case strings.EqualFold("fault", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSpotInstanceStateFault(&sv.Fault, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceInterruptionBehavior", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceInterruptionBehavior = types.InstanceInterruptionBehavior(xtv)
- }
-
- case strings.EqualFold("launchedAvailabilityZone", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LaunchedAvailabilityZone = ptr.String(xtv)
- }
-
- case strings.EqualFold("launchGroup", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LaunchGroup = ptr.String(xtv)
- }
-
- case strings.EqualFold("launchSpecification", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLaunchSpecification(&sv.LaunchSpecification, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("productDescription", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ProductDescription = types.RIProductDescription(xtv)
- }
-
- case strings.EqualFold("spotInstanceRequestId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SpotInstanceRequestId = ptr.String(xtv)
- }
-
- case strings.EqualFold("spotPrice", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SpotPrice = ptr.String(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.SpotInstanceState(xtv)
- }
-
- case strings.EqualFold("status", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSpotInstanceStatus(&sv.Status, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, 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.SpotInstanceType(xtv)
- }
-
- case strings.EqualFold("validFrom", 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.ValidFrom = ptr.Time(t)
- }
-
- case strings.EqualFold("validUntil", 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.ValidUntil = ptr.Time(t)
- }
-
- 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 awsEc2query_deserializeDocumentSpotInstanceRequestList(v *[]types.SpotInstanceRequest, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.SpotInstanceRequest
- if *v == nil {
- sv = make([]types.SpotInstanceRequest, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.SpotInstanceRequest
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSpotInstanceRequest(&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 awsEc2query_deserializeDocumentSpotInstanceRequestListUnwrapped(v *[]types.SpotInstanceRequest, decoder smithyxml.NodeDecoder) error {
- var sv []types.SpotInstanceRequest
- if *v == nil {
- sv = make([]types.SpotInstanceRequest, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.SpotInstanceRequest
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSpotInstanceRequest(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSpotInstanceStateFault(v **types.SpotInstanceStateFault, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SpotInstanceStateFault
- if *v == nil {
- sv = &types.SpotInstanceStateFault{}
- } 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 = ptr.String(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentSpotInstanceStatus(v **types.SpotInstanceStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SpotInstanceStatus
- if *v == nil {
- sv = &types.SpotInstanceStatus{}
- } 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 = ptr.String(xtv)
- }
-
- 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)
- }
-
- case strings.EqualFold("updateTime", 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.UpdateTime = ptr.Time(t)
- }
-
- 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 awsEc2query_deserializeDocumentSpotMaintenanceStrategies(v **types.SpotMaintenanceStrategies, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SpotMaintenanceStrategies
- if *v == nil {
- sv = &types.SpotMaintenanceStrategies{}
- } 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("capacityRebalance", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSpotCapacityRebalance(&sv.CapacityRebalance, 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 awsEc2query_deserializeDocumentSpotOptions(v **types.SpotOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SpotOptions
- if *v == nil {
- sv = &types.SpotOptions{}
- } 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("allocationStrategy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AllocationStrategy = types.SpotAllocationStrategy(xtv)
- }
-
- case strings.EqualFold("instanceInterruptionBehavior", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceInterruptionBehavior = types.SpotInstanceInterruptionBehavior(xtv)
- }
-
- case strings.EqualFold("instancePoolsToUseCount", 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.InstancePoolsToUseCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("maintenanceStrategies", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentFleetSpotMaintenanceStrategies(&sv.MaintenanceStrategies, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("maxTotalPrice", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.MaxTotalPrice = ptr.String(xtv)
- }
-
- case strings.EqualFold("minTargetCapacity", 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.MinTargetCapacity = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("singleAvailabilityZone", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.SingleAvailabilityZone = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("singleInstanceType", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.SingleInstanceType = 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 awsEc2query_deserializeDocumentSpotPlacement(v **types.SpotPlacement, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SpotPlacement
- if *v == nil {
- sv = &types.SpotPlacement{}
- } 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("groupName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupName = ptr.String(xtv)
- }
-
- case strings.EqualFold("tenancy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Tenancy = types.Tenancy(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 awsEc2query_deserializeDocumentSpotPlacementScore(v **types.SpotPlacementScore, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SpotPlacementScore
- if *v == nil {
- sv = &types.SpotPlacementScore{}
- } 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("availabilityZoneId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AvailabilityZoneId = ptr.String(xtv)
- }
-
- case strings.EqualFold("region", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Region = ptr.String(xtv)
- }
-
- case strings.EqualFold("score", 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.Score = 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 awsEc2query_deserializeDocumentSpotPlacementScores(v *[]types.SpotPlacementScore, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.SpotPlacementScore
- if *v == nil {
- sv = make([]types.SpotPlacementScore, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.SpotPlacementScore
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSpotPlacementScore(&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 awsEc2query_deserializeDocumentSpotPlacementScoresUnwrapped(v *[]types.SpotPlacementScore, decoder smithyxml.NodeDecoder) error {
- var sv []types.SpotPlacementScore
- if *v == nil {
- sv = make([]types.SpotPlacementScore, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.SpotPlacementScore
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSpotPlacementScore(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSpotPrice(v **types.SpotPrice, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SpotPrice
- if *v == nil {
- sv = &types.SpotPrice{}
- } 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("instanceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceType = types.InstanceType(xtv)
- }
-
- case strings.EqualFold("productDescription", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ProductDescription = types.RIProductDescription(xtv)
- }
-
- case strings.EqualFold("spotPrice", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SpotPrice = ptr.String(xtv)
- }
-
- case strings.EqualFold("timestamp", 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.Timestamp = ptr.Time(t)
- }
-
- 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 awsEc2query_deserializeDocumentSpotPriceHistoryList(v *[]types.SpotPrice, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.SpotPrice
- if *v == nil {
- sv = make([]types.SpotPrice, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.SpotPrice
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSpotPrice(&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 awsEc2query_deserializeDocumentSpotPriceHistoryListUnwrapped(v *[]types.SpotPrice, decoder smithyxml.NodeDecoder) error {
- var sv []types.SpotPrice
- if *v == nil {
- sv = make([]types.SpotPrice, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.SpotPrice
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSpotPrice(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentStaleIpPermission(v **types.StaleIpPermission, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.StaleIpPermission
- if *v == nil {
- sv = &types.StaleIpPermission{}
- } 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("fromPort", 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.FromPort = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("ipProtocol", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpProtocol = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipRanges", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpRanges(&sv.IpRanges, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("prefixListIds", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPrefixListIdSet(&sv.PrefixListIds, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("toPort", 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.ToPort = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("groups", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentUserIdGroupPairSet(&sv.UserIdGroupPairs, 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 awsEc2query_deserializeDocumentStaleIpPermissionSet(v *[]types.StaleIpPermission, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.StaleIpPermission
- if *v == nil {
- sv = make([]types.StaleIpPermission, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.StaleIpPermission
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentStaleIpPermission(&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 awsEc2query_deserializeDocumentStaleIpPermissionSetUnwrapped(v *[]types.StaleIpPermission, decoder smithyxml.NodeDecoder) error {
- var sv []types.StaleIpPermission
- if *v == nil {
- sv = make([]types.StaleIpPermission, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.StaleIpPermission
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentStaleIpPermission(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentStaleSecurityGroup(v **types.StaleSecurityGroup, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.StaleSecurityGroup
- if *v == nil {
- sv = &types.StaleSecurityGroup{}
- } 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("groupId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupId = ptr.String(xtv)
- }
-
- case strings.EqualFold("groupName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupName = ptr.String(xtv)
- }
-
- case strings.EqualFold("staleIpPermissions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentStaleIpPermissionSet(&sv.StaleIpPermissions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("staleIpPermissionsEgress", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentStaleIpPermissionSet(&sv.StaleIpPermissionsEgress, nodeDecoder); err != nil {
- return err
- }
-
- 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 awsEc2query_deserializeDocumentStaleSecurityGroupSet(v *[]types.StaleSecurityGroup, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.StaleSecurityGroup
- if *v == nil {
- sv = make([]types.StaleSecurityGroup, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.StaleSecurityGroup
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentStaleSecurityGroup(&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 awsEc2query_deserializeDocumentStaleSecurityGroupSetUnwrapped(v *[]types.StaleSecurityGroup, decoder smithyxml.NodeDecoder) error {
- var sv []types.StaleSecurityGroup
- if *v == nil {
- sv = make([]types.StaleSecurityGroup, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.StaleSecurityGroup
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentStaleSecurityGroup(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentStateReason(v **types.StateReason, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.StateReason
- if *v == nil {
- sv = &types.StateReason{}
- } 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 = ptr.String(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentStorage(v **types.Storage, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Storage
- if *v == nil {
- sv = &types.Storage{}
- } 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("S3", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentS3Storage(&sv.S3, 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 awsEc2query_deserializeDocumentStoreImageTaskResult(v **types.StoreImageTaskResult, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.StoreImageTaskResult
- if *v == nil {
- sv = &types.StoreImageTaskResult{}
- } 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("amiId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AmiId = ptr.String(xtv)
- }
-
- case strings.EqualFold("bucket", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Bucket = ptr.String(xtv)
- }
-
- case strings.EqualFold("progressPercentage", 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.ProgressPercentage = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("s3objectKey", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.S3objectKey = ptr.String(xtv)
- }
-
- case strings.EqualFold("storeTaskFailureReason", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StoreTaskFailureReason = ptr.String(xtv)
- }
-
- case strings.EqualFold("storeTaskState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StoreTaskState = ptr.String(xtv)
- }
-
- case strings.EqualFold("taskStartTime", 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.TaskStartTime = ptr.Time(t)
- }
-
- 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 awsEc2query_deserializeDocumentStoreImageTaskResultSet(v *[]types.StoreImageTaskResult, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.StoreImageTaskResult
- if *v == nil {
- sv = make([]types.StoreImageTaskResult, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.StoreImageTaskResult
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentStoreImageTaskResult(&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 awsEc2query_deserializeDocumentStoreImageTaskResultSetUnwrapped(v *[]types.StoreImageTaskResult, decoder smithyxml.NodeDecoder) error {
- var sv []types.StoreImageTaskResult
- if *v == nil {
- sv = make([]types.StoreImageTaskResult, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.StoreImageTaskResult
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentStoreImageTaskResult(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentStringList(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("item", 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 awsEc2query_deserializeDocumentStringListUnwrapped(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 awsEc2query_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Subnet
- if *v == nil {
- sv = &types.Subnet{}
- } 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("assignIpv6AddressOnCreation", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.AssignIpv6AddressOnCreation = ptr.Bool(xtv)
- }
-
- 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("availabilityZoneId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AvailabilityZoneId = ptr.String(xtv)
- }
-
- case strings.EqualFold("availableIpAddressCount", 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.AvailableIpAddressCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("blockPublicAccessStates", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentBlockPublicAccessStates(&sv.BlockPublicAccessStates, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("cidrBlock", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CidrBlock = ptr.String(xtv)
- }
-
- 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("defaultForAz", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.DefaultForAz = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("enableDns64", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EnableDns64 = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("enableLniAtDeviceIndex", 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.EnableLniAtDeviceIndex = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("ipv6CidrBlockAssociationSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSubnetIpv6CidrBlockAssociationSet(&sv.Ipv6CidrBlockAssociationSet, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ipv6Native", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Ipv6Native = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("mapCustomerOwnedIpOnLaunch", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.MapCustomerOwnedIpOnLaunch = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("mapPublicIpOnLaunch", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.MapPublicIpOnLaunch = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("outpostArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OutpostArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("privateDnsNameOptionsOnLaunch", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPrivateDnsNameOptionsOnLaunch(&sv.PrivateDnsNameOptionsOnLaunch, nodeDecoder); err != nil {
- return err
- }
-
- 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.SubnetState(xtv)
- }
-
- case strings.EqualFold("subnetArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SubnetArn = ptr.String(xtv)
- }
-
- 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("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, 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 = ptr.String(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 awsEc2query_deserializeDocumentSubnetAssociation(v **types.SubnetAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SubnetAssociation
- if *v == nil {
- sv = &types.SubnetAssociation{}
- } 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("state", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.State = types.TransitGatewayMulitcastDomainAssociationState(xtv)
- }
-
- 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)
- }
-
- 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 awsEc2query_deserializeDocumentSubnetAssociationList(v *[]types.SubnetAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.SubnetAssociation
- if *v == nil {
- sv = make([]types.SubnetAssociation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.SubnetAssociation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSubnetAssociation(&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 awsEc2query_deserializeDocumentSubnetAssociationListUnwrapped(v *[]types.SubnetAssociation, decoder smithyxml.NodeDecoder) error {
- var sv []types.SubnetAssociation
- if *v == nil {
- sv = make([]types.SubnetAssociation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.SubnetAssociation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSubnetAssociation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSubnetCidrBlockState(v **types.SubnetCidrBlockState, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SubnetCidrBlockState
- if *v == nil {
- sv = &types.SubnetCidrBlockState{}
- } 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("state", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.State = types.SubnetCidrBlockStateCode(xtv)
- }
-
- case strings.EqualFold("statusMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StatusMessage = 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 awsEc2query_deserializeDocumentSubnetCidrReservation(v **types.SubnetCidrReservation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SubnetCidrReservation
- if *v == nil {
- sv = &types.SubnetCidrReservation{}
- } 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("cidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Cidr = ptr.String(xtv)
- }
-
- 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("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("reservationType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ReservationType = types.SubnetCidrReservationType(xtv)
- }
-
- case strings.EqualFold("subnetCidrReservationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SubnetCidrReservationId = ptr.String(xtv)
- }
-
- 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("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentSubnetCidrReservationList(v *[]types.SubnetCidrReservation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.SubnetCidrReservation
- if *v == nil {
- sv = make([]types.SubnetCidrReservation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.SubnetCidrReservation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSubnetCidrReservation(&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 awsEc2query_deserializeDocumentSubnetCidrReservationListUnwrapped(v *[]types.SubnetCidrReservation, decoder smithyxml.NodeDecoder) error {
- var sv []types.SubnetCidrReservation
- if *v == nil {
- sv = make([]types.SubnetCidrReservation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.SubnetCidrReservation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSubnetCidrReservation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSubnetIpPrefixes(v **types.SubnetIpPrefixes, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SubnetIpPrefixes
- if *v == nil {
- sv = &types.SubnetIpPrefixes{}
- } 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("ipPrefixSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.IpPrefixes, 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)
- }
-
- 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 awsEc2query_deserializeDocumentSubnetIpPrefixesList(v *[]types.SubnetIpPrefixes, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.SubnetIpPrefixes
- if *v == nil {
- sv = make([]types.SubnetIpPrefixes, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.SubnetIpPrefixes
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSubnetIpPrefixes(&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 awsEc2query_deserializeDocumentSubnetIpPrefixesListUnwrapped(v *[]types.SubnetIpPrefixes, decoder smithyxml.NodeDecoder) error {
- var sv []types.SubnetIpPrefixes
- if *v == nil {
- sv = make([]types.SubnetIpPrefixes, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.SubnetIpPrefixes
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSubnetIpPrefixes(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSubnetIpv6CidrBlockAssociation(v **types.SubnetIpv6CidrBlockAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SubnetIpv6CidrBlockAssociation
- if *v == nil {
- sv = &types.SubnetIpv6CidrBlockAssociation{}
- } 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("associationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AssociationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipSource", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpSource = types.IpSource(xtv)
- }
-
- case strings.EqualFold("ipv6AddressAttribute", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Ipv6AddressAttribute = types.Ipv6AddressAttribute(xtv)
- }
-
- case strings.EqualFold("ipv6CidrBlock", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Ipv6CidrBlock = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipv6CidrBlockState", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSubnetCidrBlockState(&sv.Ipv6CidrBlockState, 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 awsEc2query_deserializeDocumentSubnetIpv6CidrBlockAssociationSet(v *[]types.SubnetIpv6CidrBlockAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.SubnetIpv6CidrBlockAssociation
- if *v == nil {
- sv = make([]types.SubnetIpv6CidrBlockAssociation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.SubnetIpv6CidrBlockAssociation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSubnetIpv6CidrBlockAssociation(&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 awsEc2query_deserializeDocumentSubnetIpv6CidrBlockAssociationSetUnwrapped(v *[]types.SubnetIpv6CidrBlockAssociation, decoder smithyxml.NodeDecoder) error {
- var sv []types.SubnetIpv6CidrBlockAssociation
- if *v == nil {
- sv = make([]types.SubnetIpv6CidrBlockAssociation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.SubnetIpv6CidrBlockAssociation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSubnetIpv6CidrBlockAssociation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSubnetList(v *[]types.Subnet, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Subnet
- if *v == nil {
- sv = make([]types.Subnet, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Subnet
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSubnet(&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 awsEc2query_deserializeDocumentSubnetListUnwrapped(v *[]types.Subnet, decoder smithyxml.NodeDecoder) error {
- var sv []types.Subnet
- if *v == nil {
- sv = make([]types.Subnet, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Subnet
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSubnet(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSubscription(v **types.Subscription, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Subscription
- if *v == nil {
- sv = &types.Subscription{}
- } 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("destination", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Destination = ptr.String(xtv)
- }
-
- case strings.EqualFold("metric", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Metric = types.MetricType(xtv)
- }
-
- case strings.EqualFold("period", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Period = types.PeriodType(xtv)
- }
-
- case strings.EqualFold("source", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Source = ptr.String(xtv)
- }
-
- case strings.EqualFold("statistic", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Statistic = types.StatisticType(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 awsEc2query_deserializeDocumentSubscriptionList(v *[]types.Subscription, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Subscription
- if *v == nil {
- sv = make([]types.Subscription, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Subscription
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSubscription(&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 awsEc2query_deserializeDocumentSubscriptionListUnwrapped(v *[]types.Subscription, decoder smithyxml.NodeDecoder) error {
- var sv []types.Subscription
- if *v == nil {
- sv = make([]types.Subscription, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Subscription
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSubscription(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSuccessfulInstanceCreditSpecificationItem(v **types.SuccessfulInstanceCreditSpecificationItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SuccessfulInstanceCreditSpecificationItem
- if *v == nil {
- sv = &types.SuccessfulInstanceCreditSpecificationItem{}
- } 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("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = 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 awsEc2query_deserializeDocumentSuccessfulInstanceCreditSpecificationSet(v *[]types.SuccessfulInstanceCreditSpecificationItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.SuccessfulInstanceCreditSpecificationItem
- if *v == nil {
- sv = make([]types.SuccessfulInstanceCreditSpecificationItem, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.SuccessfulInstanceCreditSpecificationItem
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSuccessfulInstanceCreditSpecificationItem(&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 awsEc2query_deserializeDocumentSuccessfulInstanceCreditSpecificationSetUnwrapped(v *[]types.SuccessfulInstanceCreditSpecificationItem, decoder smithyxml.NodeDecoder) error {
- var sv []types.SuccessfulInstanceCreditSpecificationItem
- if *v == nil {
- sv = make([]types.SuccessfulInstanceCreditSpecificationItem, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.SuccessfulInstanceCreditSpecificationItem
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSuccessfulInstanceCreditSpecificationItem(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSuccessfulQueuedPurchaseDeletion(v **types.SuccessfulQueuedPurchaseDeletion, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SuccessfulQueuedPurchaseDeletion
- if *v == nil {
- sv = &types.SuccessfulQueuedPurchaseDeletion{}
- } 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("reservedInstancesId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ReservedInstancesId = 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 awsEc2query_deserializeDocumentSuccessfulQueuedPurchaseDeletionSet(v *[]types.SuccessfulQueuedPurchaseDeletion, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.SuccessfulQueuedPurchaseDeletion
- if *v == nil {
- sv = make([]types.SuccessfulQueuedPurchaseDeletion, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.SuccessfulQueuedPurchaseDeletion
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSuccessfulQueuedPurchaseDeletion(&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 awsEc2query_deserializeDocumentSuccessfulQueuedPurchaseDeletionSetUnwrapped(v *[]types.SuccessfulQueuedPurchaseDeletion, decoder smithyxml.NodeDecoder) error {
- var sv []types.SuccessfulQueuedPurchaseDeletion
- if *v == nil {
- sv = make([]types.SuccessfulQueuedPurchaseDeletion, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.SuccessfulQueuedPurchaseDeletion
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSuccessfulQueuedPurchaseDeletion(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSupportedAdditionalProcessorFeatureList(v *[]types.SupportedAdditionalProcessorFeature, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.SupportedAdditionalProcessorFeature
- if *v == nil {
- sv = make([]types.SupportedAdditionalProcessorFeature, 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("item", t.Name.Local):
- var col types.SupportedAdditionalProcessorFeature
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- col = types.SupportedAdditionalProcessorFeature(xtv)
- }
- sv = append(sv, col)
-
- default:
- err = decoder.Decoder.Skip()
- if err != nil {
- return err
- }
-
- }
- decoder = originalDecoder
- }
- *v = sv
- return nil
-}
-
-func awsEc2query_deserializeDocumentSupportedAdditionalProcessorFeatureListUnwrapped(v *[]types.SupportedAdditionalProcessorFeature, decoder smithyxml.NodeDecoder) error {
- var sv []types.SupportedAdditionalProcessorFeature
- if *v == nil {
- sv = make([]types.SupportedAdditionalProcessorFeature, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.SupportedAdditionalProcessorFeature
- t := decoder.StartEl
- _ = t
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- mv = types.SupportedAdditionalProcessorFeature(xtv)
- }
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSupportedIpAddressTypes(v *[]types.ServiceConnectivityType, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ServiceConnectivityType
- if *v == nil {
- sv = make([]types.ServiceConnectivityType, 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("item", t.Name.Local):
- var col types.ServiceConnectivityType
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- col = types.ServiceConnectivityType(xtv)
- }
- sv = append(sv, col)
-
- default:
- err = decoder.Decoder.Skip()
- if err != nil {
- return err
- }
-
- }
- decoder = originalDecoder
- }
- *v = sv
- return nil
-}
-
-func awsEc2query_deserializeDocumentSupportedIpAddressTypesUnwrapped(v *[]types.ServiceConnectivityType, decoder smithyxml.NodeDecoder) error {
- var sv []types.ServiceConnectivityType
- if *v == nil {
- sv = make([]types.ServiceConnectivityType, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ServiceConnectivityType
- t := decoder.StartEl
- _ = t
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- mv = types.ServiceConnectivityType(xtv)
- }
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentSupportedRegionDetail(v **types.SupportedRegionDetail, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.SupportedRegionDetail
- if *v == nil {
- sv = &types.SupportedRegionDetail{}
- } 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("region", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Region = ptr.String(xtv)
- }
-
- case strings.EqualFold("serviceState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServiceState = 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 awsEc2query_deserializeDocumentSupportedRegionSet(v *[]types.SupportedRegionDetail, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.SupportedRegionDetail
- if *v == nil {
- sv = make([]types.SupportedRegionDetail, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.SupportedRegionDetail
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentSupportedRegionDetail(&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 awsEc2query_deserializeDocumentSupportedRegionSetUnwrapped(v *[]types.SupportedRegionDetail, decoder smithyxml.NodeDecoder) error {
- var sv []types.SupportedRegionDetail
- if *v == nil {
- sv = make([]types.SupportedRegionDetail, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.SupportedRegionDetail
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentSupportedRegionDetail(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_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 awsEc2query_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("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("resourceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceType = types.ResourceType(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 awsEc2query_deserializeDocumentTagDescriptionList(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("item", t.Name.Local):
- var col types.TagDescription
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_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 awsEc2query_deserializeDocumentTagDescriptionListUnwrapped(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 := awsEc2query_deserializeDocumentTagDescription(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_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("item", t.Name.Local):
- var col types.Tag
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_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 awsEc2query_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 := awsEc2query_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTagSpecification(v **types.TagSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TagSpecification
- if *v == nil {
- sv = &types.TagSpecification{}
- } 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("resourceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceType = types.ResourceType(xtv)
- }
-
- case strings.EqualFold("Tag", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentTagSpecificationList(v *[]types.TagSpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TagSpecification
- if *v == nil {
- sv = make([]types.TagSpecification, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TagSpecification
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTagSpecification(&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 awsEc2query_deserializeDocumentTagSpecificationListUnwrapped(v *[]types.TagSpecification, decoder smithyxml.NodeDecoder) error {
- var sv []types.TagSpecification
- if *v == nil {
- sv = make([]types.TagSpecification, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TagSpecification
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTagSpecification(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTargetCapacitySpecification(v **types.TargetCapacitySpecification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TargetCapacitySpecification
- if *v == nil {
- sv = &types.TargetCapacitySpecification{}
- } 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("defaultTargetCapacityType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DefaultTargetCapacityType = types.DefaultTargetCapacityType(xtv)
- }
-
- case strings.EqualFold("onDemandTargetCapacity", 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.OnDemandTargetCapacity = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("spotTargetCapacity", 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.SpotTargetCapacity = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("targetCapacityUnitType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TargetCapacityUnitType = types.TargetCapacityUnitType(xtv)
- }
-
- case strings.EqualFold("totalTargetCapacity", 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.TotalTargetCapacity = 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 awsEc2query_deserializeDocumentTargetConfiguration(v **types.TargetConfiguration, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TargetConfiguration
- if *v == nil {
- sv = &types.TargetConfiguration{}
- } 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("instanceCount", 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.InstanceCount = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("offeringId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OfferingId = 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 awsEc2query_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("arn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Arn = 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 awsEc2query_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("item", t.Name.Local):
- var col types.TargetGroup
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_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 awsEc2query_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 := awsEc2query_deserializeDocumentTargetGroup(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTargetGroupsConfig(v **types.TargetGroupsConfig, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TargetGroupsConfig
- if *v == nil {
- sv = &types.TargetGroupsConfig{}
- } 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 := awsEc2query_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 awsEc2query_deserializeDocumentTargetNetwork(v **types.TargetNetwork, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TargetNetwork
- if *v == nil {
- sv = &types.TargetNetwork{}
- } 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("associationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AssociationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("clientVpnEndpointId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ClientVpnEndpointId = ptr.String(xtv)
- }
-
- case strings.EqualFold("securityGroups", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.SecurityGroups, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("status", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentAssociationStatus(&sv.Status, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("targetNetworkId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TargetNetworkId = ptr.String(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 awsEc2query_deserializeDocumentTargetNetworkSet(v *[]types.TargetNetwork, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TargetNetwork
- if *v == nil {
- sv = make([]types.TargetNetwork, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TargetNetwork
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTargetNetwork(&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 awsEc2query_deserializeDocumentTargetNetworkSetUnwrapped(v *[]types.TargetNetwork, decoder smithyxml.NodeDecoder) error {
- var sv []types.TargetNetwork
- if *v == nil {
- sv = make([]types.TargetNetwork, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TargetNetwork
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTargetNetwork(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTargetReservationValue(v **types.TargetReservationValue, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TargetReservationValue
- if *v == nil {
- sv = &types.TargetReservationValue{}
- } 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("reservationValue", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentReservationValue(&sv.ReservationValue, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("targetConfiguration", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTargetConfiguration(&sv.TargetConfiguration, 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 awsEc2query_deserializeDocumentTargetReservationValueSet(v *[]types.TargetReservationValue, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TargetReservationValue
- if *v == nil {
- sv = make([]types.TargetReservationValue, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TargetReservationValue
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTargetReservationValue(&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 awsEc2query_deserializeDocumentTargetReservationValueSetUnwrapped(v *[]types.TargetReservationValue, decoder smithyxml.NodeDecoder) error {
- var sv []types.TargetReservationValue
- if *v == nil {
- sv = make([]types.TargetReservationValue, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TargetReservationValue
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTargetReservationValue(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTerminateConnectionStatus(v **types.TerminateConnectionStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TerminateConnectionStatus
- if *v == nil {
- sv = &types.TerminateConnectionStatus{}
- } 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("connectionId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ConnectionId = ptr.String(xtv)
- }
-
- case strings.EqualFold("currentStatus", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentClientVpnConnectionStatus(&sv.CurrentStatus, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("previousStatus", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentClientVpnConnectionStatus(&sv.PreviousStatus, 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 awsEc2query_deserializeDocumentTerminateConnectionStatusSet(v *[]types.TerminateConnectionStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TerminateConnectionStatus
- if *v == nil {
- sv = make([]types.TerminateConnectionStatus, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TerminateConnectionStatus
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTerminateConnectionStatus(&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 awsEc2query_deserializeDocumentTerminateConnectionStatusSetUnwrapped(v *[]types.TerminateConnectionStatus, decoder smithyxml.NodeDecoder) error {
- var sv []types.TerminateConnectionStatus
- if *v == nil {
- sv = make([]types.TerminateConnectionStatus, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TerminateConnectionStatus
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTerminateConnectionStatus(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentThreadsPerCoreList(v *[]int32, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []int32
- if *v == nil {
- sv = make([]int32, 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("item", t.Name.Local):
- var col int32
- 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
- }
- col = int32(i64)
- }
- sv = append(sv, col)
-
- default:
- err = decoder.Decoder.Skip()
- if err != nil {
- return err
- }
-
- }
- decoder = originalDecoder
- }
- *v = sv
- return nil
-}
-
-func awsEc2query_deserializeDocumentThreadsPerCoreListUnwrapped(v *[]int32, decoder smithyxml.NodeDecoder) error {
- var sv []int32
- if *v == nil {
- sv = make([]int32, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv int32
- t := decoder.StartEl
- _ = t
- 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
- }
- mv = int32(i64)
- }
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentThroughResourcesStatement(v **types.ThroughResourcesStatement, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ThroughResourcesStatement
- if *v == nil {
- sv = &types.ThroughResourcesStatement{}
- } 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("resourceStatement", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentResourceStatement(&sv.ResourceStatement, 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 awsEc2query_deserializeDocumentThroughResourcesStatementList(v *[]types.ThroughResourcesStatement, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.ThroughResourcesStatement
- if *v == nil {
- sv = make([]types.ThroughResourcesStatement, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.ThroughResourcesStatement
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentThroughResourcesStatement(&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 awsEc2query_deserializeDocumentThroughResourcesStatementListUnwrapped(v *[]types.ThroughResourcesStatement, decoder smithyxml.NodeDecoder) error {
- var sv []types.ThroughResourcesStatement
- if *v == nil {
- sv = make([]types.ThroughResourcesStatement, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.ThroughResourcesStatement
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentThroughResourcesStatement(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTotalLocalStorageGB(v **types.TotalLocalStorageGB, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TotalLocalStorageGB
- if *v == nil {
- sv = &types.TotalLocalStorageGB{}
- } 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)
- f64, err := strconv.ParseFloat(xtv, 64)
- if err != nil {
- return err
- }
- sv.Max = ptr.Float64(f64)
- }
-
- case strings.EqualFold("min", 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.Min = ptr.Float64(f64)
- }
-
- 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 awsEc2query_deserializeDocumentTrafficMirrorFilter(v **types.TrafficMirrorFilter, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TrafficMirrorFilter
- if *v == nil {
- sv = &types.TrafficMirrorFilter{}
- } 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("egressFilterRuleSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTrafficMirrorFilterRuleList(&sv.EgressFilterRules, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ingressFilterRuleSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTrafficMirrorFilterRuleList(&sv.IngressFilterRules, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("networkServiceSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTrafficMirrorNetworkServiceList(&sv.NetworkServices, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("trafficMirrorFilterId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TrafficMirrorFilterId = 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 awsEc2query_deserializeDocumentTrafficMirrorFilterRule(v **types.TrafficMirrorFilterRule, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TrafficMirrorFilterRule
- if *v == nil {
- sv = &types.TrafficMirrorFilterRule{}
- } 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("destinationCidrBlock", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DestinationCidrBlock = ptr.String(xtv)
- }
-
- case strings.EqualFold("destinationPortRange", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTrafficMirrorPortRange(&sv.DestinationPortRange, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("protocol", 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.Protocol = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("ruleAction", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RuleAction = types.TrafficMirrorRuleAction(xtv)
- }
-
- case strings.EqualFold("ruleNumber", 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.RuleNumber = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("sourceCidrBlock", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SourceCidrBlock = ptr.String(xtv)
- }
-
- case strings.EqualFold("sourcePortRange", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTrafficMirrorPortRange(&sv.SourcePortRange, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("trafficDirection", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TrafficDirection = types.TrafficDirection(xtv)
- }
-
- case strings.EqualFold("trafficMirrorFilterId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TrafficMirrorFilterId = ptr.String(xtv)
- }
-
- case strings.EqualFold("trafficMirrorFilterRuleId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TrafficMirrorFilterRuleId = 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 awsEc2query_deserializeDocumentTrafficMirrorFilterRuleList(v *[]types.TrafficMirrorFilterRule, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TrafficMirrorFilterRule
- if *v == nil {
- sv = make([]types.TrafficMirrorFilterRule, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TrafficMirrorFilterRule
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTrafficMirrorFilterRule(&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 awsEc2query_deserializeDocumentTrafficMirrorFilterRuleListUnwrapped(v *[]types.TrafficMirrorFilterRule, decoder smithyxml.NodeDecoder) error {
- var sv []types.TrafficMirrorFilterRule
- if *v == nil {
- sv = make([]types.TrafficMirrorFilterRule, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TrafficMirrorFilterRule
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTrafficMirrorFilterRule(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTrafficMirrorFilterRuleSet(v *[]types.TrafficMirrorFilterRule, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TrafficMirrorFilterRule
- if *v == nil {
- sv = make([]types.TrafficMirrorFilterRule, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TrafficMirrorFilterRule
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTrafficMirrorFilterRule(&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 awsEc2query_deserializeDocumentTrafficMirrorFilterRuleSetUnwrapped(v *[]types.TrafficMirrorFilterRule, decoder smithyxml.NodeDecoder) error {
- var sv []types.TrafficMirrorFilterRule
- if *v == nil {
- sv = make([]types.TrafficMirrorFilterRule, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TrafficMirrorFilterRule
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTrafficMirrorFilterRule(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTrafficMirrorFilterSet(v *[]types.TrafficMirrorFilter, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TrafficMirrorFilter
- if *v == nil {
- sv = make([]types.TrafficMirrorFilter, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TrafficMirrorFilter
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTrafficMirrorFilter(&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 awsEc2query_deserializeDocumentTrafficMirrorFilterSetUnwrapped(v *[]types.TrafficMirrorFilter, decoder smithyxml.NodeDecoder) error {
- var sv []types.TrafficMirrorFilter
- if *v == nil {
- sv = make([]types.TrafficMirrorFilter, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TrafficMirrorFilter
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTrafficMirrorFilter(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTrafficMirrorNetworkServiceList(v *[]types.TrafficMirrorNetworkService, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TrafficMirrorNetworkService
- if *v == nil {
- sv = make([]types.TrafficMirrorNetworkService, 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("item", t.Name.Local):
- var col types.TrafficMirrorNetworkService
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- col = types.TrafficMirrorNetworkService(xtv)
- }
- sv = append(sv, col)
-
- default:
- err = decoder.Decoder.Skip()
- if err != nil {
- return err
- }
-
- }
- decoder = originalDecoder
- }
- *v = sv
- return nil
-}
-
-func awsEc2query_deserializeDocumentTrafficMirrorNetworkServiceListUnwrapped(v *[]types.TrafficMirrorNetworkService, decoder smithyxml.NodeDecoder) error {
- var sv []types.TrafficMirrorNetworkService
- if *v == nil {
- sv = make([]types.TrafficMirrorNetworkService, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TrafficMirrorNetworkService
- t := decoder.StartEl
- _ = t
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- mv = types.TrafficMirrorNetworkService(xtv)
- }
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTrafficMirrorPortRange(v **types.TrafficMirrorPortRange, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TrafficMirrorPortRange
- if *v == nil {
- sv = &types.TrafficMirrorPortRange{}
- } 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("fromPort", 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.FromPort = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("toPort", 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.ToPort = 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 awsEc2query_deserializeDocumentTrafficMirrorSession(v **types.TrafficMirrorSession, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TrafficMirrorSession
- if *v == nil {
- sv = &types.TrafficMirrorSession{}
- } 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("networkInterfaceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInterfaceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("packetLength", 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.PacketLength = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("sessionNumber", 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.SessionNumber = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("trafficMirrorFilterId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TrafficMirrorFilterId = ptr.String(xtv)
- }
-
- case strings.EqualFold("trafficMirrorSessionId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TrafficMirrorSessionId = ptr.String(xtv)
- }
-
- case strings.EqualFold("trafficMirrorTargetId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TrafficMirrorTargetId = ptr.String(xtv)
- }
-
- case strings.EqualFold("virtualNetworkId", 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.VirtualNetworkId = 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 awsEc2query_deserializeDocumentTrafficMirrorSessionSet(v *[]types.TrafficMirrorSession, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TrafficMirrorSession
- if *v == nil {
- sv = make([]types.TrafficMirrorSession, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TrafficMirrorSession
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTrafficMirrorSession(&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 awsEc2query_deserializeDocumentTrafficMirrorSessionSetUnwrapped(v *[]types.TrafficMirrorSession, decoder smithyxml.NodeDecoder) error {
- var sv []types.TrafficMirrorSession
- if *v == nil {
- sv = make([]types.TrafficMirrorSession, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TrafficMirrorSession
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTrafficMirrorSession(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTrafficMirrorTarget(v **types.TrafficMirrorTarget, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TrafficMirrorTarget
- if *v == nil {
- sv = &types.TrafficMirrorTarget{}
- } 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("gatewayLoadBalancerEndpointId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GatewayLoadBalancerEndpointId = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkInterfaceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInterfaceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkLoadBalancerArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkLoadBalancerArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("trafficMirrorTargetId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TrafficMirrorTargetId = 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.TrafficMirrorTargetType(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 awsEc2query_deserializeDocumentTrafficMirrorTargetSet(v *[]types.TrafficMirrorTarget, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TrafficMirrorTarget
- if *v == nil {
- sv = make([]types.TrafficMirrorTarget, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TrafficMirrorTarget
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTrafficMirrorTarget(&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 awsEc2query_deserializeDocumentTrafficMirrorTargetSetUnwrapped(v *[]types.TrafficMirrorTarget, decoder smithyxml.NodeDecoder) error {
- var sv []types.TrafficMirrorTarget
- if *v == nil {
- sv = make([]types.TrafficMirrorTarget, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TrafficMirrorTarget
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTrafficMirrorTarget(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTransitGateway(v **types.TransitGateway, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGateway
- if *v == nil {
- sv = &types.TransitGateway{}
- } 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("creationTime", 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.CreationTime = ptr.Time(t)
- }
-
- 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("options", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTransitGatewayOptions(&sv.Options, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(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.TransitGatewayState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transitGatewayArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("transitGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayId = 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 awsEc2query_deserializeDocumentTransitGatewayAssociation(v **types.TransitGatewayAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayAssociation
- if *v == nil {
- sv = &types.TransitGatewayAssociation{}
- } 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("resourceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceType = types.TransitGatewayAttachmentResourceType(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.TransitGatewayAssociationState(xtv)
- }
-
- case strings.EqualFold("transitGatewayAttachmentId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayAttachmentId = ptr.String(xtv)
- }
-
- case strings.EqualFold("transitGatewayRouteTableId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayRouteTableId = 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 awsEc2query_deserializeDocumentTransitGatewayAttachment(v **types.TransitGatewayAttachment, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayAttachment
- if *v == nil {
- sv = &types.TransitGatewayAttachment{}
- } 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("association", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTransitGatewayAttachmentAssociation(&sv.Association, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("creationTime", 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.CreationTime = ptr.Time(t)
- }
-
- case strings.EqualFold("resourceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceOwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceType = types.TransitGatewayAttachmentResourceType(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.TransitGatewayAttachmentState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transitGatewayAttachmentId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayAttachmentId = ptr.String(xtv)
- }
-
- case strings.EqualFold("transitGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("transitGatewayOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayOwnerId = 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 awsEc2query_deserializeDocumentTransitGatewayAttachmentAssociation(v **types.TransitGatewayAttachmentAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayAttachmentAssociation
- if *v == nil {
- sv = &types.TransitGatewayAttachmentAssociation{}
- } 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("state", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.State = types.TransitGatewayAssociationState(xtv)
- }
-
- case strings.EqualFold("transitGatewayRouteTableId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayRouteTableId = 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 awsEc2query_deserializeDocumentTransitGatewayAttachmentBgpConfiguration(v **types.TransitGatewayAttachmentBgpConfiguration, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayAttachmentBgpConfiguration
- if *v == nil {
- sv = &types.TransitGatewayAttachmentBgpConfiguration{}
- } 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("bgpStatus", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.BgpStatus = types.BgpStatus(xtv)
- }
-
- case strings.EqualFold("peerAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PeerAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("peerAsn", 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.PeerAsn = ptr.Int64(i64)
- }
-
- case strings.EqualFold("transitGatewayAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("transitGatewayAsn", 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.TransitGatewayAsn = ptr.Int64(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 awsEc2query_deserializeDocumentTransitGatewayAttachmentBgpConfigurationList(v *[]types.TransitGatewayAttachmentBgpConfiguration, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TransitGatewayAttachmentBgpConfiguration
- if *v == nil {
- sv = make([]types.TransitGatewayAttachmentBgpConfiguration, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TransitGatewayAttachmentBgpConfiguration
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTransitGatewayAttachmentBgpConfiguration(&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 awsEc2query_deserializeDocumentTransitGatewayAttachmentBgpConfigurationListUnwrapped(v *[]types.TransitGatewayAttachmentBgpConfiguration, decoder smithyxml.NodeDecoder) error {
- var sv []types.TransitGatewayAttachmentBgpConfiguration
- if *v == nil {
- sv = make([]types.TransitGatewayAttachmentBgpConfiguration, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TransitGatewayAttachmentBgpConfiguration
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTransitGatewayAttachmentBgpConfiguration(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTransitGatewayAttachmentList(v *[]types.TransitGatewayAttachment, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TransitGatewayAttachment
- if *v == nil {
- sv = make([]types.TransitGatewayAttachment, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TransitGatewayAttachment
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTransitGatewayAttachment(&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 awsEc2query_deserializeDocumentTransitGatewayAttachmentListUnwrapped(v *[]types.TransitGatewayAttachment, decoder smithyxml.NodeDecoder) error {
- var sv []types.TransitGatewayAttachment
- if *v == nil {
- sv = make([]types.TransitGatewayAttachment, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TransitGatewayAttachment
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTransitGatewayAttachment(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTransitGatewayAttachmentPropagation(v **types.TransitGatewayAttachmentPropagation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayAttachmentPropagation
- if *v == nil {
- sv = &types.TransitGatewayAttachmentPropagation{}
- } 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("state", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.State = types.TransitGatewayPropagationState(xtv)
- }
-
- case strings.EqualFold("transitGatewayRouteTableId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayRouteTableId = 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 awsEc2query_deserializeDocumentTransitGatewayAttachmentPropagationList(v *[]types.TransitGatewayAttachmentPropagation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TransitGatewayAttachmentPropagation
- if *v == nil {
- sv = make([]types.TransitGatewayAttachmentPropagation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TransitGatewayAttachmentPropagation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTransitGatewayAttachmentPropagation(&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 awsEc2query_deserializeDocumentTransitGatewayAttachmentPropagationListUnwrapped(v *[]types.TransitGatewayAttachmentPropagation, decoder smithyxml.NodeDecoder) error {
- var sv []types.TransitGatewayAttachmentPropagation
- if *v == nil {
- sv = make([]types.TransitGatewayAttachmentPropagation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TransitGatewayAttachmentPropagation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTransitGatewayAttachmentPropagation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTransitGatewayConnect(v **types.TransitGatewayConnect, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayConnect
- if *v == nil {
- sv = &types.TransitGatewayConnect{}
- } 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("creationTime", 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.CreationTime = ptr.Time(t)
- }
-
- case strings.EqualFold("options", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTransitGatewayConnectOptions(&sv.Options, nodeDecoder); err != nil {
- return err
- }
-
- 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.TransitGatewayAttachmentState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transitGatewayAttachmentId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayAttachmentId = ptr.String(xtv)
- }
-
- case strings.EqualFold("transitGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("transportTransitGatewayAttachmentId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransportTransitGatewayAttachmentId = 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 awsEc2query_deserializeDocumentTransitGatewayConnectList(v *[]types.TransitGatewayConnect, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TransitGatewayConnect
- if *v == nil {
- sv = make([]types.TransitGatewayConnect, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TransitGatewayConnect
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTransitGatewayConnect(&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 awsEc2query_deserializeDocumentTransitGatewayConnectListUnwrapped(v *[]types.TransitGatewayConnect, decoder smithyxml.NodeDecoder) error {
- var sv []types.TransitGatewayConnect
- if *v == nil {
- sv = make([]types.TransitGatewayConnect, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TransitGatewayConnect
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTransitGatewayConnect(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTransitGatewayConnectOptions(v **types.TransitGatewayConnectOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayConnectOptions
- if *v == nil {
- sv = &types.TransitGatewayConnectOptions{}
- } 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("protocol", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Protocol = types.ProtocolValue(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 awsEc2query_deserializeDocumentTransitGatewayConnectPeer(v **types.TransitGatewayConnectPeer, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayConnectPeer
- if *v == nil {
- sv = &types.TransitGatewayConnectPeer{}
- } 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("connectPeerConfiguration", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTransitGatewayConnectPeerConfiguration(&sv.ConnectPeerConfiguration, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("creationTime", 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.CreationTime = ptr.Time(t)
- }
-
- 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.TransitGatewayConnectPeerState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transitGatewayAttachmentId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayAttachmentId = ptr.String(xtv)
- }
-
- case strings.EqualFold("transitGatewayConnectPeerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayConnectPeerId = 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 awsEc2query_deserializeDocumentTransitGatewayConnectPeerConfiguration(v **types.TransitGatewayConnectPeerConfiguration, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayConnectPeerConfiguration
- if *v == nil {
- sv = &types.TransitGatewayConnectPeerConfiguration{}
- } 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("bgpConfigurations", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTransitGatewayAttachmentBgpConfigurationList(&sv.BgpConfigurations, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("insideCidrBlocks", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInsideCidrBlocksStringList(&sv.InsideCidrBlocks, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("peerAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PeerAddress = 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 = types.ProtocolValue(xtv)
- }
-
- case strings.EqualFold("transitGatewayAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayAddress = 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 awsEc2query_deserializeDocumentTransitGatewayConnectPeerList(v *[]types.TransitGatewayConnectPeer, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TransitGatewayConnectPeer
- if *v == nil {
- sv = make([]types.TransitGatewayConnectPeer, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TransitGatewayConnectPeer
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTransitGatewayConnectPeer(&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 awsEc2query_deserializeDocumentTransitGatewayConnectPeerListUnwrapped(v *[]types.TransitGatewayConnectPeer, decoder smithyxml.NodeDecoder) error {
- var sv []types.TransitGatewayConnectPeer
- if *v == nil {
- sv = make([]types.TransitGatewayConnectPeer, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TransitGatewayConnectPeer
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTransitGatewayConnectPeer(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTransitGatewayList(v *[]types.TransitGateway, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TransitGateway
- if *v == nil {
- sv = make([]types.TransitGateway, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TransitGateway
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTransitGateway(&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 awsEc2query_deserializeDocumentTransitGatewayListUnwrapped(v *[]types.TransitGateway, decoder smithyxml.NodeDecoder) error {
- var sv []types.TransitGateway
- if *v == nil {
- sv = make([]types.TransitGateway, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TransitGateway
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTransitGateway(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTransitGatewayMulticastDeregisteredGroupMembers(v **types.TransitGatewayMulticastDeregisteredGroupMembers, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayMulticastDeregisteredGroupMembers
- if *v == nil {
- sv = &types.TransitGatewayMulticastDeregisteredGroupMembers{}
- } 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("deregisteredNetworkInterfaceIds", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.DeregisteredNetworkInterfaceIds, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("groupIpAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupIpAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("transitGatewayMulticastDomainId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayMulticastDomainId = 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 awsEc2query_deserializeDocumentTransitGatewayMulticastDeregisteredGroupSources(v **types.TransitGatewayMulticastDeregisteredGroupSources, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayMulticastDeregisteredGroupSources
- if *v == nil {
- sv = &types.TransitGatewayMulticastDeregisteredGroupSources{}
- } 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("deregisteredNetworkInterfaceIds", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.DeregisteredNetworkInterfaceIds, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("groupIpAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupIpAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("transitGatewayMulticastDomainId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayMulticastDomainId = 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 awsEc2query_deserializeDocumentTransitGatewayMulticastDomain(v **types.TransitGatewayMulticastDomain, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayMulticastDomain
- if *v == nil {
- sv = &types.TransitGatewayMulticastDomain{}
- } 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("creationTime", 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.CreationTime = ptr.Time(t)
- }
-
- case strings.EqualFold("options", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTransitGatewayMulticastDomainOptions(&sv.Options, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(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.TransitGatewayMulticastDomainState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transitGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("transitGatewayMulticastDomainArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayMulticastDomainArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("transitGatewayMulticastDomainId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayMulticastDomainId = 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 awsEc2query_deserializeDocumentTransitGatewayMulticastDomainAssociation(v **types.TransitGatewayMulticastDomainAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayMulticastDomainAssociation
- if *v == nil {
- sv = &types.TransitGatewayMulticastDomainAssociation{}
- } 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("resourceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceOwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceType = types.TransitGatewayAttachmentResourceType(xtv)
- }
-
- case strings.EqualFold("subnet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSubnetAssociation(&sv.Subnet, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transitGatewayAttachmentId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayAttachmentId = 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 awsEc2query_deserializeDocumentTransitGatewayMulticastDomainAssociationList(v *[]types.TransitGatewayMulticastDomainAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TransitGatewayMulticastDomainAssociation
- if *v == nil {
- sv = make([]types.TransitGatewayMulticastDomainAssociation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TransitGatewayMulticastDomainAssociation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTransitGatewayMulticastDomainAssociation(&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 awsEc2query_deserializeDocumentTransitGatewayMulticastDomainAssociationListUnwrapped(v *[]types.TransitGatewayMulticastDomainAssociation, decoder smithyxml.NodeDecoder) error {
- var sv []types.TransitGatewayMulticastDomainAssociation
- if *v == nil {
- sv = make([]types.TransitGatewayMulticastDomainAssociation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TransitGatewayMulticastDomainAssociation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTransitGatewayMulticastDomainAssociation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTransitGatewayMulticastDomainAssociations(v **types.TransitGatewayMulticastDomainAssociations, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayMulticastDomainAssociations
- if *v == nil {
- sv = &types.TransitGatewayMulticastDomainAssociations{}
- } 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("resourceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceOwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceType = types.TransitGatewayAttachmentResourceType(xtv)
- }
-
- case strings.EqualFold("subnets", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSubnetAssociationList(&sv.Subnets, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transitGatewayAttachmentId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayAttachmentId = ptr.String(xtv)
- }
-
- case strings.EqualFold("transitGatewayMulticastDomainId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayMulticastDomainId = 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 awsEc2query_deserializeDocumentTransitGatewayMulticastDomainList(v *[]types.TransitGatewayMulticastDomain, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TransitGatewayMulticastDomain
- if *v == nil {
- sv = make([]types.TransitGatewayMulticastDomain, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TransitGatewayMulticastDomain
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTransitGatewayMulticastDomain(&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 awsEc2query_deserializeDocumentTransitGatewayMulticastDomainListUnwrapped(v *[]types.TransitGatewayMulticastDomain, decoder smithyxml.NodeDecoder) error {
- var sv []types.TransitGatewayMulticastDomain
- if *v == nil {
- sv = make([]types.TransitGatewayMulticastDomain, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TransitGatewayMulticastDomain
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTransitGatewayMulticastDomain(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTransitGatewayMulticastDomainOptions(v **types.TransitGatewayMulticastDomainOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayMulticastDomainOptions
- if *v == nil {
- sv = &types.TransitGatewayMulticastDomainOptions{}
- } 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("autoAcceptSharedAssociations", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AutoAcceptSharedAssociations = types.AutoAcceptSharedAssociationsValue(xtv)
- }
-
- case strings.EqualFold("igmpv2Support", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Igmpv2Support = types.Igmpv2SupportValue(xtv)
- }
-
- case strings.EqualFold("staticSourcesSupport", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StaticSourcesSupport = types.StaticSourcesSupportValue(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 awsEc2query_deserializeDocumentTransitGatewayMulticastGroup(v **types.TransitGatewayMulticastGroup, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayMulticastGroup
- if *v == nil {
- sv = &types.TransitGatewayMulticastGroup{}
- } 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("groupIpAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupIpAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("groupMember", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.GroupMember = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("groupSource", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.GroupSource = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("memberType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.MemberType = types.MembershipType(xtv)
- }
-
- case strings.EqualFold("networkInterfaceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInterfaceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceOwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceType = types.TransitGatewayAttachmentResourceType(xtv)
- }
-
- case strings.EqualFold("sourceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SourceType = types.MembershipType(xtv)
- }
-
- 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("transitGatewayAttachmentId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayAttachmentId = 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 awsEc2query_deserializeDocumentTransitGatewayMulticastGroupList(v *[]types.TransitGatewayMulticastGroup, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TransitGatewayMulticastGroup
- if *v == nil {
- sv = make([]types.TransitGatewayMulticastGroup, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TransitGatewayMulticastGroup
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTransitGatewayMulticastGroup(&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 awsEc2query_deserializeDocumentTransitGatewayMulticastGroupListUnwrapped(v *[]types.TransitGatewayMulticastGroup, decoder smithyxml.NodeDecoder) error {
- var sv []types.TransitGatewayMulticastGroup
- if *v == nil {
- sv = make([]types.TransitGatewayMulticastGroup, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TransitGatewayMulticastGroup
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTransitGatewayMulticastGroup(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTransitGatewayMulticastRegisteredGroupMembers(v **types.TransitGatewayMulticastRegisteredGroupMembers, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayMulticastRegisteredGroupMembers
- if *v == nil {
- sv = &types.TransitGatewayMulticastRegisteredGroupMembers{}
- } 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("groupIpAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupIpAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("registeredNetworkInterfaceIds", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.RegisteredNetworkInterfaceIds, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transitGatewayMulticastDomainId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayMulticastDomainId = 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 awsEc2query_deserializeDocumentTransitGatewayMulticastRegisteredGroupSources(v **types.TransitGatewayMulticastRegisteredGroupSources, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayMulticastRegisteredGroupSources
- if *v == nil {
- sv = &types.TransitGatewayMulticastRegisteredGroupSources{}
- } 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("groupIpAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupIpAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("registeredNetworkInterfaceIds", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.RegisteredNetworkInterfaceIds, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transitGatewayMulticastDomainId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayMulticastDomainId = 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 awsEc2query_deserializeDocumentTransitGatewayOptions(v **types.TransitGatewayOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayOptions
- if *v == nil {
- sv = &types.TransitGatewayOptions{}
- } 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("amazonSideAsn", 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.AmazonSideAsn = ptr.Int64(i64)
- }
-
- case strings.EqualFold("associationDefaultRouteTableId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AssociationDefaultRouteTableId = ptr.String(xtv)
- }
-
- case strings.EqualFold("autoAcceptSharedAttachments", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AutoAcceptSharedAttachments = types.AutoAcceptSharedAttachmentsValue(xtv)
- }
-
- case strings.EqualFold("defaultRouteTableAssociation", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DefaultRouteTableAssociation = types.DefaultRouteTableAssociationValue(xtv)
- }
-
- case strings.EqualFold("defaultRouteTablePropagation", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DefaultRouteTablePropagation = types.DefaultRouteTablePropagationValue(xtv)
- }
-
- case strings.EqualFold("dnsSupport", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DnsSupport = types.DnsSupportValue(xtv)
- }
-
- case strings.EqualFold("multicastSupport", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.MulticastSupport = types.MulticastSupportValue(xtv)
- }
-
- case strings.EqualFold("propagationDefaultRouteTableId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PropagationDefaultRouteTableId = ptr.String(xtv)
- }
-
- case strings.EqualFold("securityGroupReferencingSupport", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SecurityGroupReferencingSupport = types.SecurityGroupReferencingSupportValue(xtv)
- }
-
- case strings.EqualFold("transitGatewayCidrBlocks", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.TransitGatewayCidrBlocks, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("vpnEcmpSupport", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VpnEcmpSupport = types.VpnEcmpSupportValue(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 awsEc2query_deserializeDocumentTransitGatewayPeeringAttachment(v **types.TransitGatewayPeeringAttachment, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayPeeringAttachment
- if *v == nil {
- sv = &types.TransitGatewayPeeringAttachment{}
- } 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("accepterTgwInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPeeringTgwInfo(&sv.AccepterTgwInfo, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("accepterTransitGatewayAttachmentId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AccepterTransitGatewayAttachmentId = ptr.String(xtv)
- }
-
- case strings.EqualFold("creationTime", 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.CreationTime = ptr.Time(t)
- }
-
- case strings.EqualFold("options", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTransitGatewayPeeringAttachmentOptions(&sv.Options, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("requesterTgwInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPeeringTgwInfo(&sv.RequesterTgwInfo, nodeDecoder); err != nil {
- return err
- }
-
- 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.TransitGatewayAttachmentState(xtv)
- }
-
- case strings.EqualFold("status", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPeeringAttachmentStatus(&sv.Status, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transitGatewayAttachmentId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayAttachmentId = 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 awsEc2query_deserializeDocumentTransitGatewayPeeringAttachmentList(v *[]types.TransitGatewayPeeringAttachment, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TransitGatewayPeeringAttachment
- if *v == nil {
- sv = make([]types.TransitGatewayPeeringAttachment, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TransitGatewayPeeringAttachment
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTransitGatewayPeeringAttachment(&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 awsEc2query_deserializeDocumentTransitGatewayPeeringAttachmentListUnwrapped(v *[]types.TransitGatewayPeeringAttachment, decoder smithyxml.NodeDecoder) error {
- var sv []types.TransitGatewayPeeringAttachment
- if *v == nil {
- sv = make([]types.TransitGatewayPeeringAttachment, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TransitGatewayPeeringAttachment
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTransitGatewayPeeringAttachment(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTransitGatewayPeeringAttachmentOptions(v **types.TransitGatewayPeeringAttachmentOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayPeeringAttachmentOptions
- if *v == nil {
- sv = &types.TransitGatewayPeeringAttachmentOptions{}
- } 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("dynamicRouting", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DynamicRouting = types.DynamicRoutingValue(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 awsEc2query_deserializeDocumentTransitGatewayPolicyRule(v **types.TransitGatewayPolicyRule, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayPolicyRule
- if *v == nil {
- sv = &types.TransitGatewayPolicyRule{}
- } 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("destinationCidrBlock", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DestinationCidrBlock = ptr.String(xtv)
- }
-
- case strings.EqualFold("destinationPortRange", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DestinationPortRange = ptr.String(xtv)
- }
-
- case strings.EqualFold("metaData", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTransitGatewayPolicyRuleMetaData(&sv.MetaData, nodeDecoder); err != nil {
- return err
- }
-
- 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("sourceCidrBlock", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SourceCidrBlock = ptr.String(xtv)
- }
-
- case strings.EqualFold("sourcePortRange", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SourcePortRange = 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 awsEc2query_deserializeDocumentTransitGatewayPolicyRuleMetaData(v **types.TransitGatewayPolicyRuleMetaData, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayPolicyRuleMetaData
- if *v == nil {
- sv = &types.TransitGatewayPolicyRuleMetaData{}
- } 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("metaDataKey", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.MetaDataKey = ptr.String(xtv)
- }
-
- case strings.EqualFold("metaDataValue", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.MetaDataValue = 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 awsEc2query_deserializeDocumentTransitGatewayPolicyTable(v **types.TransitGatewayPolicyTable, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayPolicyTable
- if *v == nil {
- sv = &types.TransitGatewayPolicyTable{}
- } 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("creationTime", 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.CreationTime = ptr.Time(t)
- }
-
- 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.TransitGatewayPolicyTableState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transitGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("transitGatewayPolicyTableId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayPolicyTableId = 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 awsEc2query_deserializeDocumentTransitGatewayPolicyTableAssociation(v **types.TransitGatewayPolicyTableAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayPolicyTableAssociation
- if *v == nil {
- sv = &types.TransitGatewayPolicyTableAssociation{}
- } 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("resourceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceType = types.TransitGatewayAttachmentResourceType(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.TransitGatewayAssociationState(xtv)
- }
-
- case strings.EqualFold("transitGatewayAttachmentId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayAttachmentId = ptr.String(xtv)
- }
-
- case strings.EqualFold("transitGatewayPolicyTableId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayPolicyTableId = 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 awsEc2query_deserializeDocumentTransitGatewayPolicyTableAssociationList(v *[]types.TransitGatewayPolicyTableAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TransitGatewayPolicyTableAssociation
- if *v == nil {
- sv = make([]types.TransitGatewayPolicyTableAssociation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TransitGatewayPolicyTableAssociation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTransitGatewayPolicyTableAssociation(&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 awsEc2query_deserializeDocumentTransitGatewayPolicyTableAssociationListUnwrapped(v *[]types.TransitGatewayPolicyTableAssociation, decoder smithyxml.NodeDecoder) error {
- var sv []types.TransitGatewayPolicyTableAssociation
- if *v == nil {
- sv = make([]types.TransitGatewayPolicyTableAssociation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TransitGatewayPolicyTableAssociation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTransitGatewayPolicyTableAssociation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTransitGatewayPolicyTableEntry(v **types.TransitGatewayPolicyTableEntry, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayPolicyTableEntry
- if *v == nil {
- sv = &types.TransitGatewayPolicyTableEntry{}
- } 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("policyRule", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTransitGatewayPolicyRule(&sv.PolicyRule, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("policyRuleNumber", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PolicyRuleNumber = ptr.String(xtv)
- }
-
- case strings.EqualFold("targetRouteTableId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TargetRouteTableId = 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 awsEc2query_deserializeDocumentTransitGatewayPolicyTableEntryList(v *[]types.TransitGatewayPolicyTableEntry, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TransitGatewayPolicyTableEntry
- if *v == nil {
- sv = make([]types.TransitGatewayPolicyTableEntry, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TransitGatewayPolicyTableEntry
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTransitGatewayPolicyTableEntry(&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 awsEc2query_deserializeDocumentTransitGatewayPolicyTableEntryListUnwrapped(v *[]types.TransitGatewayPolicyTableEntry, decoder smithyxml.NodeDecoder) error {
- var sv []types.TransitGatewayPolicyTableEntry
- if *v == nil {
- sv = make([]types.TransitGatewayPolicyTableEntry, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TransitGatewayPolicyTableEntry
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTransitGatewayPolicyTableEntry(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTransitGatewayPolicyTableList(v *[]types.TransitGatewayPolicyTable, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TransitGatewayPolicyTable
- if *v == nil {
- sv = make([]types.TransitGatewayPolicyTable, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TransitGatewayPolicyTable
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTransitGatewayPolicyTable(&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 awsEc2query_deserializeDocumentTransitGatewayPolicyTableListUnwrapped(v *[]types.TransitGatewayPolicyTable, decoder smithyxml.NodeDecoder) error {
- var sv []types.TransitGatewayPolicyTable
- if *v == nil {
- sv = make([]types.TransitGatewayPolicyTable, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TransitGatewayPolicyTable
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTransitGatewayPolicyTable(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTransitGatewayPrefixListAttachment(v **types.TransitGatewayPrefixListAttachment, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayPrefixListAttachment
- if *v == nil {
- sv = &types.TransitGatewayPrefixListAttachment{}
- } 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("resourceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceType = types.TransitGatewayAttachmentResourceType(xtv)
- }
-
- case strings.EqualFold("transitGatewayAttachmentId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayAttachmentId = 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 awsEc2query_deserializeDocumentTransitGatewayPrefixListReference(v **types.TransitGatewayPrefixListReference, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayPrefixListReference
- if *v == nil {
- sv = &types.TransitGatewayPrefixListReference{}
- } 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("blackhole", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Blackhole = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("prefixListId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrefixListId = ptr.String(xtv)
- }
-
- case strings.EqualFold("prefixListOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrefixListOwnerId = ptr.String(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.TransitGatewayPrefixListReferenceState(xtv)
- }
-
- case strings.EqualFold("transitGatewayAttachment", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTransitGatewayPrefixListAttachment(&sv.TransitGatewayAttachment, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transitGatewayRouteTableId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayRouteTableId = 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 awsEc2query_deserializeDocumentTransitGatewayPrefixListReferenceSet(v *[]types.TransitGatewayPrefixListReference, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TransitGatewayPrefixListReference
- if *v == nil {
- sv = make([]types.TransitGatewayPrefixListReference, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TransitGatewayPrefixListReference
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTransitGatewayPrefixListReference(&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 awsEc2query_deserializeDocumentTransitGatewayPrefixListReferenceSetUnwrapped(v *[]types.TransitGatewayPrefixListReference, decoder smithyxml.NodeDecoder) error {
- var sv []types.TransitGatewayPrefixListReference
- if *v == nil {
- sv = make([]types.TransitGatewayPrefixListReference, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TransitGatewayPrefixListReference
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTransitGatewayPrefixListReference(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTransitGatewayPropagation(v **types.TransitGatewayPropagation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayPropagation
- if *v == nil {
- sv = &types.TransitGatewayPropagation{}
- } 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("resourceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceType = types.TransitGatewayAttachmentResourceType(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.TransitGatewayPropagationState(xtv)
- }
-
- case strings.EqualFold("transitGatewayAttachmentId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayAttachmentId = ptr.String(xtv)
- }
-
- case strings.EqualFold("transitGatewayRouteTableAnnouncementId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayRouteTableAnnouncementId = ptr.String(xtv)
- }
-
- case strings.EqualFold("transitGatewayRouteTableId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayRouteTableId = 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 awsEc2query_deserializeDocumentTransitGatewayRoute(v **types.TransitGatewayRoute, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayRoute
- if *v == nil {
- sv = &types.TransitGatewayRoute{}
- } 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("destinationCidrBlock", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DestinationCidrBlock = ptr.String(xtv)
- }
-
- case strings.EqualFold("prefixListId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrefixListId = ptr.String(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.TransitGatewayRouteState(xtv)
- }
-
- case strings.EqualFold("transitGatewayAttachments", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTransitGatewayRouteAttachmentList(&sv.TransitGatewayAttachments, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transitGatewayRouteTableAnnouncementId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayRouteTableAnnouncementId = 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.TransitGatewayRouteType(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 awsEc2query_deserializeDocumentTransitGatewayRouteAttachment(v **types.TransitGatewayRouteAttachment, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayRouteAttachment
- if *v == nil {
- sv = &types.TransitGatewayRouteAttachment{}
- } 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("resourceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceType = types.TransitGatewayAttachmentResourceType(xtv)
- }
-
- case strings.EqualFold("transitGatewayAttachmentId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayAttachmentId = 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 awsEc2query_deserializeDocumentTransitGatewayRouteAttachmentList(v *[]types.TransitGatewayRouteAttachment, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TransitGatewayRouteAttachment
- if *v == nil {
- sv = make([]types.TransitGatewayRouteAttachment, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TransitGatewayRouteAttachment
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTransitGatewayRouteAttachment(&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 awsEc2query_deserializeDocumentTransitGatewayRouteAttachmentListUnwrapped(v *[]types.TransitGatewayRouteAttachment, decoder smithyxml.NodeDecoder) error {
- var sv []types.TransitGatewayRouteAttachment
- if *v == nil {
- sv = make([]types.TransitGatewayRouteAttachment, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TransitGatewayRouteAttachment
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTransitGatewayRouteAttachment(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTransitGatewayRouteList(v *[]types.TransitGatewayRoute, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TransitGatewayRoute
- if *v == nil {
- sv = make([]types.TransitGatewayRoute, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TransitGatewayRoute
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTransitGatewayRoute(&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 awsEc2query_deserializeDocumentTransitGatewayRouteListUnwrapped(v *[]types.TransitGatewayRoute, decoder smithyxml.NodeDecoder) error {
- var sv []types.TransitGatewayRoute
- if *v == nil {
- sv = make([]types.TransitGatewayRoute, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TransitGatewayRoute
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTransitGatewayRoute(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTransitGatewayRouteTable(v **types.TransitGatewayRouteTable, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayRouteTable
- if *v == nil {
- sv = &types.TransitGatewayRouteTable{}
- } 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("creationTime", 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.CreationTime = ptr.Time(t)
- }
-
- case strings.EqualFold("defaultAssociationRouteTable", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.DefaultAssociationRouteTable = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("defaultPropagationRouteTable", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.DefaultPropagationRouteTable = ptr.Bool(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.TransitGatewayRouteTableState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transitGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("transitGatewayRouteTableId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayRouteTableId = 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 awsEc2query_deserializeDocumentTransitGatewayRouteTableAnnouncement(v **types.TransitGatewayRouteTableAnnouncement, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayRouteTableAnnouncement
- if *v == nil {
- sv = &types.TransitGatewayRouteTableAnnouncement{}
- } 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("announcementDirection", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AnnouncementDirection = types.TransitGatewayRouteTableAnnouncementDirection(xtv)
- }
-
- case strings.EqualFold("coreNetworkId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CoreNetworkId = ptr.String(xtv)
- }
-
- case strings.EqualFold("creationTime", 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.CreationTime = ptr.Time(t)
- }
-
- case strings.EqualFold("peerCoreNetworkId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PeerCoreNetworkId = ptr.String(xtv)
- }
-
- case strings.EqualFold("peeringAttachmentId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PeeringAttachmentId = ptr.String(xtv)
- }
-
- case strings.EqualFold("peerTransitGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PeerTransitGatewayId = ptr.String(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.TransitGatewayRouteTableAnnouncementState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transitGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("transitGatewayRouteTableAnnouncementId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayRouteTableAnnouncementId = ptr.String(xtv)
- }
-
- case strings.EqualFold("transitGatewayRouteTableId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayRouteTableId = 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 awsEc2query_deserializeDocumentTransitGatewayRouteTableAnnouncementList(v *[]types.TransitGatewayRouteTableAnnouncement, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TransitGatewayRouteTableAnnouncement
- if *v == nil {
- sv = make([]types.TransitGatewayRouteTableAnnouncement, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TransitGatewayRouteTableAnnouncement
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTransitGatewayRouteTableAnnouncement(&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 awsEc2query_deserializeDocumentTransitGatewayRouteTableAnnouncementListUnwrapped(v *[]types.TransitGatewayRouteTableAnnouncement, decoder smithyxml.NodeDecoder) error {
- var sv []types.TransitGatewayRouteTableAnnouncement
- if *v == nil {
- sv = make([]types.TransitGatewayRouteTableAnnouncement, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TransitGatewayRouteTableAnnouncement
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTransitGatewayRouteTableAnnouncement(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTransitGatewayRouteTableAssociation(v **types.TransitGatewayRouteTableAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayRouteTableAssociation
- if *v == nil {
- sv = &types.TransitGatewayRouteTableAssociation{}
- } 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("resourceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceType = types.TransitGatewayAttachmentResourceType(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.TransitGatewayAssociationState(xtv)
- }
-
- case strings.EqualFold("transitGatewayAttachmentId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayAttachmentId = 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 awsEc2query_deserializeDocumentTransitGatewayRouteTableAssociationList(v *[]types.TransitGatewayRouteTableAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TransitGatewayRouteTableAssociation
- if *v == nil {
- sv = make([]types.TransitGatewayRouteTableAssociation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TransitGatewayRouteTableAssociation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTransitGatewayRouteTableAssociation(&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 awsEc2query_deserializeDocumentTransitGatewayRouteTableAssociationListUnwrapped(v *[]types.TransitGatewayRouteTableAssociation, decoder smithyxml.NodeDecoder) error {
- var sv []types.TransitGatewayRouteTableAssociation
- if *v == nil {
- sv = make([]types.TransitGatewayRouteTableAssociation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TransitGatewayRouteTableAssociation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTransitGatewayRouteTableAssociation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTransitGatewayRouteTableList(v *[]types.TransitGatewayRouteTable, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TransitGatewayRouteTable
- if *v == nil {
- sv = make([]types.TransitGatewayRouteTable, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TransitGatewayRouteTable
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTransitGatewayRouteTable(&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 awsEc2query_deserializeDocumentTransitGatewayRouteTableListUnwrapped(v *[]types.TransitGatewayRouteTable, decoder smithyxml.NodeDecoder) error {
- var sv []types.TransitGatewayRouteTable
- if *v == nil {
- sv = make([]types.TransitGatewayRouteTable, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TransitGatewayRouteTable
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTransitGatewayRouteTable(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTransitGatewayRouteTablePropagation(v **types.TransitGatewayRouteTablePropagation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayRouteTablePropagation
- if *v == nil {
- sv = &types.TransitGatewayRouteTablePropagation{}
- } 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("resourceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceType = types.TransitGatewayAttachmentResourceType(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.TransitGatewayPropagationState(xtv)
- }
-
- case strings.EqualFold("transitGatewayAttachmentId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayAttachmentId = ptr.String(xtv)
- }
-
- case strings.EqualFold("transitGatewayRouteTableAnnouncementId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayRouteTableAnnouncementId = 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 awsEc2query_deserializeDocumentTransitGatewayRouteTablePropagationList(v *[]types.TransitGatewayRouteTablePropagation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TransitGatewayRouteTablePropagation
- if *v == nil {
- sv = make([]types.TransitGatewayRouteTablePropagation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TransitGatewayRouteTablePropagation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTransitGatewayRouteTablePropagation(&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 awsEc2query_deserializeDocumentTransitGatewayRouteTablePropagationListUnwrapped(v *[]types.TransitGatewayRouteTablePropagation, decoder smithyxml.NodeDecoder) error {
- var sv []types.TransitGatewayRouteTablePropagation
- if *v == nil {
- sv = make([]types.TransitGatewayRouteTablePropagation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TransitGatewayRouteTablePropagation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTransitGatewayRouteTablePropagation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTransitGatewayRouteTableRoute(v **types.TransitGatewayRouteTableRoute, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayRouteTableRoute
- if *v == nil {
- sv = &types.TransitGatewayRouteTableRoute{}
- } 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("attachmentId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AttachmentId = ptr.String(xtv)
- }
-
- case strings.EqualFold("destinationCidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DestinationCidr = ptr.String(xtv)
- }
-
- case strings.EqualFold("prefixListId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PrefixListId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("resourceType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceType = ptr.String(xtv)
- }
-
- case strings.EqualFold("routeOrigin", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RouteOrigin = ptr.String(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 = 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 awsEc2query_deserializeDocumentTransitGatewayVpcAttachment(v **types.TransitGatewayVpcAttachment, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayVpcAttachment
- if *v == nil {
- sv = &types.TransitGatewayVpcAttachment{}
- } 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("creationTime", 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.CreationTime = ptr.Time(t)
- }
-
- case strings.EqualFold("options", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTransitGatewayVpcAttachmentOptions(&sv.Options, nodeDecoder); err != nil {
- return err
- }
-
- 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.TransitGatewayAttachmentState(xtv)
- }
-
- case strings.EqualFold("subnetIds", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.SubnetIds, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transitGatewayAttachmentId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayAttachmentId = ptr.String(xtv)
- }
-
- case strings.EqualFold("transitGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayId = ptr.String(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)
- }
-
- case strings.EqualFold("vpcOwnerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VpcOwnerId = 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 awsEc2query_deserializeDocumentTransitGatewayVpcAttachmentList(v *[]types.TransitGatewayVpcAttachment, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TransitGatewayVpcAttachment
- if *v == nil {
- sv = make([]types.TransitGatewayVpcAttachment, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TransitGatewayVpcAttachment
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTransitGatewayVpcAttachment(&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 awsEc2query_deserializeDocumentTransitGatewayVpcAttachmentListUnwrapped(v *[]types.TransitGatewayVpcAttachment, decoder smithyxml.NodeDecoder) error {
- var sv []types.TransitGatewayVpcAttachment
- if *v == nil {
- sv = make([]types.TransitGatewayVpcAttachment, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TransitGatewayVpcAttachment
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTransitGatewayVpcAttachment(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTransitGatewayVpcAttachmentOptions(v **types.TransitGatewayVpcAttachmentOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TransitGatewayVpcAttachmentOptions
- if *v == nil {
- sv = &types.TransitGatewayVpcAttachmentOptions{}
- } 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("applianceModeSupport", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ApplianceModeSupport = types.ApplianceModeSupportValue(xtv)
- }
-
- case strings.EqualFold("dnsSupport", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DnsSupport = types.DnsSupportValue(xtv)
- }
-
- case strings.EqualFold("ipv6Support", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Ipv6Support = types.Ipv6SupportValue(xtv)
- }
-
- case strings.EqualFold("securityGroupReferencingSupport", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SecurityGroupReferencingSupport = types.SecurityGroupReferencingSupportValue(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 awsEc2query_deserializeDocumentTrunkInterfaceAssociation(v **types.TrunkInterfaceAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TrunkInterfaceAssociation
- if *v == nil {
- sv = &types.TrunkInterfaceAssociation{}
- } 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("associationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AssociationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("branchInterfaceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.BranchInterfaceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("greKey", 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.GreKey = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("interfaceProtocol", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InterfaceProtocol = types.InterfaceProtocolType(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("trunkInterfaceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TrunkInterfaceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("vlanId", 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.VlanId = 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 awsEc2query_deserializeDocumentTrunkInterfaceAssociationList(v *[]types.TrunkInterfaceAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TrunkInterfaceAssociation
- if *v == nil {
- sv = make([]types.TrunkInterfaceAssociation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TrunkInterfaceAssociation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTrunkInterfaceAssociation(&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 awsEc2query_deserializeDocumentTrunkInterfaceAssociationListUnwrapped(v *[]types.TrunkInterfaceAssociation, decoder smithyxml.NodeDecoder) error {
- var sv []types.TrunkInterfaceAssociation
- if *v == nil {
- sv = make([]types.TrunkInterfaceAssociation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TrunkInterfaceAssociation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTrunkInterfaceAssociation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentTunnelOption(v **types.TunnelOption, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.TunnelOption
- if *v == nil {
- sv = &types.TunnelOption{}
- } 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("dpdTimeoutAction", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DpdTimeoutAction = ptr.String(xtv)
- }
-
- case strings.EqualFold("dpdTimeoutSeconds", 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.DpdTimeoutSeconds = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("enableTunnelLifecycleControl", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EnableTunnelLifecycleControl = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("ikeVersionSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIKEVersionsList(&sv.IkeVersions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("logOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVpnTunnelLogOptions(&sv.LogOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("outsideIpAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OutsideIpAddress = ptr.String(xtv)
- }
-
- case strings.EqualFold("phase1DHGroupNumberSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPhase1DHGroupNumbersList(&sv.Phase1DHGroupNumbers, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("phase1EncryptionAlgorithmSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPhase1EncryptionAlgorithmsList(&sv.Phase1EncryptionAlgorithms, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("phase1IntegrityAlgorithmSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPhase1IntegrityAlgorithmsList(&sv.Phase1IntegrityAlgorithms, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("phase1LifetimeSeconds", 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.Phase1LifetimeSeconds = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("phase2DHGroupNumberSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPhase2DHGroupNumbersList(&sv.Phase2DHGroupNumbers, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("phase2EncryptionAlgorithmSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPhase2EncryptionAlgorithmsList(&sv.Phase2EncryptionAlgorithms, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("phase2IntegrityAlgorithmSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentPhase2IntegrityAlgorithmsList(&sv.Phase2IntegrityAlgorithms, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("phase2LifetimeSeconds", 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.Phase2LifetimeSeconds = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("preSharedKey", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PreSharedKey = ptr.String(xtv)
- }
-
- case strings.EqualFold("rekeyFuzzPercentage", 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.RekeyFuzzPercentage = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("rekeyMarginTimeSeconds", 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.RekeyMarginTimeSeconds = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("replayWindowSize", 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.ReplayWindowSize = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("startupAction", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StartupAction = ptr.String(xtv)
- }
-
- case strings.EqualFold("tunnelInsideCidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TunnelInsideCidr = ptr.String(xtv)
- }
-
- case strings.EqualFold("tunnelInsideIpv6Cidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TunnelInsideIpv6Cidr = 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 awsEc2query_deserializeDocumentTunnelOptionsList(v *[]types.TunnelOption, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.TunnelOption
- if *v == nil {
- sv = make([]types.TunnelOption, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.TunnelOption
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentTunnelOption(&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 awsEc2query_deserializeDocumentTunnelOptionsListUnwrapped(v *[]types.TunnelOption, decoder smithyxml.NodeDecoder) error {
- var sv []types.TunnelOption
- if *v == nil {
- sv = make([]types.TunnelOption, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.TunnelOption
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentTunnelOption(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentUnsuccessfulInstanceCreditSpecificationItem(v **types.UnsuccessfulInstanceCreditSpecificationItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.UnsuccessfulInstanceCreditSpecificationItem
- if *v == nil {
- sv = &types.UnsuccessfulInstanceCreditSpecificationItem{}
- } 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("error", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentUnsuccessfulInstanceCreditSpecificationItemError(&sv.Error, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = 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 awsEc2query_deserializeDocumentUnsuccessfulInstanceCreditSpecificationItemError(v **types.UnsuccessfulInstanceCreditSpecificationItemError, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.UnsuccessfulInstanceCreditSpecificationItemError
- if *v == nil {
- sv = &types.UnsuccessfulInstanceCreditSpecificationItemError{}
- } 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.UnsuccessfulInstanceCreditSpecificationErrorCode(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentUnsuccessfulInstanceCreditSpecificationSet(v *[]types.UnsuccessfulInstanceCreditSpecificationItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.UnsuccessfulInstanceCreditSpecificationItem
- if *v == nil {
- sv = make([]types.UnsuccessfulInstanceCreditSpecificationItem, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.UnsuccessfulInstanceCreditSpecificationItem
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentUnsuccessfulInstanceCreditSpecificationItem(&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 awsEc2query_deserializeDocumentUnsuccessfulInstanceCreditSpecificationSetUnwrapped(v *[]types.UnsuccessfulInstanceCreditSpecificationItem, decoder smithyxml.NodeDecoder) error {
- var sv []types.UnsuccessfulInstanceCreditSpecificationItem
- if *v == nil {
- sv = make([]types.UnsuccessfulInstanceCreditSpecificationItem, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.UnsuccessfulInstanceCreditSpecificationItem
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentUnsuccessfulInstanceCreditSpecificationItem(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentUnsuccessfulItem(v **types.UnsuccessfulItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.UnsuccessfulItem
- if *v == nil {
- sv = &types.UnsuccessfulItem{}
- } 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("error", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentUnsuccessfulItemError(&sv.Error, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("resourceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceId = 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 awsEc2query_deserializeDocumentUnsuccessfulItemError(v **types.UnsuccessfulItemError, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.UnsuccessfulItemError
- if *v == nil {
- sv = &types.UnsuccessfulItemError{}
- } 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 = ptr.String(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentUnsuccessfulItemList(v *[]types.UnsuccessfulItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.UnsuccessfulItem
- if *v == nil {
- sv = make([]types.UnsuccessfulItem, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.UnsuccessfulItem
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentUnsuccessfulItem(&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 awsEc2query_deserializeDocumentUnsuccessfulItemListUnwrapped(v *[]types.UnsuccessfulItem, decoder smithyxml.NodeDecoder) error {
- var sv []types.UnsuccessfulItem
- if *v == nil {
- sv = make([]types.UnsuccessfulItem, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.UnsuccessfulItem
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentUnsuccessfulItem(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentUnsuccessfulItemSet(v *[]types.UnsuccessfulItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.UnsuccessfulItem
- if *v == nil {
- sv = make([]types.UnsuccessfulItem, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.UnsuccessfulItem
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentUnsuccessfulItem(&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 awsEc2query_deserializeDocumentUnsuccessfulItemSetUnwrapped(v *[]types.UnsuccessfulItem, decoder smithyxml.NodeDecoder) error {
- var sv []types.UnsuccessfulItem
- if *v == nil {
- sv = make([]types.UnsuccessfulItem, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.UnsuccessfulItem
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentUnsuccessfulItem(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentUsageClassTypeList(v *[]types.UsageClassType, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.UsageClassType
- if *v == nil {
- sv = make([]types.UsageClassType, 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("item", t.Name.Local):
- var col types.UsageClassType
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- col = types.UsageClassType(xtv)
- }
- sv = append(sv, col)
-
- default:
- err = decoder.Decoder.Skip()
- if err != nil {
- return err
- }
-
- }
- decoder = originalDecoder
- }
- *v = sv
- return nil
-}
-
-func awsEc2query_deserializeDocumentUsageClassTypeListUnwrapped(v *[]types.UsageClassType, decoder smithyxml.NodeDecoder) error {
- var sv []types.UsageClassType
- if *v == nil {
- sv = make([]types.UsageClassType, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.UsageClassType
- t := decoder.StartEl
- _ = t
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- mv = types.UsageClassType(xtv)
- }
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentUserBucketDetails(v **types.UserBucketDetails, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.UserBucketDetails
- if *v == nil {
- sv = &types.UserBucketDetails{}
- } 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("s3Bucket", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.S3Bucket = ptr.String(xtv)
- }
-
- case strings.EqualFold("s3Key", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.S3Key = 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 awsEc2query_deserializeDocumentUserIdGroupPair(v **types.UserIdGroupPair, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.UserIdGroupPair
- if *v == nil {
- sv = &types.UserIdGroupPair{}
- } 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("groupId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupId = ptr.String(xtv)
- }
-
- case strings.EqualFold("groupName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GroupName = ptr.String(xtv)
- }
-
- case strings.EqualFold("peeringStatus", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PeeringStatus = ptr.String(xtv)
- }
-
- case strings.EqualFold("userId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UserId = ptr.String(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)
- }
-
- case strings.EqualFold("vpcPeeringConnectionId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VpcPeeringConnectionId = 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 awsEc2query_deserializeDocumentUserIdGroupPairList(v *[]types.UserIdGroupPair, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.UserIdGroupPair
- if *v == nil {
- sv = make([]types.UserIdGroupPair, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.UserIdGroupPair
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentUserIdGroupPair(&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 awsEc2query_deserializeDocumentUserIdGroupPairListUnwrapped(v *[]types.UserIdGroupPair, decoder smithyxml.NodeDecoder) error {
- var sv []types.UserIdGroupPair
- if *v == nil {
- sv = make([]types.UserIdGroupPair, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.UserIdGroupPair
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentUserIdGroupPair(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentUserIdGroupPairSet(v *[]types.UserIdGroupPair, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.UserIdGroupPair
- if *v == nil {
- sv = make([]types.UserIdGroupPair, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.UserIdGroupPair
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentUserIdGroupPair(&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 awsEc2query_deserializeDocumentUserIdGroupPairSetUnwrapped(v *[]types.UserIdGroupPair, decoder smithyxml.NodeDecoder) error {
- var sv []types.UserIdGroupPair
- if *v == nil {
- sv = make([]types.UserIdGroupPair, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.UserIdGroupPair
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentUserIdGroupPair(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentValidationError(v **types.ValidationError, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ValidationError
- if *v == nil {
- sv = &types.ValidationError{}
- } 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 = ptr.String(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentValidationWarning(v **types.ValidationWarning, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.ValidationWarning
- if *v == nil {
- sv = &types.ValidationWarning{}
- } 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("errorSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentErrorSet(&sv.Errors, 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 awsEc2query_deserializeDocumentValueStringList(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("item", 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 awsEc2query_deserializeDocumentValueStringListUnwrapped(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 awsEc2query_deserializeDocumentVCpuCountRange(v **types.VCpuCountRange, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VCpuCountRange
- if *v == nil {
- sv = &types.VCpuCountRange{}
- } 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)
- i64, err := strconv.ParseInt(xtv, 10, 64)
- if err != nil {
- return err
- }
- sv.Max = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("min", 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.Min = 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 awsEc2query_deserializeDocumentVCpuInfo(v **types.VCpuInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VCpuInfo
- if *v == nil {
- sv = &types.VCpuInfo{}
- } 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("defaultCores", 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.DefaultCores = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("defaultThreadsPerCore", 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.DefaultThreadsPerCore = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("defaultVCpus", 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.DefaultVCpus = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("validCores", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentCoreCountList(&sv.ValidCores, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("validThreadsPerCore", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentThreadsPerCoreList(&sv.ValidThreadsPerCore, 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 awsEc2query_deserializeDocumentVerifiedAccessEndpoint(v **types.VerifiedAccessEndpoint, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VerifiedAccessEndpoint
- if *v == nil {
- sv = &types.VerifiedAccessEndpoint{}
- } 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("applicationDomain", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ApplicationDomain = ptr.String(xtv)
- }
-
- case strings.EqualFold("attachmentType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AttachmentType = types.VerifiedAccessEndpointAttachmentType(xtv)
- }
-
- case strings.EqualFold("cidrOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVerifiedAccessEndpointCidrOptions(&sv.CidrOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("creationTime", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CreationTime = ptr.String(xtv)
- }
-
- case strings.EqualFold("deletionTime", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DeletionTime = ptr.String(xtv)
- }
-
- 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("deviceValidationDomain", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DeviceValidationDomain = ptr.String(xtv)
- }
-
- case strings.EqualFold("domainCertificateArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DomainCertificateArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("endpointDomain", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EndpointDomain = ptr.String(xtv)
- }
-
- case strings.EqualFold("endpointType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EndpointType = types.VerifiedAccessEndpointType(xtv)
- }
-
- case strings.EqualFold("lastUpdatedTime", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LastUpdatedTime = ptr.String(xtv)
- }
-
- case strings.EqualFold("loadBalancerOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVerifiedAccessEndpointLoadBalancerOptions(&sv.LoadBalancerOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("networkInterfaceOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVerifiedAccessEndpointEniOptions(&sv.NetworkInterfaceOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("rdsOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVerifiedAccessEndpointRdsOptions(&sv.RdsOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("securityGroupIdSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSecurityGroupIdList(&sv.SecurityGroupIds, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("sseSpecification", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVerifiedAccessSseSpecificationResponse(&sv.SseSpecification, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("status", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVerifiedAccessEndpointStatus(&sv.Status, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("verifiedAccessEndpointId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VerifiedAccessEndpointId = ptr.String(xtv)
- }
-
- case strings.EqualFold("verifiedAccessGroupId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VerifiedAccessGroupId = ptr.String(xtv)
- }
-
- case strings.EqualFold("verifiedAccessInstanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VerifiedAccessInstanceId = 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 awsEc2query_deserializeDocumentVerifiedAccessEndpointCidrOptions(v **types.VerifiedAccessEndpointCidrOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VerifiedAccessEndpointCidrOptions
- if *v == nil {
- sv = &types.VerifiedAccessEndpointCidrOptions{}
- } 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("cidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Cidr = ptr.String(xtv)
- }
-
- case strings.EqualFold("portRangeSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVerifiedAccessEndpointPortRangeList(&sv.PortRanges, nodeDecoder); err != nil {
- return err
- }
-
- 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.VerifiedAccessEndpointProtocol(xtv)
- }
-
- case strings.EqualFold("subnetIdSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVerifiedAccessEndpointSubnetIdList(&sv.SubnetIds, 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 awsEc2query_deserializeDocumentVerifiedAccessEndpointEniOptions(v **types.VerifiedAccessEndpointEniOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VerifiedAccessEndpointEniOptions
- if *v == nil {
- sv = &types.VerifiedAccessEndpointEniOptions{}
- } 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("networkInterfaceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkInterfaceId = 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("portRangeSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVerifiedAccessEndpointPortRangeList(&sv.PortRanges, nodeDecoder); err != nil {
- return err
- }
-
- 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.VerifiedAccessEndpointProtocol(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 awsEc2query_deserializeDocumentVerifiedAccessEndpointList(v *[]types.VerifiedAccessEndpoint, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VerifiedAccessEndpoint
- if *v == nil {
- sv = make([]types.VerifiedAccessEndpoint, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VerifiedAccessEndpoint
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVerifiedAccessEndpoint(&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 awsEc2query_deserializeDocumentVerifiedAccessEndpointListUnwrapped(v *[]types.VerifiedAccessEndpoint, decoder smithyxml.NodeDecoder) error {
- var sv []types.VerifiedAccessEndpoint
- if *v == nil {
- sv = make([]types.VerifiedAccessEndpoint, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VerifiedAccessEndpoint
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVerifiedAccessEndpoint(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVerifiedAccessEndpointLoadBalancerOptions(v **types.VerifiedAccessEndpointLoadBalancerOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VerifiedAccessEndpointLoadBalancerOptions
- if *v == nil {
- sv = &types.VerifiedAccessEndpointLoadBalancerOptions{}
- } 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("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("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("portRangeSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVerifiedAccessEndpointPortRangeList(&sv.PortRanges, nodeDecoder); err != nil {
- return err
- }
-
- 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.VerifiedAccessEndpointProtocol(xtv)
- }
-
- case strings.EqualFold("subnetIdSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVerifiedAccessEndpointSubnetIdList(&sv.SubnetIds, 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 awsEc2query_deserializeDocumentVerifiedAccessEndpointPortRange(v **types.VerifiedAccessEndpointPortRange, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VerifiedAccessEndpointPortRange
- if *v == nil {
- sv = &types.VerifiedAccessEndpointPortRange{}
- } 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("fromPort", 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.FromPort = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("toPort", 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.ToPort = 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 awsEc2query_deserializeDocumentVerifiedAccessEndpointPortRangeList(v *[]types.VerifiedAccessEndpointPortRange, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VerifiedAccessEndpointPortRange
- if *v == nil {
- sv = make([]types.VerifiedAccessEndpointPortRange, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VerifiedAccessEndpointPortRange
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVerifiedAccessEndpointPortRange(&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 awsEc2query_deserializeDocumentVerifiedAccessEndpointPortRangeListUnwrapped(v *[]types.VerifiedAccessEndpointPortRange, decoder smithyxml.NodeDecoder) error {
- var sv []types.VerifiedAccessEndpointPortRange
- if *v == nil {
- sv = make([]types.VerifiedAccessEndpointPortRange, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VerifiedAccessEndpointPortRange
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVerifiedAccessEndpointPortRange(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVerifiedAccessEndpointRdsOptions(v **types.VerifiedAccessEndpointRdsOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VerifiedAccessEndpointRdsOptions
- if *v == nil {
- sv = &types.VerifiedAccessEndpointRdsOptions{}
- } 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("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.VerifiedAccessEndpointProtocol(xtv)
- }
-
- case strings.EqualFold("rdsDbClusterArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RdsDbClusterArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("rdsDbInstanceArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RdsDbInstanceArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("rdsDbProxyArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RdsDbProxyArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("rdsEndpoint", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RdsEndpoint = ptr.String(xtv)
- }
-
- case strings.EqualFold("subnetIdSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVerifiedAccessEndpointSubnetIdList(&sv.SubnetIds, 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 awsEc2query_deserializeDocumentVerifiedAccessEndpointStatus(v **types.VerifiedAccessEndpointStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VerifiedAccessEndpointStatus
- if *v == nil {
- sv = &types.VerifiedAccessEndpointStatus{}
- } 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.VerifiedAccessEndpointStatusCode(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentVerifiedAccessEndpointSubnetIdList(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("item", 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 awsEc2query_deserializeDocumentVerifiedAccessEndpointSubnetIdListUnwrapped(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 awsEc2query_deserializeDocumentVerifiedAccessEndpointTarget(v **types.VerifiedAccessEndpointTarget, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VerifiedAccessEndpointTarget
- if *v == nil {
- sv = &types.VerifiedAccessEndpointTarget{}
- } 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("verifiedAccessEndpointId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VerifiedAccessEndpointId = ptr.String(xtv)
- }
-
- case strings.EqualFold("verifiedAccessEndpointTargetDns", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VerifiedAccessEndpointTargetDns = ptr.String(xtv)
- }
-
- case strings.EqualFold("verifiedAccessEndpointTargetIpAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VerifiedAccessEndpointTargetIpAddress = 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 awsEc2query_deserializeDocumentVerifiedAccessEndpointTargetList(v *[]types.VerifiedAccessEndpointTarget, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VerifiedAccessEndpointTarget
- if *v == nil {
- sv = make([]types.VerifiedAccessEndpointTarget, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VerifiedAccessEndpointTarget
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVerifiedAccessEndpointTarget(&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 awsEc2query_deserializeDocumentVerifiedAccessEndpointTargetListUnwrapped(v *[]types.VerifiedAccessEndpointTarget, decoder smithyxml.NodeDecoder) error {
- var sv []types.VerifiedAccessEndpointTarget
- if *v == nil {
- sv = make([]types.VerifiedAccessEndpointTarget, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VerifiedAccessEndpointTarget
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVerifiedAccessEndpointTarget(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVerifiedAccessGroup(v **types.VerifiedAccessGroup, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VerifiedAccessGroup
- if *v == nil {
- sv = &types.VerifiedAccessGroup{}
- } 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("creationTime", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CreationTime = ptr.String(xtv)
- }
-
- case strings.EqualFold("deletionTime", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DeletionTime = ptr.String(xtv)
- }
-
- 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("lastUpdatedTime", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LastUpdatedTime = ptr.String(xtv)
- }
-
- case strings.EqualFold("owner", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Owner = ptr.String(xtv)
- }
-
- case strings.EqualFold("sseSpecification", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVerifiedAccessSseSpecificationResponse(&sv.SseSpecification, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("verifiedAccessGroupArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VerifiedAccessGroupArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("verifiedAccessGroupId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VerifiedAccessGroupId = ptr.String(xtv)
- }
-
- case strings.EqualFold("verifiedAccessInstanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VerifiedAccessInstanceId = 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 awsEc2query_deserializeDocumentVerifiedAccessGroupList(v *[]types.VerifiedAccessGroup, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VerifiedAccessGroup
- if *v == nil {
- sv = make([]types.VerifiedAccessGroup, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VerifiedAccessGroup
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVerifiedAccessGroup(&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 awsEc2query_deserializeDocumentVerifiedAccessGroupListUnwrapped(v *[]types.VerifiedAccessGroup, decoder smithyxml.NodeDecoder) error {
- var sv []types.VerifiedAccessGroup
- if *v == nil {
- sv = make([]types.VerifiedAccessGroup, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VerifiedAccessGroup
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVerifiedAccessGroup(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVerifiedAccessInstance(v **types.VerifiedAccessInstance, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VerifiedAccessInstance
- if *v == nil {
- sv = &types.VerifiedAccessInstance{}
- } 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("cidrEndpointsCustomSubDomain", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVerifiedAccessInstanceCustomSubDomain(&sv.CidrEndpointsCustomSubDomain, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("creationTime", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CreationTime = ptr.String(xtv)
- }
-
- 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("fipsEnabled", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.FipsEnabled = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("lastUpdatedTime", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LastUpdatedTime = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("verifiedAccessInstanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VerifiedAccessInstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("verifiedAccessTrustProviderSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVerifiedAccessTrustProviderCondensedList(&sv.VerifiedAccessTrustProviders, 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 awsEc2query_deserializeDocumentVerifiedAccessInstanceCustomSubDomain(v **types.VerifiedAccessInstanceCustomSubDomain, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VerifiedAccessInstanceCustomSubDomain
- if *v == nil {
- sv = &types.VerifiedAccessInstanceCustomSubDomain{}
- } 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("nameserverSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.Nameservers, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("subDomain", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SubDomain = 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 awsEc2query_deserializeDocumentVerifiedAccessInstanceList(v *[]types.VerifiedAccessInstance, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VerifiedAccessInstance
- if *v == nil {
- sv = make([]types.VerifiedAccessInstance, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VerifiedAccessInstance
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVerifiedAccessInstance(&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 awsEc2query_deserializeDocumentVerifiedAccessInstanceListUnwrapped(v *[]types.VerifiedAccessInstance, decoder smithyxml.NodeDecoder) error {
- var sv []types.VerifiedAccessInstance
- if *v == nil {
- sv = make([]types.VerifiedAccessInstance, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VerifiedAccessInstance
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVerifiedAccessInstance(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVerifiedAccessInstanceLoggingConfiguration(v **types.VerifiedAccessInstanceLoggingConfiguration, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VerifiedAccessInstanceLoggingConfiguration
- if *v == nil {
- sv = &types.VerifiedAccessInstanceLoggingConfiguration{}
- } 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("accessLogs", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVerifiedAccessLogs(&sv.AccessLogs, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("verifiedAccessInstanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VerifiedAccessInstanceId = 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 awsEc2query_deserializeDocumentVerifiedAccessInstanceLoggingConfigurationList(v *[]types.VerifiedAccessInstanceLoggingConfiguration, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VerifiedAccessInstanceLoggingConfiguration
- if *v == nil {
- sv = make([]types.VerifiedAccessInstanceLoggingConfiguration, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VerifiedAccessInstanceLoggingConfiguration
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVerifiedAccessInstanceLoggingConfiguration(&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 awsEc2query_deserializeDocumentVerifiedAccessInstanceLoggingConfigurationListUnwrapped(v *[]types.VerifiedAccessInstanceLoggingConfiguration, decoder smithyxml.NodeDecoder) error {
- var sv []types.VerifiedAccessInstanceLoggingConfiguration
- if *v == nil {
- sv = make([]types.VerifiedAccessInstanceLoggingConfiguration, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VerifiedAccessInstanceLoggingConfiguration
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVerifiedAccessInstanceLoggingConfiguration(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVerifiedAccessInstanceOpenVpnClientConfiguration(v **types.VerifiedAccessInstanceOpenVpnClientConfiguration, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VerifiedAccessInstanceOpenVpnClientConfiguration
- if *v == nil {
- sv = &types.VerifiedAccessInstanceOpenVpnClientConfiguration{}
- } 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("config", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Config = ptr.String(xtv)
- }
-
- case strings.EqualFold("routeSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVerifiedAccessInstanceOpenVpnClientConfigurationRouteList(&sv.Routes, 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 awsEc2query_deserializeDocumentVerifiedAccessInstanceOpenVpnClientConfigurationList(v *[]types.VerifiedAccessInstanceOpenVpnClientConfiguration, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VerifiedAccessInstanceOpenVpnClientConfiguration
- if *v == nil {
- sv = make([]types.VerifiedAccessInstanceOpenVpnClientConfiguration, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VerifiedAccessInstanceOpenVpnClientConfiguration
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVerifiedAccessInstanceOpenVpnClientConfiguration(&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 awsEc2query_deserializeDocumentVerifiedAccessInstanceOpenVpnClientConfigurationListUnwrapped(v *[]types.VerifiedAccessInstanceOpenVpnClientConfiguration, decoder smithyxml.NodeDecoder) error {
- var sv []types.VerifiedAccessInstanceOpenVpnClientConfiguration
- if *v == nil {
- sv = make([]types.VerifiedAccessInstanceOpenVpnClientConfiguration, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VerifiedAccessInstanceOpenVpnClientConfiguration
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVerifiedAccessInstanceOpenVpnClientConfiguration(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVerifiedAccessInstanceOpenVpnClientConfigurationRoute(v **types.VerifiedAccessInstanceOpenVpnClientConfigurationRoute, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VerifiedAccessInstanceOpenVpnClientConfigurationRoute
- if *v == nil {
- sv = &types.VerifiedAccessInstanceOpenVpnClientConfigurationRoute{}
- } 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("cidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Cidr = 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 awsEc2query_deserializeDocumentVerifiedAccessInstanceOpenVpnClientConfigurationRouteList(v *[]types.VerifiedAccessInstanceOpenVpnClientConfigurationRoute, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VerifiedAccessInstanceOpenVpnClientConfigurationRoute
- if *v == nil {
- sv = make([]types.VerifiedAccessInstanceOpenVpnClientConfigurationRoute, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VerifiedAccessInstanceOpenVpnClientConfigurationRoute
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVerifiedAccessInstanceOpenVpnClientConfigurationRoute(&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 awsEc2query_deserializeDocumentVerifiedAccessInstanceOpenVpnClientConfigurationRouteListUnwrapped(v *[]types.VerifiedAccessInstanceOpenVpnClientConfigurationRoute, decoder smithyxml.NodeDecoder) error {
- var sv []types.VerifiedAccessInstanceOpenVpnClientConfigurationRoute
- if *v == nil {
- sv = make([]types.VerifiedAccessInstanceOpenVpnClientConfigurationRoute, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VerifiedAccessInstanceOpenVpnClientConfigurationRoute
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVerifiedAccessInstanceOpenVpnClientConfigurationRoute(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVerifiedAccessInstanceUserTrustProviderClientConfiguration(v **types.VerifiedAccessInstanceUserTrustProviderClientConfiguration, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VerifiedAccessInstanceUserTrustProviderClientConfiguration
- if *v == nil {
- sv = &types.VerifiedAccessInstanceUserTrustProviderClientConfiguration{}
- } 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("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("pkceEnabled", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.PkceEnabled = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("publicSigningKeyEndpoint", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PublicSigningKeyEndpoint = ptr.String(xtv)
- }
-
- case strings.EqualFold("scopes", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Scopes = ptr.String(xtv)
- }
-
- 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("type", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Type = types.UserTrustProviderType(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 awsEc2query_deserializeDocumentVerifiedAccessLogCloudWatchLogsDestination(v **types.VerifiedAccessLogCloudWatchLogsDestination, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VerifiedAccessLogCloudWatchLogsDestination
- if *v == nil {
- sv = &types.VerifiedAccessLogCloudWatchLogsDestination{}
- } 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("deliveryStatus", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVerifiedAccessLogDeliveryStatus(&sv.DeliveryStatus, nodeDecoder); err != nil {
- return err
- }
-
- 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Enabled = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("logGroup", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LogGroup = 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 awsEc2query_deserializeDocumentVerifiedAccessLogDeliveryStatus(v **types.VerifiedAccessLogDeliveryStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VerifiedAccessLogDeliveryStatus
- if *v == nil {
- sv = &types.VerifiedAccessLogDeliveryStatus{}
- } 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.VerifiedAccessLogDeliveryStatusCode(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentVerifiedAccessLogKinesisDataFirehoseDestination(v **types.VerifiedAccessLogKinesisDataFirehoseDestination, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VerifiedAccessLogKinesisDataFirehoseDestination
- if *v == nil {
- sv = &types.VerifiedAccessLogKinesisDataFirehoseDestination{}
- } 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("deliveryStatus", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVerifiedAccessLogDeliveryStatus(&sv.DeliveryStatus, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("deliveryStream", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DeliveryStream = ptr.String(xtv)
- }
-
- 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 Boolean 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 awsEc2query_deserializeDocumentVerifiedAccessLogs(v **types.VerifiedAccessLogs, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VerifiedAccessLogs
- if *v == nil {
- sv = &types.VerifiedAccessLogs{}
- } 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("cloudWatchLogs", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVerifiedAccessLogCloudWatchLogsDestination(&sv.CloudWatchLogs, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("includeTrustContext", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.IncludeTrustContext = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("kinesisDataFirehose", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVerifiedAccessLogKinesisDataFirehoseDestination(&sv.KinesisDataFirehose, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("logVersion", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LogVersion = ptr.String(xtv)
- }
-
- case strings.EqualFold("s3", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVerifiedAccessLogS3Destination(&sv.S3, 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 awsEc2query_deserializeDocumentVerifiedAccessLogS3Destination(v **types.VerifiedAccessLogS3Destination, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VerifiedAccessLogS3Destination
- if *v == nil {
- sv = &types.VerifiedAccessLogS3Destination{}
- } 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("bucketName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.BucketName = ptr.String(xtv)
- }
-
- case strings.EqualFold("bucketOwner", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.BucketOwner = ptr.String(xtv)
- }
-
- case strings.EqualFold("deliveryStatus", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVerifiedAccessLogDeliveryStatus(&sv.DeliveryStatus, nodeDecoder); err != nil {
- return err
- }
-
- 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Enabled = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("prefix", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Prefix = 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 awsEc2query_deserializeDocumentVerifiedAccessSseSpecificationResponse(v **types.VerifiedAccessSseSpecificationResponse, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VerifiedAccessSseSpecificationResponse
- if *v == nil {
- sv = &types.VerifiedAccessSseSpecificationResponse{}
- } 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("customerManagedKeyEnabled", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.CustomerManagedKeyEnabled = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("kmsKeyArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.KmsKeyArn = 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 awsEc2query_deserializeDocumentVerifiedAccessTrustProvider(v **types.VerifiedAccessTrustProvider, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VerifiedAccessTrustProvider
- if *v == nil {
- sv = &types.VerifiedAccessTrustProvider{}
- } 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("creationTime", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CreationTime = ptr.String(xtv)
- }
-
- 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("deviceOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentDeviceOptions(&sv.DeviceOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("deviceTrustProviderType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DeviceTrustProviderType = types.DeviceTrustProviderType(xtv)
- }
-
- case strings.EqualFold("lastUpdatedTime", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LastUpdatedTime = ptr.String(xtv)
- }
-
- case strings.EqualFold("nativeApplicationOidcOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentNativeApplicationOidcOptions(&sv.NativeApplicationOidcOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("oidcOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentOidcOptions(&sv.OidcOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("policyReferenceName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PolicyReferenceName = ptr.String(xtv)
- }
-
- case strings.EqualFold("sseSpecification", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVerifiedAccessSseSpecificationResponse(&sv.SseSpecification, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("trustProviderType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TrustProviderType = types.TrustProviderType(xtv)
- }
-
- case strings.EqualFold("userTrustProviderType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UserTrustProviderType = types.UserTrustProviderType(xtv)
- }
-
- case strings.EqualFold("verifiedAccessTrustProviderId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VerifiedAccessTrustProviderId = 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 awsEc2query_deserializeDocumentVerifiedAccessTrustProviderCondensed(v **types.VerifiedAccessTrustProviderCondensed, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VerifiedAccessTrustProviderCondensed
- if *v == nil {
- sv = &types.VerifiedAccessTrustProviderCondensed{}
- } 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("deviceTrustProviderType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DeviceTrustProviderType = types.DeviceTrustProviderType(xtv)
- }
-
- case strings.EqualFold("trustProviderType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TrustProviderType = types.TrustProviderType(xtv)
- }
-
- case strings.EqualFold("userTrustProviderType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.UserTrustProviderType = types.UserTrustProviderType(xtv)
- }
-
- case strings.EqualFold("verifiedAccessTrustProviderId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VerifiedAccessTrustProviderId = 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 awsEc2query_deserializeDocumentVerifiedAccessTrustProviderCondensedList(v *[]types.VerifiedAccessTrustProviderCondensed, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VerifiedAccessTrustProviderCondensed
- if *v == nil {
- sv = make([]types.VerifiedAccessTrustProviderCondensed, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VerifiedAccessTrustProviderCondensed
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVerifiedAccessTrustProviderCondensed(&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 awsEc2query_deserializeDocumentVerifiedAccessTrustProviderCondensedListUnwrapped(v *[]types.VerifiedAccessTrustProviderCondensed, decoder smithyxml.NodeDecoder) error {
- var sv []types.VerifiedAccessTrustProviderCondensed
- if *v == nil {
- sv = make([]types.VerifiedAccessTrustProviderCondensed, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VerifiedAccessTrustProviderCondensed
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVerifiedAccessTrustProviderCondensed(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVerifiedAccessTrustProviderList(v *[]types.VerifiedAccessTrustProvider, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VerifiedAccessTrustProvider
- if *v == nil {
- sv = make([]types.VerifiedAccessTrustProvider, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VerifiedAccessTrustProvider
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVerifiedAccessTrustProvider(&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 awsEc2query_deserializeDocumentVerifiedAccessTrustProviderListUnwrapped(v *[]types.VerifiedAccessTrustProvider, decoder smithyxml.NodeDecoder) error {
- var sv []types.VerifiedAccessTrustProvider
- if *v == nil {
- sv = make([]types.VerifiedAccessTrustProvider, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VerifiedAccessTrustProvider
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVerifiedAccessTrustProvider(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVgwTelemetry(v **types.VgwTelemetry, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VgwTelemetry
- if *v == nil {
- sv = &types.VgwTelemetry{}
- } 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("acceptedRouteCount", 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.AcceptedRouteCount = ptr.Int32(int32(i64))
- }
-
- 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("lastStatusChange", 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.LastStatusChange = ptr.Time(t)
- }
-
- case strings.EqualFold("outsideIpAddress", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OutsideIpAddress = ptr.String(xtv)
- }
-
- 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.TelemetryStatus(xtv)
- }
-
- case strings.EqualFold("statusMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StatusMessage = 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 awsEc2query_deserializeDocumentVgwTelemetryList(v *[]types.VgwTelemetry, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VgwTelemetry
- if *v == nil {
- sv = make([]types.VgwTelemetry, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VgwTelemetry
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVgwTelemetry(&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 awsEc2query_deserializeDocumentVgwTelemetryListUnwrapped(v *[]types.VgwTelemetry, decoder smithyxml.NodeDecoder) error {
- var sv []types.VgwTelemetry
- if *v == nil {
- sv = make([]types.VgwTelemetry, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VgwTelemetry
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVgwTelemetry(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVirtualizationTypeList(v *[]types.VirtualizationType, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VirtualizationType
- if *v == nil {
- sv = make([]types.VirtualizationType, 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("item", t.Name.Local):
- var col types.VirtualizationType
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- col = types.VirtualizationType(xtv)
- }
- sv = append(sv, col)
-
- default:
- err = decoder.Decoder.Skip()
- if err != nil {
- return err
- }
-
- }
- decoder = originalDecoder
- }
- *v = sv
- return nil
-}
-
-func awsEc2query_deserializeDocumentVirtualizationTypeListUnwrapped(v *[]types.VirtualizationType, decoder smithyxml.NodeDecoder) error {
- var sv []types.VirtualizationType
- if *v == nil {
- sv = make([]types.VirtualizationType, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VirtualizationType
- t := decoder.StartEl
- _ = t
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- mv = types.VirtualizationType(xtv)
- }
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVolume(v **types.Volume, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Volume
- if *v == nil {
- sv = &types.Volume{}
- } 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("attachmentSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVolumeAttachmentList(&sv.Attachments, nodeDecoder); err != nil {
- return err
- }
-
- 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("createTime", 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.CreateTime = ptr.Time(t)
- }
-
- case strings.EqualFold("encrypted", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.Encrypted = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("fastRestored", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.FastRestored = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("iops", 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.Iops = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("kmsKeyId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.KmsKeyId = ptr.String(xtv)
- }
-
- case strings.EqualFold("multiAttachEnabled", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.MultiAttachEnabled = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("operator", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("outpostArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OutpostArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("size", 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.Size = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("snapshotId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SnapshotId = ptr.String(xtv)
- }
-
- case strings.EqualFold("sseType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.SseType = types.SSEType(xtv)
- }
-
- case strings.EqualFold("status", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.State = types.VolumeState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("throughput", 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.Throughput = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("volumeId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VolumeId = ptr.String(xtv)
- }
-
- case strings.EqualFold("volumeInitializationRate", 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.VolumeInitializationRate = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("volumeType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VolumeType = types.VolumeType(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 awsEc2query_deserializeDocumentVolumeAttachment(v **types.VolumeAttachment, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VolumeAttachment
- if *v == nil {
- sv = &types.VolumeAttachment{}
- } 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("associatedResource", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AssociatedResource = ptr.String(xtv)
- }
-
- case strings.EqualFold("attachTime", 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.AttachTime = ptr.Time(t)
- }
-
- case strings.EqualFold("deleteOnTermination", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.DeleteOnTermination = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("device", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Device = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceOwningService", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceOwningService = ptr.String(xtv)
- }
-
- case strings.EqualFold("status", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.State = types.VolumeAttachmentState(xtv)
- }
-
- case strings.EqualFold("volumeId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VolumeId = 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 awsEc2query_deserializeDocumentVolumeAttachmentList(v *[]types.VolumeAttachment, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VolumeAttachment
- if *v == nil {
- sv = make([]types.VolumeAttachment, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VolumeAttachment
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVolumeAttachment(&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 awsEc2query_deserializeDocumentVolumeAttachmentListUnwrapped(v *[]types.VolumeAttachment, decoder smithyxml.NodeDecoder) error {
- var sv []types.VolumeAttachment
- if *v == nil {
- sv = make([]types.VolumeAttachment, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VolumeAttachment
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVolumeAttachment(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVolumeList(v *[]types.Volume, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Volume
- if *v == nil {
- sv = make([]types.Volume, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Volume
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVolume(&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 awsEc2query_deserializeDocumentVolumeListUnwrapped(v *[]types.Volume, decoder smithyxml.NodeDecoder) error {
- var sv []types.Volume
- if *v == nil {
- sv = make([]types.Volume, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Volume
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVolume(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVolumeModification(v **types.VolumeModification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VolumeModification
- if *v == nil {
- sv = &types.VolumeModification{}
- } 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("endTime", 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.EndTime = ptr.Time(t)
- }
-
- case strings.EqualFold("modificationState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ModificationState = types.VolumeModificationState(xtv)
- }
-
- case strings.EqualFold("originalIops", 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.OriginalIops = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("originalMultiAttachEnabled", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.OriginalMultiAttachEnabled = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("originalSize", 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.OriginalSize = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("originalThroughput", 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.OriginalThroughput = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("originalVolumeType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OriginalVolumeType = types.VolumeType(xtv)
- }
-
- case strings.EqualFold("progress", 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.Progress = ptr.Int64(i64)
- }
-
- case strings.EqualFold("startTime", 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.StartTime = ptr.Time(t)
- }
-
- case strings.EqualFold("statusMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StatusMessage = ptr.String(xtv)
- }
-
- case strings.EqualFold("targetIops", 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.TargetIops = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("targetMultiAttachEnabled", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.TargetMultiAttachEnabled = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("targetSize", 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.TargetSize = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("targetThroughput", 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.TargetThroughput = ptr.Int32(int32(i64))
- }
-
- case strings.EqualFold("targetVolumeType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TargetVolumeType = types.VolumeType(xtv)
- }
-
- case strings.EqualFold("volumeId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VolumeId = 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 awsEc2query_deserializeDocumentVolumeModificationList(v *[]types.VolumeModification, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VolumeModification
- if *v == nil {
- sv = make([]types.VolumeModification, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VolumeModification
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVolumeModification(&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 awsEc2query_deserializeDocumentVolumeModificationListUnwrapped(v *[]types.VolumeModification, decoder smithyxml.NodeDecoder) error {
- var sv []types.VolumeModification
- if *v == nil {
- sv = make([]types.VolumeModification, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VolumeModification
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVolumeModification(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVolumeStatusAction(v **types.VolumeStatusAction, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VolumeStatusAction
- if *v == nil {
- sv = &types.VolumeStatusAction{}
- } 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 = ptr.String(xtv)
- }
-
- 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("eventId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EventId = ptr.String(xtv)
- }
-
- case strings.EqualFold("eventType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EventType = 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 awsEc2query_deserializeDocumentVolumeStatusActionsList(v *[]types.VolumeStatusAction, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VolumeStatusAction
- if *v == nil {
- sv = make([]types.VolumeStatusAction, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VolumeStatusAction
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVolumeStatusAction(&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 awsEc2query_deserializeDocumentVolumeStatusActionsListUnwrapped(v *[]types.VolumeStatusAction, decoder smithyxml.NodeDecoder) error {
- var sv []types.VolumeStatusAction
- if *v == nil {
- sv = make([]types.VolumeStatusAction, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VolumeStatusAction
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVolumeStatusAction(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVolumeStatusAttachmentStatus(v **types.VolumeStatusAttachmentStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VolumeStatusAttachmentStatus
- if *v == nil {
- sv = &types.VolumeStatusAttachmentStatus{}
- } 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("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ioPerformance", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IoPerformance = 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 awsEc2query_deserializeDocumentVolumeStatusAttachmentStatusList(v *[]types.VolumeStatusAttachmentStatus, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VolumeStatusAttachmentStatus
- if *v == nil {
- sv = make([]types.VolumeStatusAttachmentStatus, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VolumeStatusAttachmentStatus
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVolumeStatusAttachmentStatus(&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 awsEc2query_deserializeDocumentVolumeStatusAttachmentStatusListUnwrapped(v *[]types.VolumeStatusAttachmentStatus, decoder smithyxml.NodeDecoder) error {
- var sv []types.VolumeStatusAttachmentStatus
- if *v == nil {
- sv = make([]types.VolumeStatusAttachmentStatus, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VolumeStatusAttachmentStatus
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVolumeStatusAttachmentStatus(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVolumeStatusDetails(v **types.VolumeStatusDetails, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VolumeStatusDetails
- if *v == nil {
- sv = &types.VolumeStatusDetails{}
- } 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 = types.VolumeStatusName(xtv)
- }
-
- 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 = 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 awsEc2query_deserializeDocumentVolumeStatusDetailsList(v *[]types.VolumeStatusDetails, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VolumeStatusDetails
- if *v == nil {
- sv = make([]types.VolumeStatusDetails, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VolumeStatusDetails
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVolumeStatusDetails(&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 awsEc2query_deserializeDocumentVolumeStatusDetailsListUnwrapped(v *[]types.VolumeStatusDetails, decoder smithyxml.NodeDecoder) error {
- var sv []types.VolumeStatusDetails
- if *v == nil {
- sv = make([]types.VolumeStatusDetails, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VolumeStatusDetails
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVolumeStatusDetails(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVolumeStatusEvent(v **types.VolumeStatusEvent, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VolumeStatusEvent
- if *v == nil {
- sv = &types.VolumeStatusEvent{}
- } 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("eventId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EventId = ptr.String(xtv)
- }
-
- case strings.EqualFold("eventType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.EventType = ptr.String(xtv)
- }
-
- case strings.EqualFold("instanceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("notAfter", 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.NotAfter = ptr.Time(t)
- }
-
- case strings.EqualFold("notBefore", 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.NotBefore = ptr.Time(t)
- }
-
- 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 awsEc2query_deserializeDocumentVolumeStatusEventsList(v *[]types.VolumeStatusEvent, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VolumeStatusEvent
- if *v == nil {
- sv = make([]types.VolumeStatusEvent, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VolumeStatusEvent
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVolumeStatusEvent(&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 awsEc2query_deserializeDocumentVolumeStatusEventsListUnwrapped(v *[]types.VolumeStatusEvent, decoder smithyxml.NodeDecoder) error {
- var sv []types.VolumeStatusEvent
- if *v == nil {
- sv = make([]types.VolumeStatusEvent, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VolumeStatusEvent
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVolumeStatusEvent(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVolumeStatusInfo(v **types.VolumeStatusInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VolumeStatusInfo
- if *v == nil {
- sv = &types.VolumeStatusInfo{}
- } 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("details", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVolumeStatusDetailsList(&sv.Details, nodeDecoder); err != nil {
- return err
- }
-
- 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.VolumeStatusInfoStatus(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 awsEc2query_deserializeDocumentVolumeStatusItem(v **types.VolumeStatusItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VolumeStatusItem
- if *v == nil {
- sv = &types.VolumeStatusItem{}
- } 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("actionsSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVolumeStatusActionsList(&sv.Actions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("attachmentStatuses", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVolumeStatusAttachmentStatusList(&sv.AttachmentStatuses, nodeDecoder); err != nil {
- return err
- }
-
- 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("availabilityZoneId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AvailabilityZoneId = ptr.String(xtv)
- }
-
- case strings.EqualFold("eventsSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVolumeStatusEventsList(&sv.Events, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("initializationStatusDetails", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentInitializationStatusDetails(&sv.InitializationStatusDetails, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("outpostArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OutpostArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("volumeId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VolumeId = ptr.String(xtv)
- }
-
- case strings.EqualFold("volumeStatus", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVolumeStatusInfo(&sv.VolumeStatus, 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 awsEc2query_deserializeDocumentVolumeStatusList(v *[]types.VolumeStatusItem, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VolumeStatusItem
- if *v == nil {
- sv = make([]types.VolumeStatusItem, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VolumeStatusItem
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVolumeStatusItem(&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 awsEc2query_deserializeDocumentVolumeStatusListUnwrapped(v *[]types.VolumeStatusItem, decoder smithyxml.NodeDecoder) error {
- var sv []types.VolumeStatusItem
- if *v == nil {
- sv = make([]types.VolumeStatusItem, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VolumeStatusItem
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVolumeStatusItem(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVpc(v **types.Vpc, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.Vpc
- if *v == nil {
- sv = &types.Vpc{}
- } 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("blockPublicAccessStates", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentBlockPublicAccessStates(&sv.BlockPublicAccessStates, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("cidrBlock", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CidrBlock = ptr.String(xtv)
- }
-
- case strings.EqualFold("cidrBlockAssociationSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVpcCidrBlockAssociationSet(&sv.CidrBlockAssociationSet, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("dhcpOptionsId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DhcpOptionsId = ptr.String(xtv)
- }
-
- case strings.EqualFold("encryptionControl", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVpcEncryptionControl(&sv.EncryptionControl, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("instanceTenancy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InstanceTenancy = types.Tenancy(xtv)
- }
-
- case strings.EqualFold("ipv6CidrBlockAssociationSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVpcIpv6CidrBlockAssociationSet(&sv.Ipv6CidrBlockAssociationSet, 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.IsDefault = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(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.VpcState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- 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 awsEc2query_deserializeDocumentVpcAttachment(v **types.VpcAttachment, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VpcAttachment
- if *v == nil {
- sv = &types.VpcAttachment{}
- } 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("state", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.State = types.AttachmentStatus(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 awsEc2query_deserializeDocumentVpcAttachmentList(v *[]types.VpcAttachment, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VpcAttachment
- if *v == nil {
- sv = make([]types.VpcAttachment, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VpcAttachment
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVpcAttachment(&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 awsEc2query_deserializeDocumentVpcAttachmentListUnwrapped(v *[]types.VpcAttachment, decoder smithyxml.NodeDecoder) error {
- var sv []types.VpcAttachment
- if *v == nil {
- sv = make([]types.VpcAttachment, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VpcAttachment
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVpcAttachment(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusion(v **types.VpcBlockPublicAccessExclusion, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VpcBlockPublicAccessExclusion
- if *v == nil {
- sv = &types.VpcBlockPublicAccessExclusion{}
- } 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("creationTimestamp", 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.CreationTimestamp = ptr.Time(t)
- }
-
- case strings.EqualFold("deletionTimestamp", 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.DeletionTimestamp = ptr.Time(t)
- }
-
- case strings.EqualFold("exclusionId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ExclusionId = ptr.String(xtv)
- }
-
- case strings.EqualFold("internetGatewayExclusionMode", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InternetGatewayExclusionMode = types.InternetGatewayExclusionMode(xtv)
- }
-
- case strings.EqualFold("lastUpdateTimestamp", 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.LastUpdateTimestamp = ptr.Time(t)
- }
-
- 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)
- }
-
- 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("state", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.State = types.VpcBlockPublicAccessExclusionState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_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 awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusionList(v *[]types.VpcBlockPublicAccessExclusion, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VpcBlockPublicAccessExclusion
- if *v == nil {
- sv = make([]types.VpcBlockPublicAccessExclusion, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VpcBlockPublicAccessExclusion
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusion(&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 awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusionListUnwrapped(v *[]types.VpcBlockPublicAccessExclusion, decoder smithyxml.NodeDecoder) error {
- var sv []types.VpcBlockPublicAccessExclusion
- if *v == nil {
- sv = make([]types.VpcBlockPublicAccessExclusion, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VpcBlockPublicAccessExclusion
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusion(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVpcBlockPublicAccessOptions(v **types.VpcBlockPublicAccessOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VpcBlockPublicAccessOptions
- if *v == nil {
- sv = &types.VpcBlockPublicAccessOptions{}
- } 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("awsAccountId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AwsAccountId = ptr.String(xtv)
- }
-
- case strings.EqualFold("awsRegion", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AwsRegion = ptr.String(xtv)
- }
-
- case strings.EqualFold("exclusionsAllowed", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ExclusionsAllowed = types.VpcBlockPublicAccessExclusionsAllowed(xtv)
- }
-
- case strings.EqualFold("internetGatewayBlockMode", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.InternetGatewayBlockMode = types.InternetGatewayBlockMode(xtv)
- }
-
- case strings.EqualFold("lastUpdateTimestamp", 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.LastUpdateTimestamp = ptr.Time(t)
- }
-
- case strings.EqualFold("managedBy", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ManagedBy = types.ManagedBy(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)
- }
-
- 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.VpcBlockPublicAccessState(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 awsEc2query_deserializeDocumentVpcCidrBlockAssociation(v **types.VpcCidrBlockAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VpcCidrBlockAssociation
- if *v == nil {
- sv = &types.VpcCidrBlockAssociation{}
- } 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("associationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AssociationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("cidrBlock", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CidrBlock = ptr.String(xtv)
- }
-
- case strings.EqualFold("cidrBlockState", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVpcCidrBlockState(&sv.CidrBlockState, 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 awsEc2query_deserializeDocumentVpcCidrBlockAssociationSet(v *[]types.VpcCidrBlockAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VpcCidrBlockAssociation
- if *v == nil {
- sv = make([]types.VpcCidrBlockAssociation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VpcCidrBlockAssociation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVpcCidrBlockAssociation(&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 awsEc2query_deserializeDocumentVpcCidrBlockAssociationSetUnwrapped(v *[]types.VpcCidrBlockAssociation, decoder smithyxml.NodeDecoder) error {
- var sv []types.VpcCidrBlockAssociation
- if *v == nil {
- sv = make([]types.VpcCidrBlockAssociation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VpcCidrBlockAssociation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVpcCidrBlockAssociation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVpcCidrBlockState(v **types.VpcCidrBlockState, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VpcCidrBlockState
- if *v == nil {
- sv = &types.VpcCidrBlockState{}
- } 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("state", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.State = types.VpcCidrBlockStateCode(xtv)
- }
-
- case strings.EqualFold("statusMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StatusMessage = 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 awsEc2query_deserializeDocumentVpcClassicLink(v **types.VpcClassicLink, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VpcClassicLink
- if *v == nil {
- sv = &types.VpcClassicLink{}
- } 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("classicLinkEnabled", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.ClassicLinkEnabled = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- 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 awsEc2query_deserializeDocumentVpcClassicLinkList(v *[]types.VpcClassicLink, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VpcClassicLink
- if *v == nil {
- sv = make([]types.VpcClassicLink, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VpcClassicLink
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVpcClassicLink(&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 awsEc2query_deserializeDocumentVpcClassicLinkListUnwrapped(v *[]types.VpcClassicLink, decoder smithyxml.NodeDecoder) error {
- var sv []types.VpcClassicLink
- if *v == nil {
- sv = make([]types.VpcClassicLink, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VpcClassicLink
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVpcClassicLink(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVpcEncryptionControl(v **types.VpcEncryptionControl, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VpcEncryptionControl
- if *v == nil {
- sv = &types.VpcEncryptionControl{}
- } 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("mode", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Mode = types.VpcEncryptionControlMode(xtv)
- }
-
- case strings.EqualFold("resourceExclusions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVpcEncryptionControlExclusions(&sv.ResourceExclusions, nodeDecoder); err != nil {
- return err
- }
-
- 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.VpcEncryptionControlState(xtv)
- }
-
- case strings.EqualFold("stateMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StateMessage = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("vpcEncryptionControlId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VpcEncryptionControlId = ptr.String(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 awsEc2query_deserializeDocumentVpcEncryptionControlExclusion(v **types.VpcEncryptionControlExclusion, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VpcEncryptionControlExclusion
- if *v == nil {
- sv = &types.VpcEncryptionControlExclusion{}
- } 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("state", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.State = types.VpcEncryptionControlExclusionState(xtv)
- }
-
- case strings.EqualFold("stateMessage", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.StateMessage = 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 awsEc2query_deserializeDocumentVpcEncryptionControlExclusions(v **types.VpcEncryptionControlExclusions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VpcEncryptionControlExclusions
- if *v == nil {
- sv = &types.VpcEncryptionControlExclusions{}
- } 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("egressOnlyInternetGateway", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVpcEncryptionControlExclusion(&sv.EgressOnlyInternetGateway, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("internetGateway", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVpcEncryptionControlExclusion(&sv.InternetGateway, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("natGateway", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVpcEncryptionControlExclusion(&sv.NatGateway, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("virtualPrivateGateway", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVpcEncryptionControlExclusion(&sv.VirtualPrivateGateway, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("vpcPeering", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVpcEncryptionControlExclusion(&sv.VpcPeering, 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 awsEc2query_deserializeDocumentVpcEndpoint(v **types.VpcEndpoint, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VpcEndpoint
- if *v == nil {
- sv = &types.VpcEndpoint{}
- } 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("creationTimestamp", 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.CreationTimestamp = ptr.Time(t)
- }
-
- case strings.EqualFold("dnsEntrySet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentDnsEntrySet(&sv.DnsEntries, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("dnsOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentDnsOptions(&sv.DnsOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("failureReason", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.FailureReason = ptr.String(xtv)
- }
-
- case strings.EqualFold("groupSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentGroupIdentifierSet(&sv.Groups, nodeDecoder); err != nil {
- return err
- }
-
- 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("ipv4PrefixSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSubnetIpPrefixesList(&sv.Ipv4Prefixes, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ipv6PrefixSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentSubnetIpPrefixesList(&sv.Ipv6Prefixes, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("lastError", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentLastError(&sv.LastError, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("networkInterfaceIdSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.NetworkInterfaceIds, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("policyDocument", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PolicyDocument = ptr.String(xtv)
- }
-
- case strings.EqualFold("privateDnsEnabled", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.PrivateDnsEnabled = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("requesterManaged", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.RequesterManaged = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("resourceConfigurationArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceConfigurationArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("routeTableIdSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.RouteTableIds, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("serviceName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServiceName = ptr.String(xtv)
- }
-
- case strings.EqualFold("serviceNetworkArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServiceNetworkArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("serviceRegion", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServiceRegion = ptr.String(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.State(xtv)
- }
-
- case strings.EqualFold("subnetIdSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.SubnetIds, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("vpcEndpointId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VpcEndpointId = ptr.String(xtv)
- }
-
- case strings.EqualFold("vpcEndpointType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VpcEndpointType = types.VpcEndpointType(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 awsEc2query_deserializeDocumentVpcEndpointAssociation(v **types.VpcEndpointAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VpcEndpointAssociation
- if *v == nil {
- sv = &types.VpcEndpointAssociation{}
- } 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("associatedResourceAccessibility", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AssociatedResourceAccessibility = ptr.String(xtv)
- }
-
- case strings.EqualFold("associatedResourceArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AssociatedResourceArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("dnsEntry", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentDnsEntry(&sv.DnsEntry, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("failureCode", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.FailureCode = ptr.String(xtv)
- }
-
- case strings.EqualFold("failureReason", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.FailureReason = 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("privateDnsEntry", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentDnsEntry(&sv.PrivateDnsEntry, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("resourceConfigurationGroupArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ResourceConfigurationGroupArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("serviceNetworkArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServiceNetworkArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("serviceNetworkName", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServiceNetworkName = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("vpcEndpointId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VpcEndpointId = 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 awsEc2query_deserializeDocumentVpcEndpointAssociationSet(v *[]types.VpcEndpointAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VpcEndpointAssociation
- if *v == nil {
- sv = make([]types.VpcEndpointAssociation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VpcEndpointAssociation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVpcEndpointAssociation(&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 awsEc2query_deserializeDocumentVpcEndpointAssociationSetUnwrapped(v *[]types.VpcEndpointAssociation, decoder smithyxml.NodeDecoder) error {
- var sv []types.VpcEndpointAssociation
- if *v == nil {
- sv = make([]types.VpcEndpointAssociation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VpcEndpointAssociation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVpcEndpointAssociation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVpcEndpointConnection(v **types.VpcEndpointConnection, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VpcEndpointConnection
- if *v == nil {
- sv = &types.VpcEndpointConnection{}
- } 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("creationTimestamp", 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.CreationTimestamp = ptr.Time(t)
- }
-
- case strings.EqualFold("dnsEntrySet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentDnsEntrySet(&sv.DnsEntries, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("gatewayLoadBalancerArnSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.GatewayLoadBalancerArns, nodeDecoder); err != nil {
- return err
- }
-
- 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("networkLoadBalancerArnSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentValueStringList(&sv.NetworkLoadBalancerArns, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("serviceId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.ServiceId = ptr.String(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("vpcEndpointConnectionId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VpcEndpointConnectionId = ptr.String(xtv)
- }
-
- case strings.EqualFold("vpcEndpointId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VpcEndpointId = ptr.String(xtv)
- }
-
- case strings.EqualFold("vpcEndpointOwner", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VpcEndpointOwner = ptr.String(xtv)
- }
-
- case strings.EqualFold("vpcEndpointRegion", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VpcEndpointRegion = ptr.String(xtv)
- }
-
- case strings.EqualFold("vpcEndpointState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VpcEndpointState = types.State(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 awsEc2query_deserializeDocumentVpcEndpointConnectionSet(v *[]types.VpcEndpointConnection, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VpcEndpointConnection
- if *v == nil {
- sv = make([]types.VpcEndpointConnection, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VpcEndpointConnection
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVpcEndpointConnection(&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 awsEc2query_deserializeDocumentVpcEndpointConnectionSetUnwrapped(v *[]types.VpcEndpointConnection, decoder smithyxml.NodeDecoder) error {
- var sv []types.VpcEndpointConnection
- if *v == nil {
- sv = make([]types.VpcEndpointConnection, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VpcEndpointConnection
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVpcEndpointConnection(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVpcEndpointSet(v *[]types.VpcEndpoint, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VpcEndpoint
- if *v == nil {
- sv = make([]types.VpcEndpoint, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VpcEndpoint
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVpcEndpoint(&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 awsEc2query_deserializeDocumentVpcEndpointSetUnwrapped(v *[]types.VpcEndpoint, decoder smithyxml.NodeDecoder) error {
- var sv []types.VpcEndpoint
- if *v == nil {
- sv = make([]types.VpcEndpoint, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VpcEndpoint
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVpcEndpoint(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVpcIpv6CidrBlockAssociation(v **types.VpcIpv6CidrBlockAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VpcIpv6CidrBlockAssociation
- if *v == nil {
- sv = &types.VpcIpv6CidrBlockAssociation{}
- } 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("associationId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.AssociationId = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipSource", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.IpSource = types.IpSource(xtv)
- }
-
- case strings.EqualFold("ipv6AddressAttribute", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Ipv6AddressAttribute = types.Ipv6AddressAttribute(xtv)
- }
-
- case strings.EqualFold("ipv6CidrBlock", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Ipv6CidrBlock = ptr.String(xtv)
- }
-
- case strings.EqualFold("ipv6CidrBlockState", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVpcCidrBlockState(&sv.Ipv6CidrBlockState, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ipv6Pool", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Ipv6Pool = ptr.String(xtv)
- }
-
- case strings.EqualFold("networkBorderGroup", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.NetworkBorderGroup = 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 awsEc2query_deserializeDocumentVpcIpv6CidrBlockAssociationSet(v *[]types.VpcIpv6CidrBlockAssociation, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VpcIpv6CidrBlockAssociation
- if *v == nil {
- sv = make([]types.VpcIpv6CidrBlockAssociation, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VpcIpv6CidrBlockAssociation
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVpcIpv6CidrBlockAssociation(&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 awsEc2query_deserializeDocumentVpcIpv6CidrBlockAssociationSetUnwrapped(v *[]types.VpcIpv6CidrBlockAssociation, decoder smithyxml.NodeDecoder) error {
- var sv []types.VpcIpv6CidrBlockAssociation
- if *v == nil {
- sv = make([]types.VpcIpv6CidrBlockAssociation, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VpcIpv6CidrBlockAssociation
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVpcIpv6CidrBlockAssociation(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVpcList(v *[]types.Vpc, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.Vpc
- if *v == nil {
- sv = make([]types.Vpc, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.Vpc
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVpc(&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 awsEc2query_deserializeDocumentVpcListUnwrapped(v *[]types.Vpc, decoder smithyxml.NodeDecoder) error {
- var sv []types.Vpc
- if *v == nil {
- sv = make([]types.Vpc, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.Vpc
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVpc(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVpcPeeringConnection(v **types.VpcPeeringConnection, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VpcPeeringConnection
- if *v == nil {
- sv = &types.VpcPeeringConnection{}
- } 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("accepterVpcInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVpcPeeringConnectionVpcInfo(&sv.AccepterVpcInfo, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("expirationTime", 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.ExpirationTime = ptr.Time(t)
- }
-
- case strings.EqualFold("requesterVpcInfo", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVpcPeeringConnectionVpcInfo(&sv.RequesterVpcInfo, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("status", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVpcPeeringConnectionStateReason(&sv.Status, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("vpcPeeringConnectionId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VpcPeeringConnectionId = 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 awsEc2query_deserializeDocumentVpcPeeringConnectionList(v *[]types.VpcPeeringConnection, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VpcPeeringConnection
- if *v == nil {
- sv = make([]types.VpcPeeringConnection, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VpcPeeringConnection
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVpcPeeringConnection(&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 awsEc2query_deserializeDocumentVpcPeeringConnectionListUnwrapped(v *[]types.VpcPeeringConnection, decoder smithyxml.NodeDecoder) error {
- var sv []types.VpcPeeringConnection
- if *v == nil {
- sv = make([]types.VpcPeeringConnection, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VpcPeeringConnection
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVpcPeeringConnection(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVpcPeeringConnectionOptionsDescription(v **types.VpcPeeringConnectionOptionsDescription, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VpcPeeringConnectionOptionsDescription
- if *v == nil {
- sv = &types.VpcPeeringConnectionOptionsDescription{}
- } 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("allowDnsResolutionFromRemoteVpc", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.AllowDnsResolutionFromRemoteVpc = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("allowEgressFromLocalClassicLinkToRemoteVpc", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.AllowEgressFromLocalClassicLinkToRemoteVpc = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("allowEgressFromLocalVpcToRemoteClassicLink", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.AllowEgressFromLocalVpcToRemoteClassicLink = 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 awsEc2query_deserializeDocumentVpcPeeringConnectionStateReason(v **types.VpcPeeringConnectionStateReason, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VpcPeeringConnectionStateReason
- if *v == nil {
- sv = &types.VpcPeeringConnectionStateReason{}
- } 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.VpcPeeringConnectionStateReasonCode(xtv)
- }
-
- 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 awsEc2query_deserializeDocumentVpcPeeringConnectionVpcInfo(v **types.VpcPeeringConnectionVpcInfo, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VpcPeeringConnectionVpcInfo
- if *v == nil {
- sv = &types.VpcPeeringConnectionVpcInfo{}
- } 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("cidrBlock", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CidrBlock = ptr.String(xtv)
- }
-
- case strings.EqualFold("cidrBlockSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentCidrBlockSet(&sv.CidrBlockSet, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ipv6CidrBlockSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentIpv6CidrBlockSet(&sv.Ipv6CidrBlockSet, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("ownerId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OwnerId = ptr.String(xtv)
- }
-
- case strings.EqualFold("peeringOptions", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVpcPeeringConnectionOptionsDescription(&sv.PeeringOptions, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("region", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Region = ptr.String(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 awsEc2query_deserializeDocumentVpnConnection(v **types.VpnConnection, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VpnConnection
- if *v == nil {
- sv = &types.VpnConnection{}
- } 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("category", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Category = ptr.String(xtv)
- }
-
- case strings.EqualFold("coreNetworkArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CoreNetworkArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("coreNetworkAttachmentArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CoreNetworkAttachmentArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("customerGatewayConfiguration", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CustomerGatewayConfiguration = ptr.String(xtv)
- }
-
- case strings.EqualFold("customerGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.CustomerGatewayId = ptr.String(xtv)
- }
-
- case strings.EqualFold("gatewayAssociationState", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.GatewayAssociationState = types.GatewayAssociationState(xtv)
- }
-
- case strings.EqualFold("options", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVpnConnectionOptions(&sv.Options, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("preSharedKeyArn", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.PreSharedKeyArn = ptr.String(xtv)
- }
-
- case strings.EqualFold("routes", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVpnStaticRouteList(&sv.Routes, nodeDecoder); err != nil {
- return err
- }
-
- 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.VpnState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("transitGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransitGatewayId = 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.GatewayType(xtv)
- }
-
- case strings.EqualFold("vgwTelemetry", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVgwTelemetryList(&sv.VgwTelemetry, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("vpnConnectionId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VpnConnectionId = ptr.String(xtv)
- }
-
- case strings.EqualFold("vpnGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VpnGatewayId = 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 awsEc2query_deserializeDocumentVpnConnectionDeviceType(v **types.VpnConnectionDeviceType, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VpnConnectionDeviceType
- if *v == nil {
- sv = &types.VpnConnectionDeviceType{}
- } 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("platform", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Platform = ptr.String(xtv)
- }
-
- case strings.EqualFold("software", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Software = ptr.String(xtv)
- }
-
- case strings.EqualFold("vendor", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Vendor = ptr.String(xtv)
- }
-
- case strings.EqualFold("vpnConnectionDeviceTypeId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VpnConnectionDeviceTypeId = 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 awsEc2query_deserializeDocumentVpnConnectionDeviceTypeList(v *[]types.VpnConnectionDeviceType, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VpnConnectionDeviceType
- if *v == nil {
- sv = make([]types.VpnConnectionDeviceType, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VpnConnectionDeviceType
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVpnConnectionDeviceType(&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 awsEc2query_deserializeDocumentVpnConnectionDeviceTypeListUnwrapped(v *[]types.VpnConnectionDeviceType, decoder smithyxml.NodeDecoder) error {
- var sv []types.VpnConnectionDeviceType
- if *v == nil {
- sv = make([]types.VpnConnectionDeviceType, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VpnConnectionDeviceType
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVpnConnectionDeviceType(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVpnConnectionList(v *[]types.VpnConnection, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VpnConnection
- if *v == nil {
- sv = make([]types.VpnConnection, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VpnConnection
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVpnConnection(&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 awsEc2query_deserializeDocumentVpnConnectionListUnwrapped(v *[]types.VpnConnection, decoder smithyxml.NodeDecoder) error {
- var sv []types.VpnConnection
- if *v == nil {
- sv = make([]types.VpnConnection, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VpnConnection
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVpnConnection(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVpnConnectionOptions(v **types.VpnConnectionOptions, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VpnConnectionOptions
- if *v == nil {
- sv = &types.VpnConnectionOptions{}
- } 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("enableAcceleration", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.EnableAcceleration = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("localIpv4NetworkCidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalIpv4NetworkCidr = ptr.String(xtv)
- }
-
- case strings.EqualFold("localIpv6NetworkCidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.LocalIpv6NetworkCidr = ptr.String(xtv)
- }
-
- case strings.EqualFold("outsideIpAddressType", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.OutsideIpAddressType = ptr.String(xtv)
- }
-
- case strings.EqualFold("remoteIpv4NetworkCidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RemoteIpv4NetworkCidr = ptr.String(xtv)
- }
-
- case strings.EqualFold("remoteIpv6NetworkCidr", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.RemoteIpv6NetworkCidr = ptr.String(xtv)
- }
-
- case strings.EqualFold("staticRoutesOnly", 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 Boolean to be of type *bool, got %T instead", val)
- }
- sv.StaticRoutesOnly = ptr.Bool(xtv)
- }
-
- case strings.EqualFold("transportTransitGatewayAttachmentId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TransportTransitGatewayAttachmentId = ptr.String(xtv)
- }
-
- case strings.EqualFold("tunnelInsideIpVersion", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.TunnelInsideIpVersion = types.TunnelInsideIpVersion(xtv)
- }
-
- case strings.EqualFold("tunnelOptionSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTunnelOptionsList(&sv.TunnelOptions, 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 awsEc2query_deserializeDocumentVpnGateway(v **types.VpnGateway, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VpnGateway
- if *v == nil {
- sv = &types.VpnGateway{}
- } 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("amazonSideAsn", 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.AmazonSideAsn = ptr.Int64(i64)
- }
-
- 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("state", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.State = types.VpnState(xtv)
- }
-
- case strings.EqualFold("tagSet", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, 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.GatewayType(xtv)
- }
-
- case strings.EqualFold("attachments", t.Name.Local):
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- if err := awsEc2query_deserializeDocumentVpcAttachmentList(&sv.VpcAttachments, nodeDecoder); err != nil {
- return err
- }
-
- case strings.EqualFold("vpnGatewayId", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.VpnGatewayId = 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 awsEc2query_deserializeDocumentVpnGatewayList(v *[]types.VpnGateway, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VpnGateway
- if *v == nil {
- sv = make([]types.VpnGateway, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VpnGateway
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVpnGateway(&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 awsEc2query_deserializeDocumentVpnGatewayListUnwrapped(v *[]types.VpnGateway, decoder smithyxml.NodeDecoder) error {
- var sv []types.VpnGateway
- if *v == nil {
- sv = make([]types.VpnGateway, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VpnGateway
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVpnGateway(&destAddr, nodeDecoder); err != nil {
- return err
- }
- mv = *destAddr
- sv = append(sv, mv)
- }
- *v = sv
- return nil
-}
-func awsEc2query_deserializeDocumentVpnStaticRoute(v **types.VpnStaticRoute, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv *types.VpnStaticRoute
- if *v == nil {
- sv = &types.VpnStaticRoute{}
- } 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("destinationCidrBlock", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.DestinationCidrBlock = ptr.String(xtv)
- }
-
- case strings.EqualFold("source", t.Name.Local):
- val, err := decoder.Value()
- if err != nil {
- return err
- }
- if val == nil {
- break
- }
- {
- xtv := string(val)
- sv.Source = types.VpnStaticRouteSource(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.VpnState(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 awsEc2query_deserializeDocumentVpnStaticRouteList(v *[]types.VpnStaticRoute, decoder smithyxml.NodeDecoder) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- var sv []types.VpnStaticRoute
- if *v == nil {
- sv = make([]types.VpnStaticRoute, 0)
- } else {
- sv = *v
- }
-
- originalDecoder := decoder
- for {
- t, done, err := decoder.Token()
- if err != nil {
- return err
- }
- if done {
- break
- }
- switch {
- case strings.EqualFold("item", t.Name.Local):
- var col types.VpnStaticRoute
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &col
- if err := awsEc2query_deserializeDocumentVpnStaticRoute(&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 awsEc2query_deserializeDocumentVpnStaticRouteListUnwrapped(v *[]types.VpnStaticRoute, decoder smithyxml.NodeDecoder) error {
- var sv []types.VpnStaticRoute
- if *v == nil {
- sv = make([]types.VpnStaticRoute, 0)
- } else {
- sv = *v
- }
-
- switch {
- default:
- var mv types.VpnStaticRoute
- t := decoder.StartEl
- _ = t
- nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
- destAddr := &mv
- if err := awsEc2query_deserializeDocumentVpnStaticRoute(&destAddr